diff options
Diffstat (limited to 'startpage/index.html')
-rw-r--r-- | startpage/index.html | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/startpage/index.html b/startpage/index.html index 0cd1492a..14dbdbcf 100644 --- a/startpage/index.html +++ b/startpage/index.html @@ -6,6 +6,12 @@ <title>Welcome, Vidhu Kant!</title> </head> <body> + <style id="randomBG"></style> + <script> + var images = ['bg1.png', 'bg2.png', 'bg3.png', 'bg4.jpg', 'bg5.jpg', 'bg6.png']; + var BG = "backgrounds/" + images[Math.floor(Math.random() * images.length)] + document.getElementById("randomBG").innerHTML = "body { background-image: url('" + BG + "'); }"; + </script> <div class="content"> <h1 class="center" id="title"> Welcome, Vidhu Kant! |