-
Notifications
You must be signed in to change notification settings - Fork 12
/
play.html
117 lines (117 loc) · 3.96 KB
/
play.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
107
108
109
110
111
112
113
114
115
116
117
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<script src="https://unpkg.com/sweetalert/dist/sweetalert.min.js"></script>
<style>
body {
background: #444;
font-family: Arial, Helvetica, sans-serif;
width: 100vw;
overflow: hidden !important;
}
.character {
position: relative;
box-shadow: 0 5px 10px #25750a;
cursor: pointer;
transition: transform 1s, box-shadow 1s;
background: #333;
width: 50%;
}
.character:hover {
transform: scale(1.1);
box-shadow: 0 0 #000;
z-index: 100;
}
.character:hover + .center {
z-index: 101;
}
.holder {
position: relative;
display: inline-block;
text-align: center;
left: 0;
margin: 10px;
margin-right: 2.5%;
margin-left: -10px;
}
.center {
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
color: #fff;
font-size: 30px;
font-weight: 600;
}
.container {
position: relative;
left: 50%;
width: 2000px;
margin-left: -750px;
top: -120px;
}
h1 {
position: relative;
top: 350px;
width: 100px;
left: 50%;
margin-left: -50px;
font-size: 60px;
color: #333;
text-shadow: 2px 2px #25750a;
}
.swal-modal {
background: #444;
box-shadow: 0px 0px 10px 5px #ff4444;
}
.swal-modal * {
color: #ff4444;
}
.swal-button {
background: #ff4444 !important;
color: #333 !important;
box-shadow: none !important;
outline: none !important;
}
</style>
</head>
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-2ZQ6TMGVXJ"></script>
<script>
window.dataLayer=window.dataLayer||[];
function gtag(){dataLayer.push(arguments);}
gtag("js", new Date());
gtag("config", "G-2ZQ6TMGVXJ");
</script>
<body>
<!-- <h1>VS</h1>
<div class="container">
<div class="holder" onclick="location.replace(location.href.replace('play','src')+'&character=mark-vi')"><img class="character mark-vi" src="images/characters/mark-vi.png" /><div class="center">Mark VI</div></div>
<div class="holder" onclick="location.replace(location.href.replace('play','src')+'&character=fotus')"><img class="character fotus" src="images/characters/fotus.png" /><div class="center">FOTUS</div></div>
</div> -->
<script>(()=>{if(location.hash=="#ignore"){option(false)}else{
if(localStorage["prefsIgnorePerformanceWarning"]=="true"&&localStorage["prefsIgnorePerformanceWarning"]!=undefined){return option(false)}
let checkbox = document.createElement("div");
checkbox.innerHTML = `
<label for="ignore">Do not show this again</label>
<input type="checkbox" checked onclick="this.checked?localStorage.setItem('prefsIgnorePerformanceWarning','true'):localStorage.setItem('prefsIgnorePerformanceWarning','false')" name="ignore">
`;
option(false);
// swal({
// icon: "error",
// title: "Before you continue",
// text: "This game is known to impact PC performance and memory.\nThis can damage your CPU/GPU over time. You can manage how much performance and memory is used in Preferences.",
// content: checkbox,
// buttons: ["Change", "Continue"]
// }).then((e)=>{
// if (e) {
// return option(false);
// }
// option(true);
// })
}})();function option(h){if(!h){return location.replace((location.href.replace('play','src').replace("#ignore","")+'&character='+(localStorage["character"]||"mark-vi")))}location.replace("/preferences.html?r="+btoa(encodeURIComponent(location.href))+"#memory")}</script>
</body>
</html>