default.vue 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213
  1. <template>
  2. <div>
  3. <div class="page-content" :class="className" style="background: url('/jpg/NY2023.png');background-repeat: repeat;background-size: contain; ">
  4. <Header :adsHeader="ads.header" />
  5. <Nuxt />
  6. </div>
  7. <Footer />
  8. </div>
  9. </template>
  10. <script>
  11. export default {
  12. head () {
  13. return {
  14. script: [
  15. {
  16. innerHTML: `window.Ya || (window.Ya = {});
  17. window.yaContextCb = window.yaContextCb || [];
  18. window.Ya.adfoxCode || (window.Ya.adfoxCode = {});
  19. window.Ya.adfoxCode.hbCallbacks || (window.Ya.adfoxCode.hbCallbacks = []);`
  20. },
  21. {
  22. src: 'https://yandex.ru/ads/system/header-bidding.js'
  23. },
  24. {
  25. src: 'https://cdn.adfinity.pro/foralls/adfinity_1.1.js'
  26. },
  27. {
  28. src: 'https://cdn.adfinity.pro/partners/amic.ru/hbconfig.js'
  29. },
  30. {
  31. src: 'https://yandex.ru/ads/system/context.js',
  32. async: true
  33. },
  34. {
  35. src: 'https://code.giraff.io/data/widget-amicru.js',
  36. async: true
  37. },
  38. // {
  39. // src: 'https://cdn.hunterdelivery.com/scripts/draw_script.js',
  40. // async: true,
  41. // defer: true,
  42. // id: 'delivery-draw-kit',
  43. // onload: 'javascript:renderDelivery(\'5e81a17798e06\')'
  44. // },
  45. {
  46. src: '//lkrszr.com/fvb71l912ivl0mp/y30q8h867quv876pkyxce9mj.php',
  47. async: true
  48. },
  49. // {
  50. // src: "https://yastatic.net/pcode/adfox/header-bidding.js",
  51. // async: true,
  52. // },
  53. // {
  54. // src: "https://ads.digitalcaramel.com/js/amic.ru.js",
  55. // },
  56. // {
  57. // src: "https://yastatic.net/pcode/adfox/loader.js",
  58. // crossorigin: "anonymous"
  59. // },
  60. {
  61. src: 'https://jsn.24smi.net/smi.js',
  62. async: true,
  63. },
  64. {
  65. src: 'https://moevideo.biz/embed/js/mvpt.min.js',
  66. async: true,
  67. },
  68. ],
  69. link: [
  70. { rel: 'preconnect', href: 'https://ads.betweendigital.com' },
  71. { rel: 'alternate', href: '/rss', title: 'RSS', type: 'application/rss+xml', crossorigin: true },
  72. { rel: 'stylesheet', href: 'https://cdn.adfinity.pro/foralls/adfinity_1.1.css' }
  73. ]
  74. }
  75. },
  76. data () {
  77. return {
  78. ads: {
  79. header: {},
  80. body: {},
  81. side: {},
  82. news: {},
  83. partners: {}
  84. }
  85. }
  86. },
  87. computed: {
  88. className () {
  89. return this.$route.name
  90. }
  91. },
  92. beforeMount () {
  93. window.yaContextCb = window.yaContextCb || []
  94. },
  95. created () {
  96. this.$store.dispatch('modules/ads/getAds')
  97. this.$store.dispatch('modules/menu/getMenu')
  98. },
  99. updated () {
  100. try {
  101. this.$store.dispatch('modules/ads/getAds')
  102. // eslint-disable-next-line no-undef
  103. ga('set', 'page', this.$route.path)
  104. // eslint-disable-next-line no-undef
  105. ga('send', 'pageview')
  106. // eslint-disable-next-line no-undef
  107. ym(34950850, 'hit', this.$route.path)
  108. // eslint-disable-next-line no-undef
  109. _tmr.pageView({ id: '55851', url: this.$route.path })
  110. } catch (e) {
  111. console.log(e);
  112. }
  113. document.body.style.opacity = 1;
  114. },
  115. mounted () {
  116. window.onpopstate = function () {
  117. document.body.style.opacity = '0.3'
  118. }
  119. if ((this.$route.path !== '/' && this.$nuxt.$device.isMobile)) {
  120. const video1 = document.createElement('script')
  121. video1.innerHTML = `var moevideoQueue = moevideoQueue || [];
  122. moevideoQueue.push(function () {
  123. moevideo.ContentRoll({
  124. mode:"manual",
  125. maxRefresh: 10,
  126. videoInstream:'https://cdn1.playreplay.me/country.mp4',
  127. closeInstream: "true",
  128. instream: true,
  129. floatCloseTimeout: 10,
  130. floatPosition:"bottom right",
  131. ignorePlayers: true,
  132. floatMode:"full"
  133. });
  134. });`
  135. setTimeout(function () {
  136. document.body.appendChild(video1)
  137. }, 8000)
  138. }
  139. if (this.$nuxt.$device.isDesktop) {
  140. const bottomLineScript = document.createElement('script')
  141. bottomLineScript.innerHTML = `
  142. window.yaContextCb.push(()=>{
  143. Ya.adfoxCode.create({
  144. ownerId: 720777,
  145. containerId: 'adfox_167049287885775196',
  146. params: {
  147. p1: 'cwoiw',
  148. p2: 'hyrh'
  149. }
  150. })
  151. })
  152. `
  153. const bottomLineCont = document.createElement('div')
  154. bottomLineCont.id = 'adfox_167049287885775196'
  155. document.body.appendChild(bottomLineScript)
  156. document.body.appendChild(bottomLineCont)
  157. }
  158. }
  159. };
  160. </script>
  161. <style lang="less">
  162. html {
  163. font-family: "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI",
  164. Roboto, "Helvetica Neue", Arial, sans-serif;
  165. font-size: 16px;
  166. word-spacing: 1px;
  167. -ms-text-size-adjust: 100%;
  168. -webkit-text-size-adjust: 100%;
  169. -moz-osx-font-smoothing: grayscale;
  170. -webkit-font-smoothing: antialiased;
  171. box-sizing: border-box;
  172. body{
  173. opacity: 1;
  174. transition: 0.3s;
  175. }
  176. }
  177. *,
  178. *::before,
  179. *::after {
  180. box-sizing: border-box;
  181. margin: 0;
  182. }
  183. .button--green {
  184. display: inline-block;
  185. border-radius: 4px;
  186. border: 1px solid #3b8070;
  187. color: #3b8070;
  188. text-decoration: none;
  189. padding: 10px 30px;
  190. }
  191. .button--green:hover {
  192. color: #fff;
  193. background-color: #3b8070;
  194. }
  195. .button--grey {
  196. display: inline-block;
  197. border-radius: 4px;
  198. border: 1px solid #35495e;
  199. color: #35495e;
  200. text-decoration: none;
  201. padding: 10px 30px;
  202. margin-left: 15px;
  203. }
  204. .button--grey:hover {
  205. color: #fff;
  206. background-color: #35495e;
  207. }
  208. </style>