PageSourceSearch

https://www.science-et-vie.com/wp-content/cache/min/1/wp-content/t…/assets/javascripts/tv.js?ver=1790073021

js science-et-vie.com collected 2026-10-01 10:11:39 UTC 3,052 bytes, 15 lines download raw bytes

1function premiumIsConnected(){return typeof window.rwPremiumState!=='undefined'&&window.rwPremiumState.isConnected()}
2function getPremiumAccountUrl(){var popup=document.getElementById('video-popup');if(popup&&popup.dataset&&popup.dataset.accountUrl){return popup.dataset.accountUrl}
3return'/mon-espace/'}
4function openPremiumLogin(){window.location.href=getPremiumAccountUrl()}(function($){const overlayTv=$('<div class="overlay-tv"></div>');const loaderTv=$('<div class="loader-tv"></div>');$('.page-tv').append(overlayTv,loaderTv);$(document).ready(function(){$('#programs').on('change',function(e){loaderTv.show();overlayTv.show();var program=$(this).val();if(program){var url=window.location.href.split('?')[0];if(program!=="default"){url+="?program="+encodeURIComponent(program)}
5window.location.href=url}})});$('.live-program img').on('click',function(){if(!premiumIsConnected()){openPremiumLogin()}else{var poster_live=$(this).attr('src');var data_url_live=$(this).attr('data-url');var data_params=$(this).attr('data-params');var live_html=`
6                <video id="video-live" class="video-js" poster="${poster_live}" preload="auto" controls>
7                    <source src="${data_url_live}/scienceetvie/hls/index.m3u8?hdnts=${data_params}" 
8                    type="application/x-mpegURL"> 
9                </video>
10            `;$('#div_live').html(live_html);var videoLiveElement=$('#video-live');if(videoLiveElement.length>0){videojs('video-live',{liveui:!0,hls:{withCredentials:!0,overrideNative:!0}})}
11var live_video=videojs($(".live-program video").attr('id'));live_video.play()}})})(jQuery);$('.program-img').on('click',function(){if(!premiumIsConnected()){openPremiumLogin()}else{var video_id=$(this).attr('data-programid');var video_img=$(this).attr('data-programimg');var parent=$(this).parent();var video_title=parent.children('.title').html();var video_desc=parent.children('.full-description').val();var video_info=parent.children('.info-program').html();$('.modal-title-tv').html(video_title);$('.modal-description-tv').html(video_desc).shave(5000);$('.modal-info-program').html(video_info);video_html=`
12            <video id="video-popup-player-${video_id}" class="video-js" poster="${video_img}" data-video-id="${video_id}" style="min-height:480px;width:100%" data-setup="{}" preload="auto" controls>
13                <source src="https://mediawan-lebigusa-11779-hls.akamaized.net/abori/${video_id}.smil/playlist.m3u8" type="application/x-mpegURL">
14            </video>
15        `;$('.video-popup-player').html(video_html);$('#video-popup-close').attr('data-video-id',video_id);$('#video-popup').modal();videojs("video-popup-player-"+video_id);if(typeof($(".live-program video"))!=="undefined"){var live_video=videojs($(".live-program video").attr('id'));if(!live_video.paused()){live_video.pause()}}}});$('#video-popup-close').on('click',function(){var video_id=$(this).attr('data-video-id');var current_player=document.getElementById('video-popup-player-'+video_id);if(current_player){videojs(current_player).dispose()}})

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.