1/** * Estimated Delivery - Front Office Feature 2 * Product Video(s) 3 * 4 * NOTICE OF LICENSE 5 * This Licence is only valid for one installation, you can sell it to 6 * your customer and personalize it, but you can't install more than one 7 * Licences, to install more licences buy another licences first. 8 * 9 * @author Pol Rué 10 * @copyright Smart Modules 2014 11 * @license One time purchase Licence (You can modify or resell the product but just one time per licence) 12 * @version 2.9.5 13 * @category product 14 * Registered Trademark & Property of smart-modules.com 15 * 16 * **************************************** 17 * * Product Videos * 18 * * http://www.smart-modules.com * 19 * * V 2.9.5 * 20 * **************************************** 21*/ 22var ytcb = false; 23function onYouTubeIframeAPIReady() { 24 //console.log('youtube ready'); 25 videosAutoload(); 26 ytcb = true; 27} 28 29loadYoutubePlayer(); 30function loadYoutubePlayer() { 31 //console.log('load YT'); 32 var tag = document.createElement('script'); 33 tag.src = "https://www.youtube.com/iframe_api"; 34 var firstScriptTag = document.getElementsByTagName('script')[0]; 35 firstScriptTag.parentNode.insertBefore(tag, firstScriptTag); 36 setTimeout(function() { if (ytcb == false) { onYouTubeIframeAPIReady(); } }, 800); 37} 38 39function createYoutubePlayer(element, id, vwidth, vheight) { 40 var options = { 41 autoplay: pv_auto, 42 controls: pv_cont, 43 loop: pv_loop, 44 modestbranding: pv_info, 45 rel: pv_rel, 46 showinfo: !pv_info, 47 }; 48 if (parseInt(pv_loop) === 1) { 49 options.playlist = id; 50 } 51 pv_video_list[element] = new YT.Player(element, { 52 height: vwidth, 53 width: vheight, 54 videoId: id, 55 host: pv_priv ? 'https://www.youtube-nocookie.com' : 'https://www.youtube.com', 56 origin: location.protocol+'//'+location.hostname, 57 playerVars: options, 58 }); 59} 60function videosAutoload() { 61 $('div.pv-youtube-autoload').each(function() { 62 var data = $(this).data(); 63 createYoutubePlayer(data.target + '-' + data.id, data.id, data.width, data.height);
64 //<div id="iplayer-'+vurl.id+'" class="youtube-video pv-product pv-youtube-autoload" data-id="'+vurl.id+'" data-width="'+width+'" data-height="'+height+'" data-target="iplayer"></div> 65 }); 66}
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.