Skip to content

Commit 0de2923

Browse files
authored
Create go.html
1 parent 0f9d32e commit 0de2923

File tree

1 file changed

+234
-0
lines changed

1 file changed

+234
-0
lines changed

EC/go.html

+234
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,234 @@
1+
2+
<!DOCTYPE html>
3+
<html>
4+
<head>
5+
<script src="https://algebra8.top/Flash-Code/ruffle.js"></script>
6+
7+
<title>Gameframe</title>
8+
<meta charset="UTF-8">
9+
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
10+
<meta name="viewport" content="width=device-width, initial-scale=1">
11+
12+
<script async src="https://www.googletagmanager.com/gtag/js?id=G-C78TXR0XFK"></script>
13+
<script>
14+
window.dataLayer = window.dataLayer || [];
15+
function gtag(){dataLayer.push(arguments);}
16+
gtag('js', new Date());
17+
18+
gtag('config', 'G-C78TXR0XFK');
19+
</script>
20+
21+
<script src=".GobalSettings.js"></script>
22+
23+
<!--PageScript1-->
24+
<!--script id="CHECK">
25+
function getCookie2(name) {
26+
const cookieName = name + "=";
27+
const cookies = document.cookie.split(';');
28+
for (let i = 0; i < cookies.length; i++) {
29+
let cookie = cookies[i];
30+
while (cookie.charAt(0) === ' ') {
31+
cookie = cookie.substring(1);
32+
}
33+
if (cookie.indexOf(cookieName) === 0) {
34+
return cookie.substring(cookieName.length, cookie.length);
35+
}
36+
}
37+
return '';
38+
}
39+
40+
41+
let Setting14bu = getCookie2("PagePrevent");
42+
43+
function checkPageClose(event) {
44+
45+
46+
event.returnValue = "Prevent Page Close Is Active, You Can Click Off Of This";
47+
48+
49+
50+
}
51+
function checkPageClose2() {
52+
if(Setting14bu==="true") {
53+
54+
window.onbeforeunload = function(event) {
55+
// return a string to prevent the page from closing
56+
event.preventDefault();
57+
return "Prevent Page Close Is Active, You Can Click Off Of This";
58+
};
59+
window.addEventListener("beforeunload", checkPageClose);
60+
61+
}
62+
if(Setting14bu==="false") {
63+
64+
}
65+
}
66+
console.log('CookiePAGE Value: ' + Setting14bu + "SzGames-Scripts Loaded")
67+
checkPageClose2()
68+
69+
</script-->
70+
<!--PageScript1-->
71+
72+
<script>
73+
if ('serviceWorker' in navigator) {
74+
navigator.serviceWorker.register('sw.js');
75+
}
76+
</script>
77+
78+
<link rel="manifest" href="manifest.json">
79+
<style>
80+
body {
81+
margin: 0;
82+
overflow: hidden;
83+
font-family: Arial, Helvetica, sans-serif;
84+
background-color: rgb(117, 117, 117);
85+
}
86+
87+
.btn-group button {
88+
background-color: black; /* Green background */
89+
90+
color: white; /* White text */
91+
padding: 10px 24px; /* Some padding */
92+
cursor: pointer; /* Pointer/hand icon */
93+
float: left; /* Float the buttons side by side */
94+
}
95+
96+
/* Clear floats (clearfix hack) */
97+
.btn-group:after {
98+
content: "";
99+
clear: both;
100+
display: table;
101+
}
102+
103+
.btn-group button:not(:last-child) {
104+
border-right: none; /* Prevent double borders */
105+
}
106+
107+
/* Add a background color on hover */
108+
.btn-group button:hover {
109+
background-color: grey;
110+
}
111+
112+
/* Header/Logo Title */
113+
.header {
114+
padding: 60px;
115+
text-align: center;
116+
background: linear-gradient(to bottom right, #9a9a9a, rgb(39, 39, 39));
117+
color: white;
118+
width: auto;
119+
font-size: 30px;
120+
121+
font-family: Arial, Helvetica, sans-serif;
122+
border-radius: 15px;
123+
}
124+
125+
/* Page Content */
126+
127+
</style>
128+
</head>
129+
<body onresize="resize()">
130+
<style>
131+
.game {
132+
position: absolute;
133+
color: white;
134+
135+
transform: scale(1.8);
136+
z-index: 3;
137+
font-family: Arial, Helvetica, sans-serif;
138+
}
139+
.fade {
140+
position: absolute;
141+
background: linear-gradient(to bottom, #1d1d1d, #1d1d1d5d, rgba(39, 39, 39, 0));
142+
width: 300px;
143+
height: 150px;
144+
border-radius: 15px;
145+
}
146+
.buttonForMenu {
147+
transition: 0.5s;
148+
}
149+
.buttonForMenu:hover {
150+
color: #9a9a9a;
151+
}
152+
.em {
153+
margin: 0 auto;
154+
}
155+
156+
</style>
157+
158+
<div id="hello">
159+
<embed class="em" id="game" width=" 100%;" height="550px" src="" ></embed>
160+
</div>
161+
162+
<div style="cursor: pointer; position: fixed; border-radius: 15px; color: rgb(224, 224, 224); background-color: #1d1d1dc0; left: 0; bottom: 0px; margin: 10px;" id="Menu">
163+
164+
165+
<span class="material-icons buttonForMenu" style="margin: 5px;" onclick="window.close()" >
166+
arrow_back
167+
</span>
168+
<span class="material-icons buttonForMenu" style="margin: 5px;" onclick="makeFullScreen()" >
169+
fullscreen
170+
</span>
171+
</div>
172+
</body>
173+
174+
<script>
175+
176+
var isFUll = false
177+
178+
document.body.onkeyup = function(e) {
179+
if( e.keyCode == 27 ) {
180+
if(isFUll) {
181+
//document.getElementById('game').style.width = '800px';
182+
}
183+
}
184+
}
185+
186+
function requestFullScreen(element) {
187+
// Supports most browsers and their versions.
188+
var requestMethod = element.requestFullScreen || element.webkitRequestFullScreen || element.mozRequestFullScreen || element.msRequestFullscreen;
189+
190+
if (requestMethod) { // Native full screen.
191+
requestMethod.call(element);
192+
let hh = window.innerHeight;
193+
194+
document.getElementById('game').height = hh;
195+
} else if (typeof window.ActiveXObject !== "undefined") { // Older IE.
196+
var wscript = new ActiveXObject("WScript.Shell");
197+
if (wscript !== null) {
198+
wscript.SendKeys("{F11}");
199+
}
200+
}
201+
}
202+
var canvas = document.getElementById('hello');
203+
204+
function makeFullScreen() {
205+
206+
isFUll = true
207+
requestFullScreen(canvas);
208+
}
209+
210+
211+
let hh = window.innerHeight;
212+
213+
document.getElementById('game').height = hh;
214+
215+
216+
document.getElementById('game').height = hh;
217+
window.onresize = function(event) {
218+
let hh = window.innerHeight;
219+
220+
document.getElementById('game').height = hh;
221+
}
222+
var textElement = document.getElementById("game");
223+
224+
// Get the current URL
225+
var currentUrl = new URL(window.location.href);
226+
227+
// Check for the presence of the "text" parameter in the URL
228+
if (currentUrl.searchParams.has("game")) {
229+
// Set the text of the element to the value of the "text" parameter
230+
textElement.src = currentUrl.searchParams.get("game");
231+
}
232+
233+
</script>
234+
</html>

0 commit comments

Comments
 (0)