Source

jsTimezoneDetect / test / test.html

Diff from to

test/test.html

-<!DOCTYPE html>
+<!DOCTYPE html>
 <html>
 <head>
     <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
     <script type="text/javascript" src="../jstz.js"></script>
-    <script type="text/javascript">
-         var TimeZoneTester = function () {
-             var self = this;
-             
-             self.tested_timezones = [];
-             
-             self.detect = function () {
-                 var tz_name = jstz.determine().name();
-             };
-         };
-        function detect() {
-            var tz = jstz.determine();
-            
-            setTimeout("window.location.reload()", 2000);
-        }
-    </script>
+    
 </head>
-<body onload="detect()">
+<body id="testArea">
+<script type="text/javascript">
+    var counter = 1;
+    var interval = setInterval(function () {
+        document.getElementById('testArea').innerHTML = counter + ": " + jstz.determine().name() + "<br/>";
+        counter++;
+    }, 2000);
+
+</script>
 </body>
 </html>