-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.html
64 lines (63 loc) · 2.12 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
<!DOCTYPE HTML>
<html style="width: 100%; height: 100%;">
<head lang="en">
<link href="./css/main.css" type="text/css" rel="stylesheet"/>
<link href="./fontawesome/css/all.min.css" type="text/css" rel="stylesheet"/>
<script src="./scripts/jquery.min.js"></script>
<script>
let runInElectron = true;
let ipcRenderer;
try{
window.$ = window.jQuery = require("./scripts/jquery.min");
ipcRenderer = require('electron').ipcRenderer;
}
catch(error){
runInElectron = false;
console.log("Running in browser...");
}
</script>
<script type="text/javascript">
const getScaleStyle = (width, height, font, keyCount) => {
width /= font; height /= font;
return `
height: calc(${2.2 * height - (keyCount ? 0.3 : 0)}em - 6px);
width: calc(${2.2 * width}em - 6px);
min-width: calc(${2.2 * width}em - 6px);
line-height: calc(${2.2 * height - (keyCount ? 0.8 : 0)}em - 6px);
padding-top: calc(${keyCount ? 0.2 : 0}em);
padding-bottom: calc(${keyCount ? 0.1 : 0}em);
font-size: ${font}em;
`;
}
</script>
</head>
<body>
<div style="position: relative;">
<div class='innerContent' style="display: inline-flex; flex-direction: column; overflow: hidden; position: fixed; top: 0; left: 0">
<div style="overflow: hidden">
<div class="shortcutKeyContainer">
Shortkey
</div>
</div>
<div class="keyboardContainer">
</div>
</div>
<div class="touchChange closed">
</div>
<div class="lockerMask closed">
<div style='display: flex; flex-direction: row; overflow: hidden; width: 100%;'>
<div style='width: calc(50% + 8px); text-align: right;' class="lockContainer">
<i class="fas fa-lock"></i>
</div>
<div style='flex: 1; text-align: right; margin-right: 10px;' class="windowCloser">
<i class="fas fa-close" style="color: red"></i>
</div>
</div>
</div>
</div>
</body>
<footer style="position: fixed;">
<script src="./scripts/jquery.mousewheel.min.js"></script>
<script src="./scripts/main.js"></script>
</footer>
</html>