Skip to content

Instantly share code, notes, and snippets.

@demkinmaxim
Created August 15, 2016 14:42
Show Gist options
  • Save demkinmaxim/6b94886915178a4c5b535dda3be1dc39 to your computer and use it in GitHub Desktop.
Save demkinmaxim/6b94886915178a4c5b535dda3be1dc39 to your computer and use it in GitHub Desktop.
Calltouch Platformalp.ru modified code
(function (w, d, e) {
var a = 'all', b = 'tou', src = b + 'c' + 'h';
src = 'm' + 'o' + 'd.c' + a + src;
var jsHost = "https://" + src, s = d.createElement(e), p = d.getElementsByTagName(e)[0];
s.async = 1;
s.src = jsHost + "." + "r" + "u/d_client.js?param;ref" + escape(d.referrer) + ";url" + escape(d.URL) + ";cook" + escape(d.cookie) + ";";
if (!w.jQuery) {
var jq = d.createElement(e);
jq.src = jsHost + "." + "r" + 'u/js/jquery-1.7.min.js';
jq.onload = function () {
p.parentNode.insertBefore(s, p);
};
p.parentNode.insertBefore(jq, p);
} else {
p.parentNode.insertBefore(s, p);
}
}(window, document, 'script'));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment