|
@@ -31,6 +31,30 @@
|
|
|
|
|
|
</script>
|
|
</script>
|
|
<?php endif;?>
|
|
<?php endif;?>
|
|
|
|
+
|
|
|
|
+<?php
|
|
|
|
+//Ниже тестовое включение адфинити в ротацию к моёвидео
|
|
|
|
+?>
|
|
|
|
+<?php if(Yii::$app->controller->action->id!="index" && !Yii::$app->deviceDetect->isMobile()):?>
|
|
|
|
+
|
|
|
|
+ <script>
|
|
|
|
+ (function () {
|
|
|
|
+ const script = document.createElement('script');
|
|
|
|
+ script.src = 'https://cdn.adfinity.pro/code/amic.ru/adfinity.js';
|
|
|
|
+ script.async = true;
|
|
|
|
+ let flag = false;
|
|
|
|
+ window.addEventListener('scroll', function() {
|
|
|
|
+ if(window.scrollY>50 && !flag)
|
|
|
|
+ {
|
|
|
|
+ flag = true;
|
|
|
|
+ document.head.prepend(script);
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ })()
|
|
|
|
+
|
|
|
|
+ </script>
|
|
|
|
+<?php endif;?>
|
|
|
|
+
|
|
<?php if(Yii::$app->controller->action->id!="index" && !Yii::$app->deviceDetect->isMobile()):?>
|
|
<?php if(Yii::$app->controller->action->id!="index" && !Yii::$app->deviceDetect->isMobile()):?>
|
|
|
|
|
|
<!--AdFox START-->
|
|
<!--AdFox START-->
|