Unverified Commit 4685bd4d authored by TravelersChosen's avatar TravelersChosen Committed by GitHub
Browse files

Another sample test with Javascript

parent 9c99a969
Loading
Loading
Loading
Loading
+19 −1
Original line number Diff line number Diff line
@@ -124,6 +124,7 @@


        </style>
        <script src= "https://embed.twitch.tv/embed/v1.js"></script>
    </head>
<body>
    <div>
@@ -213,7 +214,8 @@
        </div>

        <footer>
            <iframe
            <div id="embed1"></div>
            <!-- <iframe
                src="https://player.twitch.tv/?channel=luckbot9&parent=travelerschosenteam.github.io&muted=true"
                height="260"
                width="470"
@@ -221,8 +223,24 @@
            </iframe>

            <iframe src="https://embed.twitch.tv?allowfullscreen=false&channel=travelerschosenteam&height=260layout=video&parent=travelerschosenteam.github.io&width=470" allowfullscreen="" scrolling="no" frameborder="0" allow="autoplay; fullscreen" title="Twitch" sandbox="allow-modals allow-scripts allow-same-origin allow-popups allow-popups-to-escape-sandbox allow-storage-access-by-user-activation" width="470" height="260"></iframe>
         -->
            
        </footer>
    
    <script type="text/javascript">
        const urlParams = new URLSearchParams(window.location.search);
        const runtest = urlParams.get('embed1');
        
            var options = {
            width: 470,
            height: 260,
            channel: "TravelersChosenTeam",
            allowfullscreen: false,
            layout: 'video',
            parent: ["travelerschosen.github.io", "github.io", "https://travelerschosen.github.io", "https://www.travelerschosen.github.io", "www.travelerschosen.github.io"]
            };
            var player = new Twitch.Embed("embed1", options);
    </script>

    <script>
        var activitytype = 1;