(for now) add ads (only to the demo page) to be able to pay for project utilities

This commit is contained in:
Ethan O'Brien 2022-11-25 09:23:33 -06:00
parent 53e6dbc909
commit 614f5cb55e
3 changed files with 26 additions and 0 deletions

View file

@ -26,6 +26,26 @@ Self-hosted **Javascript** emulation for various system.
<br>
### Issues
*If something doesn't work, please consider opening an* ***[Issue]*** <br>
*with as many details as possible, as well as the console log.*
<br>
### Ads
*This project has no ads.* <br>
*Although, the demo page currently has an ad to help fund this project.* <br>
*Ads on the demo page may come and go depending on how many people are* <br>
*funding this project.* <br>
*You can help fund this project on* ***[patreon]***
<br>
### Issues
*If something doesn't work, please consider opening an* ***[Issue]*** <br>
@ -124,6 +144,7 @@ EJS_oldCores = true;
[License]: LICENSE
[Issue]: https://github.com/ethanaobrien/emulatorjs/issues
[patreon]: https://patreon.com/EmulatorJS
<!-- 🎮 🎮 🎮 🎮 🎮 🎮 🎮 🎮 🎮 Extensions 🎮 🎮 🎮 🎮 🎮 🎮 🎮 🎮 🎮 --->

1
ads.txt Normal file
View file

@ -0,0 +1 @@
google.com, pub-8832864985153925, DIRECT, f08c47fec0942fa0

View file

@ -169,6 +169,10 @@
window.EJS_core = core
window.EJS_pathtodata = "data/"
window.EJS_startOnLoaded = true;
if (window.location.hostname === "demo.emulatorjs.org") {
window.EJS_AdUrl = "https://ads.emulatorjs.org/";
}
script.src = "data/loader.js"