-
Notifications
You must be signed in to change notification settings - Fork 1
/
10.html
executable file
·1026 lines (862 loc) · 27.7 KB
/
10.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
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>jQuery FTW!</title>
<meta name="viewport" content="width=1024">
<link rel="stylesheet" href="dist/coderdeck-core.min.css" type="text/css">
<link rel="stylesheet" id='style-theme-link' href="src/css/coderdeck.css" type="text/css" >
<script src='dist/jquery.min.js'></script>
<script src="dist/modernizr.js"></script>
<link href='http://fonts.googleapis.com/css?family=Oswald:400,700,300' rel='stylesheet' type='text/css'>
</head>
<body class="deck-container">
<script type='text/coderdeck' id='coderdeck-default'>
<html>
<head>
<script src='src/jquery.min.js'>SCRIPTEND
<link rel="stylesheet" href="reset.css">
</head>
<body>
CODE
</body>
</html>
</script>
<script type='text/coderdeck' id='coderdeck-plain'>
<html>
<title>test</title>
<link rel="stylesheet" href="reset.css">
<body>
CODE
</body>
</html>
</script>
<script type='text/coderdeck' id='coderdeck-css-playground'>
<html>
<title>test</title>
CODE
<body>
<h1>I'm a H1 heading</h1>
<h2>I'm a H2 heading</h2>
<p>Pargraph of text <p></p>
<div class='stuff'><div> with class "stuff"</div>
<div id='my-div'><div> with id "my-div"</div>
</body>
</html>
</script>
<script type='text/coderdeck' id='coderdeck-style-example'>
<html>
<title>test</title>
<style>
CODE
</style>
<body>
<h1>I'm a H1 heading</h1>
<h2>I'm a H2 heading</h2>
<h3>Pargraph of text <p> here</p>
<div class='stuff'>I'm a div <div> with class "stuff"</div>
<div id='my-div'>I'm a <div> with id "my-div"</div>
</body>
</html>
</script>
<script type='text/coderdeck' id='coderdeck-full-page'>
CODE
</script>
<!-- Create any number of elements with class slide within the container -->
<article class='slide slide-subhead'>
<h1>jQuery & Interactivity</h1>
<h2>Week 10</h2>
<a href='http://marthar.github.com/webfall-2015/10.html'>http://marthar.github.com/webfall-2015/10.html</a></p>
</article>
<article class='slide slide-list'>
<h1>Order of Business</h1>
<ol>
<li class="slide">
<h3>Review Homework</h3>
</li>
<li class="slide">
<h3>Intro to JavaScript</h3>
</li>
<li class="slide">
<h3>jQuery Basics</h3>
</li>
<li class="slide">
<h3>Hover Nav</h3>
</li>
<li class="slide">
<h3>Sticky Nav</h3>
</li>
<li class="slide">
<h3>Lightbox</h3>
</li>
<li class="slide">
<h3>Sliders</h3>
</li>
<li class="slide">
<h3>Hosting and Uploading your own site</h3>
</li>
<li class="slide">
<h3>Basic Contact Form</h3>
</li>
</ol>
</article>
<article class='slide slide-subhead'>
<h1>Homework</h1>
<h2><a href="homework-monday.html">Monday </a>|<a href="homework-friday.html"> Friday</a></h2>
</article>
<article class='slide slide-subhead'>
<h1>HTML/CSS Are Static</h1>
<h3>(Now only mostly true, as you can add interactivity via CSS Hover, Animation)</h3>
</article>
<article class='slide slide-list'>
<h2>Anything else dynamic is "programmed"</h2>
<ul>
<li class='slide'/><h3>Animation effects</h3></li>
<li class='slide'/><h3>Sliders</h3></li>
<li class='slide'/><h3>Drag and Drop</h3></li>
<li class='slide'/><h3>Autocomplete</h3></li>
<li class='slide'/><h3>Ajax </h3></li>
</ul>
</article>
<article class='slide slide-subhead'>
<h1>And, unless it's flash..</h1>
<h3 class='slide'>It's programmed in Javascript<br/>"Lingua Franca" of the Web</h3>
</article>
<article class='slide slide-subhead'>
<h1>Disclaimer:</h1>
<h2>Programming is <em>Hard</em></h2>
</article>
<article class='slide slide-subhead'>
<h1>We'll do our best..</h1>
<h3>But you're not going to learn it in a day. It take a lot longer than that...</h3>
</article>
<article class='slide slide-list'>
<h2>About Javascript</h2>
<ul>
<li class='slide'/><h3>First created in '96</h3></li>
<li class='slide'/><h3>Nothing, whatsoever to do with Java. </h3></li>
<li class='slide'/><h3>People hated it for a long time. Now people love it.</h3></li>
<li class='slide'/><h3>Now can be used for:</h3>
<ul>
<li class='slide'/><h3>Client Side</h3></li>
<li class='slide'/><h3>Server Side</h3></li>
<li class='slide'/><h3>Mobile (iPhone, Android)</h4></li>
<li class='slide'/><h3>Desktop</h3></li>
</ul>
</li>
</ul>
</article>
<article class='slide slide-list'>
<h2>Javascript is both:</h2>
<ul>
<li class='slide'>
<h3>The worlds most popular language (beat Visual Basic)</h3>
</li>
<li class='slide'>
<h3>The world's most unpopular language (people love to complain about it)</h3>
</li>
</ul>
</article>
<article class='slide slide-list'>
<h2>Why so much hate for JavaScript?</h2>
<ul>
<li class='slide'/><h3>Incompatible Implementations</h3></li>
<li class='slide'/><h3>OO, but not a classical inheritance</h3></li>
<li class='slide'/><h3>Initial Implementation were slow</h3></li>
<li class='slide'/><h3>It looked like a silly toy next to Flash</h3></li>
<li class='slide'/><h3>No AJAX to start with (while Flash did)</h3></li>
</ul>
</article>
<article class='slide slide-list'>
<h2>What Changed?</h2>
<ul>
<li class='slide'/><h3>The "Gmail" and "Goole Maps Era" (2004-2005)</h3><a href="http://maps.google.com/">Google Maps</a></li>
<li class='slide'/><h3>"Framework Era" (2005-Today) <a href='http://jquery.com/'>jQuery</a></h3></li>
<li class='slide'/><h3><a href='http://news.cnet.com/8301-1001_3-10030888-92.html'>"Chrome Era" (2008-Today)</a></h3></li>
<li class='slide'/><h3>The "javascript MVC era" (2010-Today) <a href="http://alpha.salon.io/#/home">salon.io</a></h3></li>
</ul>
</article>
<article class='slide slide-list'>
<h2>Where does Javascript go?</h2>
<p>Similar to CSS - multiple options (notice: type='text/javascript' <em>NOT</em> required in HTML5):</p>
<ul>
<li>Include external .js file via:
<pre class='prettyprint'><script src='file.js'></script></pre>
</li>
<li>Include in the <head> tag
<pre class='prettyprint'><script>
Our Javascript Code Goes Here
</script></pre>
</li>
<li>Include in the <body> tag
<pre class='prettyprint'><script>
document.write("Let's write some HTML right here!");
</script></pre>
</li>
<li> Include as an event
<pre class='prettyprint'><a href='javascript:void(0);' onclick='alert("Hello World!");'></pre>
</li>
</ul>
</article>
<article class='slide slide-list' >
<h2>Where do we prefer?</h2>
<p>Also Similar to CSS - the less 'inline' the better. (Generalization)</p>
<ul>
<li class='slide'/><h3><b>Downright Bad:</b> Include as an event</h3></li>
<li class='slide'/><h3><b>Even Less Good:</b> Include in the <body> tag</h3></li>
<li class='slide'/><h3><b>Less Good:</b> Include in the <head> tag</h3></li>
<li class='slide'/><h3><b>Best:</b> Include external .js file</h3></li>
</ul>
</article>
<article class='slide slide-subhead'>
<h1>Again, we're not really teaching "programming" </h1>
<h2>There's <b>way</b> too much to try to cover in 1 class</h2>
</article>
<article class='slide slide-subhead'>
<h1 class='small'>We're really want to be able to use jQuery</h1>
<p>And need just enough Javascript to get by.</p>
</article>
<article class='slide slide-list'>
<h2>3 Main Goals for today</h2>
<ol>
<li class="slide">
<h3>Be able to read and understand some JavaScript</h3>
</li>
<li class="slide">
<h3>Be able to manipulate documents with jQuery</h3>
</li>
<li class="slide">
<h3>Be able to use jQuery plugins</h3>
</li>
</ol>
</article>
<article class='slide slide-list'>
<h2>What is jQuery?</h2>
<ul>
<li class="slide">
<h3>Most of what we do in Javscript is manipulate the DOM and Ajax</h3>
</li>
<li class="slide">
<h3>These are very long and cumbersome to do in straight javscript</h3>
</li>
<li class="slide">
<h3>On top of this, different browsers have different behavior</h3>
</li>
<li class="slide">
<h3>jQuery is a library that makes this easy and clean and <em>consistent</em></h3>
</li>
<li class="slide">
<h3>Works with CSS selectors </h3>
</li>
</ul>
</article>
<article class='slide slide-list'>
<h2>jQuery Basics</h2>
<ul>
<li class="slide">
<h3>Everything is “namespaced” inside of the jQuery object, which is aliased with “$”</h3>
</li>
<li class="slide">
<h3>...which means everything you do in jQuery starts with a $</h3>
</li>
<li class="slide">
<h3>Uses CSS selectors for picking pieces of the DOM out.</h3>
</li>
</ul>
</article>
<article class='slide slide-subhead'>
<h1>Docs are your Friend</h1>
<h2>Get comfortable with <a href='http://docs.jquery.com'>docs.jquery.com</a></h2>
</article>
<article class='slide slide-list'>
<h2>Loading jQuery</h2>
<h3>Include from a CDN or locally</h3>
<pre class='prettyprint'>
<script src='http://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js'></script>
</pre>
<h3>Or</h3>
<pre class='prettyprint'>
<script src='js/jquery.min.js'></script>
</pre>
<p>Need to make sure we have the file in the right location, can view in browser if there's a problem.</p>
</article>
<article class='slide slide-list'>
<h2>Plugins: Barebones</h2>
<p>Let's use the cycle plugin: <a href='http://jquery.malsup.com/cycle/'>http://jquery.malsup.com/cycle/</a> (images from <a href='http://lorempixel.com'>http://lorempixel.com</a>)</p>
<textarea class='coder-editor' data-coder-template="coderdeck-full-page">
<html>
<head>
<!-- We include jquery -->
<script src='src/jquery.min.js'></script>
<!-- We include the plugin -->
<script src='src/jquery.cycle.all.js'></script>
</head>
<body>
<div id='slideshow'>
<img src='images/image1.jpg'/>
<img src='images/image2.jpg'/>
<img src='images/image3.jpg'/>
<img src='images/image4.jpg'/>
</div>
<script>
$(document).ready(function() {
$('#slideshow').cycle();
});
</script>
</body>
</textarea>
</article>
<article class='slide slide-list'>
<h2>Cycle: Style and Options</h2>
<textarea class='coder-editor' data-coder-template="coderdeck-full-page">
<html>
<head>
<!-- We include jquery -->
<script src='src/jquery.min.js'></script>
<!-- We include the plugin -->
<script src='src/jquery.cycle.all.js'></script>
<style>
/* #slideshow img { border:1px solid black; padding:10px; border-radius:10px; } */
</style>
</head>
<body>
<div id='slideshow'>
<img src='images/image1.jpg'/>
<img src='images/image2.jpg'/>
<img src='images/image3.jpg'/>
<img src='images/image4.jpg'/>
</div>
<script>
$(document).ready(function() {
$('#slideshow').cycle({
//next: "#slideshow",
//speed: 5000,
//timeout: 200,
//random: 1,
fx: 'fade'
// transition types, ex: fade, scrollUp, shuffle, etc...
});
}); </script>
</body>
</textarea>
</article>
<article class='slide slide-list'>
<h2>Click Drop-Down</h2>
<p><a href="http://docs.jquery.com/UI/Accordion">jQuery Accordian</a></p>
<textarea class='coder-editor coder-editor-full'>
<!DOCTYPE html>
<html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.5/jquery.min.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"></script>
<script>
$(document).ready(function() {
$("#accordion").accordion();
$( ".selector" ).accordion({ collapsible: true });
});
</script>
</head>
<body>
<div id="accordion">
<h3><a href="#">Section 1</a></h3>
<div>
<ul>
<li>List item one</li>
<li>List item two</li>
<li>List item three</li>
</ul>
</div>
<h3><a href="#">Section 2</a></h3>
<div>
<p>
Sed non urna. Donec et ante. Phasellus eu ligula. Vestibulum sit amet
purus. Vivamus hendrerit, dolor at aliquet laoreet, mauris turpis porttitor
velit, faucibus interdum tellus libero ac justo. Vivamus non quam. In
suscipit faucibus urna.
</p>
</div>
<h3><a href="#">Section 3</a></h3>
<div>
<ul>
<li>List item one</li>
<li>List item two</li>
<li>List item three</li>
</ul>
</div>
<h3><a href="#">Section 4</a></h3>
<div>
<ul>
<li>List item one</li>
<li>List item two</li>
<li>List item three</li>
</ul>
</div>
</div>
</body>
</html>
<style>
body { width:300px; marging: 0 auto; color:gray; font-family:Georgia, serif;}
p { padding-top:7px;}
h3 {
margin-top:30px;
background-color:#dddddd;
padding:3px;
line-height:1.2em;
}
h3 a {
text-decoration:none;
color:gray;
font-weight:bold
}
</style>
</body>
</head>
</html>
</textarea>
</article>
<article class='slide slide-subhead'>
<h1><a href="http://fancyapps.com/fancybox/">jQuery LightBox</a></h1>
</article>
<article class='slide slide-subhead'>
<h1><a href="http://docs.dev7studios.com/jquery-plugins/nivo-slider">Nivo Slider</a></h1>
<p><a href="https://github.com/gilbitron/Nivo-Slider">Github Download</a></p>
</article>
<article class='slide slide-accent'>
<h1>Navs</h1>
</article>
<article class='slide slide-list'>
<h2>Sticky Navbar</h2>
<textarea class='coder-editor coder-editor-full' data-coder-template='coderdeck-plain'>
<style>
<style>
#header-wrapper {
}
header {
position:relative;
background-color:white;
}
header h1 {
float:left;
font-size:50px;
font-weight:bold;
color:teal;
margin-right:20px;
margin-top:30px;
}
#menu { float:left;}
#menu ul {
list-style:none;
width:650px;
margin:30px auto 0px auto;
height:43px;
margin-top:50px;
padding:0px 20px 0px 20px;
}
#menu li {
float:left;
display:block;
text-align:center;
position:relative;
padding: 6px 15px;
margin-right:50px;
border: 1px solid white;
}
#menu li:hover {
border: 1px solid #E0E0E0;
background: #F4F4F4;
}
#menu li a {
font-family:Arial, Helvetica, sans-serif;
font-size:14px;
color: gray;
display:block;
outline:0;
text-decoration:none;
}
#menu li ul {
display:none;
position:absolute;
top:20px;
}
#main-content {
clear:both;
width:400px;
}
#main-content p { font-size:16px;
font-weight:normal;
padding-top:20px;
line-height:1.5em;
}
#main-content h1 {
color:teal;
padding-top:100px;
font-size:30px;
}
</style>
<div id='header-wrapper'>
<header>
<h1>MY PAGE</h1>
<nav id="menu">
<ul>
<li><a href="#home">Home</a></li>
<li><a href="#about">About</a></li>
<li><a href="#portfolio">Portfolio</a></li>
<li><a href="#contact">Contact</a></li>
</ul>
</nav>
</header>
</div>
<section id="main-content">
<h1 id="home">Bacon Ipsum</h1>
<p> Brisket chuck leberkas short ribs tenderloin tongue. Filet mignon sirloin jerky chicken strip steak t-bone. Ribeye short ribs fatback pancetta ham boudin, pork biltong tenderloin leberkas ball tip pork chop bresaola. Spare ribs kielbasa pork loin hamburger pork chop rump beef. Chuck spare ribs pork chop shank ribeye, leberkas turkey pig. Tri-tip tongue turducken, pig jowl brisket tail tenderloin flank rump bresaola pork chop short loin shoulder.</p>
<h1 id="about">About</h1>
<p>T-bone strip steak beef ribs, tenderloin drumstick pancetta biltong sirloin jowl speck kielbasa ball tip. Filet mignon leberkas jerky, cow shankle spare ribs fatback venison tri-tip short ribs kielbasa brisket. Swine pork loin beef kielbasa, prosciutto boudin beef ribs hamburger pork chop short ribs meatloaf frankfurter bresaola. Chuck kielbasa tail boudin.</p>
<h1 id="portfolio">Portfolio</h1>
<p>Ball tip swine salami, strip steak boudin chicken fatback. Kielbasa bresaola ribeye swine speck pork belly. T-bone chuck turducken, tail pig ball tip kielbasa. Ribeye kielbasa tenderloin spare ribs, turducken beef ribs prosciutto drumstick brisket pastrami strip steak. Jerky salami biltong chicken, ground round pig pork chop meatball pork corned beef pastrami turducken shoulder.</p>
<p>Ball tip capicola chuck kielbasa prosciutto chicken. Meatloaf meatball corned beef pork belly, andouille frankfurter salami ground round biltong rump spare ribs. Capicola tail boudin, turducken pork belly ribeye bresaola bacon t-bone ball tip. Ribeye frankfurter spare ribs, ground round pork loin tail rump salami speck sirloin pastrami shank.</p>
<h1 id="contact">Contact</h1>
<p>Ham hamburger capicola short loin pork loin kielbasa. Meatball biltong tri-tip pork belly speck pork loin, shankle bacon. Bacon frankfurter prosciutto, ribeye tri-tip jowl beef pork chop kielbasa bresaola t-bone pig shank short loin. Jerky brisket pork chop jowl.</p>
</section>
</textarea>
<script type='coder-solution'>
<style>
#header-wrapper {
height:80px;
}
header {
position:fixed;
background-color:white;
}
header h1 {
float:left;
font-size:50px;
font-weight:bold;
color:teal;
margin-right:20px;
margin-top:30px;
}
#menu { float:left;}
#menu ul {
list-style:none;
width:650px;
margin:30px auto 0px auto;
height:43px;
margin-top:50px;
padding:0px 20px 0px 20px;
}
#menu li {
float:left;
display:block;
text-align:center;
position:relative;
padding: 6px 15px;
margin-right:50px;
border: 1px solid white;
}
#menu li:hover {
border: 1px solid #E0E0E0;
background: #F4F4F4;
}
#menu li a {
font-family:Arial, Helvetica, sans-serif;
font-size:14px;
color: gray;
display:block;
outline:0;
text-decoration:none;
}
#menu li ul {
display:none;
position:absolute;
top:20px;
}
#main-content {
clear:both;
width:400px;
}
#main-content p { font-size:16px;
font-weight:normal;
padding-top:20px;
line-height:1.5em;
}
#main-content h1 {
color:teal;
padding-top:100px;
font-size:30px;
}
</style>
<div id='header-wrapper'>
<header>
<h1>MY PAGE</h1>
<nav id="menu">
<ul>
<li><a href="#home">Home</a></li>
<li><a href="#about">About</a></li>
<li><a href="#portfolio">Portfolio</a></li>
<li><a href="#contact">Contact</a></li>
</ul>
</nav>
</header>
</div>
<section id="main-content">
<h1 id="home">Bacon Ipsum</h1>
<p> Brisket chuck leberkas short ribs tenderloin tongue. Filet mignon sirloin jerky chicken strip steak t-bone. Ribeye short ribs fatback pancetta ham boudin, pork biltong tenderloin leberkas ball tip pork chop bresaola. Spare ribs kielbasa pork loin hamburger pork chop rump beef. Chuck spare ribs pork chop shank ribeye, leberkas turkey pig. Tri-tip tongue turducken, pig jowl brisket tail tenderloin flank rump bresaola pork chop short loin shoulder.</p>
<h1 id="about">About</h1>
<p>T-bone strip steak beef ribs, tenderloin drumstick pancetta biltong sirloin jowl speck kielbasa ball tip. Filet mignon leberkas jerky, cow shankle spare ribs fatback venison tri-tip short ribs kielbasa brisket. Swine pork loin beef kielbasa, prosciutto boudin beef ribs hamburger pork chop short ribs meatloaf frankfurter bresaola. Chuck kielbasa tail boudin.</p>
<h1 id="portfolio">Portfolio</h1>
<p>Ball tip swine salami, strip steak boudin chicken fatback. Kielbasa bresaola ribeye swine speck pork belly. T-bone chuck turducken, tail pig ball tip kielbasa. Ribeye kielbasa tenderloin spare ribs, turducken beef ribs prosciutto drumstick brisket pastrami strip steak. Jerky salami biltong chicken, ground round pig pork chop meatball pork corned beef pastrami turducken shoulder.</p>
<p>Ball tip capicola chuck kielbasa prosciutto chicken. Meatloaf meatball corned beef pork belly, andouille frankfurter salami ground round biltong rump spare ribs. Capicola tail boudin, turducken pork belly ribeye bresaola bacon t-bone ball tip. Ribeye frankfurter spare ribs, ground round pork loin tail rump salami speck sirloin pastrami shank.</p>
<h1 id="contact">Contact</h1>
<p>Ham hamburger capicola short loin pork loin kielbasa. Meatball biltong tri-tip pork belly speck pork loin, shankle bacon. Bacon frankfurter prosciutto, ribeye tri-tip jowl beef pork chop kielbasa bresaola t-bone pig shank short loin. Jerky brisket pork chop jowl.</p>
</section>
</script>
</article>
<article class='slide slide-list'>
<h2>Basic Navbar</h2>
<p>hidden dropdown set-up</p>
<textarea class='coder-editor coder-editor-full'>
<style>
#menu {
list-style:none;
width:940px;
margin:30px auto 0px auto;
height:43px;
padding:0px 20px 0px 20px;
}
#menu li {
float:left;
display:block;
text-align:center;
position:relative;
padding: 6px 17px;
margin-right:10px;
margin-top:7px;
border: 1px solid white;
}
#menu li:hover {
border: 1px solid #E0E0E0;
background: #F4F4F4;
}
#menu li a {
font-family:Arial, Helvetica, sans-serif;
font-size:14px;
color: gray;
display:block;
outline:0;
text-decoration:none;
}
#menu li ul {
display:none;
position:absolute;
top:20px;
}
</style>
<ul id="menu">
<li><a href="#">Home</a></li>
<li><a href="#">About</a></li>
<li><a href="#">Portfolio</a>
<ul>
<li><a href="#">Print</a></li>
<li><a href="#">Photography</a></li>
<li><a href="#">Web</a></li>
</ul></li>
<li><a href="#">Contact</a></li>
</ul>
</textarea>
</article>
<article class='slide slide-list'>
<h2>Nav Drop-Down</h2>
<p>Adding :hover selector</p>
<textarea class='coder-editor coder-editor-full'>
<style>
#menu {
list-style:none;
width:940px;
margin:30px auto 0px auto;
height:43px;
padding:0px 20px 0px 20px;
}
#menu li {
float:left;
display:block;
text-align:center;
position:relative;
padding: 6px 17px;
margin-right:10px;
margin-top:7px;
border: 1px solid white;
}
#menu li:hover {
border: 1px solid #E0E0E0;
background: #F4F4F4;
}
#menu li a {
font-family:Arial, Helvetica, sans-serif;
font-size:14px;
color: gray;
display:block;
outline:0;
text-decoration:none;
}
#menu li ul {
display:none;
position:absolute;
top:30px;
left:-41px;
}
#menu li:hover ul {
display:block;
}
#menu li ul li{
float:left;
display:block;
text-align:center;
position:relative;
padding: 4px 17px 4px 17px;
margin-right:10px;
margin-top:7px;
border: 1px solid white;
}
</style>
<ul id="menu">
<li><a href="#">Home</a></li>
<li><a href="#">About</a></li>
<li><a href="#">Portfolio</a>
<ul>
<li><a href="#">Print</a></li>
<li><a href="#">Photography</a></li>
<li><a href="#">Web</a></li>
</ul></li>
<li><a href="#">Contact</a></li>
</ul>
</textarea>
</article>
<article class='slide slide-list'>
<h1>Useful Tricks</h1>
<ul>
<li><h3><a href="http://codepen.io/icutpeople/pen/Kcxdp">Hamburger to X CSS animation</a></h3></li>
<li><h3><a href="http://www.valdelama.com/css-responsive-navigation">Flyout - pure CSS</a></h3></li>
<li><h3><a href="http://dev7studios.com/dropit/">On Click Dropdown - jQuery</a></h3></li>
<li><h3><a href="http://tympanus.net/Development/ParallaxContentSlider/index3.html">Styling Text Inputs</a></h3></li>
<li><h3><a href="http://sublimeorange.com/uncategorized/css3-speech-bubble/l">CSS3 Speech Bubble</a></h3></li>
<li><h3><a href="http://css-tricks.com/snippets/jquery/make-entire-div-clickable/">Make Entire Div Clickable</a></h3></li>
<li><h3><a href="http://css-tricks.com/snippets/css/sticky-footer/">Sticky Footer #2</a></h3></li>
</ul>
</article>
<article class='slide slide-subhead'>
<h1>Hosting & FTPing your website</h1>
<h2>quick and cheap</h2>
</article>
<article class='slide slide-statement'>
<h1><a href='http://dreamhost.com/'>DreamHost</a><h1>
</article>
<article class='slide slide-statement'>
<h1><a href='http://fetchsoftworks.com/'>Fetch FTP</a><h1>
</article>
<article class='slide slide-subhead'>
<h1>Forms</h1>
<h2>a basic contact form</h2>
</article>
<article class='slide slide-list'>
<h2>HTML5 Form</h2>
<textarea class='coder-editor coder-editor-full' >
<div id="contact-form">
<form id="contact" method="post" action="somewhere.php">
<fieldset>
<label for="name">Name</label>
<input type="text" name="contact[name]" placeholder="Full Name">
<label for="email">E-mail</label>
<input type="email" name="contact[email]" placeholder="name@domain.com">
<label for="phone">Message</label>
<textarea name="contact[message]" placeholder="enter your message"></textarea>
<input type="submit" name="submit" id="submit" value="Send Message" />
</fieldset>
</form>
</div>
<style>
label {display:block;}
input, textarea { display:block;}
</style>
</textarea>
</article>
<article class='slide slide-list'>
<h2>What does somewhere.php do?</h2>
<p>Well, we haven't covered PHP, but here's a example..</p>
<pre class='prettyprint'>
<?php
if($_REQUEST['contact']) {
$content = "Contact Details:\n";
foreach($_REQUEST['contact'] as $key => $value) {
$content .= "$key: $value\n";
}
mail ("myemail@domain.com","Form Submission!",$content);
header('Location: contact.html');
exit(0);
}
?>
<!DOCTYPE HTML>
<html lang="en">
<head></head>
<body>
No Contact Request Received
</body>
</html>
</pre>
</article>
<article class='slide slide-list'>
<h1>More Plugins</h1>
<h3>
<ul>
<li><a href="http://nanogallery.brisbois.fr/">Interactive Photo Gallery</a></li>
<li><a href="http://unslider.com/">Super Simple Slider</a></li>
<li><a href="http://css-tricks.com/snippets/css/slide-in-image-boxes/">Slide In Image Boxes</a></li>
<li><a href="http://www.cloud-eight.com/github/litebox/">Another LiteBox</a></li>
<li><a href="http://css-tricks.com/snippets/jquery/smooth-scrolling/">Smooth Scrolling</a></li>
<li><a href="http://plugins.jquery.com/parallax-imageScroll/">Parallax Image Scroller</a></li>
<li><a href="http://pixelcog.com/parallax.js/">Simple Parallax</a></li>
</ul>
</article>
<article class='slide slide-list'>
<h1>Useful Tricks
<h3>
<ul>
<li><a href="http://css-tricks.com/keep-margins-out-of-link-lists/">Keep Margins out of Link Lists</a></li>
<li><a href="http://css-tricks.com/perfect-full-page-background-image/">Perfect Full Page Background Image</a></li>
<li><a href="http://css-tricks.com/snippets/css/slide-in-image-boxes/">Slide In Image Boxes</a></li>
<li><a href="http://tympanus.net/Development/ParallaxContentSlider/index3.html">Styling Text Inputs</a></li>
<li><a href="http://sublimeorange.com/uncategorized/css3-speech-bubble/l">CSS3 Speech Bubble</a></li>
<li><a href="http://css-tricks.com/snippets/jquery/make-entire-div-clickable/">Make Entire Div Clickable</a></li>
<li><a href="http://css-tricks.com/snippets/css/sticky-footer/">Sticky Footer #2</a></li>
</ul>
</article>
<article class='slide slide-homework'>
<h2>Homework</h2>
<h3 class='slide'>Coding</h3>
<ul class='slide'>
<li><h3>Go through both the beginner and intermediate courses on codecademy</h3>
<li><h3><a href='http://www.codecademy.com/courses/programming-intro'>Beginning Programming</a></h3></li>
<li><h3><a href='http://www.codecademy.com/courses/jquery-and-the-dom'>jQuery and the DOM</a> </h3></li>
<li><h3><a href='http://www.codecademy.com/courses/functions_in_javascript'>Functions in Javascript</a></h3></li>
</ul>
<h3 class='slide'>Design</h3>
<ul class='slide'>