PageSourceSearch

https://www.gvsu.edu/cms5/build/assets/fc-98fef670.js

js gvsu.edu collected 2026-10-01 07:33:30 UTC 5,567 bytes, 3 lines download raw bytes

1var f=Object.defineProperty;var h=(i,e,t)=>e in i?f(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t;var u=(i,e,t)=>(h(i,typeof e!="symbol"?e+"":e,t),t);class d{constructor(){}static check(e,t=!1){let l=[".fc-required"];for(let a in this.formats)l.push(".fc-"+a);const c=e.querySelectorAll(l.toString());let o=[];for(let a of c)if(this._visible(a)){let s;if(!a.hasAttribute("data-message"))if(a.tagName.toLowerCase()==="select"||a.tagName.toLowerCase()==="input"&&["checkbox","radio"].indexOf(a.type)!==-1)s='Please select an option for the field "'+(a.hasAttribute("data-prompt")?a.getAttribute("data-prompt"):a.name!==void 0?a.name.charAt(0).toUpperCase()+a.name.slice(1).toLowerCase():"unnamed field")+'"';else{let r="a value";for(let n in this.formats)if(a.classList.contains("fc-"+n))switch(n){case"email-gvsu":r="a valid GVSU email ending in @gvsu.edu or @mail.gvsu.edu";break;case"email-gvsu-facstaff":r="a valid GVSU email ending in @gvsu.edu";break;case"email-gvsu-student":r="a valid GVSU email ending in @mail.gvsu.edu";break;case"zip":r="a valid zip code in the format XXXXX or XXXXX-XXXX";break;case"zip-ca":r="a valid postal code in the format XXX XXX";break;case"integer":r="a valid whole number";break;case"decimal":r="a valid number";break;case"phone":r="a valid phone number in the format XXX-XXX-XXXX";break;case"date":r="a valid date in the format MM/DD/YYYY";break;case"gnumber":r="a valid G-number in the format GXXXXXXXX";break;case"barcode":r="a valid GVSU barcode in the format XXXXXXXXXXXXXX";break;case"url":case"url-any":r="a valid URL";break;default:r="a valid "+n}s="Please provide "+r+' for the field "'+(a.hasAttribute("data-prompt")?a.getAttribute("data-prompt"):a.name!==void 0?a.name.charAt(0).toUpperCase()+a.name.slice(1).toLowerCase():"unnamed field")+'"'}if(o.indexOf(a.name)===-1&&a.classList.contains("fc-required")){if(this._empty(a))return this._error(a,s,t);a.tagName.toLowerCase()==="input"&&["checkbox","radio"].indexOf(a.type)!==-1&&o.push(a.name)}for(let r in this.formats)if(a.classList.contains("fc-"+r)&&(a.classList.contains("fc-required")||a.value.length)&&!this.formats[r].test(a.value))return this._error(a,s,t)}return!0}static _empty(e){if(e.type==="radio"||e.type==="checkbox"){const t=e.form.querySelectorAll("*[name='"+e.name.replace(/["\\]/g,"\\$&")+"']");for(let l of t)if(l.checked&&this._visible(l))return!1;return!0}return typeof e.value!="string"||!e.value.replace(/^\s+|\s+$/g,"").length}static _error(e,t,l=!1){return t||(e.hasAttribute("data-message")?t=e.getAttribute("data-message"):t='Please provide a value for the field "'+(e.hasAttribute("data-prompt")?e.getAttribute("data-prompt"):e.name!==void 0?e.name.charAt(0).toUpperCase()+e.name.slice(1).toLowerCase():"unnamed field")+'"'),e.focus(),l?(t=t+`
2
3Submit this form without providing a value for this field? Other required fields on this form will also be ignored.`,confirm(t)):(alert(t),!1)}static _visible(e){return e.classList.contains("fc-hidden")?!!(e.parentNode.offsetWidth||e.parentNode.offsetHeight||e.parentNode.getClientRects().length):!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)}}u(d,"formats",{email:/^[a-zA-Z0-9]([\w\.\!\#\$\%\&\'\*\+\-\/\=\?\^\_\`\{\|\}\~]*[a-zA-Z0-9_])?@[a-zA-Z0-9]([-\.]?[a-zA-Z0-9])*\.[a-zA-Z]{2,}$/,"email-gvsu":/^[a-zA-Z0-9][\w\.\!\#\$\%\&\'\*\+\-\/\=\?\^\_\`\{\|\}\~]*[a-zA-Z0-9_]@(mail.)?gvsu.edu/,"email-gvsu-facstaff":/^[a-zA-Z0-9][\w\.\!\#\$\%\&\'\*\+\-\/\=\?\^\_\`\{\|\}\~]*[a-zA-Z0-9_]@gvsu.edu/,"email-gvsu-student":/^[a-zA-Z0-9][\w\.\!\#\$\%\&\'\*\+\-\/\=\?\^\_\`\{\|\}\~]*[a-zA-Z0-9_]@mail.gvsu.edu/,zip:/^\d{5}(-\d{4})?$/,"zip-ca":/^[ABCEGHJKLMNPRSTVXYabceghjklmnprstvxy]\d[A-Za-z] \d[A-Za-z]\d$/,integer:/^-?\d+$/,decimal:/^-?\d*\.?\d*$/,phone:/^(\d{1}-|\d{2}-|\d{3}-)?\d{3}-\d{3}-\d{4}$/,date:/^\d{2}\/\d{2}\/\d{4}$/,gnumber:/^G\d{8}$/,barcode:/^\d{14}$/,url:/(ftp|http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?/,"url-any":/^\/([\w\-\.\/]+)#?\??([\w\-\.&#=]*)$/});window.FC=d;document.addEventListener("DOMContentLoaded",function(){let i;i=function(){let t=this.value.replace(/[^0-9]/g,"").split("");t.length===11&&parseInt(t[0])===1&&t.splice(0,1),t.length===10?(t.splice(6,0,"-"),t.splice(3,0,"-"),this.value=t.join("")):this.getAttribute("scheme")=="telephone"&&t.length>=11&&t.length<=13&&(t.splice(t.length-4,0,"-"),t.splice(t.length-8,0,"-"),t.splice(t.length-12,0,"-"),this.value=t.join(""))};for(let e of document.querySelectorAll(".fc-phone"))e.addEventListener("change",i,!1),e.addEventListener("blur",i,!1);i=function(){let e=this.value;if(e=e.toUpperCase().replace(/[^0-9A-Z]/g,""),e.length==6){let t=e.split("");t.splice(3,0," "),this.value=t.join("")}};for(let e of document.querySelectorAll(".fc-zip"))e.addEventListener("change",i,!1),e.addEventListener("blur",i,!1);i=function(){let e=this.value.replace(/[^0-9]/g,"");if(e.length==9){let t=e.split("");t.splice(5,0,"-"),this.value=t.join("")}else e.length==5&&(this.value=e)};for(let e of document.querySelectorAll(".fc-zip-ca"))e.addEventListener("change",i,!1),e.addEventListener("blur",i,!1);i=function(){this.value=this.value.replace(/^\s+|\s+$/g,"").toLowerCase()};for(let e of document.querySelectorAll(".fc-email, .fc-email-gvsu, .fc-email-gvsu-facstaff, .fc-email-gvsu-student"))e.addEventListener("change",i,!1),e.addEventListener("blur",i,!1);i=function(){let e=this.value.replace(/[^0-9]/g,"");e.length===8&&(this.value="G"+e)};for(let e of document.querySelectorAll(".fc-gnumber"))e.addEventListener("change",i,!1),e.addEventListener("blur",i,!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.