diff options
author | altaf-creator <athaalaa@gmail.com> | 2023-12-10 09:14:47 +0700 |
---|---|---|
committer | altaf-creator <athaalaa@gmail.com> | 2023-12-10 09:14:47 +0700 |
commit | d9ef8a652594c782be0422184a8632588805db06 (patch) | |
tree | 6acd6723c432b19f3763848d40f9909838b1046c /scripts/video.js | |
parent | 186df2c71e361ad84bf66625d87fab41eac827a9 (diff) |
Added store page for simpliCity, tank shooter not finished
Diffstat (limited to 'scripts/video.js')
-rw-r--r-- | scripts/video.js | 16 |
1 files changed, 16 insertions, 0 deletions
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; +} |