$.uaDtHtml = function() { let pTheBuffer = [],pResp = null; this.getCode = function() { return pTheBuffer[1][1]; }; this.getParam = function() {//UA specific. Linked to Menu pTheBuffer = window.location.href.split('?')[1]; pTheBuffer = !pTheBuffer ? null : pTheBuffer.split('=')[1]; pTheBuffer = !pTheBuffer ? null : pTheBuffer.toLowerCase(); switch(!pTheBuffer || $.inArray(pTheBuffer, ['artwork','events','news','aficionados','museums','education','plans','login']<0)) { case true: pResp='Artwork'; break; default: pResp = pTheBuffer.charAt(0).toUpperCase() + pTheBuffer.slice(1); };//switch return pResp; };//this.getParam = function() this.decode = function(strAddress) {//fills pTheBuffer w/ params let iIndex = -1; let pAddress = !arguments.length ? window.location.href.slice(window.location.href.indexOf('?')+1, window.location.href.length) : strAddress.slice(strAddress.indexOf('?')+1, strAddress.length); pAddress = $('
').html(pAddress).text().replace(/&/g,'&').replace(/</g,'<').replace(/>/g,'>').replace(/\x2B/g,' '); $.each(pAddress.split('&'), function(iCtr, pObj) { iIndex = pObj.indexOf('='); pTheBuffer.push([pObj.substr(0,iIndex), pObj.substr(iIndex+1, pObj.length)]); }); return this; };//getParam this.decodeString = function(strAddress) { let }; this.getTheParam = function(theID) {//retrieve a param let pResp = null; for(var iCtr=0; iCtr