芝麻web文件管理V1.00
编辑当前文件:/home2/sdektunc/timucuy.com/wp-content/themes/customizr/assets/front/js/libs/retina.min.js
!function(){var t="undefined"==typeof exports?window:exports,e={retinaImageSuffix:"@2x",check_mime_type:!0,force_original_dimensions:!0};function i(){}t.Retina=i,i.configure=function(t){for(var i in null===t&&(t={}),t)t.hasOwnProperty(i)&&(e[i]=t[i])},i.init=function(e){null===e&&(e=t),e.addEventListener("load",function(){var t,e,i=document.getElementsByTagName("img"),a=i.length,n=[];for(t=0;t
1||!(!t.matchMedia||!t.matchMedia("(-webkit-min-device-pixel-ratio: 1.5), (min--moz-device-pixel-ratio: 1.5), (-o-min-device-pixel-ratio: 3/2), (min-resolution: 1.5dppx)").matches)};var a=/\.[\w\?=]+$/;function n(t){return e.retinaImageSuffix+t}function r(t,e){if(this.path=t||"",null!=e)this.at_2x_path=e,this.perform_check=!1;else{if(void 0!==document.createElement){var i=document.createElement("a");i.href=this.path,i.pathname=i.pathname.replace(a,n),this.at_2x_path=i.href}else{var r=this.path.split("?");r[0]=r[0].replace(a,n),this.at_2x_path=r.join("?")}this.perform_check=!0}}function h(t){this.el=t,this.path=new r(this.el.getAttribute("src"),this.el.getAttribute("data-at2x"));var e=this;this.path.check_2x_variant(function(t){t&&e.swap()})}t.RetinaImagePath=r,r.confirmed_paths=[],r.prototype.is_external=function(){return!(!this.path.match(/^https?\:/i)||this.path.match("//"+document.domain))},r.prototype.check_2x_variant=function(t){var i,a=this;return this.perform_check||void 0===this.at_2x_path||null===this.at_2x_path?this.at_2x_path in r.confirmed_paths?t(!0):this.is_external()?t(!1):((i=new XMLHttpRequest).open("HEAD",this.at_2x_path),i.onreadystatechange=function(){if(4!==i.readyState)return t(!1);if(i.status>=200&&i.status<=399){if(e.check_mime_type){var n=i.getResponseHeader("Content-Type");if(null===n||!n.match(/^image/i))return t(!1)}return r.confirmed_paths.push(a.at_2x_path),t(!0)}return t(!1)},void i.send()):t(!0)},t.RetinaImage=h,h.prototype.swap=function(t){void 0===t&&(t=this.path.at_2x_path);var i=this;!function a(){i.el.complete?(e.force_original_dimensions&&(0==i.el.offsetWidth&&0==i.el.offsetHeight?(i.el.setAttribute("width",i.el.naturalWidth),i.el.setAttribute("height",i.el.naturalHeight)):(i.el.setAttribute("width",i.el.offsetWidth),i.el.setAttribute("height",i.el.offsetHeight))),i.el.setAttribute("src",t)):setTimeout(a,5)}()},i.isRetina()&&i.init(t)}();