xbase-2.x-dev/js/libraries/responsive-dom/js/jquery.responsive-dom.min.js

js/libraries/responsive-dom/js/jquery.responsive-dom.min.js
!function(n){"use strict";"function"==typeof define&&define.amd?define(["jquery"],n):n(jQuery)}(function(n){"use strict";n.fn.responsiveDom=function(e){var t=n.extend({appendTo:null,prependTo:null,mediaQuery:"(min-width: 0)",callback:null},e),i=this,o=null,c=!1,u=function(){a(),n(window).on("resize.responsiveDom",l(a,100))},a=function(){if(!c&&matchMedia(t.mediaQuery).matches)r(),c=!0;else{if(!c||matchMedia(t.mediaQuery).matches)return;d(),c=!1}"function"==typeof t.callback&&t.callback(c)},r=function(){document.contains&&!document.contains(i[0])||(o=n('<span class="js-responsive-dom-placeholder"/>'),i.after(o),null!==t.appendTo?n(t.appendTo).eq(0).append(i):n(t.prependTo).eq(0).prepend(i))},d=function(){null===o||document.contains&&!document.contains(o[0])||(o.after(i),o.remove(),o=null)},l=function(n,e){var t;return function(){clearTimeout(t),t=setTimeout(function(){n()},e)}};return u(),this}});
//# sourceMappingURL=jquery.responsive-dom.min.js.map

Главная | Обратная связь

drupal hosting | друпал хостинг | it patrol .inc