3DSTownSquare/docs/index.html
2022-05-10 07:58:43 -05:00

99 lines
4.1 KiB
HTML

<html>
<head>
<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;
}
function load(){
window.isDif = true;
// 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){
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";
}
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>3DSTownSquare is launching soon!</title>
<meta name="viewport" id="viewport" content="width=320">
<meta name="description" content="Get ready for 5/24/2022">
</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>Welcome to 3DSTownSquare</center>
<center><font color="grey">What is this?</font></center>
<center>3DSTownSquare is about to launch soon!</center>
<center><a href="javascript:alert('I\'m getting an actual life and a job soon so I can pay for server expenses for the project. I am sure that I will get the job so that you don\'t have to wait any longer.\n\nHxOr1337, signing out')">Click me for more information</a></center>
<center><font color="grey">The launch date is June 3rd 2022 (June 2nd in the USA) at the most, so keep looking out for the release.<br />
Please note that this release date may or may not get delayed. We will just have to see. (Delayed 3 times, originally May 20th, then May 24th, now June 3rd)<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>
Most likely the domain will be <a href='http://3dstownsquare.com' target='_blank'>http://3dstownsquare.com</a>. This is to make sure people trust the domain instead of cheaping out on a TK domain.
<br/>On day of release, this page will redirect to <b>3dstownsquare.com</b> and no longer be a notice
<br />
<br />
A little demo has been launched from <span id="from">9:00 AM CST</span> to <span id="to">11:00 PM CST</span> <b>your timezone</b> on either <a href="http://3dstownsquare.loca.lt/">http://3dstownsquare.loca.lt/</a> or <a href="http://3dsts.loca.lt/">http://3dsts.loca.lt/</a>.
<br />
<a href="javascript:alert('You have to allow access from another device that is on the same network. There is nothing I can do about this, unfortunately.\n\nEither that or the site is down for maintenance!');void(0);">Help, I can't access from my DSi/3DS!</a>
<br />
<br />
<div id="diff" style="color: #ff0000; display: none;">
Our WiFi is experiencing difficulties and you should wait until <span id="dtend">at an unknown time</span> when it goes back up.
<br />
Thank you for waiting!
</div>
</center>
</div>
</body>
</html>