From d9ef8a652594c782be0422184a8632588805db06 Mon Sep 17 00:00:00 2001 From: altaf-creator Date: Sun, 10 Dec 2023 09:14:47 +0700 Subject: Added store page for simpliCity, tank shooter not finished --- scripts/video.js | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 scripts/video.js (limited to 'scripts/video.js') diff --git a/scripts/video.js b/scripts/video.js new file mode 100644 index 0000000..e1d5948 --- /dev/null +++ b/scripts/video.js @@ -0,0 +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; +} -- cgit v1.2.3