<?php

// require detector to get the family, autoloads the $ua var
require_once "../../../lib/Detector/Detector.php";
?>

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <title>JavaScript Listing</title>
	<?php 
echo Detector::createJavaScriptObj($ua, "browserFull,isMobile,geolocation,cssanimations,cssgradients,indexeddb");
?>
  </head>

  <body>

	<p>An example of listing Detector properties via JS:</p>
	<p>
	<script type="text/javascript">	
	 var m=Detector;
	 for(var f in m){
	    if(f[0]=='_'){continue;}
	    var t=typeof m[f];
	    if(t=='function'){continue;}
	    	document.write(f+'='+m[f]);
	    	if(t=='object'){
				document.write('-><br />');
	      		for(var s in m[f]){
					if (typeof m[f][s]=='boolean') { document.write('&nbsp; &nbsp; &nbsp; '+s+'<br />'); }