Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
<!DOCTYPE html>
<html>
<head>
<script>
function startTime() {
var today = new Date();
var h = today.getHours();
var m = today.getMinutes();
var s = today.getSeconds();
m = checkTime(m);
s = checkTime(s);
document.getElementById('txt').innerHTML =
h + ":" + m + ":" + s;
var t = setTimeout(startTime, 500);
}
function checkTime(i) {
if (i < 10) {i = "0" + i}; // add zero in front of numbers < 10
return i;
}
</script>
</head>
<body onload="startTime()">
<div id="txt"></div>
</body>
</html>
For windows 8+:
If you open the folder where the file is in, go to the top bar in windows explorer to the tab "view"
At the right side, you will see 3 checkboxes, one of which will say : "File name extensions", check this one.
You will now see the 'complete' name of all files, and see the file is actually names "index.html.txt", remove the '.txt' ( it will show an error; something like : you are changing the file type, are you sure? -- just click yes )
with :
Make sure you have an image named 'background.jpg in the same folder as the 'index.html' ( or change the name in 'url()' accordingly if you want to use another name/filetype.
https://gyazo.com/78995927e0577cc1a8a664306539e0e6
Again any way to prevent this? Its not my intention to distort the image :)
use the code between : [code] >> your code here << [/code], for readability :D
#background {
background-image:url("background.jpg");
width:100%;
height:100%;
position:fixed;
top:0;
left:0;
background-size:cover;
filter:blur(5px);
-webkit-filter:blur(5px);
}
to center the image, and make it ''full screen''
" background-repeat: none" -- to see if it's actually CSS behaviour or not.... if you will see black bars after you have implemented this rule, you know it's because the image was repeated ( and thus not properly scaled to fit the screen ) -- if it still remains the same, there is some other issue....
How would you adjust the time in the clock? Say if you want to be 11 hours faster/slower to show a different time zone?
It's in sync with your local system time. There is currently no option to have it set to a different timezone.
A solution would be to change your local system time ( windows timezone )....
But I'm not sure if that is what you are looking for....