mirror of
https://github.com/UnickSoft/graphonline.git
synced 2026-04-23 16:36:38 +00:00
Refactor Application.
This commit is contained in:
18
script/pages/editor/ui/ya_metrika.js
Normal file
18
script/pages/editor/ui/ya_metrika.js
Normal 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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user