-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathexamples.html
218 lines (186 loc) · 9.11 KB
/
examples.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>IML 400 Spring 2015 Assignment 1</title>
<style>
body{
background: #222;
color:#ddd;
margin:0;
}
a{
font-weight:bold;
text-decoration:none;
color:crimson;
}
a:link, a:visited, a:active{
font-weight:bold;
text-decoration:none;
color:crimson;
}
a:hover{
color:gold;
}
#header{
background:black;
margin:0;
padding:10px 40px;
}
#header h3{
margin:0;
padding:0px;
}
#wrapper h3{
margin:12px 0 0 0;
padding:0px;
}
#wrapper{
width: 640px;
margin:40px auto 0 auto;
}
.golden{
color:gold;
}
ol{
margin: 0 auto;
font-size:18px;
}
ol li{
padding:3px 20px 0 0;
}
ol li.hide{
display:none;
}
ol li.show{
display:visible;
}
</style>
</head>
<body>
<div id="header">
<h3><a href="index.html" >Class Home</a></h3>
</div>
<div id="wrapper">
<h1>IML 400 Code Examples</h1>
<ol><h3>Basics</h3>
<li><a href="spring-2014/reading-report-template.html">Reading Report Template</a></li>
<li><a href="minimal-template.html">Minimal Template</a></li>
<li><a href="spring-2014/assignment-2-1.html">Self referential example</a></li>
<li><a href="spring-2014/assignment-2-2.html">Img and Hover</a></li>
<li><a href="fall-2012/hover-test.html">Background Property Hover Test</a></li>
<li><a href="spring-2013/layout-1.html">Landing Page layout left justified</a></li>
<li><a href="spring-2013/layout-2.html">Landing Page layout center Justified, Fixed Width Grid</a></li>
<li><a href="spring-2013/layout-3.html">Landing Page layout left Justified, Variable Width Grid</a></li>
<li><a href="spring-2013/layout-4.html">Landing Page layout full page list</a></li>
<li><a href="spring-2014/story-template-1/tabs-1.html">Tab navigation across multiple pages using lists and inline display</a></li>
<li><a href="spring-2014/story-template-2/menu-1.html">Left menu navigation across multiple pages using lists</a></li>
<li><a href="spring-2014/tabs-tutorial/">Extremely simple tabs template</a></li>
</ol>
<ol><h3>CSS</h3>
<li><a href="spring-2013/hexagons/">CSS Transforms Hexagons</a></li>
<li><a href="fall-2012/css-transitions.html">CSS Transitions</a></li>
</ol>
<ol><h3>Javascript and JQuery</h3>
<li><a href="spring-2013/arrays.html">Array Shuffle</a></li>
<li><a href="spring-2014/pop-ups/">Object based pop-ups</a> and <a href="spring-2014/pop-ups/youtube-popups.html">Object based video pop-ups</a></li>
<li><a href="live-inputs.html">Live inputs</a> using contenteditable</li>
<li><a href="moving-strings">String Manipulation</a> replacing specific words in a text</li>
<li><a href="moving-strings/character-stream.html">String Manipulation</a> Character Stream</li>
<li><a href="spring-2013/navigation.html">Event binding</a></li>
<li><a href="spring-2014/video-bg/">Simple Video Background</a></li>
<li><a href="spring-2014/slideshow-bg/">Slideshow background</a></li>
<li><a href="spring-2014/sticky-menu/">Sticky Menu</a></li>
</ol>
<ol><h3>JQuery UI</h3>
<li><a href="fall-2012/JQueryUI-sortablegrid.html">A sortable grid</a></li>
<li><a href="fall-2012/JQueryUI-accordion.html">Accordion Template</a></li>
<li><a href="fall-2012/JQueryUI-slideshow.html">Fading slideshow</a></li>
<li><a href="fall-2012/JQueryUI-slideshow-2.html">Swiping slideshow</a></li>
</ol>
<ol><h3>JQuery Plugins</h3>
<li><a href="fall-2012/video-bg/">Video Background with Drop down Menu using Tubular</a></li>
<li><a href="spring-2014/youtube-bg/">Video Background using Tubular</a></li>
<li><a href="fall-2012/supersized/slideshow/mytest.html">Image Slideshow using Supersized</a></li>
<li><a href="spring-2013/transit/">JQuery transit plugin</a></li>
</ol>
<ol><h3>Public APIs</h3>
<li><a href="spring-2013/twitter/">Old Twitter API</a> [Broken. Needs update to new API]</li>
<li><a href="spring-2014/apis/delicious-api-v2.html?user=blackaller">Delicious API</a></li>
<li><a href="apis/instagram/">Instagram API V1</a> - displays recent images featuring a given hashtag (deprecated)</li>
<li><a href="apis/flickr/">Flickr API</a> - takes optional user id (view source)</li>
<li><a href="apis/tumblr/">Tumblr API</a> - using static data to bypass oAuth server code</li>
<li><a href="fall-2012/map-bg/">Google Maps API Examples</a></li>
<li><a href="fall-2012/map-bg/api-test-1.html">Google Maps API Test</a></li>
<li><a href="fall-2012/map-bg/zooming.html">Google Maps API Zooming in</a> [Refresh a couple of times for full effect]</li>
<li><a href="fall-2012/map-bg/flyover-teleporter.html">Google Maps API Flyover Teleporter</a></li>
<li><a href="fall-2012/map-bg/address-to-coordinates.html">Google Maps API Address to Coordinates</a> [Currently Broken]</li>
</ol>
<ol><h3>HTML5 <canvas></h3>
<li><a href="canvas-examples/canvas-clock.html">Clock</a></li>
<li><a href="canvas-examples/cellular-automata.html">Cellular automata</a></li>
<li><a href="canvas-examples/transformation-stack.html">Transformation stack</a></li>
<li><a href="canvas-examples/draw.html">Drawing pad</a></li>
</ol>
<ol><h3>SVG and <canvas></h3>
<li><a href="twojs-examples/svg-0.html">SVG 1</a> - <a href="twojs-examples/svg-1.html">SVG 2</a> - using TwoJS</li>
<li><a href="twojs-examples/tween-0.html">Tweening</a> - using TwoJS</li>
<li>2D Particle raster tool - <a href="paperjs-particle-raster/particle-raster-0.html">example 1</a> - <a href="paperjs-particle-raster/particle-raster-1.html">example 2</a> - using PaperJS</li>
</ol>
<ol><h3>WebGL and ThreeJS</h3>
<li><a href="threejs-particle-raster">3D Particle raster tool</a> - using ThreeJS</li>
<li><a href="threejs-examples">Script loader and sketches</a> - using ThreeJS</li>
<li><a href="threejs-examples/candy-shader.html">Candy shader</a> - using ThreeJS</li>
</ol>
<ol><h3>Web VR</h3>
<li><a href="threejs-examples/cardboard-boilerplate.html">Basic Google Chrome Cardboard Boilerplate</a> - using ThreeJS. Works on WebGl-enabled mobile browsers</li>
<li><a href="threejs-examples/mozvr-boilerplate.html">Basic MozVR Firefox / Oculus Rift Boilerplate</a> - using ThreeJS. Requires Firefox nightly build</li>
<li><a href="threejs-examples/mozvr-mockups.html">Simple MozVR Firefox / Oculus Rift web content browsing mockup</a> - using ThreeJS. Rrequires Firefox nightly build. Warning: slow to load. Sometimes needs to reload</li>
<li>Simple scene with cubemap implemented for three different platforms:
<ul>
<li><a href="threejs-examples/rings.html">WebGL-enabled desktop / tablet / mobile browsers</a></li>
<li><a href="threejs-examples/cardboard-rings.html">Google Cardboard</a></li>
<li><a href="threejs-examples/mozvr-rings.html">MozVR Firefox / Oculus Rift</a></li>
</ul></li>
</ol>
<ol><h3>Audio and Web Audio</h3>
<li><a href="web-audio/simple-demo/test.html">Audio Responsive Square</a></li>
<li><a href="web-audio/volume-scroll">Document scroll sound controls</a></li>
</ol>
<p style="text-align:center; margin:60px 0 0 0; padding:0;">
<img src="fall-2012/images/roboteeno.png" style="display:block; margin:auto;"/>
</p>
</div>
<script type="application/x-javascript">
// add --- ?activate=true --- at end of URL for ghetto dropdown action
if ( window.location.search.substring(1) != "") var activate = window.location.search.substring(1).split("=")[1];
if (activate == "true"){
document.getElementsByTagName("img")[0].style.display = "none";
for (index = 0; index < document.getElementsByTagName("ol").length; ++index) {
document.getElementsByTagName("ol")[index].style.color = "gold";
document.getElementsByTagName("ol")[index].children[0].innerHTML = document.getElementsByTagName("ol")[index].children[0].innerHTML + " +";
for (k = 1; k < document.getElementsByTagName("ol")[index].children.length; ++k) {
document.getElementsByTagName("ol")[index].children[k].className = "hide";
}
document.getElementsByTagName("ol")[index].onclick = function (event) {
if (this.children[1].className != "hide"){
this.style.color = 'gold';
this.children[0].innerHTML = this.children[0].innerHTML.split("-")[0] + "+";
console.log(this.children[0].innerHTML);
for (index = 1; index < this.children.length; ++index) {
this.children[index].className = "hide";
}
}
else{
this.style.color = 'white';
this.children[0].innerHTML = this.children[0].innerHTML.split("+")[0] + "-";
for (index = 1; index < this.children.length; ++index) {
this.children[index].className = "show";
}
}
}
}
}
</script>
</body>
</html>