PageSourceSearch

https://www.publicboard.ca/Modules/PageSubscription/scripts/PageSubscription.min.js

js publicboard.ca collected 2026-09-26 01:09:58 UTC 6,003 bytes, 1 lines download raw bytes

1function response(n){if(n.status){channelId=n.channelId;confirm=n.confirmation;html=n.form;showButton();$("#pageSubscription").on("click",pageSubscriptionClick)}else hideButton()}function hideButton(){$("#pageSubscription").hide()}function showButton(){$("#pageSubscription").show()}function errorOccurred(){$("#pageSubscription").hide()}function pageSubscriptionClick(n){if(showDialog({resizable:!1,modal:!1,height:"auto",width:640}),n.preventDefault)n.preventDefault();else return!1}function subscribeToPage(){var n=!0,i=$("#pageSubscriptionFormDialog #txtFirstName").val(),r=$("#pageSubscriptionFormDialog #txtLastName").val(),t=$("#pageSubscriptionFormDialog #txtEmail").val(),u=$("#pageSubscriptionFormDialog #g-recaptcha-response").val(),f;$("#pageSubscriptionFormDialog .psErrorMessage").hide();(typeof i=="undefined"||i=="")&&($("#pageSubscriptionFormDialog #psFNError").show(),n=!1,grecaptcha.reset(captchaId));(typeof r=="undefined"||r=="")&&($("#pageSubscriptionFormDialog #psLNError").show(),n=!1,grecaptcha.reset(captchaId));typeof t=="undefined"||t==""?($("#pageSubscriptionFormDialog #psEmailError").show(),n=!1,grecaptcha.reset(captchaId)):validateEmail(t)||($("#pageSubscriptionFormDialog #psEmailInvalid").show(),n=!1,grecaptcha.reset(captchaId));(typeof u=="undefined"||u=="")&&($("#pageSubscriptionFormDialog #psCaptchaError").show(),n=!1);n&&(f={txtFirstName:i,txtLastName:r,txtEmail:t,"g-recaptcha-response":u,channelId:channelId},$("#pageSubscriptionFormDialog").dialog("close"),showLoadingDialog(),jQuery.ajax({type:"POST",url:"/Modules/PageSubscription/services/processPageSubscription.ashx",data:f,dataType:"json",success:function(n){hideLoadingDialog();$("#pageSubscriptionConfirmDialog .psErrorMessage").hide();n.status?$("#pageSubscriptionConfirmDialog #psConfirmSuccess").show():$("#pageSubscriptionConfirmDialog #psConfirmError").show();showConfirmationDialog()},error:function(){hideLoadingDialog();$("#pageSubscriptionConfirmDialog #psConfirmError").show();showConfirmationDialog()},cache:!1}))}function closeDialog(){return $("#pageSubscriptionFormDialog").dialog("close"),$("#pageSubscriptionFormDialog .psErrorMessage").hide(),$("#txtFirstName").val(""),$("#txtLastName").val(""),$("#txtEmail").val(""),grecaptcha.reset(captchaId),$("#pageSubscription").focus(),!1}function closeConfirmDialog(){return $("#pageSubscriptionConfirmDialog").dialog("close"),$("#pageSubscriptionFormDialog").remove(),$("#pageSubscriptionConfirmDialog").remove(),$("#pageSubscription").focus(),!1}function showConfirmationDialog(){$("#pageSubscriptionConfirmDialog").dialog({resizable:!1,modal:!1,width:400});$("div.ui-dialog-titlebar").hide()}function showLoadingDialog(){$("#loadingDialog").length||$("body").append('<div id="loadingDialog"><img src=\'/Common/images/indicator.gif\' style="width:16px;height:auto;"/><\/div>');$("#loadingDialog").dialog({resizable:!1,modal:!1,width:100,dialogClass:"no-close"});$("div.ui-dialog-titlebar").hide()}function hideLoadingDialog(){$("#loadingDialog").dialog("close")}function showDialog(n){if(!$("#pageSubscriptionFormDialog").length){$("body").append("<div id='pageSubscriptionFormDialog' class='ui-corner-all' style='display:none;' ><\/div>");$("#pageSubscriptionFormDialog").html(html);$("#formTitle").append($("#pageHeading h1").text());$("body").append("<div id='pageSubscriptionConfirmDialog' class='ui-corner-all' style='display:none;'><\/div>");$("#pageSubscriptionConfirmDialog").append("<div class='button-group'><div class='psFeedbackClose'>Close<\/div><\/div>");$("#pageSubscriptionConfirmDialog").html(confirm);$("#pageSubscriptionFormDialog .ui-dialog-titlebar-close").on("click",closeDialog);$("#pageSubscriptionFormDialog .psFeedbackClose").on("click",closeDialog);$("#pageSubscriptionFormDialog #subscribe").on("click",subscribeToPage);$("#pageSubscriptionFormDialog #subscribe").on("keyup",function(){event.which==13&&subscribeToPage()});$("#pageSubscriptionConfirmDialog .ui-dialog-titlebar-close").on("click",closeConfirmDialog);$("#pageSubscriptionConfirmDialog #close").on("click",closeConfirmDialog)}$("#pageSubscriptionFormDialog").dialog({resizable:n.resizable,modal:n.modal,width:n.width,height:n.height,position:{my:"center top",at:"center top",of:window}});$("div.ui-dialog-titlebar").hide()}function validateEmail(n){var t=new RegExp(/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?$/i);return t.test(n)}var channelId,html,confirm;$(document).ready(function(){var n;iCreateObject.corpHome.indexOf(document.location.hostname)>=0&&(n="/Modules/PageSubscription/services/getPageSubscriptionDetail
1s.ashx?currentURL="+document.location.pathname+"&lang="+iCreateObject.lang,jQuery.ajax({type:"GET",url:n,dataType:"json",success:response,error:errorOccurred,cache:!1}));iCreateObject.isSiteInICreateMode&&(n=iCreateObject.corpRoot+"Modules/PageSubscription/services/getPageSubscriptionDetails.ashx?currentURL="+document.location.pathname+"&lang="+iCreateObject.lang,jQuery.ajax({type:"GET",url:n,dataType:"json",success:function(n){if(n.status){$("#pageSubscription").show();$("#pageSubscription").on("click",function(){return showNAMessage(),!1})}},cache:!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.