Refactor Application.

This commit is contained in:
Oleg Sh
2023-12-02 18:11:09 +02:00
parent e81ca36385
commit fdbff31a13
8 changed files with 932 additions and 887 deletions

View File

@@ -0,0 +1,18 @@
var waitCounter = false;
var userAction = function(str)
{
if (typeof window.yaCounter25827098 !== "undefined")
{
console.log(g_language + "/" + str);
window.yaCounter25827098.hit(window.location.protocol + "//" + window.location.hostname + (g_language != "ru" ? "/" + g_language : "") + "/UserAction#" + str);
}
else if (!waitCounter)
{
waitCounter = true;
setTimeout(function()
{
userAction(str);
}, 2000);
}
}