Skip to content

Commit 079e2a6

Browse files
Fix ads (#6)
* fix ads * Add newline and improve consistency --------- Co-authored-by: Ethan O'Brien <[email protected]>
1 parent a09e3c0 commit 079e2a6

File tree

2 files changed

+50
-1
lines changed

2 files changed

+50
-1
lines changed

ads.html

+49
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<title>Ads</title>
5+
<meta charset="UTF-8">
6+
<style>
7+
html, body {
8+
margin: 0;
9+
padding: 0;
10+
width: 100%;
11+
height: 100%;
12+
overflow: hidden;
13+
background-color: transparent;
14+
}
15+
iframe {
16+
border: none;
17+
}
18+
#adblock{
19+
display: none;
20+
background-color:rgba(0, 0, 0, 0.8);
21+
position:fixed;
22+
width:100%;
23+
height:100%;
24+
top:0px;
25+
left:0px;
26+
z-index:1000;
27+
text-align: center;
28+
color: #fff;
29+
}
30+
a {
31+
color: #00afe4;
32+
}
33+
</style>
34+
</head>
35+
<body>
36+
<iframe id="ad" width="100%" height="100%" frameborder="0" scrolling="no" credentialless></iframe>
37+
<div id="adblock">
38+
<h1>Hi Adblock User!</h1>
39+
<p>Ads on this page may come and go depending on how many people are funding this project.<br>You can help fund this project on <a href="https://patreon.com/EmulatorJS">patreon</a></p>
40+
</div>
41+
</body>
42+
<script>
43+
if (window.credentialless === undefined) {
44+
document.getElementById("adblock").style.display = "block";
45+
} else {
46+
document.getElementById("ad").src = "https://ads.emulatorjs.org/";
47+
}
48+
</script>
49+
</html>

index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,7 @@ <h1>Settings</h1>
385385
window.EJS_core = core;
386386
window.EJS_pathtodata = cdn;
387387
window.EJS_startOnLoaded = true;
388-
window.EJS_AdUrl = "https://ads.emulatorjs.org/";
388+
window.EJS_AdUrl = "ads.html";
389389
if (core === "psp") {
390390
window.EJS_threads = true;
391391
}

0 commit comments

Comments
 (0)