Skip to content

Commit cb41447

Browse files
authored
Upload for 2.0
Upload for 2.0
1 parent 3a42695 commit cb41447

File tree

10 files changed

+7982
-0
lines changed

10 files changed

+7982
-0
lines changed

click.wav

22.2 KB
Binary file not shown.

effect.html

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
<style>
2+
body {
3+
padding: none;
4+
margin: 0;
5+
background: #0000ff;
6+
}
7+
#startupEffect {
8+
animation: startUpEffect 1s linear;
9+
background: white;
10+
margin-left: -10px;
11+
margin-top: -10px;
12+
width: 2000px;
13+
height: 2000px;
14+
}
15+
@keyframes startUpEffect {
16+
0% {
17+
display: block;
18+
}
19+
50% {
20+
opacity: 50%;
21+
}
22+
100% {
23+
opacity: 0%;
24+
}
25+
}
26+
</style>
27+
<div id="startupEffect"></div>
28+
<script>
29+
window.setTimeout(startup, 1500);
30+
window.setTimeout(effectDisappear, 980);
31+
var splash = new Audio();
32+
splash.src = "splash.mp3";
33+
splash.play();
34+
function startup() {
35+
if(window.location) {
36+
window.location = 'ss2.html' + window.location.hash;
37+
}
38+
}
39+
function effectDisappear() {
40+
document.getElementById("startupEffect").style.display = "none";
41+
}
42+
</script>

main.js

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
const {app, BrowserWindow} = require('electron');
2+
function createWindow() {
3+
const win = new BrowserWindow({
4+
width: 1300,
5+
height: 725,
6+
minWidth: 1300,
7+
minHeight: 725,
8+
frame: false,
9+
icon: 'ss2Icon.jpg',
10+
webPreferences: {
11+
noreIntegration: true
12+
}
13+
});
14+
win.loadFile("startup.html");
15+
}
16+
app.whenReady().then(createWindow);

0 commit comments

Comments
 (0)