|
@@ -50,6 +50,19 @@
|
|
|
document.head.prepend(script);
|
|
|
}
|
|
|
});
|
|
|
+
|
|
|
+ const script2 = document.createElement('script');
|
|
|
+ script2.src = 'https://s3.wi-fi.ru/mtt/configs/sites/amic.js';
|
|
|
+ script2.async = true;
|
|
|
+ let flag2 = false;
|
|
|
+ window.addEventListener('scroll', function() {
|
|
|
+ if(window.scrollY>50 && !flag2)
|
|
|
+ {
|
|
|
+ flag2 = true;
|
|
|
+ document.head.prepend(script2);
|
|
|
+ }
|
|
|
+ });
|
|
|
+
|
|
|
})()
|
|
|
|
|
|
</script>
|