summaryrefslogtreecommitdiff
path: root/scripts/video.js
diff options
context:
space:
mode:
authoraltaf-creator <athaalaa@gmail.com>2024-04-04 16:41:10 +0700
committeraltaf-creator <athaalaa@gmail.com>2024-04-04 16:41:10 +0700
commita26de243da1a42ea9abc4953c1906cf558493883 (patch)
tree9dd5d14afda5e451f52ef744bd1408c0e717629f /scripts/video.js
parentd9ef8a652594c782be0422184a8632588805db06 (diff)
initial commit for personal git repo server
Diffstat (limited to 'scripts/video.js')
-rw-r--r--scripts/video.js32
1 files changed, 16 insertions, 16 deletions
diff --git a/scripts/video.js b/scripts/video.js
index e1d5948..b74587e 100644
--- a/scripts/video.js
+++ b/scripts/video.js
@@ -1,16 +1,16 @@
-function playVideo(elementId) {
- var element = document.getElementById(elementId);
-
- element.style.visibility = "visible";
- element.style.opacity = "100%";
- element.play();
-}
-
-function stopVideo(elementId) {
- var element = document.getElementById(elementId);
-
- element.style.visibility = "hidden";
- element.style.opacity = "0%";
- element.pause();
- element.currentTime = 0;
-}
+function playVideo(elementId) {
+ var element = document.getElementById(elementId);
+
+ element.style.visibility = "visible";
+ element.style.opacity = "100%";
+ element.play();
+}
+
+function stopVideo(elementId) {
+ var element = document.getElementById(elementId);
+
+ element.style.visibility = "hidden";
+ element.style.opacity = "0%";
+ element.pause();
+ element.currentTime = 0;
+}