%PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY
Server IP : 49.231.201.246 / Your IP : 216.73.216.149 Web Server : Apache/2.4.18 (Ubuntu) System : Linux 246 4.4.0-210-generic #242-Ubuntu SMP Fri Apr 16 09:57:56 UTC 2021 x86_64 User : root ( 0) PHP Version : 7.0.33-0ubuntu0.16.04.16 Disable Function : exec,passthru,shell_exec,system,proc_open,popen,pcntl_exec MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /var/www/html/egp/web/assets/7fed7388/plugins/flot/plugins/ |
Upload File : |
/** ## jquery.flot.browser.js This plugin is used to make available some browser-related utility functions. ### Methods */ (function ($) { 'use strict'; var browser = { /** - getPageXY(e) Calculates the pageX and pageY using the screenX, screenY properties of the event and the scrolling of the page. This is needed because the pageX and pageY properties of the event are not correct while running tests in Edge. */ getPageXY: function (e) { // This code is inspired from https://stackoverflow.com/a/3464890 var doc = document.documentElement, pageX = e.clientX + (window.pageXOffset || doc.scrollLeft) - (doc.clientLeft || 0), pageY = e.clientY + (window.pageYOffset || doc.scrollTop) - (doc.clientTop || 0); return { X: pageX, Y: pageY }; }, /** - getPixelRatio(context) This function returns the current pixel ratio defined by the product of desktop zoom and page zoom. Additional info: https://www.html5rocks.com/en/tutorials/canvas/hidpi/ */ getPixelRatio: function(context) { var devicePixelRatio = window.devicePixelRatio || 1, backingStoreRatio = context.webkitBackingStorePixelRatio || context.mozBackingStorePixelRatio || context.msBackingStorePixelRatio || context.oBackingStorePixelRatio || context.backingStorePixelRatio || 1; return devicePixelRatio / backingStoreRatio; }, /** - isSafari, isMobileSafari, isOpera, isFirefox, isIE, isEdge, isChrome, isBlink This is a collection of functions, used to check if the code is running in a particular browser or Javascript engine. */ isSafari: function() { // *** https://stackoverflow.com/questions/9847580/how-to-detect-safari-chrome-ie-firefox-and-opera-browser // Safari 3.0+ "[object HTMLElementConstructor]" return /constructor/i.test(window.top.HTMLElement) || (function (p) { return p.toString() === "[object SafariRemoteNotification]"; })(!window.top['safari'] || (typeof window.top.safari !== 'undefined' && window.top.safari.pushNotification)); }, isMobileSafari: function() { //isMobileSafari adapted from https://stackoverflow.com/questions/3007480/determine-if-user-navigated-from-mobile-safari return navigator.userAgent.match(/(iPod|iPhone|iPad)/) && navigator.userAgent.match(/AppleWebKit/); }, isOpera: function() { // *** https://stackoverflow.com/questions/9847580/how-to-detect-safari-chrome-ie-firefox-and-opera-browser //Opera 8.0+ return (!!window.opr && !!opr.addons) || !!window.opera || navigator.userAgent.indexOf(' OPR/') >= 0; }, isFirefox: function() { // *** https://stackoverflow.com/questions/9847580/how-to-detect-safari-chrome-ie-firefox-and-opera-browser // Firefox 1.0+ return typeof InstallTrigger !== 'undefined'; }, isIE: function() { // *** https://stackoverflow.com/questions/9847580/how-to-detect-safari-chrome-ie-firefox-and-opera-browser // Internet Explorer 6-11 return /*@cc_on!@*/false || !!document.documentMode; }, isEdge: function() { // *** https://stackoverflow.com/questions/9847580/how-to-detect-safari-chrome-ie-firefox-and-opera-browser // Edge 20+ return !browser.isIE() && !!window.StyleMedia; }, isChrome: function() { // *** https://stackoverflow.com/questions/9847580/how-to-detect-safari-chrome-ie-firefox-and-opera-browser // Chrome 1+ return !!window.chrome && !!window.chrome.webstore; }, isBlink: function() { // *** https://stackoverflow.com/questions/9847580/how-to-detect-safari-chrome-ie-firefox-and-opera-browser return (browser.isChrome() || browser.isOpera()) && !!window.CSS; } }; $.plot.browser = browser; })(jQuery);