forked from ahodesuka/start-page
-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
executable file
·41 lines (40 loc) · 1.21 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>New Tab</title>
<meta name="viewport" content="width=device-width">
<link rel="stylesheet" href="css/style.css">
<script src="js/main.js" type="text/javascript"></script>
<script src="js/json.js" type="text/javascript"></script>
</head>
<body id="mdr">
<script type="text/javascript">
loadJsonFile("BGlist.json",function(BgListe){
var x = Math.floor(Math.random() * BgListe.length);
source = "file:///"+BgListe[x];
source = source.replace(/\\/g,'/')
var bod = document.getElementById('mdr');
bod.style.backgroundRepeat = "no-repeat";
bod.style.backgroundSize="contain";
bod.style.backgroundPosition="center center";
bod.style.backgroundImage="url('"+source+"')";
})
</script>
<div id="parent">
<div id="panel">
<div id="navigation">
<ul></ul>
</div>
<div id="wrapper">
<div id="sites"></div>
<!--<div id="search">
<form method="get">
<input type="text" autocomplete="on" />
</form>
</div>-->
</div>
</div>
</div>
</body>
</html>