3DSTownSquare/docs/index.html
2023-01-10 01:14:12 -05:00

99 lines
3.4 KiB
HTML
Executable file

<html>
<head>
<!-- meta http-equiv="refresh" content="0;URL='http://3dstownsquare.com/3dsts/3ds'" -->
<script>
</script>
<script src="polyfill.js"></script>
<script>
function formatAMPM(date) {
var hours = date.getHours();
var minutes = date.getMinutes();
var ampm = hours >= 12 ? 'PM' : 'AM';
hours = hours % 12;
hours = hours ? hours : 12; // the hour '0' should be '12'
minutes = minutes < 10 ? '0'+minutes : minutes;
var strTime = hours + ':' + minutes + ' ' + ampm;
return strTime;
}
window.isDif = false;
function load(){
// alert(window.navigator.userAgent);
if(window.navigator.userAgent.includes("Nintendo DSi") == true){
// console.log("isDSi");
document.body.style.width = "240px";
document.getElementById("viewport").content = "width=240";
document.getElementById("header").width = "240";
} else {
// console.log("notDSi");
document.body.style.width = "320px";
document.getElementById("viewport").content = "width=320";
document.getElementById("header").width = "320";
}
if(window.isDif){
document.getElementById("nodiff").style.display = "none";
ddate = new Date(1652491260000);
dtime = ddate.getFullYear() + "/" + (ddate.getMonth() + 1) + "/" + ddate.getDate() + ", at " + formatAMPM(ddate);
document.getElementById("dtend").innerText = dtime;
document.getElementById("diff").style.display = "block";
} else {
document.getElementById("nodiff").style.display = "block";
document.getElementById("diff").style.display = "none";
}
fromTime = formatAMPM(new Date(46800000));
toTime = formatAMPM(new Date(104400000));
from.innerText = fromTime;
to.innerText = toTime;
}
</script>
<style>
body {
margin: 0px;
background-color: #fffff;
font-size: 12px;
}
#contenttop {
background-color: #f0f0f0;
height: 208px;
}
#contentbot {
background-color: #f0f0f0;
height: 222px;
}
</style>
<title>RIP, 3DSTownSquare</title>
<meta name="viewport" id="viewport" content="width=320">
<meta name="description" content="Rest in Peace, 3DSTownSquare, it only lasted for 8 months.">
</head>
<body style="width: 320px;" onload="load()">
<div id="contenttop">
<img id="header" width="320" src="header3ds.png" alt="Oops! Our header could not be displayed!" />
<center>RIP 3DSTownSquare</center>
<center><font color="grey">What is this?</font></center>
<center>3DSTownSquare is no longer being maintained. The project itself is a whole mess. It never really went anywhere. I hope you understand, but something overcame this project</center>
<center><a href="javascript:alert('I just can\'t deal with these charges to my card. As of 2023, I\'ve been minimizing that as much as possible, and I've been trying to stop spending on random things. My domain may expire soon as well, but I will still pay for it.')">Click me for more information</a></center>
<center><font color="grey">3DSTownSquare is down 1/10/23<br />
<a href="countdown.html" target="_blank">Check out the countdown!</a>
For now, you can play <a href='pong.html'>pong!</a></font></center>
<br/>
<marquee></marquee>
</div>
<div id="contentbot">
<center>
<div id="diff" style="color: #ff0000;">
There is a severe difficulty. 3DSTownSquare may not be able to come back.
</div>
<div id="nodiff" style="color: #00ff00;">
No difficulties at the moment, everything is fine.
</div>
</center>
</div>
</body>
</html>