diff --git a/server.js b/server.js index 3d5cece3ab..08b6145410 100644 --- a/server.js +++ b/server.js @@ -1,24 +1,57 @@ -var express = require('express'); -var morgan = require('morgan'); -var path = require('path'); +window.onload = function(){ +alert('Hi, You Guys are awesome! Already 1400 likes?!! WOW Thank you soooooo much!!'); +}; -var app = express(); -app.use(morgan('combined')); +function printTime() { + var d = new Date(); + var hours = d.getHours(); + var mins = d.getMinutes(); + var secs = d.getSeconds(); + var day = d.getDay(); + var date = d.getDate(); + var month = d.getMonth(); + var year = d.getFullYear(); + + switch (day){ + + case 0: + day = "Sunday"; + break; + case 1: + day = "Monday"; + break; + case 2: + day = "Tuesday"; + break; + case 3: + day = "Wednesday"; + break; + case 4: + day = "Thursday"; + break; + case 5: + day = "Friday"; + break; + case 6: + day = "Saturday"; + break; + } + + + if(hours<10){ + hours = "0" + hours; + } + if(mins<10){ + + mins = "0" + mins; + } + if(secs<10){ -app.get('/', function (req, res) { - res.sendFile(path.join(__dirname, 'ui', 'index.html')); -}); - -app.get('/ui/style.css', function (req, res) { - res.sendFile(path.join(__dirname, 'ui', 'style.css')); -}); - -app.get('/ui/madi.png', function (req, res) { - res.sendFile(path.join(__dirname, 'ui', 'madi.png')); -}); - - -var port = 8080; // Use 8080 for local development because you might already have apache running on 80 -app.listen(8080, function () { - console.log(`IMAD course app listening on port ${port}!`); -}); + secs = "0" + secs; + } + + month = month + 1; document.getElementById("test").innerHTML = hours+":"+mins+":"+secs; +document.getElementById("ttt").innerHTML = day + ", " + date + "." + month + "." + year; +} +setTimeout(printTime, 1); +setInterval(printTime, 1000); diff --git a/ui/index.html b/ui/index.html index 5a28644db4..290d8b0560 100644 --- a/ui/index.html +++ b/ui/index.html @@ -1,17 +1,117 @@ - + + - - - - -
- -
-
-
- Hi! I am your webapp. -
- - + + Portfolio:-Mahesh Kumar Dey + + + + + + + + + +
+ + +
+
+ + +

Mahesh Kumar Dey

+

Computer Science Engineer

+
+ +
+ + + + +

Extra Stuff!

+
+
+
+ +
+
+ +
+ +
+ +
+
+ +
+
+ +
+
+ +
+ +
+ +
+ +
+
+
+ +
+ +
+ + +
+ + + + +
+ + + + + diff --git a/ui/main.js b/ui/main.js index 4cf7ed58de..e69de29bb2 100644 --- a/ui/main.js +++ b/ui/main.js @@ -1 +0,0 @@ -console.log('Loaded!'); diff --git a/ui/style.css b/ui/style.css index 71a5f6acc1..438cad9fa9 100644 --- a/ui/style.css +++ b/ui/style.css @@ -1,22 +1,50 @@ -body { - font-family: sans-serif; - background-color: lightgrey; - margin-top: 75px; +#body{ + background-color:grey; } -.center { - text-align: center; +#test{ + text-align:center; + font-family:serif; + color:white; + letter-spacing:2px; + font-size:70px; + text-shadow:5px 3px 25px white; + padding:5px; + border:2px lightskyblue; + border-radius:30px; } -.text-big { - font-size: 300%; -} -.bold { - font-weight: bold; +#text{ + text-align:center; + color:white; + letter-spacing:3px; } - -.img-medium { - height: 200px; +#text2{ + margin-top:10%; + text-align:center; + font-family:Arial; + color:white; + letter-spacing:3px; + word-spacing:4px; + text-shadow:5px 3px 20px lightskyblue; + } - +#b1{ + text-align:center; + font-weight:bold; +} +#ttt{ + color:white; + text-align:center; + padding:5px; + border:2px lightskyblue; + font-family:serif; + border-radius:30px; +} +#all{ + padding:5px; + border:5px solid lightskyblue; + font-family:serif; + border-radius:30px; +} \ No newline at end of file