Rev 126 | Rev 128 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 126 | Rev 127 | ||
---|---|---|---|
Line 78... | Line 78... | ||
78 | max-width: 100%; |
78 | max-width: 100%; |
79 | } |
79 | } |
80 | --> |
80 | --> |
81 | </style> |
81 | </style> |
82 | 82 | ||
83 | <script type="text/javascript" src="scripts/builder?src=object,dom"></script> |
83 | <script type="text/javascript" src="scripts/builder?src=object,dom,dom/storage,dom/window"></script> |
84 | <script type="text/javascript"> |
84 | <script type="text/javascript"> |
85 | function setStatus (text) |
- | |
86 | { |
- | |
87 | window.status = String(text); |
- | |
88 | return true; |
- | |
89 | } |
- | |
90 | - | ||
91 | function resetStatus () |
- | |
92 | { |
- | |
93 | window.status = window.defaultStatus; |
- | |
94 | return true; |
- | |
95 | } |
- | |
96 | <?php
|
85 | <?php
|
97 | /*
|
86 | /*
|
98 | var ms1Day = 60*60*24*1000; // ms for 1 days = 60sec*60min*24hours*1000ms
|
87 | var ms1Day = 60*60*24*1000; // ms for 1 days = 60sec*60min*24hours*1000ms
|
99 | var msLeaveDays = ms1Day*6;
|
88 | var msLeaveDays = ms1Day*6;
|
100 | var ms30Days=ms1Day*30;
|
89 | var ms30Days=ms1Day*30;
|
Line 614... | Line 603... | ||
614 | if (navigator.cookieEnabled) features.push("<?php echo _('Cookies'); ?>"); |
603 | if (navigator.cookieEnabled) features.push("<?php echo _('Cookies'); ?>"); |
615 | if (fullscreen.isSupportedBy(document.documentElement)) features.push("<?php echo _('Fullscreen'); ?>"); |
604 | if (fullscreen.isSupportedBy(document.documentElement)) features.push("<?php echo _('Fullscreen'); ?>"); |
616 | if (navigator.webkitGetGamepads && navigator.webkitGetGamepads().length) features.push("<?php echo _('Gamepad'); ?>"); |
605 | if (navigator.webkitGetGamepads && navigator.webkitGetGamepads().length) features.push("<?php echo _('Gamepad'); ?>"); |
617 | if (navigator.geolocation) features.push("<?php echo _('Geolocation'); ?>"); |
606 | if (navigator.geolocation) features.push("<?php echo _('Geolocation'); ?>"); |
618 | if (typeof navigator.javaEnabled != "undefined" && navigator.javaEnabled()) features.push("Java"); |
607 | if (typeof navigator.javaEnabled != "undefined" && navigator.javaEnabled()) features.push("Java"); |
- | 608 | var storage = jsx.dom.storage; |
|
619 | if (typeof window.localStorage != "undefined") features.push("Local Storage"); |
609 | if (storage.localStorage.isSupported()) features.push("Local Storage"); |
620 | if (navigator.plugins) features.push("Plugins"); |
610 | if (navigator.plugins) features.push("Plugins"); |
621 | if (typeof window.sessionStorage != "undefined") features.push("Session Storage"); |
611 | if (storage.sessionStorage.isSupported()) features.push("Session Storage"); |
622 | if (typeof window.ontouchstart != "undefined") features.push("Touch"); |
612 | if (typeof window.ontouchstart != "undefined") features.push("Touch"); |
623 | return features.join(" • "); |
613 | return features.join(" • "); |
624 | } |
614 | } |
625 | 615 | ||
626 | var sFeatures = getFeatures(); |
616 | var sFeatures = getFeatures(); |
627 | document.write('<span id="features" title="' + sFeatures + '">' + sFeatures + '<\/span>'); |
617 | document.write('<span id="features" title="' + sFeatures + '">' + sFeatures + '<\/span>'); |
628 | 618 | ||
629 | var oFeatures; |
619 | var oFeatures; |
630 | window.setTimeout(function () { |
620 | var tFeatures = window.setTimeout(function () { |
631 | if (typeof oFeatures == "undefined") |
621 | if (typeof oFeatures == "undefined") |
632 | { |
622 | { |
633 | oFeatures = document.getElementById("features"); |
623 | oFeatures = document.getElementById("features"); |
634 | } |
624 | } |
635 | 625 |