Skip to content

Commit

Permalink
Workaround for popup blocking
Browse files Browse the repository at this point in the history
  • Loading branch information
Ju1-js authored Sep 23, 2023
1 parent 40a0286 commit 087a14a
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -313,15 +313,19 @@ <h2 class="post-title">An Untitled Goose Game</h2>
player.aspectRatio('16:9');
player.muted(true);
player.autoplay('true');
var cookieConsent = document.querySelector('#cookie-consent');
// var cookieConsent = document.querySelector('#cookie-consent');
var sidenav = document.querySelector('#sidenav');
var textsunglasses = document.querySelector('#textsunglasses');
var postdescription = document.querySelector('#post-description');
var untitledgoosegamebutton = document.querySelector('#untitledgoosegamebutton');
var goosecontent = document.querySelector('.goose-content');
var githubbutton = document.querySelector('#downloads');

cookieConsent.addEventListener('click', () => {
//cookieConsent.addEventListener('click', () => {
document.addEventListener('click', interaction);
document.addEventListener('keydown', interaction);

function interaction(event) {
cookieConsent.classList.add('hidden');
playVideo("assets/videos/Rick-Astley-Never-Gonna-Give-You-Up-1080p60-60fps.mp4", 'video/mp4');
videojs('video-player1', {}, function() {
Expand All @@ -338,8 +342,8 @@ <h2 class="post-title">An Untitled Goose Game</h2>

});
});
});

}
function sleep(milliseconds) {
const date = Date.now();
let currentDate = null;
Expand Down

0 comments on commit 087a14a

Please sign in to comment.