Notes
Notes - notes.io |
<html>
<head>
<title>HTML5, CSS3 and JavaScript demo</title>
</head>
<body background-color: grey;>
<!DOCTYPE html>
<html>
<head>
<style>
body {
background-image: url(https://amando.se/wp-content/uploads/2017/01/b5dvtpt59f4-charlie-hang.jpg);
background-repeat: no-repeat;
background-size: cover;
background-attachment: fixed;
}
#vitlogga {
background-image: url(https://amando.se/wp-content/uploads/2017/01/16196227_240603919727076_621263439_o.png);
background-size: contain;
width: 100%;
height: 70%;
background-repeat: no-repeat;
margin-left: 20%;
}
h1{
font-size: 3em;
text-align: center;
color: white;
}
h3{
font-size: 2em;
text-align: center;
color: white;
}
#flexbox1 {
position: absolute;
width: auto;
height: 20%;
margin-top: 2%;
margin-left: 25%;
display: flex;
flex-direction: column;
}
#text_under_header {
width: 100%;
height: 30%;
}
#timer {
width: 100%;
min-width: 80em;
height: 5em;
position: absolute;
margin-left: 20%;
margin-right: 20%;
top: 80%;
display: flex;
}
#textovantimer {
width: 100%;
min-width: 80em;
height: 5em;
position: absolute;
margin-left: 20%;
margin-right: 20%;
top: 75%;
text-align: center;
flex-direction: row;
display: flex;
}
#timerbox1 {
height: 100%;
width: 7%;
background-color: #000080;
margin-right: 8%;
display: flex;
}
#timerbox2 {
height: 100%;
width: 7%;
background-color: #000080;
margin-right: 8%;
}
#timerbox3 {
height: 100%;
width: 7%;
background-color: #000080;
margin-right: 8%;
}
#timerbox4 {
height: 100%;
width: 7%;
background-color: #000080;
}
#demo {
height: 55%;
width: 100%;
color: white;
font-size: 400%;
position: relative;
bottom: 78%;
text-align: center;
}
#timmar {
height: 55%;
width: 100%;
color: white;
font-size: 400%;
position: relative;
bottom: 78%;
text-align: center;
}
#minuter2 {
height: 55%;
width: 100%;
color: white;
font-size: 400%;
position: relative;
bottom: 78%;
text-align: center;
}
#sekunder{
height: 55%;
width: 100%;
color: white;
font-size: 400%;
position: relative;
bottom: 78%;
text-align: center;
}
#textovantimer1 {
width: 7%;
height: 100%;
margin-right: 8%;
text-align: center;
}
#textovantimer2 {
width: 7%;
height: 100%;
margin-right: 8%;
text-align: center;
}
#textovantimer3 {
width: 7%;
height: 100%;
margin-right: 8%;
text-align: center;
}
#textovantimer4 {
width: 7%;
height: 100%;
margin-right: 8%;
text-align: center;
}
.dagar_timmar_minuter_sekunder{
color: white;
}
#Lanseras {
width: auto;
height: 10%;
position: absolute;
top: 65%;
left: 40%;
}
</style>
</head>
<body>
<div id="flexbox1">
<div id="vitlogga"></div>
<br><br><br>
<div id="text_under_header"><h1>Vi håller på att revolutionera online dating</h1></div>
</div>
<div id="Lanseras"><h3>Hemsidan lanseras om :</h3></div>
<div id="textovantimer">
<div id="textovantimer1"><p class="dagar_timmar_minuter_sekunder">DAGAR</p></div>
<div id="textovantimer2"><p class="dagar_timmar_minuter_sekunder">TIMMAR</p></div>
<div id="textovantimer3"><p class="dagar_timmar_minuter_sekunder">MINUTER</p></div>
<div id="textovantimer4"><p class="dagar_timmar_minuter_sekunder">SEKUNDER</p></div>
</div>
<div id="timer">
<div id="timerbox1"><p id="demo"></p></div>
<div id="timerbox2"><p id="timmar"></p></div>
<div id="timerbox3"><p id="minuter2"></p></div>
<div id="timerbox4"><p id="sekunder"></p></div>
</div>
<script>
// Set the date we're counting down to
var countDownDate = new Date("Jan 31, 2017 23:59:59").getTime();
// Update the count down every 1 second
var x = setInterval(function() {
// Get todays date and time
var now = new Date().getTime();
// Find the distance between now an the count down date
var distance = countDownDate - now;
// Time calculations for days, hours, minutes and seconds
var days = Math.floor(distance / (1000 * 60 * 60 * 24));
var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60));
var seconds = Math.floor((distance % (1000 * 60)) / 1000);
document.getElementById("demo").innerHTML = days;
document.getElementById("timmar").innerHTML = hours;
document.getElementById("minuter2").innerHTML = minutes;
document.getElementById("sekunder").innerHTML = seconds;
// If the count down is over, write some text
if (distance < 0) {
clearInterval(x);
document.getElementById("demo").innerHTML = "EXPIRED";
}
}, 1000);
</script>
</body>
</html>
<!-- End your code here -->
</body>
</html>
|
Notes.io is a web-based application for taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000 notes created and continuing...
With notes.io;
- * You can take a note from anywhere and any device with internet connection.
- * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
- * You can quickly share your contents without website, blog and e-mail.
- * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
- * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.
Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.
Easy: Notes.io doesn’t require installation. Just write and share note!
Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )
Free: Notes.io works for 12 years and has been free since the day it was started.
You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;
Email: [email protected]
Twitter: http://twitter.com/notesio
Instagram: http://instagram.com/notes.io
Facebook: http://facebook.com/notesio
Regards;
Notes.io Team