function getParameter(t) { var e = window.location.search, i = new RegExp(t + "=([^&?]*)", "ig"); return e.match(i) ? e.match(i)[0].substr(t.length + 1) : null } function getAllParameter() { var pairs = window.location.search.substring(1).split("&"); var obj = {}; for (let i in pairs ) { if ( pairs[i] === "" ) continue; let pair = pairs[i].split("="); obj[ decodeURIComponent( pair[0] ) ] = decodeURIComponent( pair[1] ); } return obj } function isMobile() { return /(iPhone|iPad|iPod|iOS|Android)/i.test(navigator.userAgent); }