Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE HTML>
- <html>
- <head>
- <link href='https://fonts.googleapis.com/css?family=Roboto:400,100' rel='stylesheet' type='text/css'>
- <link href="newpage.css" rel="stylesheet">
- <title>sup nerd </title>
- </head>
- <body>
- <!--
- <a href=""><p class="button"></p></a>
- -->
- <h1>It's <span id="hour">???</span>:<span id="minute">???</span>:<span id="second">???</span></h1>
- <h2><span id="weekDay">???</span>, <span id="month">???</span> <span id="monthDay">???</span></h2>
- <br>
- <br>
- <br>
- <!-- google search bar -->
- <form method="get" action="https://www.google.com/search">
- <input type="text" name="q" size="31" value="" id="googlebar" autocomplete="off">
- </form>
- <br>
- <a href="https://mail.google.com/"><p class="button">gmail</p></a>
- <a href="https://drive.google.com/drive/u/0/recent "><p class="button">drive</p></a>
- <a href="https://www.google.com/maps"><p class="button">maps</p></a>
- <a href="https://translate.google.com/"><p class="button">translate</p></a>
- <br>
- <a href="https://www.facebook.com/?_rdr=p"><p class="button">facebook</p></a>
- <a href="http://reddit.com"><p class="button">reddit</p></a>
- <a href="https://www.tumblr.com/dashboard"><p class="button">tumblr</p></a>
- <a href="http://boards.4chan.org/wg/catalog"><p class="button">/wg/</p></a>
- <br>
- <a href="https://courseworks.columbia.edu/welcome/"><p class="button">courseworks</p></a>
- <a href="https://docs.google.com/document/d/17atqL3vV1lwy5dVU53o61DpjsOfKQZCC40weG338Y5w/edit"><p class="button">fiction journal</p></a>
- <a href="http://mylabs.px.pearsoned.com/Pegasus/frmLogin.aspx?s=3"><p class="button">spanish</p></a>
- <a href="https://ssol.columbia.edu/"><p class="button">ssol</p></a>
- <!--SCRIPT -->
- <script>
- function clock() {
- var date = new Date()
- var weekDay = date.getDay();
- var month = date.getMonth()+1
- var monthDay = date.getDate()
- var hour = date.getHours()
- var minute = date.getMinutes()
- var second = date.getSeconds()
- var pm
- var weekDays = [
- "Sunday",
- "Monday",
- "Tuesday",
- "Wednesday",
- "Thursday",
- "Friday",
- "Saturday",
- ]
- var months = [
- "January",
- "February",
- "March",
- "April",
- "May",
- "June",
- "July",
- "August",
- "September",
- "October",
- "November",
- "December",
- ]
- function makeTimeStampReadable() {
- //hour:minute:second
- if (hour > 12) {
- hour -= 12
- pm = "PM"
- } else {
- pm = "AM"
- }
- if (minute < 10) {
- minute = "0" + minute
- }
- if (second < 10) {
- second = "0" + second
- }
- second = second + " " + pm
- weekDay = weekDays[weekDay]
- month = months[month - 1]
- }
- function updateTime() {
- document.getElementById("hour").innerHTML = hour
- document.getElementById("minute").innerHTML = minute
- document.getElementById("second").innerHTML = second
- document.getElementById("weekDay").innerHTML = weekDay
- document.getElementById("month").innerHTML = month;
- document.getElementById("monthDay").innerHTML = monthDay;
- }
- makeTimeStampReadable()
- updateTime()
- }
- setInterval(function(){ clock(); }, 1000);
- </script>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement