-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
696 lines (511 loc) · 18.7 KB
/
index.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
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=1024">
<meta name="apple-mobile-web-app-capable" content="yes">
<title>台中 Workshop 計畫:HTML 場 | by 中興大學資訊科技研習社</title>
<meta name="generator" content="Slide Show (S9)">
<meta name="author" content="中興大學資訊科技研習社">
<link href='http://fonts.googleapis.com/css?family=Montserrat:700' rel='stylesheet' type='text/css'>
<style>
h1,h2,h3,h4,h5,h6{
text-align: center;
}
/*loading style, title and author*/
div#loading{
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
transition: opacity 1s;
background: rgb(21, 21, 21);
}
div#loading h1{
margin: 0;
padding-top: 80px;
padding-bottom: 20px;
background: rgb(53, 53, 53);
border-bottom: #8ADFFF solid 3px;
color: rgb(152, 255, 189);
}
div#loading h3{
margin: 0;
padding-top: 20px;
padding-bottom: 20px;
background: rgb(72, 84, 66);
color: rgba(255, 179, 94, 1);
}
div#loading.done{
opacity:0;
}
div#loading .spinner {
-webkit-animation: rotation 1.4s linear infinite;
animation: rotation 1.4s linear infinite;
stroke: rgba(0, 149, 207, 1);
margin-left: auto;
display: block;
margin-right: auto;
margin-top: 10%;
}
@-webkit-keyframes rotation {
0% {
-webkit-transform: rotate(0deg);
transform: rotate(0deg);
}
100% {
-webkit-transform: rotate(270deg);
transform: rotate(270deg);
}
}
@keyframes rotation {
0% {
-webkit-transform: rotate(0deg);
transform: rotate(0deg);
}
100% {
-webkit-transform: rotate(270deg);
transform: rotate(270deg);
}
}
div#loading .spinner .circle {
stroke-dasharray: 187;
stroke-dashoffset: 0;
-webkit-transform-origin: center;
-ms-transform-origin: center;
transform-origin: center;
-webkit-animation: turn 1.4s ease-in-out infinite;
animation: turn 1.4s ease-in-out infinite;
}
@-webkit-keyframes turn {
0% {
stroke-dashoffset: 187;
}
50% {
stroke-dashoffset: 46.75;
-webkit-transform: rotate(135deg);
transform: rotate(135deg);
}
100% {
stroke-dashoffset: 187;
-webkit-transform: rotate(450deg);
transform: rotate(450deg);
}
}
@keyframes turn {
0% {
stroke-dashoffset: 187;
}
50% {
stroke-dashoffset: 46.75;
-webkit-transform: rotate(135deg);
transform: rotate(135deg);
}
100% {
stroke-dashoffset: 187;
-webkit-transform: rotate(450deg);
transform: rotate(450deg);
}
}
/*the background*/
body {
background: #545454; /* Old browsers */
background: -moz-radial-gradient(center, ellipse cover, #545454 0%, #262626 100%); /* FF3.6+ */
background: -webkit-gradient(radial, center center, 0px, center center, 100%, color-stop(0%,#545454), color-stop(100%,#262626)); /* Chrome,Safari4+ */
background: -webkit-radial-gradient(center, ellipse cover, #545454 0%,#262626 100%); /* Chrome10+,Safari5.1+ */
background: -o-radial-gradient(center, ellipse cover, #545454 0%,#262626 100%); /* Opera 12+ */
background: -ms-radial-gradient(center, ellipse cover, #545454 0%,#262626 100%); /* IE10+ */
background: radial-gradient(ellipse at center, #545454 0%,#262626 100%); /* W3C */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#545454', endColorstr='#262626',GradientType=1 ); /* IE6-9 fallback on horizontal gradient */
font-family: 'Montserrat', sans-serif;
}
/*normal step*/
.step {
color:rgb(152, 255, 189);
width: 1024px;
height: 576px;
padding: 40px 60px;
font-size: 32px;
opacity: 0.9;
line-height: 1.6;
transition: all 0.5s ease 0s;
}
.step.future {
opacity: 0;
pointer-events:none;
}
.step.active {
opacity: 1;
text-shadow: 0px 0px 20px black;
}
.step.present {
z-index: 100;
}
/*markdown elements*/
h2{
margin-top: 20%;
margin-bottom: 10px;
}
h4{
margin-top: 0;
margin-bottom: 10px;
}
p {
margin: 0;
}
pre {
background-color: rgba(56, 186, 112, 1);
padding: 15px;
overflow: auto;
}
code {
background-color: rgba(56, 186, 112, 0.82);
color: #D1CABC;
border-radius: 10px;
padding: 7px;
font-family: "Consolas","Montserrat",sans-serif;
}
blockquote {
margin: 0px;
padding-left: 40px;
border-left: 10px solid #000;
color: rgba(105, 105, 105, 1)
}
blockquote blockquote{
border: none;
}
blockquote p{
margin: 0;
}
img {
max-width: 100%;
}
ul {
padding-left: 1.75em;
margin: 0px 0px 20px;
}
a {
color: rgba(0, 149, 207, 1);
}
strong {
color: rgba(255, 179, 94, 1);
}
/*controls*/
.controls {
position: absolute;
bottom: 20px;
left: 20px;
}
.arrow {
width: 0px;
height: 0px;
border: 30px solid rgba(153, 186, 213, 0.5);
float: left;
margin-right: 30px;
-moz-user-select: none;
}
.prev {
border-top-color: transparent;
border-bottom-color: transparent;
border-left-color: transparent;
border-left-width: 0px;
border-right-width: 50px;
}
.prev:hover {
border-right-color: rgba(194, 217, 225, 1);
cursor: pointer;
}
.next {
border-top-color: transparent;
border-bottom-color: transparent;
border-right-color: transparent;
border-left-width: 50px;
border-right-width: 0px;
}
.next:hover{
border-left-color: rgba(194, 217, 225, 1);
cursor: pointer;
}
/* customization options of steps*/
.slide {
background: #383838;
border: black solid 1px;
border-radius: 10px;
overflow: auto;
}
.slide.active {
box-shadow: rgba(255, 255, 255, 0.5) 0px 0px 10px;
}
.step.unclickable {
pointer-events:none;
}
.step.center p {
text-align: center;
}
.step.showOnlyWhenPresent {
opacity: 0;
pointer-events:none;
}
.step.showOnlyWhenPresent.present {
opacity: 1;
pointer-events:default;
}
.step.picture img{
max-height: 400px;
margin-left: auto;
margin-right: auto;
display: block;
}
.step.slogen h2{
margin-top: 15%;
font-size: 1.9em;
}
.center-list ul, .center-list ol {
display:table;
margin:0 auto;
}
</style>
</head>
<body class="impress-not-supported">
<div id="impress">
<!-- note: assumes no header (breaking slides w/ SLIDE directive) -->
<div class='step ' data-x='0' data-y='0' >
<!-- === begin markdown block ===
generated by markdown/1.2.0 on Ruby 2.2.4 (2015-12-16) [x86_64-linux]
on 2016-02-20 03:20:59 +0000 with Markdown engine kramdown (1.9.0)
using options {}
-->
<!-- _S9SLIDE_ x=0 y=0 -->
<h2 id="workshop-html-">台中 Workshop 計畫:HTML 場</h2>
<h4 id="section">中興大學資訊科技研習社</h4>
</div>
<div class='step picture' data-x='1200' data-y='0' >
<!-- _S9SLIDE_ picture x=1200 y=0 -->
<p><img src="http://i.giphy.com/26tn5Johfk4VwcF7G.gif" alt="finished launch" /></p>
<h4 id="section-1">吃飽囉~</h4>
<h4 id="git-">下午我們要來讓 Git 有實際的功用囉!</h4>
</div>
<div class='step ' data-x='2400' data-y='0' >
<!-- _S9SLIDE_ x=2400 y=0 -->
<h2 id="section-2">下午的主題</h2>
<h4 id="html5">HTML5</h4>
<h4 id="httpsemantic-uicomhttpsemantic-uicom"><a href="http://semantic-ui.com">http://semantic-ui.com</a></h4>
<h4 id="section-3">這邊強者雲集嗎?</h4>
</div>
<div class='step ' data-x='3600' data-y='0' >
<!-- _S9SLIDE_ x=3600 y=0 -->
<h2 id="section-4">請打開各位愛用的編輯器</h2>
<h5 id="word--">Word 或是記事本(!? 拜偷別)</h5>
<h4 id="vim---atom--sublime-text">vim / atom / sublime text</h4>
</div>
<div class='step ' data-x='0' data-y='700' >
<!-- _S9SLIDE_ x=0 y=700 -->
<h3 id="html5-">第一步:HTML5 基本版型</h3>
<pre><code><!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>Document</title>
</head>
<body>
</body>
</html>
</code></pre>
</div>
<div class='step center-list' data-x='1200' data-y='700' >
<!-- _S9SLIDE_ center-list x=1200 y=700 -->
<h3 id="body-">放些元素在 <code>body</code> 裡頭吧</h3>
<ul>
<li>文字:<code>h1</code> - <code>h6</code> / <code>p</code></li>
<li>圖片:<code><img src="" /></code></li>
<li>超連結:<code><a href="">...</a></code></li>
</ul>
</div>
<div class='step center-list' data-x='2400' data-y='700' >
<!-- _S9SLIDE_ center-list x=2400 y=700 -->
<h3 id="section-5">再加入些容器吧</h3>
<ul>
<li>表格: <code>table>tr*3>td*3</code></li>
<li>清單: <code>ol>li*3</code></li>
<li>白板:<code><div>...</div></code></li>
</ul>
</div>
<div class='step center-list' data-x='3600' data-y='700' >
<!-- _S9SLIDE_ center-list x=3600 y=700 -->
<h3 id="css-">CSS 簡單說明</h3>
<ul>
<li>就是讓你的網頁有 Style</li>
<li>不懂?按下 F12 / CMD+Opt+i 打開開發者介面的第一個工具的右半邊那個就是</li>
<li>對你的文字加個 <code>color: red;</code> 試試</li>
</ul>
</div>
<div class='step picture' data-x='4800' data-y='700' >
<!-- _S9SLIDE_ picture x=4800 y=700 -->
<h3 id="section-6">很醜吧?</h3>
<p><img src="http://imgur.com/X653dAF.png" alt="guly html" /></p>
</div>
<div class='step ' data-x='0' data-y='1400' >
<!-- _S9SLIDE_ x=0 y=1400 -->
<h2 id="semantic-ui">Semantic UI</h2>
<h4 id="css--1">來用別人寫好的 CSS 檔案!</h4>
<h4 id="section-7">俗話說萬丈高樓平地起,但是我們可以直接搭電梯!</h4>
</div>
<div class='step center-list' data-x='1200' data-y='1400' >
<!-- _S9SLIDE_ center-list x=1200 y=1400 -->
<h3 id="css--2">引入別人寫好的 CSS 檔案!</h3>
<ul>
<li>我們選用 <code>semantic-ui</code> ,估狗之</li>
<li><code><link rel="stylesheet" href="..."></code></li>
<li>估狗 <code>semantic-ui cdn</code> ,取得連結</li>
</ul>
</div>
<div class='step center-list' data-x='2400' data-y='1400' >
<!-- _S9SLIDE_ center-list x=2400 y=1400 -->
<h3 id="semantic-ui-">在 <code>semantic-ui</code> 的網站裡遊走</h3>
<ul>
<li>尋找你想要的元件</li>
<li>然後複製 HTML</li>
<li>貼上應該就可以看到東西了</li>
</ul>
</div>
<div class='step center-list' data-x='3600' data-y='1400' >
<!-- _S9SLIDE_ center-list x=3600 y=1400 -->
<h3 id="the-quickest-http-server">The quickest http server</h3>
<ol>
<li>下載並安裝 NodeJS</li>
<li>打開 <code>CMD</code> ,輸入 <code>npm install -g http-server</code></li>
<li>在 windows 上,按著 <code>shift</code> 按右鍵選 <code>在此處開啟命令提示視窗</code> (或 <code>cd 你的目錄</code>) 然後輸入 <code>http-server</code></li>
</ol>
</div>
<div class='step center-list' data-x='0' data-y='2100' >
<!-- _S9SLIDE_ center-list x=0 y=2100 -->
<h3 id="semantic-ui--html-">Semantic UI 提供的一些比 HTML 原始好用元件</h3>
<ul>
<li>比 HTML 內建變化多的 <a href="http://semantic-ui.com/elements/header.html">Header</a></li>
<li>比 HTML 內建功能豐富的 <a href="http://semantic-ui.com/elements/image.html">Image</a></li>
<li>比 HTML 內建超連結美的 <a href="http://semantic-ui.com/elements/button.html">Button</a></li>
</ul>
</div>
<div class='step center-list' data-x='1200' data-y='2100' >
<!-- _S9SLIDE_ center-list x=1200 y=2100 -->
<h3 id="semantic-ui--html--1">Semantic UI 提供的一些比 HTML 原始好用容器</h3>
<ul>
<li>比 HTML 內建屌多的 <a href="http://semantic-ui.com/collections/table.html">Table</a></li>
<li>比 HTML 內建屌猛的 <a href="http://semantic-ui.com/elements/list.html">List</a></li>
</ul>
</div>
<div class='step center-list' data-x='2400' data-y='2100' >
<!-- _S9SLIDE_ center-list x=2400 y=2100 -->
<h3 id="semantic-ui--html--2">Semantic UI 提供的一些原本 HTML 沒有的東西</h3>
<ul>
<li><a href="http://semantic-ui.com/elements/icon.html">Icon</a></li>
<li><a href="http://semantic-ui.com/elements/segment.html">Segment</a></li>
<li>當然還有很多,要學著自己查資料啊</li>
</ul>
</div>
<div class='step center-list' data-x='3600' data-y='2100' >
<!-- _S9SLIDE_ center-list x=3600 y=2100 -->
<h2 id="semantic-ui--1">Semantic UI 的排版用容器</h2>
<h4 id="section-8">在這之前,有個很重要的概念:</h4>
<h4 id="rwdhttpsdevelopermozillaorgen-usdocswebguideresponsivedesign"><a href="https://developer.mozilla.org/en-US/docs/Web/Guide/Responsive_design">RWD</a></h4>
</div>
<div class='step center-list' data-x='3600' data-y='2100' data-z='-6000' >
<!-- _S9SLIDE_ center-list x=3600 y=2100 z=-6000 -->
<h3 id="semantic-ui--2">Semantic UI 的排版用容器</h3>
<ul>
<li><a href="http://semantic-ui.com/collections/grid.html">Grid</a></li>
<li><a href="http://semantic-ui.com/elements/container.html">Container</a></li>
<li><a href="https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag">關於 viewport 的設定</a></li>
</ul>
</div>
<div class='step ' data-x='0' data-y='2800' >
<!-- _S9SLIDE_ x=0 y=2800 -->
<h2 id="section-9">開始動手!</h2>
<h4 id="section-10">由助教們提供樣本讓大家開始做囉</h4>
<h4 id="section-11">有問題都可以問助教</h4>
<h4 id="httppptccribyshttppptccribys"><a href="http://ppt.cc/rIbyS">教學資源:http://ppt.cc/rIbyS</a></h4>
</div>
<div class='step center-list' data-x='0' data-y='3500' >
<!-- _S9SLIDE_ center-list x=0 y=3500 -->
<h3 id="git--1">來跟早上的 Git 結合囉,這樣才能把自己的網站弄上去!</h3>
<ul>
<li><code>git init</code></li>
<li><code>git remote add origin <repo_url></code></li>
<li><code>git add --all</code></li>
<li><code>git commit -m "..."</code></li>
<li><code>git push</code></li>
</ul>
</div>
<div class='step ' data-x='0' data-y='4200' >
<!-- _S9SLIDE_ x=0 y=4200 -->
<h2 id="demo-">DEMO 時間!</h2>
<h4 id="section-12">都弄好了嗎?</h4>
<h4 id="section-13">有沒有自願?</h4>
</div>
<div class='step picture' data-x='0' data-y='4900' >
<!-- _S9SLIDE_ picture x=0 y=4900 -->
<h3 id="section-14">謝謝大家今天的參與!</h3>
<p><img src="http://i.imgur.com/3FpJbep.png" alt="presents" /></p>
</div>
<div class='step picture' data-x='0' data-y='5600' >
<!-- _S9SLIDE_ picture x=0 y=5600 -->
<ul>
<li>興大資訊社:
<ul>
<li>粉專:<a href="http://fb.me/it.nchu">http://fb.me/it.nchu</a></li>
<li>官方網站:<a href="http://nchuit.cc">http://nchuit.cc</a></li>
</ul>
</li>
<li>逢甲黑客社:
<ul>
<li>粉專:<a href="http://fb.me/HackerSir.tw">http://fb.me/HackerSir.tw</a></li>
<li>官方網站:<a href="https://hackersir.info">https://hackersir.info</a></li>
</ul>
</li>
<li>SITCON:
<ul>
<li>粉專:<a href="http://fb.me/SITCONtw">http://fb.me/SITCONtw</a></li>
<li>官方網站:<a href="http://sitcon.org">http://sitcon.org</a></li>
</ul>
</li>
</ul>
<!-- === end markdown block === -->
</div>
</div>
<div id="loading">
<h1>台中 Workshop 計畫:HTML 場</h1>
<h3>中興大學資訊科技研習社</h3>
<svg class="spinner" width="65px" height="65px" viewBox="0 0 66 66" xmlns="http://www.w3.org/2000/svg"><circle class="circle" fill="none" stroke-width="6" stroke-linecap="round" cx="33" cy="33" r="30"></circle></svg>
</div>
<div class="controls">
<div class="arrow prev"></div>
<div class="arrow next"></div>
</div>
<script src="http://netdna.impressjscdn.com/impressjs/0.5.3/js/impress.js"></script>
<script src="http://code.jquery.com/jquery-1.11.0.min.js"></script>
<script>
var impressInstance;
$(document).ready(function(){
impressInstance = impress();
impressInstance.init();
/*impressInstance.prev_ori = impressInstance.prev;*/
impressInstance.next_ori = impressInstance.next;
impressInstance.next = function(){
impressInstance.next_ori();
$("div.step.active").removeClass("future");
};
$(".controls .arrow.prev").click(impressInstance.prev);
$(".controls .arrow.next").click(impressInstance.next);
if(window.location.hash)
$("div#impress div.step" + window.location.hash.replace("#/","#")).prevAll().removeClass("future");
setTimeout(function(){
$('div#loading').addClass('done');
setTimeout(function(){
$('div#loading').remove();
},1000);
},2000);
});
</script>
</body>
</html>