This repository was archived by the owner on Jun 13, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
265 lines (221 loc) · 12.8 KB
/
index.html
File metadata and controls
265 lines (221 loc) · 12.8 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
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Bootstrap CSS 4.0 -->
<link rel="stylesheet" href="node_modules/bootstrap/dist/css/bootstrap.css" />
<!-- CSS Components from Infusion for uiOptions -->
<link rel="stylesheet" type="text/css" href="lib/infusion/src/framework/preferences/css/Enactors.css" />
<link rel="stylesheet" type="text/css" href="lib/infusion/src/framework/preferences/css/PrefsEditor.css" />
<link rel="stylesheet" type="text/css" href="lib/infusion/src/framework/preferences/css/SeparatedPanelPrefsEditor.css" />
<!-- local CSS -->
<link rel="stylesheet" href="src/css/index.css">
<!-- jQuery -->
<script type="text/javascript" src="node_modules\jquery\dist\jquery.js"></script>
<!-- uiOptions JS -->
<script type="text/javascript" src="lib/infusion/infusion-uiOptions.js"></script>
<!-- Bootstrap JS -->
<script type="text/javascript" src="node_modules\bootstrap\dist\js\bootstrap.js"></script>
<!-- local JS -->
<script type="text/javascript" src="src/js/index.js"></script>
</head>
<body style="background: #f7fffe;">
<div class="flc-prefsEditor-separatedPanel fl-prefsEditor-separatedPanel">
<!-- This is the div that will contain the Preference Editor component -->
<div class="flc-slidingPanel-panel flc-prefsEditor-iframe"></div>
<!-- This div is for the sliding panel that shows and hides the Preference Editor controls -->
<div class="fl-panelBar">
<span class="fl-prefsEditor-buttons" style="color: white; background: #28a745">
<button id="reset" class="flc-prefsEditor-reset fl-prefsEditor-reset" style="color: white; background: #28a745">
<span class="fl-icon-undo"></span> Reset</button>
<button id="show-hide" class="flc-slidingPanel-toggleButton fl-prefsEditor-showHide" style="color: white; background: #28a745">
Show/Hide</button>
</span>
</div>
</div>
<!-- Progress Bar -->
<div class="side_progress">
<h6 class="text-center" style="margin-top: 70px; margin-bottom: 20px;">Your progress:</h6>
<div class="progress progress-bar-vertical">
<div class="progress-bar progress-bar-striped progress-bar-animated bg-success" role="progressbar" aria-valuenow="75" aria-valuemin="0"
aria-valuemax="100" style="height: 0%" id="tut_pro"></div>
</div>
</div>
<div class="part1">
<h3 class="text-center bottomer" style="padding-top: 30px;">Instructions & Info</h3>
<div class="container">
<!-- Components -->
<div class="container bottomer" id="ex-comp">
<h4>Components</h4>
<p>Components are JavaScript objects that have certain characteristics. Components can be freely combined together
to form new components using the grades system ("grade" is the term used in Infusion for a sort of blueprint,
in this case one that holds a component's default configuration), or organized into relationships with
one another via subcomponents.</p>
</div>
<!-- Invokers -->
<div class="container bottomer" id="ex-invoke">
<h4>Now lets do Invokers,</h4>
<p>All Infusion components support the definition of public functions using invokers; among other uses, invokers
allow related components to have different internal implementations of a function but present a common
function to be called by other code. If we imagine a "Hello, World!" component, there are a variety of
ways it might say "hello". Two of them are:
<ul>
<li>By printing to the web developer console via console.log</li>
<li>By displaying a message on a web page</li>
</ul>
</p>
</div>
<!-- Challenge Statement -->
<div class="container bottomer" id="chall_state">
<h4>Challenge:</h4>
<p>
<ul>
<li>Solve the challenge to proceed (Markup has been provided)</li>
<li>Click the button below for a hint</li>
</ul>
</p>
</div>
<!-- Hint Modal Trigger Button -->
<div class="container bottomer" id="get_hint">
<button type="button" class="btn btn-outline-success btn-lg btn-block" data-toggle="modal" data-target="#hintModal">Get Hint</button>
</div>
</div>
</div>
<!-- Hint Modal -->
<div class="modal fade" id="hintModal" tabindex="-1" role="dialog" aria-labelledby="hintModal" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title">Hint</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
Lorem ipsum dolor sit, amet consectetur adipisicing elit. Iste voluptates officia quidem dolor voluptatum aliquid itaque,
impedit accusamus ab error quod minima perferendis! A quibusdam nisi quasi neque iure voluptatum! Lorem
ipsum dolor sit, amet consectetur adipisicing elit. Architecto dolores, sunt enim suscipit ullam quod!
Maiores sapiente illum, necessitatibus consequuntur, est officiis dolorum nulla optio rerum iure repudiandae
voluptates excepturi!
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<div class="part2">
<!-- Introduciton -->
<div style="padding-bottom: 40px; margin-top: 70px;" id="intro">
<h1 class="text-center" style="padding-top: 40px;">Welcome to a Infusion Live Tutorial</h1>
<h4 class="text-center bottomer" style="padding-top: 20px;">Today we will be learning about the basics of the Infusion Framework i.e: Components and Invokers
<p>*This tutorial will be fully accessible using a keyboard</p>
</h4>
<div class="container bottomer text-center" id="starter">
<button type="button" class="btn btn-outline-success btn-lg" onclick="starter()">Start</button>
</div>
</div>
<!-- Intro Spaceholder -->
<div style="height: 100px;">
</div>
<!-- First Live Code Example -->
<div class="container bottomer" id="ex1">
<h5>
Here is a Live Example :
</h5>
<h6>(The below component will be replaced by a version in which the user can edit code which will be done using an
extended version of the
<a href="https://github.com/the-t-in-rtf/fluid-sandbox">Fluid Sandbox</a>)</h6>
<div class="container bottomer">
<iframe height='300' scrolling='no' title='infusion-live-tutorial-comp' src='//codepen.io/shadxx7/embed/WMLaOK/?height=265&theme-id=dark&default-tab=js,result&embed-version=2'
frameborder='no' allowtransparency='true' allowfullscreen='true' style='width: 100%;'>See the Pen
<a href='https://codepen.io/shadxx7/pen/WMLaOK/'>infusion-live-tutorial-comp</a> by Mohamed Shadab (
<a href='https://codepen.io/shadxx7'>@shadxx7</a>) on
<a href='https://codepen.io'>CodePen</a>.
</iframe>
</div>
<div class="container bottomer">
<button type="button" class="btn btn-success btn-lg btn-block" onclick="press1()">Next</button>
</div>
</div>
<!-- First Live Code Challenge -->
<div class="container bottomer" id="chall1">
<h5>
Try Making a component yourself now :
</h5>
<h6>(The below component will be replaced by a version in which the user can edit code which will be done using an
extended version of the
<a href="https://github.com/the-t-in-rtf/fluid-sandbox">Fluid Sandbox</a>)</h6>
<div class="container bottomer">
<iframe height='300' scrolling='no' title='infusion-live-tutorial-comp-chall' src='//codepen.io/shadxx7/embed/rJoPEV/?height=265&theme-id=dark&default-tab=js,result&embed-version=2'
frameborder='no' allowtransparency='true' allowfullscreen='true' style='width: 100%;'>See the Pen
<a href='https://codepen.io/shadxx7/pen/rJoPEV/'>infusion-live-tutorial-comp-chall</a> by Mohamed Shadab (
<a href='https://codepen.io/shadxx7'>@shadxx7</a>) on
<a href='https://codepen.io'>CodePen</a>.
</iframe>
</div>
<div class="container bottomer">
<button type="button" class="btn btn-success btn-lg btn-block" onclick="press2()">Next</button>
</div>
</div>
<!-- Invoker Live Code Example -->
<div class="container bottomer" id="ex2">
<h5>
Here is a Live Example :
</h5>
<h6>(The below component will be replaced by a version in which the user can edit code which will be done using an
extended version of the
<a href="https://github.com/the-t-in-rtf/fluid-sandbox">Fluid Sandbox</a>)</h6>
<div class="container bottomer">
<iframe height='300' scrolling='no' title='infusion-live-tutorial-invoke' src='//codepen.io/shadxx7/embed/ZrVPKW/?height=265&theme-id=dark&default-tab=js,result&embed-version=2'
frameborder='no' allowtransparency='true' allowfullscreen='true' style='width: 100%;'>See the Pen
<a href='https://codepen.io/shadxx7/pen/ZrVPKW/'>infusion-live-tutorial-invoke</a> by Mohamed Shadab (
<a href='https://codepen.io/shadxx7'>@shadxx7</a>) on
<a href='https://codepen.io'>CodePen</a>.
</iframe>
</div>
<div class="container bottomer">
<button type="button" class="btn btn-success btn-lg btn-block" onclick="press3()">Next</button>
</div>
</div>
<!-- Invoker Live Code Challenge -->
<div class="container bottomer" id="chall2">
<h5>
Try Making invoking in the console yourself now :
</h5>
<h6>(The below component will be replaced by a version in which the user can edit code which will be done using an
extended version of the
<a href="https://github.com/the-t-in-rtf/fluid-sandbox">Fluid Sandbox</a>)</h6>
<div class="container bottomer">
<iframe height='300' scrolling='no' title='infusion-live-tutorial-invoke-chall' src='//codepen.io/shadxx7/embed/LQMamd/?height=265&theme-id=dark&default-tab=js,result&embed-version=2'
frameborder='no' allowtransparency='true' allowfullscreen='true' style='width: 100%;'>See the Pen
<a href='https://codepen.io/shadxx7/pen/LQMamd/'>infusion-live-tutorial-invoke-chall</a> by Mohamed Shadab (
<a href='https://codepen.io/shadxx7'>@shadxx7</a>) on
<a href='https://codepen.io'>CodePen</a>.
</iframe>
</div>
<div class="container bottomer">
<button type="button" class="btn btn-success btn-lg btn-block" onclick="press4()">Complete</button>
</div>
</div>
<!-- Complete Popup -->
<div class="text-center container bottomer" style="padding-top: 100px; font-size: 40px;" id="complete">
<h1 style="color: #28a745;">Tutorial Complete!!!!</h1>
</div>
</div>
<!-- Initialize the UI Options Javascript -->
<script type="text/javascript">
$(document).ready(function () {
fluid.uiOptions.prefsEditor(".flc-prefsEditor-separatedPanel", {
tocTemplate: "lib/infusion/src/components/tableOfContents/html/TableOfContents.html",
terms: {
templatePrefix: "lib/infusion/src/framework/preferences/html",
messagePrefix: "lib/infusion/src/framework/preferences/messages"
}
});
})
</script>
</body>
</html>