-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
176 lines (154 loc) · 5.71 KB
/
index.html
File metadata and controls
176 lines (154 loc) · 5.71 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
<!DOCTYPE html>
<html>
<head>
<title> wen </title>
<meta name="viewport" content="width=device-width, initial-scale1.0">
<!-- Bootstrap -->
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css">
<!--<link rel="stylesheet" href="jquery.fullPage.css" /> -->
<link rel="stylesheet" href="custom.css" />
</head>
<body>
<nav class="navbar navbar-static-top">
<div class="container-fluid">
<ul class="nav navbar-nav navbar-right">
<span id = "icon-span">
<a href="https://www.linkedin.com/in/wenli936" >
<img class = "icon" src="images/linkedin.png" width="32px" height="32px">
</a>
<a href="https://twitter.com/TweetsByWen" >
<img class = "icon" src="images/twitter.png" width="32px" height="32px">
</a>
<a href="https://github.com/wenever/" >
<img class = "icon" src="images/github.png" width="32px" height="32px">
</a>
</span>
</ul>
</div>
</nav>
<div class="splash-background">
<div id = "hello">
Hello
<h2> my name is </h2>
<div id ="splash-name">
wen
</div>
<div id = "arrow-link">
<a data-scroll href="#about">
<img src="images/down.png" width="100px" height="100px">
</a>
</div>
</div>
</div>
<div class="container">
<div class="row about">
<h1 id = "about">
About Me
</h1>
</div>
<div class="row">
<img class = "img-circle" src="http://lorempixel.com/output/people-q-c-140-140-9.jpg">
</div>
<br>
<div class="row">
<div class="col-md-2"></div>
<div class="col-md-4">
<p>Lorem ipsum dolor sit amet, est tractatos urbanitas accommodare ex, pri euismod feugiat offendit cu, scaevola adversarium usu no. Pri ad salutandi persequeris, pri perpetua accommodare eu. In tota omittam eam. Te nam nullam possit nonumes. Ius eu dolore legere mnesarchum. Eu solet nonumes eloquentiam vel, at purto integre accusata sed.</p>
</div>
<div class="col-md-4">
<p>Lorem ipsum dolor sit amet, est tractatos rbanitas accommodare ex, pri euismod feugiat offendit cu, scaevola adversarium usu no. Pri ad salutandi persequeris, pri perpetua accommodare eu. In tota omittam eam. Te nam nullam possit nonumes. Ius eu dolore legere mnesarchum. Eu solet nonumes eloquentiam vel, at purto integre accusata sed.</p>
</div>
<div class="col-md-2"></div>
</div>
<br>
<br>
<hr>
</div>
<div class="section">
<div class="container">
<div class="row portfolio">
<h1>
Portfolio
</h1>
</div>
</div>
<br>
<br>
<hr>
</div>
<div class="section">
<div class="container">
<div class="row contact">
<h1>
Say Hey
</h1>
</div>
<br>
<div id="form-group">
<div class="row">
<div class="col-md-12">
<div class="alert alert-success" style="display:none" > Message sent! </div>
<div class="alert alert-danger" style="display:none"> There was an error with sending. </div>
</div>
</div>
<label for="name">Name:</label>
<input type="text" class="form-control" id="name" placeholder="Enter your full name here">
<label for="email">Email:</label>
<input type="text" class="form-control" id="email" placeholder="Enter your email address here">
<label for="comment">Comment:</label>
<textarea class="form-control" rows="5" id="comment"></textarea>
<br>
<input type="button" id="send" value="Send Message" class="btn btn-info pull-right">
</div>
</div>
<br>
<script src="smooth-scroll.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script>
<script>
smoothScroll.init();
$("#send").click(function()
{
var email = $("#email").val();
var name = $("#name").val(); // get name field value
var comment = $("#comment").val(); // get message field value
$.ajax(
{
type: "POST",
url: "https://mandrillapp.com/api/1.0/messages/send.json",
data: {
'key': 'gtnd7S2itCPJvJf101QcuA',
'message': {
'from_email': email,
'from_name': name,
'headers': {
'Reply-To': email
},
'subject': 'Personal Site Message',
'text': comment,
'to': [
{
'email': 'wenli936@gmail.com',
'name': 'Wen',
'type': 'to'
}]
}
}
})
.done(function(response) {
$(".alert-success").css("display","block"); // show success message
$(".alert-danger").css("display","none");
$("#name").val(''); // reset field after successful submission
$("#email").val(''); // reset field after successful submission
$("#comment").val(''); // reset field after successful submission
})
.fail(function(response) {
$(".alert-danger").css("display","block");
$(".alert-success").css("display","none");
console.log(response);
return false; // prevent page refresh
});
});
</script>
</body>
</html>