This commit is contained in:
2025-11-23 23:31:18 +08:00
parent d60cdc52fd
commit 9f7667a475
710 changed files with 252869 additions and 6 deletions

View File

@@ -0,0 +1,14 @@
var hmContextIds = new Array();
function hmGetContextId(query) {
var urlParams;
var match,
pl = /\+/g,
search = /([^&=]+)=?([^&]*)/g,
decode = function (s) { return decodeURIComponent(s.replace(pl, " ")); },
params = {};
while (match = search.exec(query))
params[decode(match[1])] = decode(match[2]);
if (params["contextid"]) return decodeURIComponent(hmContextIds[params["contextid"]]);
else return "";
}