-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
46 lines (41 loc) · 1.42 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Hello World!</title>
<link rel="stylesheet" href="./stylesheet.css">
<script>if (typeof module === 'object') {window.module = module; module = undefined;}</script>
<script src="./js/jquery-2.2.0.min.js"></script>
<script>if (window.module) module = window.module;</script>
</head>
<body>
<!--<img src="imgs/html_cool.jpg" style="position:fixed; top:0; left:0; width: 20em">-->
<div id="video-wrapper">
<video id="video2" class="player" muted>
<source src="vids/test.mp4" type="video/mp4">
Your browser does not support HTML5 video.
</video>
<video id="video1" class="player" muted>
<source src="vids/hallo.mp4" type="video/mp4">
Your browser does not support HTML5 video.
</video>
</div>
</body>
<script>
// You can also require other files to run in this process
require('./renderer.js');
const {ipcRenderer} = require('electron')
ipcRenderer.on('opacity-changed', function (event, arg) {
console.log(arg);
var animTime = arg.animate ? 3000 : 0;
console.log(animTime);
$("#video1").fadeTo(animTime,arg.value/100);
});
var myVideo = document.getElementById("video1");
var myVideo2 = document.getElementById("video2");
myVideo.loop = true;
myVideo2.loop = true;
myVideo.play();
myVideo2.play();
</script>
</html>