Where people come together to learn, code, and play. Custom-built HTTP server, site generator, and website from scratch using no external libraries. Goal is to be as minimalistic and fun as possible. http://projectdivar.com
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
SigPlace/sitefiles/arcade.html

35 lines
923 B

$SITENAME
-SigPlace
===
<div class="gamenav">
<div class="game">DDR</div>
<div class="game">ITG</div>
<div class="game">Sound Voltex</div>
<div class="game">Pop'n Music</div>
<div class="game">Love Live</div>
</div>
<div id="arcade_content">
</div>
<br/><br/>
<script type="text/javascript">
function grabData(field,location){
fetch(location).then((data)=>data.text())
.then((data)=>{
var c = document.getElementById(field)
var split = data.split("\n")
c.innerHTML=split
})
}
function recentPlays(){
var content = document.getElementById("arcade_content")
grabData("records","/RECORDS")
grabData("plays","/PLAYS")
content.innerHTML=`
<h2>Recent Records</h2>
<div id="records"></div>
<h2>Recent Plays</h2>
<div id="plays"></div>`
}
recentPlays()
</script>