PageSourceSearch

https://www.newswire.ca/etc.clientlibs/prncom/clientlibs/clientlib-mycnw.min.js

js newswire.ca collected 2026-09-24 07:18:33 UTC 2,608 bytes, 6 lines download raw bytes

1$(document).ready(function(){$("#resetPasswordForm").submit(function(){if(!checkPassword())return!1;var a=window.location.href,b="";b=-1<a.indexOf(".html")?a.substr(0,a.lastIndexOf("."))+".mycnw-resetpassword.json":a.substr(0,a.lastIndexOf("/"))+".mycnw-resetpassword.json";jQuery.ajax({type:"POST",url:b,data:{session:$("#session").val(),userId:$("#userId").val(),password:$("#pw-reset-password").val(),token:$("#token").val()},success:function(c){-1<a.indexOf("newswire.ca/")?location.href="../resetpassword-thankyou.html":
2location.href="resetpassword-thankyou.html"},error:function(c){}});return!1});$("#forgotPasswordForm").submit(function(){var a=window.location.href,b="";-1<a.indexOf(".html")?b=a.substr(0,a.lastIndexOf("."))+
2".mycnw-forgotpassword.json":(a.charAt(a.length-1),b=a.substr(0,a.lastIndexOf("/"))+".mycnw-forgotpassword.json")
2;var c=document.location.hostname;jQuery.ajax({type:"POST",url:b,data:"userName\x3d"+$("#reset-pw-email").val()+"\x26page-domain\x3dhttps://"+c,success:function(d){d=jQuery.parseJSON(d);
3if(d.hasOwnProperty("errors")){var e="";"Missing username"==d.errors?e=-1<a.indexOf("/fr/")?"S'il vous pla\u00eet fournir une adresse email valide":"Please provide a valid email address":"Username not found in database"==d.errors&&(e=-1<a.indexOf("/fr/")?"S'il vous pla\u00eet fournir une adresse email valide":"Please provide a valid email address");$(".emailError").text(e);return!1}-1<a.indexOf("newswire.ca/")?location.href="../forgot-pwd-reply.html":location.href="forgot-pwd-reply.html"},error:function(d){}});
4return!1})});
5function checkPassword(){var a=window.location.href,b=document.getElementById("pw-reset-password").value,c=document.getElementById("pw-reset-password-confirmation").value;if(""!=b||""!=c){if(b!=c)return $(".passwordError").show(),-1<a.indexOf("/fr/")?$(".passwordError").text("Les mots de passe ne correspondent pas"):$(".passwordError").text("Passwords Do not match"),!1;if(8<b.length){if(re=/[0-9]/,!re.test(b))return $(".passwordError").show(),-1<a.indexOf("/fr/")?$(".passwordError").text("Mot de passe devrait avoir alteast une valeur num\u00e9rique"):$(".passwordError").text("Password should have alteast one numeric value"),
6!1}else return $(".passwordError").show(),-1<a.indexOf("/fr/")?$(".passwordError").text("Mot de passe devrait avoir plus de 8 caract\u00e8res !"):$(".passwordError").text("Password should have more than 8 characters!"),!1;return!0}$(".passwordError").show();-1<a.indexOf("/fr/")?$(".passwordError").text("Mot de passe ne peut pas \u00eatre vide"):$(".passwordError").text("Password cannot be empty");return!1};

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.