-
-
Notifications
You must be signed in to change notification settings - Fork 176
/
index.html
229 lines (191 loc) · 4.87 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
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>React StepZilla - Demo Page</title>
<meta name="description" content="This page shows all of React Stepzilla's functionality">
<style>
@import url('https://fonts.googleapis.com/css?family=Roboto');
</style>
<style>
/* local page styles */
html, html body {
background-color: #f2f9ff;
font-family: 'Roboto', sans-serif;
}
html h1 {
font-size: 26px;
margin-left: 10px;
}
html h2 {
font-size: 22px;
margin-left: 10px;
}
html h3 {
font-size: 14px;
margin-left: 10px;
}
html h4 {
font-size: 16px;
}
.example {
margin-top: 40px;
}
.progtrckr {
text-align: center;
padding-bottom: 16px;
}
.progtrckr li {
margin-bottom: 10px;
}
.val-err-tooltip {
background-color: red;
padding: 3px 5px 3px 10px;
font-size: 14px;
color: #fff;
}
.step {
background-color: #ccc;
min-height: 450px;
padding: 10px;
}
html .row, html .form-horizontal .form-group {
margin: 0;
}
.footer-buttons {
margin-top: 10px;
}
html .step3 label, html .step4 label {
font-size: 20px;
text-align: left;
}
html .form-horizontal .control-label {
text-align: left;
}
.review .txt {
font-size: 20px;
text-align: left;
margin: 0;
padding: 0;
}
html body .saving {
background-color: #5cb85c;
width: 90%;
padding: 5px;
font-size: 16px;
}
code {
position: relative;
left: 12px;
line-height: 25px;
}
.eg-jump-lnk {
margin-top: 50px;
font-style: italic;
}
.lib-version {
font-size: 12px;
background-color: rgba(255, 255, 0, 1);
position: absolute;
right: 10px;
top: 10px;
padding: 5px;
}
html .content {
margin-left: 10px;
}
span.red {
color: #d9534f;
}
span.green {
color: #3c763d;
}
span.bold {
font-weight: bold;
}
html .hoc-alert {
margin-top: 20px;
}
html .form-block-holder {
margin-top: 20px !important;
}
/* overwrite the stepzilla styles */
html ol.progtrckr li.progtrckr-todo:before {
background-color: #f2f9ff;
}
#exList {
background-color: #333;
padding: 8px;
text-align: center;
color: #fff;
}
#exList .title {
margin-bottom: 5px;
font-weight: bold;
font-size: 1.5rem;
margin-top: 5px;
}
#exList .eg {
display: inline-block;
padding: 5px;
border: solid 1px;
border-radius: 3px;
margin-right: 5px;
cursor: pointer;
}
#exList .eg.sel {
background-color: #000;
}
.container {
display: none;
}
</style>
</head>
<body>
<!--[if lt IE 8]>
<p class="browsehappy">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your experience.</p>
<![endif]-->
<div class="lib-version">v7.0.0</div>
<div id="exList">
<div class="title">Other Example Implementations</div>
<div class="eg base" onclick="showExample()">Base - Vanilla</div>
<div class="eg i18n" onclick="showExample('i18n')">i18n - Internationalization and localization</div>
<div class="eg redux" onclick="showExample('redux')">Redux</div>
</div>
<div id="root" class="container"></div>
<div id="rooti18n" class="container"></div>
<div id="rootRedux" class="container"></div>
<script src="https://code.jquery.com/jquery-1.12.4.min.js" integrity="sha256-ZosEbRLbNQzLpnKIkEdrPv7lOy9C27hHQ+Xp8a4MxAQ=" crossorigin="anonymous"></script>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" integrity="sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpLegxhjVME1fgjWPGmkzs7" crossorigin="anonymous">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap-theme.min.css" integrity="sha384-fLW2N01lMqjakBkx3l/M9EahuwpSfeNvV63J5ezn3uZzapT0u7EYsXMjQV+0En5r" crossorigin="anonymous">
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js" integrity="sha384-0mSbJDEHialfmuBBQP6A4Qrprq5OVfW37PRR3j5ELqxss1yVqOtnepnHVP9aJ7xS" crossorigin="anonymous"></script>
<script src="dist/bundle.js"></script>
<script>
$(() => {
showExample();
})
const showExample = (eg) => {
switch(eg) {
case 'i18n':
$('.container').hide();
$('#rooti18n').show();
$('#exList .eg').removeClass('sel');
$('#exList .eg.i18n').addClass('sel');
break;
case 'redux':
$('.container').hide();
$('#rootRedux').show();
$('#exList .eg').removeClass('sel');
$('#exList .eg.redux').addClass('sel');
break;
default:
$('.container').hide();
$('#root').show();
$('#exList .eg').removeClass('sel');
$('#exList .eg.base').addClass('sel');
break;
}
}
</script>
</body>
</html>