1 line
583 B
JavaScript
1 line
583 B
JavaScript
function getQueryVariable(a){for(var c=window.location.search.substring(1).split("\x26"),b=0;b<c.length;b++){var d=c[b].split("\x3d");if(d[0]==a)return d[1]}return!1}function htmlEncodeByRegExp(a){return $("\x3cdiv/\x3e").text(a).html()}function htmlDecodeByRegExp(a){$("\x3cdiv/\x3e").html(a).text()}function isElementInViewport(a){a=a.getBoundingClientRect();return 0<=a.top&&0<=a.left&&a.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&a.right<=(window.innerWidth||document.documentElement.clientWidth)}function replaceTag(a){return a.replace("\x26amp;","")}; |