-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.html
95 lines (85 loc) · 3.41 KB
/
main.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
<!DOCTYPE html>
<html lang="en">
<head>
<title>m҉o҉s҉h҉r҉o҉o҉m҉ by �</title>
<link href="style.css" rel="stylesheet">
<!-- <script src="https://cdn.babylonjs.com/babylon.js"></script> -->
<!-- <script src="https://cdn.babylonjs.com/cannon.js"></script> -->
<!-- <script src="https://code.jquery.com/pep/0.4.3/pep.js"></script> -->
</head>
<body>
<div class="box-wrapper">
<div class="box-main box-main-loading">
<div class="box-face box-front">
<a href="https://ufffd.com/" target="_blank" id="�">�'s</a>
<h1 class="marquee">
<span>m҉o҉s҉h҉r҉o҉o҉m҉</span>
</h1>
<button id="btn_basicmosh" class="btn box-btn">Basic Mosh...</button><br><br>
<button id="btn_loopmosh" class="btn box-btn">Loop Mosh...</button><br><br>
<button id="btn_animosh" class="btn box-btn">Animosh...</button>
</div>
<div class="box-face box-left">
<button class="box-nav box-nav-right" onclick="changeSide('front')">🖙</button>
left
</div>
<div class="box-face box-right">
<button class="box-nav box-nav-left" onclick="changeSide('front')">🖘</button>
<h3>Animosh Options</h3>
Image<br>
</div>
<div class="box-face box-back">
back
</div>
<div class="box-face box-top">
<button class="box-nav box-nav-down" onclick="changeSide('front')">🖟</button>
top
</div>
<div class="box-face box-bottom">
<button class="box-nav box-nav-up" onclick="changeSide('front')">🖞</button>
bottom
</div>
</div>
</div>
<script>
const electron = require('electron')
const { ipcRenderer } = electron
const btn_basicmosh = document.querySelector('#btn_basicmosh')
btn_basicmosh.addEventListener('click', (e) => {
ipcRenderer.send('basicMosh', {})
})
const btn_loopmosh = document.querySelector('#btn_loopmosh')
btn_loopmosh.addEventListener('click', (e) => {
ipcRenderer.send('loopMosh', {})
})
const btn_animosh = document.querySelector('#btn_animosh')
btn_animosh.addEventListener('click', (e) => {
changeSide('right')
ipcRenderer.send('aniMosh', {})
})
var boxmain = document.querySelector('.box-main')
var currentClass = ''
function changeSide(side) {
var showClass = 'show-' + side
if (currentClass) {
boxmain.classList.remove(currentClass)
}
boxmain.classList.add(showClass)
currentClass = showClass
}
// set initial side
// changeSide('front')
// attempting to make transparent parts click-through
window.addEventListener('mousemove', event => {
// console.log(event.target)
if (event.target.tagName == 'BODY')
ipcRenderer.send('ignoremouse_true', {})
else
ipcRenderer.send('ignoremouse_false', {})
})
setTimeout(()=>{
document.querySelector('.box-main-loading').classList.remove('box-main-loading')
}, 200)
</script>
</body>
</html>