PageSourceSearch

https://www.media.io/staticV4/utils.js

js media.io collected 2026-09-24 08:51:49 UTC 22,116 bytes, 463 lines download raw bytes

1/**
2 * Minified by jsDelivr using Terser v3.14.1.
3 * Original file: /npm/[email protected]/src/js.cookie.js
4 *
5 * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
6 */
7!function(e){var n;if("function"==typeof define&&define.amd&&(define(e),n=!0),"object"==typeof exports&&(module.exports=e(),n=!0),!n){var t=window.Cookies,o=window.Cookies=e();o.noConflict=function(){return window.Cookies=t,o}}}(function(){function e(){for(var e=0,n={};e<arguments.length;e++){var t=arguments[e];for(var o in t)n[o]=t[o]}return n}function n(e){return e.replace(/(%[0-9A-Z]{2})+/g,decodeURIComponent)}return function t(o){function r(){}function i(n,t,i){if("undefined"!=typeof document){"number"==typeof(i=e({path:"/"},r.defaults,i)).expires&&(i.expires=new Date(1*new Date+864e5*i.expires)),i.expires=i.expires?i.expires.toUTCString():"";try{var c=JSON.stringify(t);/^[\{\[]/.test(c)&&(t=c)}catch(e){}t=o.write?o.write(t,n):encodeURIComponent(String(t)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),n=encodeURIComponent(String(n)).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/[\(\)]/g,escape);var f="";for(var u in i)i[u]&&(f+="; "+u,!0!==i[u]&&(f+="="+i[u].split(";")[0]));return document.cookie=n+"="+t+f}}function c(e,t){if("undefined"!=typeof document){for(var r={},i=document.cookie?document.cookie.split("; "):[],c=0;c<i.length;c++){var f=i[c].split("="),u=f.slice(1).join("=");t||'"'!==u.charAt(0)||(u=u.slice(1,-1));try{var a=n(f[0]);if(u=(o.read||o)(u,a)||n(u),t)try{u=JSON.parse(u)}catch(e){}if(r[a]=u,e===a)break}catch(e){}}return e?r[e]:r}}return r.set=i,r.get=function(e){return c(e,!1)},r.getJSON=function(e){return c(e,!0)},r.remove=function(n,t){i(n,"",e(t,{expires:-1}))},r.defaults={},r.withConverter=t,r}(function(){})});
8//# sourceMappingURL=/sm/b0ce608ffc029736e9ac80a8dd6a7db2da8e1d45d2dcfc92043deb2214aa30d8.map
9
10
11function getPage() {
12  if (location.href.indexOf('blog') >= 0) {
13    var dataMediaTask = document.getElementById('pageConfig') ? document.getElementById('pageConfig').getAttribute('data-media-task') : 'converter'
14    var dataMediaType = document.getElementById('pageConfig') ? document.getElementById('pageConfig').getAttribute('data-media-type') : 'video'
15    if (dataMediaTask === 'compressor') {
16      if (dataMediaType === 'video') {
17        return 'compress_video_blog'
18        // return 'compress_video'
19      } else if (dataMediaType === 'image') {
20        return 'compress_image_blog'
21        // return 'compress_image'
22      } else {
23        return 'compress_audio_blog'
24        // return 'compress_audio'
25      }
26    } else if (dataMediaTask === 'converter') {
27      if (dataMediaType === 'video') {
28        return 'convert_video_blog'
29        // return 'convert_video'
30      } else if (dataMediaType === 'image') {
31        return 'convert_image_blog'
32        // return 'convert_image'
33      } else {
34        return 'convert_audio_blog'
35        // return 'convert_audio'
36      }
37    } else if (dataMediaTask === 'image_to_gif') {
38      if (dataMediaType === 'video') {
39        return 'video_to_gif_blog'
40        // return 'video_to_gif'
41      } else {
42        return 'image_to_gif_blog'
43        // return 'image_to_gif'
44      }
45    } else if (dataMediaTask === 'mute') {
46      return 'mute_video_blog'
47    } else if (dataMediaTask === 'trim') {
48      return 'audio_cutter_blog'
49    } else if (dataMediaTask === 'resize') {
50      return 'resize_image_blog'
51    } else {
52      return 'convert_video_blog'
53    }
54  } else {
55    if (location.pathname === '/' || location.href.indexOf('index.html') >= 0 || location.href.indexOf('home.html') >= 0 || location.href.indexOf('sq-index.html') >= 0) {
56      return 'convert_home'
57    } else if (location.href.indexOf('image-compressor.html') >= 0) {
58      return 'compress_image'
59    } else if (location.href.indexOf('image-converter.html') >= 0) {
60      return 'convert_image'
61    } else if (location.href.indexOf('audio-converter.html') >= 0) {
62      return 'convert_audio'
63    } else if (location.href.indexOf('video-converter.html') >= 0) {
64      return 'convert_video'
65    } else if (location.href.indexOf('converter.html') >= 0) {
66      return 'convert_XXconverter'
67    } else if (location.href.indexOf('convert/') >= 0) {
68      return 'convert_XXtoXX'
69    } else if (location.href.indexOf('video-compressor.html') >= 0) {
70      return 'compress_video'
71    } else if (location.href.indexOf('audio-compressor.html') >= 0) {
72      return 'compress_audio'
73    } else if (location.href.indexOf('audio-video-compressor.html') >= 0) {
74      return 'compress_audio'
75    } else if (location.href.indexOf('-compress') >= 0) {
76      return 'compress_XX'
77    } else if (location.href.indexOf('compress-') >= 0) {
78      return 'compress_XX'
79    } else if (location.href.indexOf('gif-maker.html') >= 0 || location.href.indexOf('gif-maker') >= 0) {
80      return 'video_gif'
81    } else if (location.href.indexOf('image-to-gif.html') >= 0 || location.href.indexOf('image-to-gif') >= 0) {
82      return 'images_gif'
83    } else if (location.href.indexOf('mute-video.html') >= 0 || location.href.indexOf('mute-video.html') >= 0) {
84      return 'mute_video'
85    } else if (location.href.indexOf('resize-image.html') >= 0 || location.href.indexOf('resize-image.html') >= 0 || location.href.indexOf('images-resize-test') >= 0) {
86      return 'resize_image'
87    } else if (location.href.indexOf('resize-video.html') >= 0) {
88      return 'resize_video'
89    } else if (location.href.indexOf('audio-cutter.html') >= 0 || location.href.indexOf('audio-trim-test.html') >= 0 || location.href.indexOf('audio-cutter.html') >= 0) {
90      return 'audio_cutter'
91    } else if (location.href.indexOf('change-video-speed.html') >= 0) {
92      return 'video_speed'
93    } else if (location.href.indexOf('loop-video.html') >= 0 || location.href.indexOf('loop-video.html') >= 0) {
94      return 'loop_video'
95    } else if (location.href.indexOf('adjust-video') >= 0 || location.href.indexOf('flip-mirror-video') >= 0 || location.href.indexOf('rotate-video') >= 0 || location.href.indexOf('crop-video') >= 0 || location.href.indexOf('video-trimmer') >= 0 || location.href.indexOf('video-editor') >= 0 || location.href.indexOf('sq-edit') >= 0 ) {
96      return 'video_editor'
97    }else if (location.href.indexOf('converted-files') >= 0) {
98      return 'converted_files'
99    }else if (location.href.indexOf('online-tools') >= 0) {
100      return 'online_tools'
101    } else if (location.href.indexOf('audio-joiner.html') >= 0) {
102      return 'join_audio'
103    }else if (location.href.indexOf('reverse-video.html') >= 0) {
104      return 'reverse_video'
105    }else {
106      return window.location.href.slice(window.location.href.lastIndexOf('/') + 1, window.location.href.lastIndexOf('.') )
107    }
108  }
109}
110function sendGtm(obj){
111    try{
112      let event = ''
113      if (getPage() === 'convert_home') {
114        event = 'Recommend_Download_Right_Download'
115      } else {
116        event = 'Recommend_' + getPage().toLowerCase() + '_Right_Download'
117      }
118      dataLayer.push({
119        'event': 'KO_' + event + '_5.0',
120        'eventLable': obj.eventLabel,
121        'eventAction': event,
122        'mediaEvent': 'mediaEvent',
123        'mediaCategory': event + '_4.0',
124        'mediaAction': event,
125        'mediaLabel': obj.eventLabel
126      })
127    }catch(e){
128
129    }
130}
131
132// 首页导航新版
133$(function () {
134  // var width = $('.new-header-model-one').width()
135  // var top = $('.new-header-model-one').height()
136  // var back = 1
137  // // $(".new-header-model-more-box").css({'left': width + 'px'})
138  // $(".new-header-model-more-box").css({'top': -top + 'px'})
139  // // 点击一级导航按钮
140  // $('.new-header-model-one .model-two-more').click(function(){
141  //   back = 1
142  //   var index = $(".new-header-model-one .model-two-more").index(this)
143  //   var width = $('.new-header-model-one').width()
144  //   $(".new-header-model-more-box").css({'top': '0px'})
145  //   $(".new-header-model-one").animate({"left": -width + "px"}, "200", function () {
146  //     $(".new-header-model-more-box").show()
147  //     $(".new-header-model-one").hide()
148  //     $(".new-heder-model-two").eq(index).show()
149  //     // 显示二级导航
150  //   })
151  // })
152
153  // 点击二级导航
154  // $(".new-heder-model-two .model-two-more").click(function () {
155  //   back = 2
156  //   var index = $(".new-heder-model-two .model-two-more").index(this)
157  //   var width = $('.new-heder-model-two').width()
158  //   $(".new-heder-model-two").animate({"left": width + "px"}, "200", function () {
159  //     $(".new-heder-model-two").hide()
160  //     $(".new-heder-model-three").eq(index).show()
161  //   })
162  // })
163  //
164  // $(".new-header-model-more-box .herder").click(function () {
165  //   if (back === 2) {
166  //     back = 1
167  //     $(".new-heder-model-two").animate({"left": "0px"}, "50", function () {
168  //       $(".new-heder-model-two").show()
169  //       $(".new-heder-model-three").hide()
170  //     })
171  //   } else {
172  //     $(".new-header-model-one").animate({"left": "0px"}, "50", function () {
173  //       back = 0
174  //       $(".new-header-model-more-box").hide()
175  //       $(".new-heder-model-two").hide()
176  //       $(".new-heder-model-three").hide()
177  //       $(".new-header-model-one").show()
178  //     })
179  //   }
180  // })
181
182  var pangLang = 'en'
183  var pathname = window.location.pathname
184  var glList = ['de', 'fr', 'es', 'jp', 'it', 'ko', 'br', 'zh']    // ['de','fr','es','br','it','nl','ar','ru','ee','cs','da','fi','sv','pl','ie','gr','hu','ms','no','tr','ro','se','th','vi','kp','jp','zh']
185  
186  for (var i = 0; i < glList.length; i++) {
187    if ((glList[i] == window.location.href.replace(/.*\/(de|fr|es|jp|it|ko|br|zh)\/.*/gi, "$1") && pathname.substr(1, 3) !== 'vid')) {
188      pangLang = glList[i]
189      break
190    }
191  }
192
193  // 搜索
194  $(".new-sreach input").keyup(function(event){
195    if(event.keyCode ==13){
196      if (pangLang === 'en') {
197        location.href = 'https://www.media.io/search.html?q=' + $(".new-sreach input").val()
198      } else {
199        location.href = 'https://www.media.io/' + pangLang + '/search.html?q=' + $(".new-sreach input").val()
200      }
201    }
202  });
203})
204
205// 旧版右侧下载按钮
206// $('.sys-win a.btn-secondary').click(function(){
207//   Cookies.set('sourcePathDownload', location.href, { expires: 60 * 60 * 24 * 90, path: '' })
208//   sendGtm({'eventLabel': getPage() + '_win'})
209// })
210// $('.sys-mac a.btn-secondary').click(function(){
211//   Cookies.set('sourcePathDownload', location.href, { expires: 60 * 60 * 24 * 90, path: '' })
212//   sendGtm({'eventLabel': getPage() + '_mac'})
213// })
214
215//旧版购买埋点
216$('.buy-now-month').click(function(){
217  sendGtm({'eventLabel': getPage() + '_buy_now_month'})
218  if(window.wcc_iframe_env === 'wcc_iframe') {
219    window.wccRouteBlank('https://store.wondershare.com/index.php?submod=checkout&method=index&pid=5903&license_id=294&sub_lid=0&currency=USD&language=English&verify=4c3bb50bf909cb7f333c54f832e8e754')
220  }else {
221    location.href = 'https://store.wondershare.com/index.php?submod=checkout&method=index&pid=5903&license_id=294&sub_lid=0&currency=USD&language=English&verify=4c3bb50bf909cb7f333c54f832e8e754'
222  }
223})
224$('.buy-now-yearly').click(function(){
225  sendGtm({'eventLabel': getPage() + '_buy_now_yearly'})
226  if(window.wcc_iframe_env === 'wcc_iframe') {
227    window.wccRouteBlank('https://store.wondershare.com/index.php?submod=checkout&method=index&pid=5903&license_id=297&sub_lid=0&currency=USD&language=English&verify=8794fcdb210d1a58d3f90b1dede2733c')
228  }else {
229    location.href = 'https://store.wondershare.com/index.php?submod=checkout&method=index&pid=5903&license_id=297&sub_lid=0&currency=USD&language=English&verify=8794fcdb210d1a58d3f90b1dede2733c'
230  }
231})
232
233// win切换mac 去掉
234// $(".sys-win .with-hand span").click(function(){
235//    sendGtm({'event': 'Click_Switch' , 'type': '101', 'value': {page: 'Recommend_' + getPage(), val: {'mode': getPage() + '-SwitchtoMac'}}})
236// })
237// $(".sys-mac .with-hand span").click(function(){
238//   sendGtm({'event': 'Click_Switch' , 'type': '101', 'value': {page: 'Recommend_' + getPage(), val: {'mode': getPage() + '-SwitchtoWin'}}})
239// })
240
241
242// $('.if_btnWin a').click(function(){
243//   Cookies.set('sourcePathDownload', location.href, { expires: 60 * 60 * 24 * 90, path: '' })
244//   sendGtm({'eventLabel': getPage() + '_win'})
245// })
246// $('.if_btnMac a').click(function(){
247//   Cookies.set('sourcePathDownload', location.href, { expires: 60 * 60 * 24 * 90, path: '' })
248//   sendGtm({'eventLabel': getPage() + '_win'})
249// })
250//
251// $("a.sys-win.text-primary").click(function(){
252//   Cookies.set('sourcePathDownload', location.href, { expires: 60 * 60 * 24 * 90, path: '' })
253//   sendGtm({'event': event, 'category': event, 'action': event, 'eventLabel': getPage() + '_win'})
254// })
255// $("a.sys-mac.text-primary").click(function(){
256//   Cookies.set('sourcePathDownload', location.href, { expires: 60 * 60 * 24 * 90, path: '' })
257//   sendGtm({'event': event , 'category': event, 'action': event, 'eventLabel': getPage() + '_win'})
258// })
259
260
261// 旧版购买埋点
262// $(".month").click(function () {
263//   var count = Cookies.get('1Month') ? Cookies.get('1Month') : 0
264//   count = parseInt(count) + 1
265//   Cookies.set('1Month', count, { expires: 100000, path: '' })
266//   sendGtmP({'event': 'Online_Buy_1Month', 'category': 'Online_Buy_G', 'action': 'Online_Buy_1Month', 'eventLabel': count})
267// })
268//
269// $(".year").click(function () {
270//   var count = Cookies.get('1Year') ? Cookies.get('1Year') : 0
271//   count = parseInt(count) + 1
272//   Cookies.set('1Year', count, { expires: 100000, path: '' })
273//   sendGtmP({'event': 'Online_Buy_1Year', 'category': 'Online_Buy_G', 'action': 'Online_Buy_1Year', 'eventLabel': count})
274// })
275
276// 价格测试
277let priceTest = {
278  pricing: {
279    win: [
280      {
281        'pric': '$45.95',
282        'url': 'https://store.wondershare.com/index.php?submod=checkout&method=index&pid=4295&license_id=298&sub_lid=0&coupon_id=6786&currency=USD&language=English&verify=c96eaa692ef291170c74d1ac43372de6'
283      }
284    ],
285    mac: [
286      {
287        'pric': '$45.95',
288        'url': 'https://store.wondershare.com/index.php?submod=checkout&method=index&pid=4296&license_id=298&sub_lid=0&coupon_id=6786&currency=USD&language=English&verify=a3245e2739405ada63e6a8d7bf1f3344'
289      }
290    ]
291  },
292  buy: {
293    win: [
294      {
295        'pric': 29.95,
296        'url': 'https://store.wondershare.com/index.php?submod=checkout&method=sku_combine&is_combine=1&sku_id=102000000175&coupon_id=7131&currency=USD&language=English&verify=682C6FCA5FA7EECA4191BE82797A14C2'
297      },
298      {
299        'pric': 45.95,
300        'url': 'https://store.wondershare.com/index.php?submod=checkout&method=sku_combine&is_combine=1&sku_id=102000000120&coupon_id=7134&currency=USD&language=English&verify=C186AF690C8189684E59B8ED8258F389'
301      }
302    ],
303    mac: [
304      {
305        'pric': 29.95,
306        'url': 'https://store.wondershare.com/index.php?submod=checkout&method=index&pid=4296&license_id=297&sub_lid=0&coupon_id=6788&currency=USD&language=English&verify=666b7fa59d692a1f1adea769b4b88008'
307      },
308      {
309        'pric': 45.95,
310        'url': 'https://store.wondershare.com/index.php?submod=checkout&method=index&pid=4296&license_id=298&sub_lid=0&coupon_id=6786&currency=USD&language=English&verify=a3245e2739405ada63e6a8d7bf1f3344'
311      }
312    ]
313  },
314  uninstall: {
315    win: [
316      {
317        'pric': 29.97,
318        'url': 'https://store.wondershare.com/index.php?submod=checkout&method=sku_combine&is_combine=1&sku_id=102000000120&coupon_id=7138&currency=USD&language=English&verify=634629AE965EC26B65C9DAD5A2B5FF72'
319      }
320    ],
321    mac: [
322      {
323        'pric': 29.97,
324        'url': 'https://store.wondershare.com/index.php?submod=checkout&method=index&pid=4296&license_id=298&sub_lid=0&coupon_id=6787&currency=USD&language=English&verify=39cc80447762ffa84e57cf1bece4860f'
325      }
326    ]
327  },
328  install: {
329    win: [
330      {
331        'pric': 29.95,
332        'url': 'https://store.wondershare.com/index.php?submod=checkout&method=sku_combine&is_combine=1&sku_id=102000000175&coupon_id=7131&currency=USD&language=English&verify=682C6FCA5FA7EECA4191BE82797A14C2'
333      },
334      {
335        'pric': 45.95,
336        'url': 'https://store.wondershare.com/index.php?submod=checkout&method=sku_combine&is_combine=1&sku_id=102000000120&coupon_id=7134&currency=USD&language=English&verify=C186AF690C8189684E59B8ED8258F389'
337      }
338    ],
339    mac: [
340      {
341        'pric': 45.95,
342        'url': 'https://store.wondershare.com/index.php?submod=checkout&method=sku_combine&is_combine=1&sku_id=102000000120&coupon_id=7134&currency=USD&language=English&verify=C186AF690C8189684E59B8ED8258F389'
343      }
344    ]
345  }
346}
347let pathname = window.location.pathname
348let countriesLang = 'en'
349let langArr = ['de','fr','es','br','it','nl','ar','ru','ee','cs','da','fi','sv','pl','ie','gr','hu','ms','no','tr','ro','se','vi','kp','jp','zh']
350for(let i = 0; i < langArr.length; i++) {
351  if((langArr[i] == pathname.substr(1,2) && pathname.substr(1,3) !== 'vid')){
352    countriesLang = langArr[i]
353    break
354  }
355}
356if (countriesLang === 'en') {
357  $(function () {
358    let countries = 'US'
359    $.get({
360      url:'https://i.wondershare.com/api/v1/geoip/country',
361      xhrFields: {
362        withCredentials: true
363      },
364      crossDomain: true,
365    }, function (res) {
366        countries = res.data.country
367        window.wondershare_countries = countries
368        window.postMessage({ iso_code: countries, action: 'iso_code'}, '*')
369      // countries = 'IN'
370      let page = ''
371      if (location.href.indexOf('store') >= 0 || location.href.indexOf('pricing') >= 0) {
372        page = priceTest.pricing
373      } else if (location.href.indexOf('/buy/video-converter-ultimate-desktop.html') >= 0) {
374        page = priceTest.buy.win
375      } else if (location.href.indexOf('/buy/mac-video-converter-ultimate-desktop.html') >= 0) {
376        page = priceTest.buy.mac
377      } else if (location.href.indexOf('/survey/uninstall-video-converter-ultimate-mac-desktop.html') >= 0) {
378        page = priceTest.uninstall.mac
379      } else if (location.href.indexOf('/survey/uninstall-video-converter-ultimate-desktop.html') >= 0) {
380        page = priceTest.uninstall.win
381      }else if (location.href.indexOf('thankyou/install-video-converter-ultimate-desktop.html') >= 0) {
382        page = priceTest.install.win
383      }
384      console.log(countries,1)
385      if (countries === 'IN' || countries === 'ID' || countries === 'PH' || countries === 'MY' || countries === 'PK' || countries === 'VN' || countries === 'EG' || countries === 'TH' || countries === 'NG' || countries === 'CZ' || countries === 'LK' || countries === 'KE' || countries === 'NP' || countries === 'GH' || countries === 'DZ' || countries === 'SI') {
386        if (location.href.indexOf('store') >= 0 || location.href.indexOf('pricing') >= 0) {
387          let price = page.win[0].pric
388          let winUrl = page.win[0].url
389          let macUrl = page.mac[0].url
390          $('.lifeTimePrice').html(price)
391          $('.buy-now-win').attr('href', winUrl)
392          $('.buy-now-mac').attr('href', macUrl)
393        } else if (location.href.indexOf('/buy/video-converter-ultimate-desktop.html') >= 0 || location.href.indexOf('/buy/mac-video-converter-ultimate-desktop.html') >= 0) {
394          $(".plan1pc").html('$' + page[0].pric)
395          $(".desktop.plan1pccart").attr('href', page[0].url)
396          $(".desktop.plan1pcpaypal").attr('href', page[0].url + '&amp;flush=paypal')
397          $(".license").html('$' + page[1].pric)
398          $(".desktop.planlicense").attr('href', page[1].url)
399          $(".desktop.planlicensepaypal").attr('href', page[1].url + '&amp;flush=paypal')
400        } else if (location.href.indexOf('/survey/uninstall-video-converter-ultimate-mac-desktop.html') >= 0 || location.href.indexOf('/survey/uninstall-video-converter-ultimate-desktop.html') >= 0) {
401          var jagewin = page[0].pric.toString().split('.')
402          $('.price span').html(jagewin[0])
403          $('.price small').html('.' + jagewin[1])
404          $('.desktop').attr('href', page[0].url)
405        } else if (location.href.indexOf('thankyou/install-video-converter-ultimate-desktop.html') >= 0) {
406          let price1year = $('#price1year')
407          let price1yearBtn = $('.oneYear')
408          let priceLifetime = $('#priceLifetime')
409          let priceLifetimeBtn  = $('.Lifetime')
410          price1year.html(`$${page[0].pric.toString()}`)
411          price1yearBtn.attr('href', page[0].url)
412          priceLifetime.html(`$${page[1].pric.toString()}`)
413          priceLifetimeBtn.attr('href', page[1].url)
414        }
415      }
416    })
417  })
418}
419
420
421$(".desktop").click(function (e) {
422  var href = $(this).attr('href')
423  var sourcePathOnline =  Cookies.get('sourcePathDownload') ? Cookies.get('sourcePathDownload') : Cookies.get('sourcePath')
424  if (href.indexOf('&') >= 0) {
425    href = href + '&sourcePath=' + sourcePathOnline
426  } else {
427    href = href + '?sourcePath=' + sourcePathOnline
428  }
429  if(e.preventDefault){
430    e.preventDefault();
431  }else{
432    window.event.returnValue == false;
433  }
434  var count = Cookies.get('Desktop') ? Cookies.get('Desktop') : 0
435  count = parseInt(count) + 1
436  Cookies.set('Desktop', count, { expires: 100000, path: '' })
437  sendGtmP({'event': 'Online_Buy_Online+Desktop', 'Online_Buy_G': 'Online_Buy', 'action': 'Online_Buy_Online+Desktop', 'eventLabel': count})
438  href += '&app_name=www_media_io'
439  location.href = href
440})
441
442$(function () {
443  if (Cookies) {
444    if (location.href.indexOf('pricing.html') < 0 || location.href.indexOf(' /thankyou/') < 0 || location.href.indexOf('/buy/') < 0 || location.href.indexOf('/survey/') < 0)
445      Cookies.set('sourcePath', location.href, { expires: 60 * 60 * 24 * 90, path: '' })
446  }
447})
448
449function sendGtmP(obj){
450  try{
451    dataLayer.push({
452      'mediaEvent': 'mediaEvent',
453      'event': 'KO_' + obj.category + '_5.0',
454      'eventLable': obj.eventLabel,
455      'eventAction': obj.action,
456      'mediaCategory': obj.category + '_4.0',
457      'mediaAction': obj.action,
458      'mediaLabel': obj.eventLabel
459    })
460  }catch(e){
461
462  }
463}

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.