PageSourceSearch

https://www.motorpoint.co.uk/scripts/site.min.js?build=70480

js motorpoint.co.uk collected 2026-10-02 06:23:51 UTC 5,695 bytes, 1 lines download raw bytes

1function formatMoney(n){return parseFloat(n).toLocaleString().replace(/\.([0-9])$/,".$10")}function isElementInViewport(n){typeof jQuery=="function"&&n instanceof jQuery&&(n=n[0]);var t=n.getBoundingClientRect();return t.top>=0&&t.left>=0&&t.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&t.right<=(window.innerWidth||document.documentElement.clientWidth)}function createClassWithDot(n){return"."+n}function replaceVideoPlaceholders(){var n=$(".js-iframe");$.each(n,function(n,t){var i=$(t).data("src");$(t).replaceWith($("<iframe>",{src:i}))})}function placeHolderToYouTube(n){if(n===undefined||n.src===undefined)return!1;var t=$("<iframe>",{width:n.width!=undefined?n.width:300,height:n.height!=undefined?n.height:200,src:"//www.youtube.com/embed/"+n.src+"?wmode=transparent&rel=0&showinfo=0&autoplay=1&controls=0",frameborder:0}).css({float:"right",border:"none","margin-bottom":0,"z-index":0}),i=$("#placeholder");i.replaceWith(t)}function keepNumbers(){return parseInt($(this).val().replace(/\D/g,""))}function ChatPopup(n,t,i,r,u,f){window.open(n,t,"resizable=no,toolbar=no,scrollbars=no,menubar=no,status=no,directories=no,width="+i+",height="+r+",left="+u+",top="+f+"")}function selectoption(n,t){n.find("option").prop("selected",!1).end().find('option[value="'+t+'"]').prop("selected",!0)}function capitaliseFirstLetter(n){var i=n.split(" "),t="";if($.each(i,function(n,r){var e=r.length,u,f,o;e<=3?t=t+r:(u=r.substring(0,1),f=r.substring(1,e),u=u.toUpperCase(),f=f.toLowerCase(),o=u+f,t=t+o);n<i.length-1&&(t=t+" ")}),t.includes("-")){const n=t.split("-"),i=n.map(n=>n.charAt(0).toUpperCase()+n.slice(1));t=i.join("-")}return t}function stopButtonAnimation(n){n.css("-webkit-transition","none");n.css("-moz-transition","none");n.css("-ms-transition","none");n.css("transition","none")}function addSpinnerToBtn(n){var t=$(n),i;$(".cssload-loader").length<=0&&(i='<span class="cssload-loader"><span class="cssload-loader-inner"><\/span><\/span>',t.is("input")?(stopButtonAnimation(t),$(i).insertAfter(t),t.css("padding-right",parseInt(t.css("padding-right"))+15)):t.append(i))}function removeSpinnerFromBtn(n){var t=$(n);t.is("input")?(t.next(".cssload-loader").remove(),t.css("padding-right",22)):t.find(".cssload-loader").remove()}var _siteColours={black:"#2b2b2b",blue:"#004996",orange:"#e84910",yellow:"#fcc464",green:"#0CB4BD",red:"#c11a46",white:"#fdfdfd"},_defTabContent={controlsGroupClass:"tab-group",tabContentContainerClass:"mp-tab-content",activeClass:"mp-active",tabLinkClass:"tab-link",indicatorClass:"indicator",speed:600},_generalSearchform=$("#GeneralSearch"),_swapImage="js-swapImage",submitBtn=".js-submit",_loginModal=$("#MyMotorpointLoginModal"),_loginForm=$("#MyMotorpointloginform"),wait;$(function(){$("input.mp-btn").wrap($("<span>").css({position:"relative"}))});wait=function(){var n={};return function(t,i,r){r||(r="Don't call this twice without a uniqueId");n[r]&&clearTimeout(n[r]);n[r]=setTimeout(t,i)}}(),function(n){n("html").hasClass("no-svg")&&(n("<script>",{type:"text/javascript",src:"/scripts/ie8script.js"}).appendTo("body"),n("<link>",{href:"/styles/page/ie8styles.min.css",rel:"stylesheet",type:"text/css"}).appendTo("head"));n("input[type=checkbox]").on("click",function(){var t=n("[data-branch]"),i=this,r=n.inArray(i,t)>0;r||(this.checked?n(this).attr("value","true"):n(this).attr("value","false"))});n(function(){var i="js-subnav-container",r="js-subnav",u="js-active",t={inactive:29,active:30};n("body").on("click",createClassWithDot("js-subnav-trigger"),function(f){f.preventDefault();var e=n(this).parents(createClassWithDot(i)),o=e.find(createClassWithDot(r));n(createClassWithDot(i)).not(e).removeClass(u);e.addClass(u);n(createClassWithDot(r)).not(o).stop(!0).slideUp().css(t,t.inactive);o.stop(!0).slideDown().css(t,t.active)}).on("mouseleave",createClassWithDot(i),function(){var f=n(this),i=f.find(createClassWithDot(r));i.is(":animated")||i.not(":focus")&&(i.slideUp().css(t,t.inactive),f.removeClass(u))});n(createClassWithDot(r)).on("mouseout, mouseleave",function(){n(createClassWithDot(i)).removeClass(u);n(this).stop(!0).slideDown().css(t,t.active)})});n(function(){var t="user-menu",i="js-active";n("body").on("click",".welcome-message > a",function(r){r.preventDefault();var u=n(this).next(createClassWithDot(t)),f=parseInt(u.css("top"));u.dropDown({easing:"easeOutCubic",speed:800,condition:u.hasClass("js-active"),startPos:f,opened:function(){},closed:function(){}});u.toggleClass(i)});n(createClassWithDot(t)).on("mouseleave",function(){n(this).hideDropDown({toggleClass:i})})});n(function(){function i(){n("div."+t+", li."+t).removeClass(t)}var t="selected";n(".btn-top").on("click",function(t){t.preventDefault();var i=n(".faq-answers"),r=i.offset().top-100;n(this).scrollTo({destination:r})});n(".faq-questions").on("click","a",function(i){i.preventDefault();var r=n(this),f=r.attr("href").replace("#",""),u=n('a[name="'+f+'"]'),e=u.parents("div");r.scrollTo({destination:u.offset().top-100},function(){e.addClass(t);r.parents("li").addClass(t)})});n("div."+t).on("click","a",function(){i()});n(window).on("scroll",function(){i()})});n(function(){if(n("form").length>0){var t=n("input[type=radio], input[type=checkbox]");t.on("change",function(){var t=n(this),i=t.parent("label");i.toggleClass("mp-active");t.prop("type")==="radio"&&i.siblings("label").removeClass("mp-active")})}});n(".js-check").on("click",function(){var i=n(this).find(".icon"),r=n(this).data("protect"),t;n(this).toggleClass("checked");i.toggleClass("icon-tick");t=n("input[type=checkbox][data-protect="+r+"]");t.prop("checked",!t.prop("checked"))});n.fn.tooltipster&&n(".js-tooltip").tooltipster({contentAsHTML:!0})}(jQuery);

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.