-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhome.html
337 lines (323 loc) · 13.2 KB
/
home.html
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
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>BaconYao</title>
<link rel="shortcut icon" type="image/x-icon" href="img/icon.jpg">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="css/main.css">
<link rel="stylesheet" href="css/animate.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.1.6/semantic.min.css">
<link rel="stylesheet" href="css/ninja/ninja-slider.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
<script src="js/jquery-aniview-master/jquery.aniview.min.js"></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.1.0/semantic.min.js"></script>
<script src="js/control.js"></script>
<script>
$(document).ready(function() {
var source_id = '1ovAu6m7ARmQm7gltrc8Ov1IM-zYi1eIApxP7eo7XeLM';
$.ajax({
url: 'https://spreadsheets.google.com/feeds/list/' + source_id + '/2/public/values?alt=json',
async: false,
type: 'GET',
})
.done(function(data) {
console.log("success");
for (var i = 0 ; i < (data.feed.entry).length ; i++)
{
var text = data.feed.entry[i]['gsx$text']['$t'];
var img = data.feed.entry[i]['gsx$src']['$t'];
var photo_inner = $.parseHTML("<li><a class=\"ns-img\" href=\"" + img + "\"/></a><div class=\"caption\">"+ text +"</div></li>");
$('#inphoto').append(photo_inner);
}
})
.fail(function() {
console.log("Home photo error");
})
.always(function() {
console.log("complete");
});
function getFieldValue(myform, fieldName) {
var text = myform.form('get value', fieldName);
if (text != "") return text;
else return "none";
}
$("#contactBtn").click(function() {
var form = $(".ui.form");
var formData = {
yourName: getFieldValue(form, 'yourname'),
yourEmail: getFieldValue(form, 'youremail'),
tellMeWhat: getFieldValue(form, 'tellmewhat')
};
$.ajax({
url: 'https://script.google.com/macros/s/AKfycbxoIf19ii0eL6CVzYSsvmo_qglkH1wXe3_rfgstAESvj9GB7fu_/exec',
type: 'POST',
dataType: 'json',
data: formData,
success: function(){console.log('yes')},
fail: function(){console.log('no')}
});
});
});
</script>
<script src="js/ninja/ninja-slider.js"></script>
</head>
<body>
<div class="ui top sidebar massive inverted borderless four item labeled icon compact menu">
<a id='mit1' class="item">
<i class="yellow home icon"></i>
Home
</a>
<a id='mit2' class="item">
<i class="blue user icon"></i>
Self Introduction
</a>
<a id='mit4' class="item">
<i class="red video camera icon"></i>
My Story
</a>
<a id='mit5' class="item">
<i class="brown mail icon"></i>
Contact Me
</a>
</div>
<div class="pusher">
<i id='mbutton' class=" large yellow align justify icon"></i>
<i id='gotopbutton' class=" big pink arrow circle up icon"></i>
<!-- Home segment -->
<div id="home">
<div id="ninja-slider" class="aniview reallyslow" av-animation="rollIn">
<div class="slider-inner">
<ul id="inphoto">
</ul>
<div class="navsWrapper">
<div id="ninja-slider-prev"></div>
<div id="ninja-slider-next"></div>
</div>
</div>
</div>
</div>
<!-- self-introduction segment -->
<div id="selfIntroduction" class="section">
<div class="space"></div>
<div class="ui stackable three column grid container">
<!-- my photo card -->
<div id='myphoto' class="column">
<div class="ui centered card" >
<div class="ui slide masked reveal image">
<img src="img/p1.jpg" class="visible content">
<img src="img/p2.jpg" class="hidden content">
</div>
<div class="content">
<a class="header">Bacon Yao</a>
<div class="meta">
<span class="date">A handsome guy!</span>
</div>
</div>
<div class="extra content">
<button id="showmybtn" class="ui grey basic button">
Show my detail
</button>
<!-- show modal -->
<div class="ui modal">
<i class="close icon"></i>
<div class="header">
My Picture
</div>
<div class="image content">
<div class="ui medium image">
<img src="img/icon.jpg">
</div>
<div class="description">
<div class="ui header">Hi,I'm PeiYao Chang :D</div>
<p>My School:<a href="http://www.nchu.edu.tw/index1.php">NCHU</a></p>
<p>My Association:<a href="http://nchuit.cc/">資訊社</a></p>
</div>
</div>
<div class="actions">
<a href="https://www.facebook.com/bacon735392" target="_blank">
<button class="ui facebook button">
<i class="facebook icon"></i>
Facebook
</button>
</a>
<a href="https://plus.google.com/103003372248466066456" target="_blank">
<button class="ui google plus button">
<i class="google plus icon"></i>
Google plus
</button>
</a>
<a href="https://github.com/baconYao" target="_blank">
<button class="ui github button">
<i class="github icon"></i>
Github
</button>
</a>
<a href="https://www.instagram.com/bacon735392/" target="_blank">
<button class="ui instagram button">
<i class="instagram icon"></i>
Instagram
</button>
</a>
<div class="ui positive right labeled icon button">
Yep, that's me
<i class="thumbs outline up icon"></i>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- show myskill-->
<div id='myskill' class="column">
<i class="teal big configure icon">Language</i>
<div style="height:5px;"></div>
<div id="p_java" class="ui yellow active progress">
<div class="bar" style="width:80%">
<div class="progress">80%</div>
</div>
<div class="label" style="color:red;">Java</div>
</div>
<div id="p_c" class="ui yellow active progress">
<div class="bar" style="width:80%">
<div class="progress">80%</div>
</div>
<div class="label" style="color:red;">C\C++</div>
</div>
<div id="p_javascript" class="ui olive active progress">
<div class="bar" style="width:70%">
<div class="progress">70%</div>
</div>
<div class="label" style="color:red;">Javascript</div>
</div>
<div id="p_html" class="ui olive active progress">
<div class="bar" style="width:70%">
<div class="progress">70%</div>
</div>
<div class="label" style="color:red;">Html</div>
</div>
<div id="p_jsp" class="ui olive active progress">
<div class="bar" style="width:70%">
<div class="progress">70%</div>
</div>
<div class="label" style="color:red;">JSP</div>
</div>
<div id="p_markdown" class="ui olive active progress">
<div class="bar" style="width:70%">
<div class="progress">70%</div>
</div>
<div class="label" style="color:red;">Markdown</div>
</div>
<div id="p_python" class="ui blue active progress">
<div class="bar" style="width:60%">
<div class="progress">60%</div>
</div>
<div class="label" style="color:red;">Python</div>
</div>
<div id="p_php" class="ui blue active progress">
<div class="bar" style="width:60%">
<div class="progress">60%</div>
</div>
<div class="label" style="color:red;">PHP</div>
</div>
</div>
<!-- show software-->
<div id='software' class="column">
<i class="teal big file icon">Software</i>
<div style="height:5px;"></div>
<div id="p_word" class="ui orange active progress">
<div class="bar" style="width:70%">
<div class="progress">70%</div>
</div>
<div class="label" style="color:red;">Word</div>
</div>
<div id="p_ppt" class="ui orange active progress">
<div class="bar" style="width:70%">
<div class="progress">70%</div>
</div>
<div class="label" style="color:red;">Power Point</div>
</div>
<div id="p_powerd" class="ui pink active progress">
<div class="bar" style="width:60%">
<div class="progress">60%</div>
</div>
<div class="label" style="color:red;">Power Director</div>
</div>
<div id="p_imovie" class="ui pink active progress">
<div class="bar" style="width:60%">
<div class="progress">60%</div>
</div>
<div class="label" style="color:red;">Imovie</div>
</div>
</div>
</div>
</div>
<!-- my story segment timeline -->
<div id="mystory" class="aniview reallyslow" av-animation="zoomIn">
<iframe src='https://cdn.knightlab.com/libs/timeline3/latest/embed/index.html?source=1OQc3KzlGW8Quy4vFYRBUGMPfM6IRmkM6ySoBwnU6Bvs&font=Fjalla-Average&lang=zh-cn&initial_zoom=2&height=650' width='100%' height='650' frameborder='0'></iframe>
</div>
<!-- contact me segment -->
<div id="contactme" class="aniview reallyslow section" av-animation="slideInRight">
<div class="space"></div>
<div class="ui one column centered grid container">
<form class="ui large form segment">
<div class="field">
<label>Your name</label>
<input name="yourname" type="text">
</div>
<div class="field">
<label>Your email</label>
<input name="youremail" type="text">
</div>
<div class="field">
<label>You want to tell me what</label>
<textarea name="tellmewhat" type="text"></textarea>
</div>
<div id="contactBtn" class="ui olive submit button">Submit</div>
<div class="ui error message"></div>
</form>
</div>
</div>
<!-- footer segment -->
<div class="ui green inverted vertical footer segment">
<div class="ui center aligned container">
<div class="ui stackable inverted divided grid">
<div class="three wide column">
<h4 class="ui inverted header">QR code</h4>
<div class="ui inverted link list">
<img src="img/QR.png" alt="QR CODE">
</div>
</div>
<div class="three wide column">
<h4 class="ui inverted header">My Country</h4>
<div class="ui inverted link list">
<!-- <i class="tw flag"></i> -->
<img src="img/flag.png" alt="Taiwan" style="width:132px;">
<p>Taiwan</p>
</div>
</div>
<div class="three wide column">
<h4 class="ui inverted header">Socially</h4>
<div class="ui inverted link list">
<a class="item" href="https://www.facebook.com/bacon735392" target="_blank"><i class="big facebook square icon"></i></a>
<a class="item" href="https://www.instagram.com/bacon735392/" target="_blank"><i class="big instagram icon"></i></a>
<a class="item" href="https://plus.google.com/103003372248466066456" target="_blank"><i class="big google plus square icon"></i></a>
<a class="item" href="https://github.com/baconYao" target="_blank"><i class="big github square icon"></i></a>
</div>
</div>
<div class="seven wide column">
<h4 class="ui inverted header">Thanks for your watching</h4>
<p>If you have any question,you can use contact me segment send message to me.In addition,you can be my friend through Facebook.</p>
</div>
</div>
<div class="ui inverted divider"></div>
<div class="ui horizontal inverted small divided link list">
<a class="item" href="http://semantic-ui.com/examples/sticky.html#">Designed by PeiYao Chang</a>
<a class="item" href="#">Privacy Policy</a>
</div>
</div>
</div>
</div>
</body>
</html>