-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathslideshow2.html
More file actions
executable file
·291 lines (247 loc) · 8.13 KB
/
slideshow2.html
File metadata and controls
executable file
·291 lines (247 loc) · 8.13 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
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
<!DOCTYPE html><!--[if IEMobile 7]><html class="no-js ie iem7" lang="en" dir="ltr"><![endif]--><!--[if lte IE 6]><html class="no-js ie lt-ie9 lt-ie8 lt-ie7" lang="en" dir="ltr"><![endif]--><!--[if (IE 7)&(!IEMobile)]><html class="no-js ie lt-ie9 lt-ie8" lang="en" dir="ltr"><![endif]--><!--[if IE 8]><html class="no-js ie lt-ie9" lang="en" dir="ltr"><![endif]--><!--[if (gte IE 9)|(gt IEMobile 7)]><html class="no-js ie" lang="en" dir="ltr"><![endif]--><!--[if !IE]><!--><html class="js" dir="ltr" lang="en"><!--<![endif]-->
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<!--[if lt IE 9]>
<script src="lib/html5shim.js"></script>
<![endif]-->
<!-- These are some core styles the slideshow app requires -->
<link rel="stylesheet" href="lib/styles.css" />
<!-- These are the styles you'll add to make the slides look great -->
<link rel="stylesheet" href="css/styles.css" />
<title>CCLE Redirect | UCLA Library</title>
</head>
<body class="html not-front not-logged-in page-search section-search">
<div id="wrapper">
<div id="header">
<!-- START OF HEADER -->
<style><!--
/* Effective stylesheet produced by snapshot save */
@import url("ucla.css");
--></style>
<div class="l-page has-no-sidebars">
<div class="l-header-wrapper">
<div class="l-header" role="banner">
<div class="l-region l-region--branding">
<div class="panel-pane pane-page-logo">
<div class="pane-content">
<a href="http://www.library.ucla.edu/" rel="home" id="logo" title="Home"><img src="logo.png" alt="Home"></a>
</div>
</div>
</div>
</div>
</div>
<div class="l-navigation-wrapper">
<div id="menu" class="l-navigation">
<div class="l-region l-region--navigation">
<div class="panel-pane pane-page-primary-links">
<div class="pane-content" style="white-space: nowrap">
CCLE Redirect
</div>
</div>
</div>
</div>
</div>
<div class="l-main-wrapper">
<div class="l-main">
<div class="l-content" role="main">
<a name="main-content"></a>
<div class="panel-pane pane-page-content">
<div class="pane-content">
<div class="sidebar-left panel-sidebar-left with-sidebar-left">
<br>
<!-- END OF HEADER -->
</div>
<div id="content">
<header>
<h1><a href="">Start</a></h1>
<nav>
<ul>
<li><button id="prev-btn" title="Previous slide">Previous Slide</button></li>
<li><span id="slide-number"></span>/<span id="slide-total"></span></li>
<li><button id="next-btn" title="Next Slide">Next Slide</button></li>
</ul>
</nav>
</header>
<div id="deck">
<!-- Begin slides -->
<!-- Begin slides -->
<!-- Begin slides -->
<section>
<hgroup>
<br>
<br>
<br>
<h1>UCLA Library CCLE Redirect</h1>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<h2>Darrow Cole</h2>
</hgroup>
</section>
<section>
<hgroup>
<h1>CCLE Redirect</h1>
<h2>Basic Idea</h2>
</hgroup>
<img src="images/drawing.svg" alt="One LibGuide" />
</section>
<section>
<hgroup>
<h1>Requirements</h1>
<h2>Developed in conjunction with the project committee</h2>
</hgroup>
<ul>
<li class="action">Must work with our CMS ===> Drupal Module</li>
<li class="action">Minimize db access</li>
<li class="action">Require no special knowledge to create incoming link</li>
<li class="action">Accommodate multiple guides per class</li>
<li class="action">Return the most detailed applicable LibGuide</li>
</ul>
</section>
<section>
<hgroup>
<h1>CCLE Redirect - case #1</h1>
<h2>Basic Idea: Go to the LibGuide when the class link is clicked</h2>
</hgroup>
<img src="images/drawing.svg" alt="One LibGuide" />
</section>
<section>
<hgroup>
<h1>CCLE Redirect - case #2</h1>
<h2>A bit more complicated</h2>
</hgroup>
<img src="images/drawing2.svg" alt="Many LibGuides" />
</section>
<section>
<hgroup>
<h1>CCLE Redirect - case #3</h1>
<h2>And, a bit more</h2>
</hgroup>
<img src="images/drawing3.svg" alt="Many LibGuides" />
</section>
<section>
<hgroup>
<h1>Possible Guides for one Class</h1>
<h2></h2>
</hgroup>
<h2>Department Guide ( subject )</h3>
<h2>Course Guide ( course )</h3>
<h2>Section Guide ( class )</h3>
</section>
<section>
<hgroup>
<h1>Basic Approach</h1>
<h2>Mapping the link</h2>
</hgroup>
<ul>
<li class="action">So, given this: http://www.mysite.edu/econ_101</li>
<li class="action">How do I go to this: http://www.mysite.edu/econ_101_class_guide</li>
</ul>
</section>
<section>
<hgroup>
<h1>Logic Flow</h1>
<h2>Read and cycle</h2>
</hgroup>
<img src="images/drawing4.svg" alt="Many LibGuides" />
</section>
<section>
<hgroup>
<h1>Logic Flow</h1>
<h2>Code Sample</h2>
</hgroup>
<pre>
foreach ($rows as $row) {
if( $row['term'] == $term_submitted[$i] ){
if( strlen( $row['crsidx'] ) > 0 ){
if( $row['crsidx'] == $category_submitted[$i] ){
if( strlen( $row['classidx'] ) > 0 ){
if( $row['classidx'] == $section_submitted[$i] ){
$rd_class[$i] = $row['lib_guide'];
}
}
}
}
}
</pre>
</section>
<section>
<hgroup>
<h1>Code and Links</h1>
</hgroup>
<br>
<br>
<br>
<br>
<h2>--- <a href="https://github.com/BluesparkLabs/UCLALIB/tree/master/www/sites/all/modules/custom/ccle_redirect">CCLE Redirect code on github</a> (login required)</h2>
<h2>--- <a href="http://darrowco.github.io/code4lib/slideshow2.html">Link to these slides</a></h2>
<h2>--- How these slides were made and hosted on github</h2>
<h2>--- darrowco@library.ucla.edu</h2>
</section>
<!-- /End slides -->
<!-- /End slides -->
<!-- /End slides -->
</div>
<!-- /deck -->
<script src="lib/jquery-1.5.2.min.js"></script>
<script src="lib/jquery.jswipe-0.1.2.js"></script>
<script src="lib/htmlSlides.js"></script>
<script>
//Do our business when the DOM is ready for us
$(function() {
//You can trigger Javascript based on the slide number like this:
$('html').bind('newSlide', function(e, id) {
switch(id) {
case 2:
console.log('This is the second slide.');;
break;
case 3:
console.log('Hello, third slide.');
break;
}
});
//One little option: hideToolbar (boolean; default = false)
htmlSlides.init({ hideToolbar: true });
});
</script>
</div>
<!-- START OF FOOTER -->
</div>
</div>
</div>
</div>
</div>
</div>
<div id="footer">
<div class="l-footer-wrapper">
<div class="l-footer" role="contentinfo">
<div class="l-region l-region--footer">
<div class="panel-pane pane-block pane-menu-menu-footer">
<div class="pane-content">
<ul class="menu">
<li class="first last leaf"><span title="" class="footer-copyright nolink"></span></li>
<!--<li class="first last leaf"><span title="" class="footer-copyright nolink">2014 © UC Regents</span></li>-->
</ul>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- END OF FOOTER -->
</div>
</div>
</body></html>