-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsample.html
More file actions
186 lines (173 loc) · 6.93 KB
/
sample.html
File metadata and controls
186 lines (173 loc) · 6.93 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
<!DOCTYPE html>
<html>
<head>
<title>Han Hao</title>
<meta charset="UTF-8">
<meta name="keywords" content="Han Han, Han, NTU">
<meta name="description" content="Han Hao's website">
<meta name="author" content="Han Hao Chen">
<link href="http://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<!--Import materialize.css-->
<link type="text/css" rel="stylesheet" href="assets/css/materialize.min.css" media="screen,projection"/>
<!--Let browser know website is optimized for mobile-->
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<style>
html{
position: relative;
min-height: 100%;
}
body{
margin: 0 0 100px 0;
}
#footer{
position: absolute;
left: 0;
bottom: 0;
height: 50px;
width: 100%;
}
</style>
</head>
<body>
<!--Import jQuery before materialize.js-->
<script type="text/javascript" src="https://code.jquery.com/jquery-2.1.1.min.js"></script>
<div>
<div class="navbar-fixed">
<nav id="navbar" class="white">
<div class="nav-wrapper container">
<a href="./index.html" class="brand-logo" style="color:black" id="Go_main">Han Hao</a>
<a href="#" data-activates="mobile-demo" class="button-collapse" style="color:black" id="Go_main"><i class="material-icons">menu</i></a>
<ul class="right hide-on-med-and-down">
<li><a href="./about.html" style="color:black" id="Go_about">about</a></li>
<li><a href="./product.html" style="color:black" id="Go_product">product</a></li>
<li><a href="./sample.html" style="color:black" id="Go_sample">sample</a></li>
<li><a href="./contact.html" style="color:black" id="Go_contact">contact</a></li>
</ul>
<ul class="side-nav" id="mobile-demo">
<li><a href="./about.html" style="color:black" id="Go_about">about</a></li>
<li><a href="./product.html" style="color:black" id="Go_product">product</a></li>
<li><a href="./sample.html" style="color:black" id="Go_sample">sample</a></li>
<li><a href="./contact.html" style="color:black" id="Go_contact">contact</a></li>
</ul>
</div>
</nav>
</div>
<!-- <textarea id="myText">
Lorem ipsum...
</textarea>
<button onclick="sendMail(); return false">Send</button> -->
<div class="container" style="margin-top:20px">
<div class="card">
<nav>
<div class="nav-wrapper teal"></div>
</nav>
<div class="row">
<form class="col s12">
<div class="row" style="margin-top:20px">
<div class="input-field col s5">
<i class="material-icons prefix">account_circle</i>
<input id="name" type="text" class="validate">
<label for="name">Name</label>
</div>
<div class="input-field col s5">
<i class="material-icons prefix">phone</i>
<input id="telephone" type="tel" class="validate">
<label for="telephone">Telephone</label>
</div>
</div>
<div class="row">
<div class="input-field col s10 m10" style="left:45px;">
<!-- <i class="material-icons prefix">email</i> -->
<input id="email" type="email" class="validate" >
<label for="email">Email</label>
</div>
</div>
<div class="row">
<div class="input-field col s5" style="left:45px;">
<select multiple id="select">
<option value="" disabled selected>Option 0</option>
<option value="1">Option 1</option>
<option value="2">Option 2</option>
<option value="3">Option 3</option>
<option value="4">Option 4</option>
<option value="5">Option 5</option>
<option value="6">Option 6</option>
<option value="7">Option 7</option>
<option value="8">Option 8</option>
</select>
<label>Product Select</label>
</div>
</div>
<div class="row">
<form class="col s12">
<div class="row">
<div class="input-field col s10" style="left:55px;">
<textarea id="textarea1" class="materialize-textarea"></textarea>
<label for="textarea1">Textarea</label>
</div>
</div>
</form>
</div>
</form>
</div>
</div>
<button onclick="sendMail(); return false" class="btn waves-effect waves-light right" type="submit" name="action" style="bottom:10px;">Send
<i class="material-icons right">send</i>
</button>
</div>
<footer class="page-footer teal" id="footer">
<div class="footer-copyright teal">
<div class="container">
Made by Han Hao Chen
</div>
</div>
</footer>
</div>
<script src="https://code.jquery.com/jquery-2.1.1.min.js"></script>
<script type="text/javascript" src="assets/js/materialize.min.js"></script>
<script type="text/javascript" src="assets/js/main.js"></script>
<script>
$(document).ready(function() {
$('select').material_select();
});
//init tabs
$(document).ready(function(){
$('ul.tabs').tabs();
});
(function($){
$(function(){
$('.button-collapse').sideNav();
$('.parallax').parallax();
}); // end of document ready
})(jQuery); // end of jQuery name space
function navFunc(navItem) {
var sections = document.getElementsByClassName('page');
for(var i=0; i<sections.length; i++)
sections[i].style.display = "none";
var Go_target = navItem.getAttribute('id');
var target = Go_target.substring(3, Go_target.length);
document.getElementById(target).style.display = "block";
window.scrollTo(0, 0);
sections = document.getElementsByClassName('hide-tab-scrollbar');
for(var i=0;i<sections.length;i++) {
sections[i].setAttribute('class', '');
}
sections = document.getElementsByClassName('hide-tab-scrollbar');
for(var i=0;i<sections.length;i++) {
sections[i].setAttribute('class', '');
}
}
function sendMail() {
var link = "mailto:m516825@gmail.com"
+ "?cc="
+ "&subject=" + escape("Sample request")
+ "&body=" + escape(document.getElementById('textarea1').value + "\n\n\n\n\n")
+ escape("Form :" + document.getElementById('name').value + "\n")
+ escape("Email :" + document.getElementById('email').value + "\n")
+ escape("Tel :" + document.getElementById('telephone').value + "\n")
+ escape("Request :" + document.getElementById('telephone').value + "\n");
window.location.href = link
}
</script>
</body>
</html>