forked from shivhek25/shivhek25.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
203 lines (202 loc) · 7.61 KB
/
index.html
File metadata and controls
203 lines (202 loc) · 7.61 KB
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Portfolio Website</title>
<link href="assets/css/bootstrap.min.css" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<style>
body{
background-image: -webkit-linear-gradient(left, #567AEB, #49EE82);
}
.icon_group{
padding: 5px 0;
padding-left: 850px;
}
.icons{
padding: 2px;
font-size: 1.5em;
margin: 5px 1px;
}
.directioner{
height:70px;
padding: 0 0;
margin-top: 20px;
}
.text1{
color: #CA141F;
font-family: Pacifico;
}
.content{
width: 900px;
margin-top: 150px;
border: 1.2px solid black;
padding: 150px;
}
.footer{
margin-top: 20px;
height: 110px;
background-color: purple;
}
#footer_text{
float:right;
font-size: 18px;
padding-right: 15px;
padding-top:5px;
color: yellow;
}
.gototop{
position: fixed;
bottom: 105px;
right: 10px;
padding-left: 1100px;
font-size: 20px;
color: white;
}
</style>
</head>
<body onload="DateAndTime()"><!--onload="window.print()"-->
<a href="#top"><div class="gototop"> Go to Top</div></a>
<script>
try{
function mouseontop(x,z){
x.style.color="red";
x.innerHTML="Hello, " + z +" !";
}
function mouseofftop(y){
y.style.color="black";
}
function inst_check(p)
{
if(p=="")
{
alert("Please select your institution");
document.contact.inst_name.focus();
}
else if(p=="Other"){
prompt("Please enter the name of your institution");
}
else if(p == "NIT DGP")
alert("Hey, we are in the same college!");
else if(p == "SRM Chennai")
{
if(s=="Mahek")
alert("Hi, Mahek!");
else
prompt("Hey, do you know Mahek ?");
}
else
alert("Nice to meet you ! :)");
}
function dialer_check()
{
var a = document.contact.pnum.value;
if(a=="")
{
alert("Phone number is mandatory");
document.contact.pnum.focus();
return false;
}
else if(isNaN(a) || a.length != 10 )
{
alert("Entered value is not a phone number");
document.contact.pnum.focus();
return false;
}
else {
if(confirm("Phone number validated. Do you wish to call up Shivam ?"))
window.location.href = "tel:9093244444";
}
}
function DateAndTime(){
var d = new Date();
d= d.toLocaleString();
document.getElementById("dateandtime").innerHTML = d;
setInterval(DateAndTime,1000);
}
var s = prompt("Enter your name :");
document.write('<marquee onmouseover="mouseontop(this,s);stop()" onmouseout="mouseofftop(this),start()">' +"Welcome to my website !" +'</marquee>');
}catch(obj){
document.write(obj.message);
}
</script>
<div class="icon_group" id="top">
<a href="tel:9093244444"><span class="icons glyphicon glyphicon-earphone" aria-hidden="true"></span></a>
<a href="mailto: shivamsinghal0610@gmail.com"><span class="icons glyphicon glyphicon-envelope" aria-hidden="true"></span></a>
<a href="https://www.facebook.com/people/Shivam-Singhal/100006888462062" target="_blank"><i class="fa fa-facebook-official icons" style="font-size:24px; color:rgb(51,122,183)"></i></a>
<a href="https://plus.google.com/112702240190275218514" target="_blank"><i class="fa fa-google-plus-official icons" style="font-size:24px; color:rgb(51,122,183)"></i></a>
<a href="https://github.com/shivhek25" target="_blank"><i class="fa fa-github-square icons" style="font-size:24px; color:rgb(51,122,183)"></i></a>
<a href="https://www.instagram.com/shivam_singhal10/" target="_blank"><i class="fa fa-instagram icons" style="font-size:24px; color:rgb(51,122,183)"></i></a>
</div>
<div id="carousel-example-generic" class="carousel slide" data-ride="carousel">
<ol class="carousel-indicators">
<li data-target="#carousel-example-generic" data-slide-to="0" class="active"></li>
<li data-target="#carousel-example-generic" data-slide-to="1"></li>
<li data-target="#carousel-example-generic" data-slide-to="2"></li>
</ol>
<div class="carousel-inner" role="listbox">
<div class="item active">
<img src="images/IMG_7615.jpg" alt="Brothers"></img>
</div>
<div class="item">
<img src="images/IMG_8903.jpg" alt="BMUN 17"></img>
</div>
<div class="item">
<img src="images/IMG_9338.jpg" alt="Getting awarded"></img>
</div>
</div>
<a class="left carousel-control" href="#carousel-example-generic" role="button" data-slide="prev">
<span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>
<span class="sr-only">Previous</span>
</a>
<a class="right carousel-control" href="#carousel-example-generic" role="button" data-slide="next">
<span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>
<span class="sr-only">Next</span>
</a>
</div>
<div class="container directioner">
<div class="col-md-3">
<img src="images/quals.png" style="width:50%;margin-top:10px;margin-left:90px"></img>
<h3 class="text1" style="margin-top:20px;margin-left:50px">QUALIFICATIONS</h3>
</div>
<div class="col-md-3">
<img src="images/project.png" style="width:65%;margin-left:50px;margin-top:10px"></img>
<h3 class="text1" style="margin-top:33px;margin-left:85px">PROJECTS</h3>
</div>
<div class="col-md-3">
<img src="images/blog.jpg" style="width:50%;height:150px;margin-left:65px;margin-bottom:10px"></img>
<h3 class="text1" style="margin-top:2px;margin-left:80px">BLOGS</h3>
</div>
<div class="col-md-3">
<img src="images/conme.png" style="width:70%;margin-left:10px;margin-top:60px"></img>
<h3 class="text1" style="margin-top:45px;margin-left:30px">CONTACT ME</h3>
</div>
</div>
<div class="content container">
</div>
<div class="footer">
<div>
<form name="contact">
Phone number :<input type="text" name="pnum"/><br/>
<select onchange="inst_check(this.value)" name="inst_name"> <!--I can do the same for links and images as well; can be used in projects section-->
<option value="">Select your college</option>
<option value="NIT DGP">NIT DGP</option>
<option value="NIT ROURKELA">NIT ROURKELA</option>
<option value="SRM Chennai">SRM Chennai</option>
<option value="St. Xaviers' Calcutta">St. Xaviers' Calcutta</option>
<option value="Other">Other</option>
</select>
<input type="button" value="Submit" onclick="return dialer_check()"/><br/>
</form>
</div>
<div>
<span id="dateandtime" style="color:yellow"></span>
<div id="footer_text">© Shivam Singhal</div><!--setTimeOut() can help to delay time by which function is called-->
</div>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<script src="assets/js/bootstrap.min.js"></script>
</body>
</html>