Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
3.3 kB
5
Indexable
Never
<script>
    function playSolgar() {
        window.top.$("head").append('<link type="text/css" rel="stylesheet" href="https://js.duhnet.tv/q/s/player/html5/1.21.7/assets/css/docs.min.css"><scr' + 'ipt type="text/javascript" src="https://sb.scorecardresearch.com/beacon.js"></scr' + 'ipt><scr' + 'ipt type="text/javascript" src="https://gatr.hit.gemius.pl/gstream.js"></scr' + 'ipt><scr' + 'ipt type="text/javascript" src="//imasdk.googleapis.com/js/sdkloader/ima3.js"></scr' + 'ipt><scri' + 'pt type="text/javascript" src="//imasdk.googleapis.com/js/sdkloader/ima3_dai.js"></scr' + 'ipt><scri' + 'pt type="text/javascript" src="https://js.duhnet.tv/q/s/player/html5/1.21.7/assets/js/docs.min.js"></scr' + 'ipt>');
        window.top.$("body").prepend('<div id="vpaid_full_page" style="position: fixed;left: 0; top: 0; width: 100%; height: 100%; z-index: 99999999999999999999; overflow-y: scroll;"><div id="muteunmute" style="width: 35px;height: 35px;background: url(https://cdn.medyanetads.com/proje/assets/volumeOn.png); background-size: 100%; position: absolute;top: 247px; left: 1100px; cursor:pointer; z-index: 999999;"></div><div id="close_button_expand" style="background:url(https://cdn.medyanetads.com/proje/assets/close.png) no-repeat;background-size: cover;width:35px;height:35px;position:absolute;z-index:999999; margin: 14px; top: 232px; left: 1136px; z-index: 9999999999; cursor: pointer;"></div><div id="player-container" style="width: 1920px; height: 1080px;"></div></div>');
        window.top.quarkPlayer = window.top.QuarkPlayer({
            id: 'player-container',
            materialId: '567450e3a781b6216c6f7ecb',
            techOrder: ['html5'],
            autoPlay: true,
            debug: false,
            controls: false,
            muted: true,
            showAds: false,
            loop: true,
            sources: [{
                src: 'https://medyanet-vod.ercdn.net/hls/Q/-N/solgar_vpaid_3kiz_29_09_22/solgar_vpaid_3kiz_29_09_22.smil/playlist.m3u8',
                type: 'application/x-mpegURL'
            }]
        });
        window.top.quarkPlayer.player.loop(true)
        window.top.quarkPlayer.player.controls(false);
        window.top.quarkPlayer.player.muted(true);
        window.top.document.getElementById("player-container").addEventListener("click", function(event) {
            window.open("%%CLICK_URL_UNESC%%%%DEST_URL%%", "_blank");
        });
        window.top.$("#muteunmute").click(function() {
            if (window.top.quarkPlayer.player.muted()) {
                window.top.quarkPlayer.player.muted(false);
                window.top.$("#muteunmute").attr("src", "https://cdn.medyanetads.com/proje/assets/volumeOn.png");
            } else {
                window.top.quarkPlayer.player.muted(true);
                window.top.$("#medyanet-gravity-volume").attr("src", "https://cdn.medyanetads.com/proje/assets/volumeOff.png");
            }
        });
        window.top.$("#close_button_expand").click(function(){
            stopSolgar()
        });
    }
    function stopSolgar() {
        window.top.$("#vpaid_full_page").remove();
    }

    window.top.addEventListener("message", (event) => {
        if(event.data == "solgar-start"){
            playSolgar();
        }
    }, false);
</script>