From 4939de48b07c963314cb01ee070a39479be3aa23 Mon Sep 17 00:00:00 2001
From: Amine <74816698+FlenderrAX@users.noreply.github.com>
Date: Wed, 24 May 2023 21:24:54 +0100
Subject: [PATCH] Add files via upload
---
css/style.css | 13 +++++++++++++
index.html | 11 +++++++++++
js/main.js | 4 ++++
js/player.js | 35 +++++++++++++++++++++++++++++++++++
4 files changed, 63 insertions(+)
create mode 100644 css/style.css
create mode 100644 index.html
create mode 100644 js/main.js
create mode 100644 js/player.js
diff --git a/css/style.css b/css/style.css
new file mode 100644
index 0000000..eadb91c
--- /dev/null
+++ b/css/style.css
@@ -0,0 +1,13 @@
+body {
+ background: #181A1B;
+}
+
+#player {
+ pointer-events: none;
+ position: absolute;
+ margin: 0 auto;
+}
+
+iframe {
+ pointer-events: none;
+}
diff --git a/index.html b/index.html
new file mode 100644
index 0000000..510c012
--- /dev/null
+++ b/index.html
@@ -0,0 +1,11 @@
+
+
+ Rickroll
+
+
+
+
+
+
+
+
diff --git a/js/main.js b/js/main.js
new file mode 100644
index 0000000..c4728bd
--- /dev/null
+++ b/js/main.js
@@ -0,0 +1,4 @@
+document.addEventListener("click", e => {
+ e.stopPropagation();
+ e.preventDefault();
+}, true);
diff --git a/js/player.js b/js/player.js
new file mode 100644
index 0000000..a69815e
--- /dev/null
+++ b/js/player.js
@@ -0,0 +1,35 @@
+var tag = document.createElement('script');
+
+tag.src = "https://www.youtube.com/iframe_api";
+var firstScriptTag = document.getElementsByTagName('script')[0];
+firstScriptTag.parentNode.insertBefore(tag, firstScriptTag);
+
+var player;
+
+function onYouTubeIframeAPIReady() {
+ player = new YT.Player('player', {
+ height: '405',
+ width: '720',
+ videoId: 'QtBDL8EiNZo',
+ playerVars: {
+ 'autoplay': 1,
+ 'controls': 0,
+ 'showinfo': 1,
+ 'enablejsapi': 1,
+ 'loop': 1,
+ 'autohide': 1,
+ 'playsinline': 1,
+ },
+ events: {
+ 'onReady': onPlayerReady,
+ }
+ });
+}
+
+function onPlayerReady(event) {
+ event.target.playVideo();
+ if (player.getPlayerState() != 1) {
+ event.target.mute();
+ event.target.playVideo();
+ }
+}