1- <!DOCTYPE html>
2- < html lang ="en ">
3- < noscript >
4- < h1 a >
5- PLEASE TURN ON JAVASCRIPT! IT IS REQUIRED TO WORK ON THIS SITE
6- </ h1 a>
7- </ noscript >
8-
9- < head >
10- < title >
11- Eaglercraft | Ludos
12- </ title >
13- < meta name ="description " content ="Ludos is a site designed for playing online HTML games in your browser! ">
14- < meta name ="keywords " content ="ludos, html, browser, games, online, fun, 3kh0, mythicaltrashcan, 1_mythical, holymythicalman ">
15- < meta name ="author " content ="HolyMythicalMan ">
16- < meta name ="viewport " content ="width=device-width, initial-scale=1.0 ">
17- < link href ="style.css " rel ="stylesheet ">
18- < script src ="script.js "> </ script >
19- < link type ="image/png " rel ="shortcut icon " href ="../../favicons/ludos-favicon.png " />
20- < script async src ="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-1576606614118788 " crossorigin ="anonymous "> </ script >
21- </ head >
22-
23- < body >
24- < div >
25- < button class ="main " onclick ="returnToProjects() "> Return to projects</ button >
26- </ div >
27- < div class ="games ">
28- < div id ="games-container "> </ div >
29- </ div >
30- < table style ="margin-top: 50px; ">
31- < td class ="footer ">
32- < a > Made by</ a >
33- < a href ="https://github.com/HolyMythicalMan "> < strong > HolyMythicalMan</ strong > </ a >
34- < a > 2022-2025</ a >
35- </ td >
36- </ table >
37- < script >
38- const links = [ "assetsLink" , "villadeLink" ] ;
39- links . forEach ( link => {
40- if ( localStorage . getItem ( link ) === null ) {
41- localStorage . setItem ( link , location . protocol + '//' + location . host . replace ( 'www' , link . slice ( 0 , - 4 ) ) ) ;
42- }
43- } ) ;
44-
45- const gameIcons = [
46- { name : "Eaglercraft 1.12.2" , id : "eaglercraft1_12_2" , icon : "eaglerx.png" , onclick : "openGame('eaglercraft1_12_2')" } ,
47- { name : "Eaglercraft 1.12.2 (WASM)" , id : "eaglercraft1_12_2_wasm" , icon : "eaglerx.png" , onclick : "openGame('eaglercraft1_12_2_wasm')" } ,
48- { name : "EaglercraftX 1.8.8" , id : "eaglercraftx" , icon : "eaglerx.png" , onclick : "openGame('eaglercraftx')" } ,
49- { name : "EaglercraftX 1.8.8 (WASM)" , id : "eaglercraftx_wasm" , icon : "eaglerx.png" , onclick : "openGame('eaglercraftx_wasm')" } ,
50- { name : "EaglercraftX Shadow 1.8.8" , id : "eaglercraftx_shadow" , icon : "optifine.png" , onclick : "openGame('eaglercraftx_shadow')" } ,
51- { name : "Eaglercraft 1.6.4" , id : "eaglercraft1_6_4" , icon : "eagler.png" , onclick : "openGame('eaglercraft1_6_4')" } ,
52- { name : "Eaglercraft 1.5.2" , id : "eaglercraft1_5_2" , icon : "eagler.png" , onclick : "openGame('eaglercraft1_5_2')" } ,
53- { name : "Eaglercraft Beta 1.3_01" , id : "eaglercraftb1_3" , icon : "beta-grass.png" , onclick : "openGame('eaglercraftb1_3')" } ,
54- { name : "Eaglercraft Beta 1.7.3" , id : "eaglercraftb1_7_3" , icon : "beta-grass.png" , onclick : "openGame('eaglercraftb1_7_3')" } ,
55- { name : "Eaglercraft Alpha 1.2.6" , id : "eaglercrafta1_2_6" , icon : "beta-grass.png" , onclick : "openGame('eaglercrafta1_2_6')" } ,
56- ] ;
57-
58- const games = {
59- eaglercraft1_12_2 : "1.12.2" ,
60- eaglercraft1_12_2_wasm : "1.12.2-wasm" ,
61- eaglercraftx : "1.8.8" ,
62- eaglercraftx_wasm : "1.8.8-wasm" ,
63- eaglercraftx_shadow : "s1.8.8" ,
64- eaglercraft1_6_4 : "1.6.4" ,
65- eaglercraft1_5_2 : "1.5.2" ,
66- eaglercraftb1_3 : "b1.3_01" ,
67- eaglercraftb1_7_3 : "b1.7.3" ,
68- eaglercrafta1_2_6 : "a1.2.6"
69- } ;
70-
71- const gamesHtml = gameIcons . map ( game => {
72- return `
73- <button class="${ game . id . toLowerCase ( ) } " onclick="${ game . onclick } ">
74- <img draggable="false" src="https://raw.githubusercontent.com/HolyMythicalMan/Ludos-Assets/main/game_icons/${ game . icon } " width="100" height="100">
75- <br>${ game . name }
76- </button>
77- ` ;
78- } ) . join ( "" ) ;
79-
80- document . getElementById ( "games-container" ) . innerHTML = gamesHtml ;
81-
82- function openGame ( gameName ) {
83- const gamePath = games [ gameName ] ;
84- if ( gamePath ) {
85- window . location . href = localStorage . getItem ( "villadeLink" ) + "/" + gamePath + "/" ;
86- }
87- else {
88- alert ( 'There was an issue attempting to open the game. (Game not found)' ) ;
89- }
90- }
91- </ script >
92- </ body >
93-
1+ <!DOCTYPE html>
2+ < html lang ="en ">
3+ < noscript >
4+ < h1 a >
5+ PLEASE TURN ON JAVASCRIPT! IT IS REQUIRED TO WORK ON THIS SITE
6+ </ h1 a>
7+ </ noscript >
8+
9+ < head >
10+ < title >
11+ Eaglercraft | Ludos
12+ </ title >
13+ < meta name ="description " content ="Ludos is a site designed for playing online HTML games in your browser! ">
14+ < meta name ="keywords " content ="ludos, html, browser, games, online, fun, 3kh0, mythicaltrashcan, 1_mythical, holymythicalman ">
15+ < meta name ="author " content ="HolyMythicalMan ">
16+ < meta name ="viewport " content ="width=device-width, initial-scale=1.0 ">
17+ < link href ="style.css " rel ="stylesheet ">
18+ < script src ="script.js "> </ script >
19+ < link type ="image/png " rel ="shortcut icon " href ="../../favicons/ludos-favicon.png " />
20+ < script async src ="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-1576606614118788 " crossorigin ="anonymous "> </ script >
21+ </ head >
22+
23+ < body >
24+ < div >
25+ < button class ="main " onclick ="returnToGames() "> Return to projects</ button >
26+ </ div >
27+ < div class ="games ">
28+ < div id ="games-container "> </ div >
29+ </ div >
30+ < table style ="margin-top: 50px; ">
31+ < td class ="footer ">
32+ < a href ="https://github.com/HolyMythicalMan/Ludos "> < strong > Ludos</ strong > </ a >
33+ < a > 2022-2025</ a >
34+ </ td >
35+ </ table >
36+ < script >
37+ const links = [ "assetsLink" , "villadeLink" ] ;
38+ links . forEach ( link => {
39+ if ( localStorage . getItem ( link ) === null ) {
40+ localStorage . setItem ( link , location . protocol + '//' + location . host . replace ( 'www' , link . slice ( 0 , - 4 ) ) ) ;
41+ }
42+ } ) ;
43+
44+ const gameIcons = [
45+ { name : "Eaglercraft 1.12.2" , id : "eaglercraft1_12_2" , icon : "eaglerx.png" , onclick : "openGame('eaglercraft1_12_2')" } ,
46+ { name : "Eaglercraft 1.12.2 (WASM)" , id : "eaglercraft1_12_2_wasm" , icon : "eaglerx.png" , onclick : "openGame('eaglercraft1_12_2_wasm')" } ,
47+ { name : "EaglercraftX 1.8.8" , id : "eaglercraftx" , icon : "eaglerx.png" , onclick : "openGame('eaglercraftx')" } ,
48+ { name : "EaglercraftX 1.8.8 (WASM)" , id : "eaglercraftx_wasm" , icon : "eaglerx.png" , onclick : "openGame('eaglercraftx_wasm')" } ,
49+ { name : "EaglercraftX Shadow 1.8.8" , id : "eaglercraftx_shadow" , icon : "optifine.png" , onclick : "openGame('eaglercraftx_shadow')" } ,
50+ { name : "Eaglercraft 1.6.4" , id : "eaglercraft1_6_4" , icon : "eagler.png" , onclick : "openGame('eaglercraft1_6_4')" } ,
51+ { name : "Eaglercraft 1.5.2" , id : "eaglercraft1_5_2" , icon : "eagler.png" , onclick : "openGame('eaglercraft1_5_2')" } ,
52+ { name : "Eaglercraft Beta 1.3_01" , id : "eaglercraftb1_3" , icon : "beta-grass.png" , onclick : "openGame('eaglercraftb1_3')" } ,
53+ { name : "Eaglercraft Beta 1.7.3" , id : "eaglercraftb1_7_3" , icon : "beta-grass.png" , onclick : "openGame('eaglercraftb1_7_3')" } ,
54+ { name : "Eaglercraft Alpha 1.2.6" , id : "eaglercrafta1_2_6" , icon : "beta-grass.png" , onclick : "openGame('eaglercrafta1_2_6')" } ,
55+ ] ;
56+
57+ const games = {
58+ eaglercraft1_12_2 : "1.12.2" ,
59+ eaglercraft1_12_2_wasm : "1.12.2-wasm" ,
60+ eaglercraftx : "1.8.8" ,
61+ eaglercraftx_wasm : "1.8.8-wasm" ,
62+ eaglercraftx_shadow : "s1.8.8" ,
63+ eaglercraft1_6_4 : "1.6.4" ,
64+ eaglercraft1_5_2 : "1.5.2" ,
65+ eaglercraftb1_3 : "b1.3_01" ,
66+ eaglercraftb1_7_3 : "b1.7.3" ,
67+ eaglercrafta1_2_6 : "a1.2.6"
68+ } ;
69+
70+ const gamesHtml = gameIcons . map ( game => {
71+ return `
72+ <button class="${ game . id . toLowerCase ( ) } " onclick="${ game . onclick } ">
73+ <img draggable="false" src="https://raw.githubusercontent.com/HolyMythicalMan/Ludos-Assets/main/game_icons/${ game . icon } " width="100" height="100">
74+ <br>${ game . name }
75+ </button>
76+ ` ;
77+ } ) . join ( "" ) ;
78+
79+ document . getElementById ( "games-container" ) . innerHTML = gamesHtml ;
80+
81+ function openGame ( gameName ) {
82+ const gamePath = games [ gameName ] ;
83+ if ( gamePath ) {
84+ window . location . href = localStorage . getItem ( "villadeLink" ) + "/" + gamePath + "/" ;
85+ }
86+ else {
87+ alert ( 'There was an issue attempting to open the game. (Game not found)' ) ;
88+ }
89+ }
90+ </ script >
91+ </ body >
92+
9493</ html >
0 commit comments