-
Notifications
You must be signed in to change notification settings - Fork 0
/
404.html
106 lines (93 loc) · 3.61 KB
/
404.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
96
97
98
99
100
101
102
103
104
105
106
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<title>Guyub</title>
<base href="/" />
<link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700&display=swap" rel="stylesheet" />
<link href="_content/MudBlazor/MudBlazor.min.css" rel="stylesheet" />
<link href="css/fsh.css" rel="stylesheet" />
<link href="manifest.json" rel="manifest" />
<link rel="apple-touch-icon" sizes="512x512" href="icon-512.png" />
</head>
<body>
<div id="app">
<style>
@keyframes slide {
0% {
transform: translateX(-25%);
}
100% {
transform: translateX(25%);
}
}
.fsh-wasm {
animation: slide 3s ease-in-out infinite alternate;
bottom: 0;
left: -50%;
opacity: .5;
position: fixed;
right: -50%;
top: 0;
z-index: -1
}
.fsh-wasm-cont {
left: 50%;
padding: 10vmin;
position: fixed;
text-align: center;
top: 50%;
transform: translate(-50%, -50%)
}
</style>
<div style="height:100%;width:100%;margin:0;position:fixed;">
<div class="fsh-wasm"></div>
<div class="fsh-wasm" style="animation-direction:alternate-reverse;animation-duration:2s;"></div>
<div class="fsh-wasm" style="animation-duration:5s;"></div>
<div class="fsh-wasm-cont ">
<!--<img src="/guyub_200x200.png" opacity:0.3" />-->
</div>
</div>
</div>
<div id="blazor-error-ui">
An unhandled error has occurred.
<a href="" class="reload">Reload</a>
<a class="dismiss">🗙</a>
</div>
<script src="_framework/blazor.webassembly.js"></script>
<script src="_content/MudBlazor/MudBlazor.min.js"></script>
<script>navigator.serviceWorker.register('service-worker.js');</script>
<script>
var themeManager = JSON.parse(window.localStorage.getItem("clientPreference"));
var primaryColor = '#2882fb';
var baseColor = '#ffffff';
if (themeManager) {
if (themeManager.PrimaryColor) {
primaryColor = themeManager.PrimaryColor;
}
if (themeManager.IsDarkMode) {
baseColor = '#1b1f22';
}
}
var elements = document.getElementsByClassName('fsh-wasm');
for (var i = 0; i < elements.length; i++) {
elements[i].style.backgroundImage = 'linear-gradient(-120deg,' + primaryColor + ' 50%,' + baseColor + ' 50%)';
}
async function downloadFileFromStream(fileName, contentStreamReference) {
const arrayBuffer = await contentStreamReference.arrayBuffer();
const blob = new Blob([arrayBuffer]);
const url = URL.createObjectURL(blob);
triggerFileDownload(fileName, url);
URL.revokeObjectURL(url);
}
function triggerFileDownload(fileName, url) {
const anchorElement = document.createElement('a');
anchorElement.href = url;
anchorElement.download = fileName ?? '';
anchorElement.click();
anchorElement.remove();
}
</script>
</body>
</html>