PageSourceSearch

https://www.srb-photographic.co.uk/ekmps/designs/assets/cart/1298/other/all.min.js?v=6

js srb-photographic.co.uk collected 2026-09-26 19:17:42 UTC 9,676 bytes, 14 lines download raw bytes

1!function(){/*!
2	 * contentloaded.js
3	 *
4	 * Author: Diego Perini (diego.perini at gmail.com)
5	 * Summary: cross-browser wrapper for DOMContentLoaded
6	 * Updated: 20101020
7	 * License: MIT
8	 * Version: 1.2
9	 *
10	 * URL:
11	 * http://javascript.nwbox.com/ContentLoaded/
12	 * http://javascript.nwbox.com/ContentLoaded/MIT-LICENSE
13	 *
14	 */ function t(t,e){var n=!1,o=!0,a=t.document,i=a.documentElement,c=a.addEventListener,r=c?"addEventListener":"attachEvent",l=c?"removeEventListener":"detachEvent",u=c?"":"on",s=function(o){("readystatechange"!=o.type||"complete"==a.readyState)&&(("load"==o.type?t:a)[l](u+o.type,s,!1),!n&&(n=!0)&&e.call(t,o.type||o))},d=function(){try{i.doScroll("left")}catch(t){setTimeout(d,50);return}s("poll")};if("complete"==a.readyState)e.call(t,"lazy");else{if(!c&&i.doScroll){try{o=!t.frameElement}catch(p){}o&&d()}a[r](u+"DOMContentLoaded",s,!1),a[r](u+"readystatechange",s,!1),t[r](u+"load",s,!1)}}function e(t,e){return"string"==typeof t&&"string"!=typeof e&&(e=t,t=document),Array.prototype.slice.call(t.querySelectorAll(e),0)}function n(t,e){return("string"==typeof t&&"string"!=typeof e&&(e=t,t=document),null==t)?null:t.querySelector(e)}function o(t,e,n){null!=t&&(t.addEventListner?t.addEventListner(e,n,!1):t.attachEvent?t.attachEvent("on"+e,n):t["on"+e]=n)}function a(t,e,n,o){(n=document).createEvent?(Event.call?o=new Event(e):(o=n.createEvent("CustomEvent")).initCustomEvent(e,!0,!1,void 0),t.dispatchEvent(o)):(o=n.createEventObject(),t.fireEvent("on"+e,o))}function i(t){(t=t||window.event).preventDefault?t.preventDefault():t.returnValue=!1}function c(t){if("createEvent"in document){var e=document.createEvent("HTMLEvents");e.initEvent("change",!1,!0),t.dispatchEvent(e)}else t.fireEvent("onchange")}function r(t,e){if(e in t.style)return e;for(var n=e[0].toUpperCase()+e.substr(1),o=["webkit","moz","o","ms"],a=0,i=o.length;a<i;a++)if(o[a]+n in t.style)return o[a]+n;return e}function l(t){return t.ownerDocument.defaultView.opener?t.ownerDocument.defaultView.getComputedStyle(t,null):window.getComputedStyle(t,null)}var u="pending",s="running",d="complete",p={};function f(t,e){var n,o,a,i,c,r,l,f,m=e.duration||400,v=e.start||function(){},h=e.step||function(){},g=e.complete||function(){},y=u,k=function(){},$=function(){y=d,g(),k()},_=function(){var t=+new Date,e=t-n,a=e/m;a>1&&(a=1),h(a,e,t,n),a<1?o=setTimeout(_,33):$()};a=t,i={start:function(t){y===u&&(k=t||function(){},y=s,n=+new Date,!1===v()?$():_())},stop:function(t){if(y===s&&(clearTimeout(o),t)){var e=+new Date;h(1,m,e,e-m),$()}},getState:function(){return y}},null===(c=a.getAttribute("data-ekm-animation-id"))&&(c=+new Date+""+Math.random(),a.setAttribute("data-ekm-animation-id",c)),(r=p[c]=p[c]||[])[r.length]=i,l=function(){for(var t=0;r.length>t&&r[t].getState()===d;)t++;t>0&&r.splice(0,t)},(f=function(){for(var t=0,e=r.length;t<e;t++){var n=r[t].getState();if(n===s)return;if(n===u){r[t].start(function(){l(),f()});break}}})()}function m(t){var e,n,o;f(t,{start:function(){var a=l(t);return e=parseFloat(a.paddingTop),n=parseFloat(a.paddingBottom),o=t.offsetHeight-(e+n),t.style.overflow="hidden",o>0},step:function(a){t.style.height=Math.round(o*(1-a))+"px",t.style.paddingTop=Math.round(e*(1-a))+"px",t.style.paddingBottom=Math.round(n*(1-a))+"px"},complete:function(){t.style.display="none",t.style.height="",t.style.paddingTop="",t.style.paddingBottom=""}})}function v(t){var e,n,o;f(t,{start:function(){t.style.display="block";var a=l(t);e=parseFloat(a.paddingTop),n=parseFloat(a.paddingBottom),o=t.offsetHeight-(e+n)},step:function(a){t.style.height=Math.round(o*a)+"px",t.style.paddingTop=Math.round(e*a)+"px",t.style.paddingBottom=Math.round(n*a)+"px"},complete:function(){t.style.height="",t.style.paddingTop="",t.style.paddingBottom="",t.style.overflow="visible"}})}function h(t){return!(!t.offsetWidth||!t.offsetHeight)}function g(t,e,n){for(var o=0,a=t.length;o<a;o++)e.call(n,t[o],o,t)}function y(t,e){if(null!=t)return RegExp(" "+e+" ").test(" "+t.className+" ")}function k(t,e){y(t,e)||(t.className+=" "+e)}function $(t,e){var n=" "+t.className.replace(/[\t\r\n]/g," ")+" ";if(y(t,e)){for(;n.indexOf(" "+e+" ")>=0;)n=n.replace(" "+e+" "," ");t.className=n.replace(/^\s+|\s+$/g,"")}}function _(t,e){for(var n in e)e.hasOwnProperty(n)&&(t.style[n]=e[n])}t(window,function(){function t(t,e){isNaN(t)&&(qtyBox.value="1");var n=e?t+1:t-1;return n<=0&&(n=1),n}g(e(".ekmpscart-cart-items-product-qty"),function(e){var a,l,u,s=function(t){t?v.classList.add("disabled"):v.classList.remove("disabled")},d=function(){p.value<=1?s(!0):s(!1)},p=n(e,".ekmpscart-cart-items-product-qty-box"),m=n(e,".ekmpscart-cart-items-product-qty-up"),v=n(e,".ekmpscart-cart-items-product-qty-down"),g=n(e,".ekmpscart-cart-items-product-qty-update"),y=parseInt(p.value);1>=parseInt(p.value)&&s(!0),o(m,"click",function(e){i(e);var n=parseInt(p.value);p.value=t(n,!0),d()}),o(m,"mousedown",function(e){clearTimeout(u),i(e);var n=parseInt(p.value);l=setTimeout(function(){a=setInterval(function(){p.value=t(n,!0),n=t(n,!0)},100)},300)}),o(m,"mouseup",function(t){clearInterval(a),clearTimeout(l),u=setTimeout(function(){y!=p.value&&c(p),y=parseInt(p.value)},1e3)}),o(v,"click",function(e){i(e);var n=parseInt(p.value);p.value=t(n,!1),d()}),o(v,"mousedown",function(e){clearTimeout(u),i(e);var n=parseInt(p.value);l=setTimeout(function(){a=setInterval(function(){p.value=t(n,!1),n=t(n,!1)},100)},300)}),o(v,"mouseup",function(t){clearInterval(a),clearTimeout(l),p.value>=1&&(u=setTimeout(function(){y!=p.value&&c(p),y=parseInt(p.value)},1e3))}),o(p,"keyup",function(){var t,e,n=r(g,"opacity");0==g.style[n]&&(t=g,e=r(t,"opacity"),f(t,{start:function(){h(t)||(t.style.display="inline")},step:function(n){t.style[e]=n}}))})})}),t(window,function(){g(e(".ekmpscart-cart-items-product"),function(t){var a=n(t,".ekmpscart-cart-items-product-action-toggle-options"),c=n(t,".ekmpscart-cart-items-product-options");null!=a&&o(a,"click",function(t){i(t),h(c)?m(c):v(c)}),g(e(t,".ekmpscart-cart-items-bundle-product"),function(t){var e=n(t,".ekmpscart-cart-items-bundle-action-toggle-options"),a=n(t,".ekmpscart-cart-items-product-options");null!==e&&o(e,"click",function(t){i(t),h(a)?m(a):v(a)})})})}),t(window,function(){g(e(".ekmpscart-cart-items-product"),function(t){var e=n(t,".ekmpscart-cart-items-product-action-toggle-bundle-items"),a=n(t,".ekmpscart-cart-items-product-action-toggle-bundle-items i"),c=n(t,".ekmpscart-cart-items-bundle-items");null!==e&&o(e,"click",function(t){i(t),h(c)?(m(c),a.classList.remove("ekmps-fa-chevron-up"),a.classList.add("ekmps-fa-chevron-down")):(v(c),a.classList.add("ekmps-fa-chevron-up"),a.classList.remove("ekmps-fa-chevron-down"))})})}),t(window,function(){var t=n(".ekmpscart-total-delivery-estimate"),e=n(".ekmpscart-estimate-delivery"),c=n(e,".ekmpscart-estimate-delivery-header"),r=n(e,".ekmpscart-estimate-delivery-content");n(e,".ekmpscart-estimate-delivery-header-estimate-expand-button");var l=n(r,".ekmpscart-estimate-delivery-row-button-cancel"),u=n(r,'select[name="countrycode"]'),s=n(r,'input[name="areacode"]'),d=n(r,".ekmpscart-estimate-delivery-row-button-estimate"),p=n(e,".ekmpscart-estimate-delivery-loading");function f(t){i(t),h(r)?(m(r),k(e,"collapsed"),$(e,"expanded")):(v(r),k(e,"expanded"),$(e,"collapsed"))}o(c,"click",f),o(l,"click",f),o(d,"click",function(){a(s,"change"),a(u,"change"),p.style.display="block"}),y(e,"updated")&&(f(null),setTimeout(function(){k(t,"highlight"),setTimeout(function(){$(t,"highlight")},1500)},500))}),t(window,function(){var t=n(".ekmpscart-discount-code"),e=n(".ekmpscart-discount-code-link"),a=n(".ekmpscart-promotional-voucher"),i=n(".ekmpscart-promotional-voucher-close-icon");function c(e){h(a)&&!e?(m(a),v(t)):(v(a),m(t))}o(e,"click",function(){c(!0)}),o(i,"click",function(){c(!1)}),window.couponCodeOpened&&c(!0)}),t(window,function(){var t,a,i,c,r="/ekmps/images/modal-spinner.gif",l=null,u=e(".ekmpscart-checkout-button-checkout a"),s=!1;g(u,function(t){o(t,"click",function(t){s||2===t.which||(s=!0,showLoadingSpinner())})}),window.showLoadingSpinner=function(){var t=n(".ekmpscart-main-cart");t.style.position="relative";var e=document.createElement("div");k(e,"ekm-cart-checkout-loading");var o=document.createElement("div");k(o,"ekm-cart-checkout-loading-inner");var a=null!==l?l:document.createElement("img");k(a,"ekm-cart-checkout-loading-img"),_(a,{marginTop:"-"+Math.floor(16)+"px",marginLeft:"-"+Math.floor(16)+"px"}),null===l&&(a.src=r),o.appendChild(a),e.appendChild(o),t.appendChild(e)},t=r,a=a=function(t){l=t},_(i=document.createElement("div"),{position:"absolute",width:"1px",height:"1px",left:"-100px",top:"-100px",overflow:"hidden"}),(c=document.createElement("img")).onload=function(){i.parentNode.removeChild(i),a(c)},c.src=t,i.appendChild(c),document.body.appendChild(i)}),window.onpageshow=function(t){t.persisted&&g(e(window,".ekm-cart-checkout-loading"),function(t){t.parentNode.removeChild(t)})},t(window,function(){function t(t,e){e=e||[];var n=t.split(".")[0],o=t.split(".").slice(1),a=document.createElement(n);return a.className=o.join(" "),e.forEach(function(t){a.appendChild(t)}),a}var e=document.querySelectorAll("a.js-ekm-save-for-later, a.js-ekm-move-to-cart"),n=!1;[].slice.call(e).forEach(function(e){e.addEventListener("click",function(o){if
14(o.preventDefault(),!n){var a=e.href;setTimeout(function(){window.location.href=a},250);var i=e.closest(".ekmpscart-cart-items-product");i.classList.add("overlayContainer"),i.appendChild(t("div.overlay",[t("div.spinnerContainer",[t("div.spinner.small"),t("div.spinnerText.u-margin-bottom--small",[document.createTextNode(e.getAttribute("data-spinner-text"))])])])),n=!0}})})})}();

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.