Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update index.html #30

Open
wants to merge 33 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
f94790b
[imad-console] Updates ui/index.html
mdey0108 Feb 12, 2017
e019526
[imad-console] Updates ui/index.html
mdey0108 Feb 13, 2017
a28cce5
[imad-console] Updates ui/index.html
mdey0108 Feb 20, 2017
96c2da6
[imad-console] Updates ui/index.html
mdey0108 Feb 20, 2017
b7bf89f
[imad-console] Updates ui/index.html
mdey0108 Feb 20, 2017
6ff2b0d
[imad-console] Updates ui/index.html
mdey0108 Mar 23, 2017
3e5a3be
[imad-console] Updates ui/index.html
mdey0108 Mar 23, 2017
4050684
[imad-console] Updates ui/index.html
mdey0108 Mar 23, 2017
6436e3b
[imad-console] Updates ui/index.html
mdey0108 Mar 23, 2017
6855c25
[imad-console] Updates ui/index.html
mdey0108 Mar 23, 2017
09e6355
[imad-console] Updates ui/index.html
mdey0108 Mar 23, 2017
81dfd64
[imad-console] Updates ui/index.html
mdey0108 Mar 23, 2017
6d1f77c
[imad-console] Updates ui/index.html
mdey0108 Mar 23, 2017
891d246
[imad-console] Updates ui/index.html
mdey0108 Mar 23, 2017
6265024
[imad-console] Updates ui/index.html
mdey0108 Apr 2, 2017
5eb7773
[imad-console] Updates ui/index.html
mdey0108 Apr 5, 2017
b05a58b
[imad-console] Updates ui/index.html
mdey0108 May 25, 2017
ec51ef5
[imad-console] Updates ui/index.html
mdey0108 May 29, 2017
fa5cd6c
[imad-console] Updates ui/index.html
mdey0108 Jun 1, 2017
5c24058
[imad-console] Updates ui/index.html
mdey0108 Jul 16, 2017
e982735
[imad-console] Updates ui/main.js
mdey0108 Jul 16, 2017
3098d17
[imad-console] Updates server.js
mdey0108 Jul 16, 2017
c85959f
[imad-console] Updates ui/style.css
mdey0108 Jul 16, 2017
3885539
[imad-console] Updates ui/index.html
mdey0108 Jul 16, 2017
8dc881e
[imad-console] Updates server.js
mdey0108 Jul 16, 2017
2b0e846
[imad-console] Updates ui/index.html
mdey0108 Jul 16, 2017
ee6d615
[imad-console] Updates server.js
mdey0108 Jul 16, 2017
1e2dd16
[imad-console] Updates ui/style.css
mdey0108 Jul 16, 2017
ec23d77
[imad-console] Updates server.js
mdey0108 Jul 16, 2017
bfe06b7
[imad-console] Updates server.js
mdey0108 Jul 16, 2017
b866d76
[imad-console] Updates ui/index.html
mdey0108 Jul 16, 2017
89f5029
[imad-console] Updates ui/style.css
mdey0108 Jul 16, 2017
dc9f831
Update index.html
mdey0108 Oct 2, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
77 changes: 55 additions & 22 deletions server.js
Original file line number Diff line number Diff line change
@@ -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);
130 changes: 115 additions & 15 deletions ui/index.html
Original file line number Diff line number Diff line change
@@ -1,17 +1,117 @@
<!doctype html>
<!DOCTYPE HTML>
<!--
Identity by HTML5 UP
html5up.net | @ajlkn
Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
-->
<html>
<head>
<link href="/ui/style.css" rel="stylesheet" />
</head>
<body>
<div class="center">
<img src="/ui/madi.png" class="img-medium"/>
</div>
<br>
<div class="center text-big bold">
Hi! I am your webapp.
</div>
<script type="text/javascript" src="/ui/main.js">
</script>
</body>
<head>
<title>Portfolio:-Mahesh Kumar Dey</title>
<link rel = "icon" type = "image/png" href = "images/index.jpg">
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" />
<link rel="stylesheet" href="assets/css/main.css" />
<noscript><link rel="stylesheet" href="assets/css/noscript.css" /></noscript>
</head>
<body class="is-preload">

<!-- Wrapper -->
<div id="wrapper">

<!-- Main -->
<section id="main">
<header>

<span class="avatar"><img src="images/index.jpg" height="150" width="150" alt="" /></span>
<h1><b>Mahesh Kumar Dey</b></h1>
<p>Computer Science Engineer</p>
</header>

<hr />

<footer>
<ul class="icons">
<li><a href="https://twitter.com/bangali__bhai" target=" " class="icon brands fa-twitter">Twitter</a></li>
<li><a href="https://www.instagram.com/bangali__bhai/" target=" " class="icon brands fa-instagram">Instagram</a></li>
<li><a href="https://www.facebook.com/bangalibhai0" target=" " class="icon brands fa-facebook-f">Facebook</a></li>
</ul>
</footer>


<h2>Extra Stuff!</h2>
<form method="post" action="whatsapp.html" target=" ">
<div class="fields">
<div class="field">
<input type="text" name="name" id="name" placeholder="Name" />
</div>
<div class="field">
<input type="text" name="number" id="number" placeholder="Mobile" />
</div>

<div class="field">
<input type="email" name="email" id="email" placeholder="Email" />
</div>
<div class="field">
<select name="department" id="department">
<option value="">Select your option</option>
<option value="tech">Tech </option>
<option value="null">Null</option>
<option value="dev">Dev</option>
<option value="sales">Sales</option>
</select>
</div>
<div class="field">
<textarea name="message" id="message" placeholder="Message" rows="4"></textarea>
</div>
<div class="field">
<input type="checkbox" id="human" name="human" /><label for="human">I'm a human</label>
</div>

<div class="field">
<input type="submit" id="submit" name="submit" />
</div>
<!-- <div class="field">
<label>But are you a robot?</label>
<input type="radio" id="robot_yes" name="robot" /><label for="robot_yes">Yes</label>
<input type="radio" id="robot_no" name="robot" /><label for="robot_no">No</label>
</div> -->
</div>
</form>
<hr>
<ul class="actions special">
<li><a href="https://github.com/mdey0108" target=" " class="button">GITHUB</a></li>
</ul>
<hr>
<ul class="actions special">
<li><a href="https://wa.me/919174451345" target=" " class="button">Whatsapp Me</a></li>
</ul>
<hr>

<!-- <footer>
<ul class="icons">
<li><a href="https://twitter.com/bangali__bhai" class="icon brands fa-twitter">Twitter</a></li>
<li><a href="https://www.instagram.com/bangali__bhai/" class="icon brands fa-instagram">Instagram</a></li>
<li><a href="https://www.facebook.com/bangalibhai0" class="icon brands fa-facebook-f">Facebook</a></li>
</ul>
</footer> -->
</section>

<!-- Footer -->
<footer id="footer">
<ul class="copyright">
<li>&copy; Mahesh Kumar Dey</li><li>Design: <a href="#" target=" " >Mahi</a></li>
</ul>
</footer>

</div>

<!-- Scripts -->
<script>
if ('addEventListener' in window) {
window.addEventListener('load', function() { document.body.className = document.body.className.replace(/\bis-preload\b/, ''); });
document.body.className += (navigator.userAgent.match(/(MSIE|rv:11\.0)/) ? ' is-ie' : '');
}
</script>

</body>
</html>
1 change: 0 additions & 1 deletion ui/main.js
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@
console.log('Loaded!');
58 changes: 43 additions & 15 deletions ui/style.css
Original file line number Diff line number Diff line change
@@ -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;
}