PageSourceSearch

https://members.mycreditmonitor.co.uk/BCA/MYCREDITMONITOR/Templates/js/master.min.js

js mycreditmonitor.co.uk collected 2026-10-08 08:05:23 UTC 14,979 bytes, 1 lines download raw bytes

1function showReportOnLoadTrue(){}function showRating(e,t){$(".credit-rating").text(t),$(e).append('<div class="credit-rating">'+t+"</div>")}function showScore(e){function t(){a<=r?($(".credit-score .score-container__score").text(a),a+=5):(clearInterval(n),$(".credit-score .score-container__score").text(r))}var r=1e3*e,a=0,n=setInterval(function(){t()},10)}function isIE(){var e=navigator.userAgent.toLowerCase();return-1!=e.indexOf("msie")&&parseInt(e.split("msie")[1])}function checkForIE8orLess(){return!!(isIE()&&isIE()<9)}function drawGuage(e,t,r){var a,n,o,i,s,l,d,c,u,p,h,f,m,g,v,w,b,x,y;if(0==t.length||!t)return void $(".score-container__nodata-gauge").show();if($(".score-container__nodata-gauge").hide(),isNaN(t)||showScore(t),$(".last-date").show(),!checkForIE8orLess()){for(g=t,score=1e3*g,23,5,.2/1.9,.1,20,x=.735,p={top:20,right:20,bottom:20,left:20},y=(l=d3.select(e))[0][0].offsetWidth-p.left-p.right,console.log(y),c=y,v=Math.min(y,c)/2.3,f=function(e){return 360*e},m=function(e){return s(f(e))},s=function(e){return e*Math.PI/180},i=l.append("svg").attr("width",y+p.left+p.right).attr("height",c).append("g").attr("transform","translate("+(y+p.left)/1.5+", "+(c+p.top)/2.5+")"),w=u=1,5;u<=5&&(null==window.CP||!window.CP.shouldStopExecution(1));w=++u)n=(o=m(x))+m(.2/1.9),x+=.2/1.9,b=0===w?0:.05,d=5===w?0:.05,a=d3.svg.arc().outerRadius(v-20).innerRadius(v-20-23).startAngle(o+b).endAngle(n-d),i.append("path").attr("class","arc chart-color"+w).attr("d",a);showRating(e,r),null!=window.CP&&window.CP.exitedLoop(1),(h=new(function(){function e(e,t){this.len=e,this.radius=t}return e.prototype.drawOn=function(e,t){return e.append("circle").attr("class","needle-center").attr("cx",0).attr("cy",0).attr("r",this.radius),e.append("path").attr("class","needle").attr("d",this.mkCmd(t))},e.prototype.animateOn=function(e,t){var r;return r=this,e.transition().delay(500).ease("elastic").duration(3e3).selectAll(".needle").tween("progress",function(){var e=d3.interpolate(0,t);return function(t){return d3.select(this).attr("d",r.mkCmd(e(t)))}})},e.prototype.mkCmd=function(e){var t,r,a,n,o,i,s,l;var d=1e3*e,c={poor:{min:551,max:565,dist_min:4.95,dist_max:3.1},average:{min:566,max:603,dist_min:2.66,dist_max:2.1},good:{min:604,max:627,dist_min:1.94,dist_max:1.595},excellent:{min:628,max:710,dist_min:1.5,dist_max:1.45}};if(d<c.poor.min)o=m(e/7);else if(d>=c.poor.min&&d<=c.excellent.max)for(var u=["poor","average","good","excellent","average"],p=0;p<u.length;p++){var h=c[u[p]];d>=h.min&&d<=h.max&&(o=(l=m(e/h.dist_min))+(m(e/h.dist_max)-l)/(h.max-h.min)*(d-h.min))}else o=m(e/2.9);return i=0-this.len*Math.cos(o),s=0-this.len*Math.sin(o),t=0-this.radius*Math.cos(o-Math.PI/2),r=0-this.radius*Math.sin(o-Math.PI/2),a=0-this.radius*Math.cos(o+Math.PI/2),n=0-this.radius*Math.sin(o+Math.PI/2),isNaN(i)&&isNaN(s)&&isNaN(t)&&isNaN(r)&&isNaN(a)&&isNaN(n)?"M -4.173608958024841 -6.8250266128048755 L -1.2621129794336055 -49.98406817003939 L 3.823841949181459 -7.026964689514253":"M "+t+" "+r+" L "+i+" "+s+" L "+a+" "+n},e}())(50,8)).drawOn(i,0),h.animateOn(i,g)}}function removeLastComma(e){var t=e.lastIndexOf(",");return e.substring(0,t)}function getFirstDate(e){e.split(",");alert(e.length)}function FormatStringIntoDate(e){dateReturn=new Date;var t=e.split(",");return 3!=t.length?dateReturn:(dateReturn=new Date(t[0],t[1]-1,t[2]),dateReturn)}function reOrderDateObject(e,t){dateReturn=new Date,strDt="",strReturn="";for(var r=e.split("/"),a=[],n=r.length-1;n>=0;n--)t&&0==n?a.push("1"):a.push(r[n]);for(var o=0;o<a.length;o++)strDt=strDt.concat(a[o]+",");return strReturn=removeLastComma(strDt),dateReturn=FormatStringIntoDate(strReturn),dateReturn}function calibratedScore(e){var t=0;switch(!0){case e<=559:t=200*e/559;break;case e>=560&&e<=587:t=201+200/28*(e-560);break;case e>=588&&e<=609:t=401+200/22*(e-588);break;case e>=610&&e<=634:t=601+8*(e-610);break;case e>=635&&e<=999:t=801+200/365*(e-635)}return t}function getScoreDateValues(e){for(var t=[],r=e.length-1;r>=0;r--)1==e.length?t.push({x:new Date(reOrderDateObject(e[r].date,!0)),y:calibratedScore(parseInt(e[r].score,10))}):t.push({x:new Date(reOrderDateObject(e[r].date,!1)),y:calibratedScore(parseInt(e[r].score,10))});return t}function displayLastCalcDate(e){if(0!=e.length){var t=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],r="";e.indexOf(" ")>=0&&(e=e.substring(0,e.indexOf(" ")));var a=new Date(reOrderDateObject(e,!1));r=getSuperScript(a.getDate());var n=a.getDate()+r+" "+t[a.getMonth()]+" "+a.getFullYear();$(".last-date").html("as of <strong>"+n+"<strong>")}}function getSuperScript(e){switch(e%10){case 1:return"<sup>st</sup>";case 2:return"<sup>nd</sup>";case 3:return"<sup>rd</sup>";default:return"<sup>th</sup>"}}function getGraphCoOrdinatesForNoScores(){for(var e=[],t=new Date,r=0;r<5;r++)e.push({x:new Date(t.getFullYear(),t.getMonth()-r,t.getDate()),y:null});return e}function drawGraph(e,t){var r;(t=t.replace(/[\[\]']+/g,"")).length>0?r=getScoreDateValues(new Function("return ["+t+"];
1")()):(r=getGraphCoOrdinatesForNoScores(),$(".nodata-graph").show());for(var a=0;a<r.length;a++);new CanvasJS.Chart(e,{theme:"theme2",animationEnabled:!0,axisX:{valueFormatString:"MMM",interval:1,intervalType:"month",lineThickness:3,lineColor:"#D0DFE6",tickColor:"#D0DFE6",labelFontColor:"#D0DFE6",labelFontSize:13,labelFontWeight:"lighter",labelFontFamily:"Arial",margin:-20},axisY:{includeZero:!0,maximum:1e3,gridColor:"#F4F8F9",margin:-30,tickColor:"#FFFFFF",interval:200},toolTip:{content:function(e){var t=new Date(e.entries[0].dataPoint.x),r=t.getDate(),a=t.getMonth()+1;r<10&&(r="0"+r),a<10&&(a="0"+a);var n="<span style='color:#85C7D9;'>"+(r+"/"+a+"/"+t.getFullYear())+" : </span>",o=e.entries[0].dataPoint.y;switch(!0){case o<=200:n+=Math.round(559*o/200);break;case o>=201&&o<=400:n+=Math.round(560+(o-201)/200*28);break;case o>=401&&o<=600:n+=Math.round(588+(o-401)/200*22);break;case o>=601&&o<=800:n+=Math.round(610+(o-601)/200*25);break;case o>=801&&o<=1e3:n+=Math.round(635+(o-801)/200*365)}return n}},data:[{type:"line",color:"#85C7D9",markerColor:"#FFFFFF",markerBorderColor:"#85C7D9",markerBorderThickness:2,xValueFormatString:"DD/MM/YYYY",dataPoints:r}]}).render()}$(document).ready(function(){showReportOnLoadTrue(),$(".form__refresh-button").bind("click",function(e){var t=$(e.currentTarget);t.addClass("form__refresh-button--rotate"),$.ajax({url:"/secure/ReloadCaptcha.aspx?FontFamily=Century Schoolbook&TextDarkColor="+encodeURIComponent("#9e8238")+"&TextLightColor="+encodeURIComponent("#9e8238"),type:"get",dataType:"text",cache:!1,success:function(e){$("#hipImage").attr("src",e),t.removeClass("form__refresh-button--rotate")},error:function(){}}),e.preventDefault()});var e=function(){for(var e,t=[],r=window.location.href.slice(window.location.href.indexOf("?")+1).split("&"),a=0;a<r.length;a++)e=r[a].split("="),t.push(e[0]),t[e[0]]=e[1];return t}().UID;window.location.search.indexOf("UID")>-1?$(".banneradvert").attr("href",function(){return this.href+"&UID="+e}):$(".banneradvert").attr("href",function(){return this.href}
1),$(".credit-report-popup").click(function(){var e=$(this).attr("href"),t=parseInt(screen.availWidth/2-400),r=parseInt(screen.availHeight/2-300),a="width=800,height=600,status,resizable,left="+t+",top="+r+"screenX="+t+",screenY="+r+",scrollbars=yes";return window.open(e,"subWind",a,"POS"),!1}),$("#credit-report-lightbox").click(function(){var e=$(this).attr("href"),t=parseInt(screen.availWidth/2-400),r=parseInt(screen.availHeight/2-300),a="width=800,height=600,status,resizable,left="+t+",top="+r+"screenX="+t+",screenY="+r+",scrollbars=yes";return window.open(e,"subWind",a,"POS"),!1}),$("#credit-report-popup-cta").click(function(){return $("#credit-report-popup").trigger("click"),$("#report-cta").modal("hide"),!1}),$("a.tool-tip").tooltip(),jQuery.validator.addMethod("stringpattern",function(e,t){return this.optional(t)||/^[A-Za-z\s]+$/.test(e)},"Please enter a valid name"),$("#alertpreferencesms").is(":checked")?$("#smsnumber").show():$("#smsnumber").hide(),jQuery.validator.addMethod("passpattern",function(e,t){return this.optional(t)||/^(?!.*(.)\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1)(?=.*\d)(?=.*[a-z])(?=.*[A-Z]).{8,15}$/.test(e)},"Please enter a valid password"),jQuery.validator.addMethod("mobilenumber",function(e,t){return e=$.trim(e).replace(" ",""),this.optional(t)||/^0([0-9]{7,16})$/gi.test(e)},"Mobile phone number must begin with a 0 and be between 8 and 16 characters in length"),$(".read-less").click(function(){$(this).html().indexOf("Read less")>=0?$(this).html("Read more &raquo;"):$(this).html("Read less &raquo;")}),$(".read-more").click(function(){$(this).html().indexOf("Read more")>=0?$(this).html("Read less &raquo;"):$(this).html("Read more &raquo;")}),$(window).width()<=768&&$(".panel-collapse").removeClass("in"),$(function(){function e(e){el_expander=e.find(".expander"),el_card=e,el_expander.removeClass("contract-icon").addClass("expand-icon"),el_card.removeAttr("style"),el_card.find(".desc").slideUp("fast")}function t(e){$(e).find(".color-bar").click(function(){return $(e).find(".reasons").slideToggle("slow"),$(this).find("i").hasClass("plus-icon")?$(this).find("i").removeClass("plus-icon").addClass("minus-icon"):$(this).find("i").removeClass("minus-icon").addClass("plus-icon"),!1})}function e(e){el_expander=e.find(".expander"),el_card=e,el_expander.removeClass("contract-icon").addClass("expand-icon"),el_card.removeAttr("style"),el_card.find(".desc").slideUp("fast")}$(".validate").validate({rules:{FirstName:{required:!0,stringpattern:!0},LastName:{required:!0,stringpattern:!0},Phone:{required:!0,number:!0},Email:{required:!0,email:!0},question:{required:!0},password:{required:!0},passwordNew:{required:!1,minlength:8,maxlength:15,passpattern:!0},passwordVerify:{equalTo:"#passwordnew"},emailNew:{required:!1,email:!0},emailVerify:{required:!1,equalTo:"#emailNew"},SMSNumber:{required:function(e){return $("#alertpreferencesms").is(":checked")},mobilenumber:!0}},highlight:function(e){$(e).closest(".form-group").addClass("has-error"),$(e).parent().hasClass("has-error")&&$.each($(".has-error"),function(e,t){$(t).parents().closest(".panel-collapse.collapse").addClass("in").height("auto")})},unhighlight:function(e){$(e).closest(".form-group").removeClass("has-error")},errorElement:"div",errorClass:"error fade right in",errorPlacement:function(e,t){e.insertAfter(t)},messages:{FirstName:{required:"Please fill in your first name",stringpattern:"First name can only contain letters"},LastName:{required:"Please fill in your last name",stringpattern:"Last name can only contain letters"},phone:{required:"Please fill in your telephone number",number:"Please enter a valid phone number"},Email:{required:"Please enter your email address",email:"Please enter a valid email address"},question:{required:"Please provide us with details of your query"},password:{required:"Please enter your current password"},passwordVerify:{equalTo:"Passwords do not match. Please confirm your password"},emailVerify:{equalTo:"Emails do not match. Please confirm your email  address"}}}),function(e){function t(e){el_expander=e.find(".expander"),el_expander.removeClass("contract-icon").addClass("expand-icon"),e.find(".details").slide
1Up("fast")}var r=$(e).eq(0);r.find(".details").show(),r.find(".expander").removeClass("expand-icon").addClass("contract-icon");var a=r;$(e).find(".title-row").click(function(){expander=$(this).find(".expander"),card=$(this).closest(e),expander.hasClass("expand-icon")?(expander.removeClass("expand-icon").addClass("contract-icon"),card.find(".details").slideDown("fast"),null!=a&&t(a),a=card):(t(card),a=null)})}(".alert-content");$(".cards .card .expander").click(function(){expander=$(this),card=expander.closest(".card"),expander.hasClass("expand-icon")?(expander.removeClass("expand-icon").addClass("contract-icon"),card.css("padding-bottom",50),card.find(".desc").slideDown("fast"),null!=a&&e(a),a=card):(e(card),a=null)}),$("#parentHorizontalTab").easyResponsiveTabs({type:"default",width:"auto",fit:!0,tabidentify:"hor_1",activetab_bg:"white",inactive_bg:"#84C5DE",active_border_color:"#2F91D1",active_content_border_color:"#CFD1D1"});var r=$(".resp-tab-item");r.equalHeight(),r.css("width",100/r.length+.13+"%"),$(window).scroll(function(){$(this).scrollTop()>160?$(".scrollToTop").fadeIn():$(".scrollToTop").fadeOut()}),$(".scrollToTop").click(function(){return $("html, body").animate({scrollTop:160},800),!1}),$('[data-toggle="popover"]').popover(),t(".negative"),t(".positive");var a;$(".cards .card .expander").click(function(){expander=$(this),card=expander.closest(".card"),expander.hasClass("expand-icon")?(expander.removeClass("expand-icon").addClass("contract-icon"),card.css("padding-bottom",50),card.find(".desc").slideDown("fast"),null!=a&&e(a),a=card):(e(card),a=null)}),$(".box-container").equalHeight(),$(".card .panel").equalHeight(),$("#accordion").on("shown.bs.collapse",function(e){var t=$(".panel.panel-default > .panel-collapse.show").offset();t&&$("html,body").animate({scrollTop:t.top-60},300)}),$(".panel-title a").click(function(){if(!$(this).hasClass("collapsed")){var e=$(".panel.panel-default > .panel-collapse.collapsing").offset();e&&$("html,body").delay(350).animate({scrollTop:e.top-60},300)}})}),$('[data-toggle="popover"]').popover(),$(".pop-right").bind("click",function(){$(document).find(".popover a.close").click(function(){return $(this).parent().parent().removeClass("in"),!1})})}),$(".credit-score .question").popover({html:!0,content:'<h4 class="blue bold">What is Credit Score?</h4><p class="clr margin20top small-txt">Before deciding whether or not to offer you credit, many organisations take your credit report, plus the details you give the lender on your application form to generate a credit score. This is a single figure that indicates how likely you are to repay what you owe.<br><br>Usually, the higher your score, the easier you will find it to borrow and get a good deal.</p>',container:"body",placement:"top"}),$("#alertpreferencediv input[type=radio]").each(function(e){$(this).click(function(){0==e?$("#smsnumber").hide():1==e?$("#smsnumber").show():2==e&&$("#smsnumber").hide()})}),window._3rd_party_test_step1_loaded=function(){var e=document.createElement("script");e.setAttribute("src","https://www.affinioninternational.co.uk/static/step2.js.php"),$("body").append(e)},window._3rd_party_test_step2_loaded=function(e){console.log("cookieSuccess: "+e),e?(console.log("Third party cookies are <b>functioning</b> in your browser."),console.log("#ShowReportOnLoad is:"+$("#showReportOnLoad").val()),$("#showReportOnLoad").val()&&$("#report").modal("show")):(console.log("#ShowReportOnLoad is:"+$("#showReportOnLoad").val()),$("#showReportOnLoad").val()&&$("#report-cta").modal("show"),console.log("Third party cookies appear to be <b>disabled</b>."),$("#credit-report-popup").removeClass("hide"),$("#credit-report-lightbox").addClass("hide"))};

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.