Version Description
- Brand New User Interface
- Hotspot Support Added
- 3.8 Support Added
- Deeper sub-category support
- Sidekick Platform Upgraded
- Known bug exists with HTTPs protocols
Download this release
Release Info
Developer | raptor235 |
Plugin | Sidekick |
Version | 1.1 |
Comparing to | |
See all releases |
Code changes from version 1.0 to 1.1
- css/sidekick_wordpress.css +729 -310
- images/arrows.png +0 -0
- images/arrows_01.png +0 -0
- images/arrows_02.png +0 -0
- images/arrows_04.png +0 -0
- images/arrows_05.png +0 -0
- images/sidekick_wp_sprites.png +0 -0
- images/sprides_v11.png +0 -0
- images/sprides_v11_retna.png +0 -0
- js/sk.source.js +1016 -756
- readme.txt +26 -24
- sidekick.php +99 -73
css/sidekick_wordpress.css
CHANGED
@@ -1,385 +1,804 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
div#sidekick {
|
2 |
position: fixed;
|
3 |
-
bottom:
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
}
|
18 |
-
div#sidekick
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
19 |
display: none;
|
20 |
}
|
21 |
-
div#sidekick
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
22 |
display: none;
|
23 |
}
|
24 |
div#sidekick button {
|
25 |
cursor: pointer;
|
26 |
cursor: hand;
|
|
|
27 |
}
|
28 |
-
div#sidekick
|
29 |
-
padding: 10px 20px;
|
30 |
-
background-color: #E04F19;
|
31 |
-
text-transform: uppercase;
|
32 |
-
margin: 10px auto;
|
33 |
-
border: solid 1px white;
|
34 |
-
color: white;
|
35 |
-
font-size: 14px;
|
36 |
-
display: block;
|
37 |
-
-moz-box-shadow: 0px 0px 6px rgba(0, 0, 0, 0.3);
|
38 |
-
-webkit-box-shadow: 0px 0px 6px rgba(0, 0, 0, 0.3);
|
39 |
-
box-shadow: 0px 0px 6px rgba(0, 0, 0, 0.3);
|
40 |
-
-webkit-border-radius: 3px;
|
41 |
-
-moz-border-radius: 3px;
|
42 |
-
-ms-border-radius: 3px;
|
43 |
-
-o-border-radius: 3px;
|
44 |
-
border-radius: 3px;
|
45 |
-
}
|
46 |
-
div#sidekick button #goto_library:hover {
|
47 |
-
background-color: #f75619;
|
48 |
-
color: #fff;
|
49 |
-
}
|
50 |
-
div#sidekick ul.bucketContainer {
|
51 |
-
height: 217px;
|
52 |
-
overflow-y: hidden;
|
53 |
-
overflow-x: hidden;
|
54 |
-
}
|
55 |
-
div#sidekick ul.bucketContainer div > li {
|
56 |
-
width: 300px;
|
57 |
-
height: 217px;
|
58 |
-
overflow-y: auto;
|
59 |
-
}
|
60 |
-
div#sidekick ul {
|
61 |
-
margin: 0;
|
62 |
width: 100%;
|
|
|
|
|
63 |
position: relative;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
64 |
}
|
65 |
-
div#sidekick
|
66 |
-
|
67 |
-
|
68 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
69 |
}
|
70 |
-
div#sidekick
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
71 |
color: white;
|
72 |
-
|
|
|
73 |
}
|
74 |
-
div#sidekick
|
75 |
-
|
|
|
|
|
|
|
|
|
|
|
76 |
}
|
77 |
-
div#sidekick
|
78 |
-
-
|
79 |
-
|
80 |
-
box-shadow: inset 0px 2px 6px rgba(0, 0, 0, 0.8);
|
81 |
}
|
82 |
-
div#sidekick
|
83 |
-
|
|
|
84 |
}
|
85 |
-
div#sidekick
|
86 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
87 |
}
|
88 |
-
div#sidekick
|
89 |
-
|
90 |
-
|
91 |
-
line-height: 24px;
|
92 |
-
overflow: hidden;
|
93 |
-
width: 100%;
|
94 |
}
|
95 |
-
div#sidekick
|
96 |
-
|
97 |
-
-moz-transition: all 0.1s ease-out;
|
98 |
-
-o-transition: all 0.1s ease-out;
|
99 |
-
transition: all 0.1s ease-out;
|
100 |
-
background-color: #437bbc;
|
101 |
}
|
102 |
-
div#sidekick
|
103 |
-
|
104 |
}
|
105 |
-
div#sidekick
|
106 |
-
|
107 |
}
|
108 |
-
div#sidekick
|
109 |
-
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
overflow-y: auto;
|
115 |
}
|
116 |
-
div#sidekick
|
117 |
-
|
118 |
-
height: 217px;
|
119 |
}
|
120 |
-
div#sidekick
|
121 |
-
background
|
122 |
-
|
123 |
-
|
124 |
-
|
125 |
-
height: 217px;
|
126 |
}
|
127 |
-
div#sidekick
|
128 |
-
|
|
|
|
|
|
|
129 |
}
|
130 |
-
div#sidekick
|
131 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
132 |
}
|
133 |
-
div#sidekick
|
134 |
-
|
|
|
135 |
}
|
136 |
-
div#sidekick
|
137 |
-
|
138 |
-
padding: 10px 20px;
|
139 |
-
background-color: #6fe04a;
|
140 |
-
text-transform: uppercase;
|
141 |
-
/*margin: 10px auto;*/
|
142 |
|
143 |
-
border: solid 1px white;
|
|
|
|
|
|
|
144 |
color: white;
|
145 |
-
font-size: 14px;
|
146 |
-
display: block;
|
147 |
-
-moz-box-shadow: 0px 0px 6px rgba(0, 0, 0, 0.3);
|
148 |
-
-webkit-box-shadow: 0px 0px 6px rgba(0, 0, 0, 0.3);
|
149 |
-
box-shadow: 0px 0px 6px rgba(0, 0, 0, 0.3);
|
150 |
-
-webkit-border-radius: 3px;
|
151 |
-
-moz-border-radius: 3px;
|
152 |
-
border-radius: 3px;
|
153 |
-
margin-bottom: 20px;
|
154 |
-
color: black;
|
155 |
-
font-weight: bold;
|
156 |
-
cursor: pointer;
|
157 |
-
float: right;
|
158 |
}
|
159 |
-
div#sidekick
|
160 |
-
|
161 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
162 |
}
|
163 |
-
div#sidekick
|
164 |
-
background
|
165 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
166 |
}
|
167 |
-
div#sidekick
|
168 |
-
background
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
169 |
}
|
170 |
-
div#sidekick
|
171 |
-
|
172 |
-
|
173 |
-
line-height: 20px;
|
174 |
-
min-height: 80px;
|
175 |
-
margin-bottom: 10px;
|
176 |
}
|
177 |
-
div#sidekick
|
178 |
-
|
179 |
-
|
180 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
181 |
}
|
182 |
-
div#sidekick
|
|
|
|
|
|
|
183 |
width: 20px;
|
184 |
height: 20px;
|
185 |
-
background: url('../images/
|
186 |
-
|
187 |
-
|
188 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
189 |
cursor: pointer;
|
|
|
190 |
}
|
191 |
-
div#sidekick
|
192 |
-
background:
|
|
|
|
|
|
|
|
|
|
|
193 |
}
|
194 |
-
div#sidekick ul
|
195 |
-
|
|
|
|
|
196 |
}
|
197 |
-
div#sidekick ul
|
198 |
-
|
199 |
-
-moz-box-shadow: inset 0px 2px 6px rgba(0, 0, 0, 0.8);
|
200 |
-
-webkit-box-shadow: inset 0px 2px 6px rgba(0, 0, 0, 0.8);
|
201 |
-
box-shadow: inset 0px 2px 6px rgba(0, 0, 0, 0.8);
|
202 |
-
background-color: #454545;
|
203 |
-
cursor: default;
|
204 |
}
|
205 |
-
div#sidekick ul
|
206 |
-
|
207 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
208 |
}
|
209 |
-
div#sidekick ul
|
210 |
-
|
211 |
-
|
212 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
213 |
|
214 |
-
width: 100%;
|
215 |
}
|
216 |
-
div#sidekick ul
|
217 |
-
|
|
|
|
|
|
|
|
|
218 |
}
|
219 |
-
div#sidekick
|
220 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
221 |
}
|
222 |
-
div#sidekick ul
|
223 |
-
|
224 |
-
|
225 |
-
|
226 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
227 |
|
228 |
-
color: white;
|
229 |
-
margin: 0;
|
230 |
-
position: relative;
|
231 |
-
cursor: pointer;
|
232 |
-
cursor: hand;
|
233 |
-
-moz-box-shadow: inset 3px 3px 6px rgba(0, 0, 0, 0.3);
|
234 |
-
-webkit-box-shadow: inset 3px 3px 6px rgba(0, 0, 0, 0.3);
|
235 |
-
box-shadow: inset 3px 3px 6px rgba(0, 0, 0, 0.3);
|
236 |
}
|
237 |
-
div#sidekick ul
|
238 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
239 |
}
|
240 |
-
div#sidekick ul li.
|
241 |
-
background-color: #2f2f2f;
|
242 |
-
width: 53px;
|
243 |
-
height: 30px;
|
244 |
-
display: block;
|
245 |
-
position: absolute;
|
246 |
-
top: 13px;
|
247 |
-
right: 10px;
|
248 |
text-align: center;
|
249 |
-
|
250 |
-
|
251 |
-
|
252 |
-
|
253 |
-
|
254 |
-
-
|
255 |
-
|
256 |
-
|
257 |
-
|
258 |
-
|
259 |
-
|
260 |
-
|
261 |
-
|
262 |
-
|
263 |
-
background-color:
|
264 |
-
|
265 |
-
|
266 |
-
-webkit-transition: all 0.
|
267 |
-
-moz-transition: all 0.
|
268 |
-
-o-transition: all 0.
|
269 |
-
transition: all 0.
|
270 |
-
background-color
|
271 |
-
|
272 |
-
|
273 |
-
|
274 |
-
|
275 |
-
|
276 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
277 |
text-align: center;
|
278 |
-
|
279 |
-
|
|
|
|
|
|
|
|
|
|
|
280 |
font-size: 14px;
|
281 |
-
|
282 |
-
|
283 |
-
|
284 |
-
|
285 |
-
-webkit-
|
286 |
-
-moz-
|
287 |
-
|
288 |
-
|
289 |
-
|
290 |
|
291 |
-
|
292 |
-
/* FF3.6+ */
|
293 |
|
294 |
-
|
295 |
-
/* Chrome,Safari4+ */
|
296 |
|
297 |
-
|
298 |
-
/* Chrome10+,Safari5.1+ */
|
299 |
|
300 |
-
|
301 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
302 |
|
303 |
-
|
304 |
-
/* IE10+ */
|
305 |
|
306 |
-
|
307 |
-
/* W3C */
|
308 |
|
309 |
-
|
310 |
-
/* IE6-9 */
|
311 |
|
312 |
-
-moz-box-shadow: inset 3px 3px 15px rgba(0, 0, 0, 0.5);
|
313 |
-
-webkit-box-shadow: inset 3px 3px 15px rgba(0, 0, 0, 0.5);
|
314 |
-
box-shadow: inset 3px 3px 15px rgba(0, 0, 0, 0.5);
|
315 |
}
|
316 |
-
div#sidekick
|
317 |
-
|
318 |
-
|
319 |
-
|
320 |
-
|
321 |
-
|
322 |
-
|
323 |
-
|
324 |
-
|
325 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
326 |
color: white;
|
327 |
-
|
328 |
-
-webkit-box-shadow: inset 0px 0px 15px rgba(0, 0, 0, 0.3);
|
329 |
-
box-shadow: inset 0px 0px 15px rgba(0, 0, 0, 0.3);
|
330 |
-
-webkit-border-radius: 3px;
|
331 |
-
-moz-border-radius: 3px;
|
332 |
-
border-radius: 3px;
|
333 |
-
border: solid 1px #3c6fa9;
|
334 |
-
background: url('../images/sidekick_wp_sprites.png') -640px -38px;
|
335 |
-
}
|
336 |
-
div#sidekick h2 button:hover {
|
337 |
-
background-color: #3a9bd5;
|
338 |
-
}
|
339 |
-
div#sidekick h2 button.goback {
|
340 |
-
background: url('../images/sidekick_wp_sprites.png') -641px -21px;
|
341 |
-
}
|
342 |
-
div#sidekick h2 button.close {
|
343 |
-
background: url('../images/sidekick_wp_sprites.png') -640px -75px;
|
344 |
-
left: auto;
|
345 |
-
right: 10px;
|
346 |
-
}
|
347 |
-
div#sidekick > ul {
|
348 |
-
height: 260px;
|
349 |
-
}
|
350 |
-
div#sidekick > #logo {
|
351 |
-
width: 70px;
|
352 |
-
height: 70px;
|
353 |
-
right: -30px;
|
354 |
-
background: url('../images/sidekick_wp_sprites.png') -476px -347px;
|
355 |
-
display: block;
|
356 |
position: relative;
|
357 |
cursor: pointer;
|
358 |
cursor: hand;
|
359 |
-
|
360 |
}
|
361 |
-
div#sidekick
|
362 |
-
background:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
363 |
}
|
364 |
-
div#sidekick #
|
365 |
-
|
366 |
-
|
367 |
-
margin: 6px auto 0;
|
368 |
-
background: url('../images/sidekick_wp_sprites.png') -299px -371px;
|
369 |
-
position: relative;
|
370 |
}
|
371 |
-
div#sidekick
|
372 |
-
background
|
373 |
-
padding: 1px 5px;
|
374 |
}
|
375 |
-
div#sidekick
|
376 |
-
|
377 |
-
|
378 |
-
|
379 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
380 |
}
|
381 |
-
div#sidekick.
|
382 |
-
|
383 |
-
|
384 |
-
|
385 |
}
|
1 |
+
@-moz-keyframes pulse {
|
2 |
+
0% {
|
3 |
+
opacity: 0;
|
4 |
+
}
|
5 |
+
100% {
|
6 |
+
opacity: 1;
|
7 |
+
}
|
8 |
+
}
|
9 |
+
.point_left {
|
10 |
+
-webkit-transform: rotate(270deg);
|
11 |
+
-moz-transform: rotate(270deg);
|
12 |
+
-ms-transform: rotate(270deg);
|
13 |
+
-o-transform: rotate(270deg);
|
14 |
+
transform: rotate(270deg);
|
15 |
+
}
|
16 |
+
.point_right {
|
17 |
+
-webkit-transform: rotate(90deg);
|
18 |
+
-moz-transform: rotate(90deg);
|
19 |
+
-ms-transform: rotate(90deg);
|
20 |
+
-o-transform: rotate(90deg);
|
21 |
+
transform: rotate(90deg);
|
22 |
+
}
|
23 |
+
.rotate_right2 {
|
24 |
+
-webkit-transform: rotate(180deg);
|
25 |
+
-moz-transform: rotate(180deg);
|
26 |
+
-ms-transform: rotate(180deg);
|
27 |
+
-o-transform: rotate(180deg);
|
28 |
+
transform: rotate(180deg);
|
29 |
+
}
|
30 |
+
div.sk_hotspot {
|
31 |
+
width: 25px;
|
32 |
+
height: 25px;
|
33 |
+
position: absolute;
|
34 |
+
cursor: pointer;
|
35 |
+
background: url('../images/sprides_v11.png') -3px -796px;
|
36 |
+
opacity: 0.0;
|
37 |
+
margin-left: -20px;
|
38 |
+
margin-top: -10px;
|
39 |
+
/*z-index: 10000000;*/
|
40 |
+
|
41 |
+
}
|
42 |
+
div.sk_hotspot.visible {
|
43 |
+
opacity: 0.8;
|
44 |
+
-webkit-animation: cssAnimation 0.3s 1 ease;
|
45 |
+
-moz-animation: cssAnimation 0.3s 1 ease;
|
46 |
+
-o-animation: cssAnimation 0.3s 1 ease;
|
47 |
+
}
|
48 |
+
@-webkit-keyframes cssAnimation {
|
49 |
+
from {
|
50 |
+
-webkit-transform: rotate(49deg) scale(0.5) translate(20px);
|
51 |
+
}
|
52 |
+
to {
|
53 |
+
-webkit-transform: rotate(0deg) scale(3);
|
54 |
+
}
|
55 |
+
}
|
56 |
+
@-moz-keyframes cssAnimation {
|
57 |
+
from {
|
58 |
+
-moz-transform: rotate(49deg) scale(0.5) translate(20px);
|
59 |
+
}
|
60 |
+
to {
|
61 |
+
-moz-transform: rotate(0deg) scale(3);
|
62 |
+
}
|
63 |
+
}
|
64 |
+
@-o-keyframes cssAnimation {
|
65 |
+
from {
|
66 |
+
-o-transform: rotate(49deg) scale(0.5) translate(20px);
|
67 |
+
}
|
68 |
+
to {
|
69 |
+
-o-transform: rotate(0deg) scale(3);
|
70 |
+
}
|
71 |
+
}
|
72 |
+
div.sk_hotspot:hover {
|
73 |
+
transform: translate3d(0, 0, 0);
|
74 |
+
-webkit-transition: all 0.1s ease-in-out;
|
75 |
+
-moz-transition: all 0.1s ease-in-out;
|
76 |
+
-o-transition: all 0.1s ease-in-out;
|
77 |
+
transition: all 0.1s ease-in-out;
|
78 |
+
/*-moz-transition: width 0.3s ease-out, max-height 0.3s ease-out, background-color 0.3s ease-out, -moz-transform 0.3s ease-out;*/
|
79 |
+
|
80 |
+
/*-webkit-transition: width 0.3s ease-out, max-height 0.3s ease-out, background-color 0.3s ease-out, -webkit-transform 0.3s ease-out;*/
|
81 |
+
|
82 |
+
/*-o-transition: width 0.3s ease-out, max-height 0.3s ease-out, background-color 0.3s ease-out, -o-transform 0.3s ease-out;*/
|
83 |
+
|
84 |
+
/*transition: width 0.3s ease-out, max-height 0.3s ease-out, background-color 0.3s ease-out, transform 0.3s ease-out;*/
|
85 |
+
|
86 |
+
opacity: 1;
|
87 |
+
transform: scale(1.2, 1.2);
|
88 |
+
-ms-transform: scale(1.2, 1.2);
|
89 |
+
-webkit-transform: scale(1.2, 1.2);
|
90 |
+
-o-transform: scale(1.2, 1.2);
|
91 |
+
-moz-transform: scale(1.2, 1.2);
|
92 |
+
}
|
93 |
+
body.branch-3-8 div#sidekick {
|
94 |
+
width: 150px;
|
95 |
+
}
|
96 |
+
body.branch-3-8 div#sidekick.open {
|
97 |
+
width: 100%;
|
98 |
+
}
|
99 |
+
body.branch-3-8 div#sidekick.open div#sk_taskbar div#logo {
|
100 |
+
width: 124px;
|
101 |
+
}
|
102 |
+
body.branch-3-8 div#sidekick.playing {
|
103 |
+
width: 100%;
|
104 |
+
}
|
105 |
+
body.branch-3-8 div#sidekick.playing div#sk_taskbar div#logo {
|
106 |
+
width: 124px;
|
107 |
+
}
|
108 |
+
@media (max-width: 900px) {
|
109 |
+
body div#sidekick,
|
110 |
+
body.branch-3-8 div#sidekick {
|
111 |
+
width: 36px;
|
112 |
+
}
|
113 |
+
body div#sidekick div#sk_taskbar div#logo,
|
114 |
+
body.branch-3-8 div#sidekick div#sk_taskbar div#logo {
|
115 |
+
width: 19px;
|
116 |
+
background-position: 3px 9px;
|
117 |
+
}
|
118 |
+
body div#sidekick div#sk_taskbar button.sk_toggle,
|
119 |
+
body.branch-3-8 div#sidekick div#sk_taskbar button.sk_toggle {
|
120 |
+
width: 5px;
|
121 |
+
border: none;
|
122 |
+
min-width: 17px;
|
123 |
+
background-position: -9px -358px;
|
124 |
+
}
|
125 |
+
body div#sidekick.open button.sk_toggle,
|
126 |
+
body.branch-3-8 div#sidekick.open button.sk_toggle,
|
127 |
+
body div#sidekick.playing button.sk_toggle,
|
128 |
+
body.branch-3-8 div#sidekick.playing button.sk_toggle {
|
129 |
+
-webkit-transform: rotate(180deg);
|
130 |
+
-moz-transform: rotate(180deg);
|
131 |
+
-ms-transform: rotate(180deg);
|
132 |
+
-o-transform: rotate(180deg);
|
133 |
+
transform: rotate(180deg);
|
134 |
+
}
|
135 |
+
}
|
136 |
div#sidekick {
|
137 |
position: fixed;
|
138 |
+
bottom: 0px;
|
139 |
+
left: 0px;
|
140 |
+
height: 40px;
|
141 |
+
width: 145px;
|
142 |
+
/*overflow: hidden;*/
|
143 |
+
|
144 |
+
z-index: 1000001;
|
145 |
+
/*.animate_reg;*/
|
146 |
+
|
147 |
+
}
|
148 |
+
div#sidekick.sidekick_player {
|
149 |
+
left: 0px;
|
150 |
+
bottom: 0px;
|
151 |
+
display: block;
|
152 |
+
}
|
153 |
+
div#sidekick.open {
|
154 |
+
width: 100%;
|
155 |
+
-webkit-transition: all 0.5s ease-out;
|
156 |
+
-moz-transition: all 0.5s ease-out;
|
157 |
+
-o-transition: all 0.5s ease-out;
|
158 |
+
transition: all 0.5s ease-out;
|
159 |
+
}
|
160 |
+
div#sidekick.open div#sk_taskbar button.sk_toggle {
|
161 |
+
background: url('../images/sprides_v11.png') -6px -394px;
|
162 |
+
}
|
163 |
+
div#sidekick.open div#sk_taskbar div.sk_controls {
|
164 |
+
display: block;
|
165 |
+
}
|
166 |
+
div#sidekick.open div#sk_taskbar div.sk_info,
|
167 |
+
div#sidekick.open div#sk_taskbar div.sk_toggle,
|
168 |
+
div#sidekick.open div#sk_taskbar div.sk_toggles {
|
169 |
+
display: block;
|
170 |
+
}
|
171 |
+
div#sidekick.playing {
|
172 |
+
width: 100%;
|
173 |
+
}
|
174 |
+
div#sidekick.playing #sk_drawer {
|
175 |
+
height: 0px;
|
176 |
display: none;
|
177 |
}
|
178 |
+
div#sidekick.playing div#sk_taskbar div.sk_controls {
|
179 |
+
display: block;
|
180 |
+
}
|
181 |
+
div#sidekick.playing div#sk_taskbar div.sk_controls button {
|
182 |
+
opacity: 1;
|
183 |
+
}
|
184 |
+
div#sidekick.playing div#sk_taskbar div.sk_info {
|
185 |
+
display: block;
|
186 |
+
}
|
187 |
+
div#sidekick.playing div#sk_taskbar div.sk_info div.sk_time,
|
188 |
+
div#sidekick.playing div#sk_taskbar div.sk_info div.sk_title {
|
189 |
+
opacity: 1;
|
190 |
+
}
|
191 |
+
div#sidekick.playing div#sk_taskbar button.sk_toggle {
|
192 |
+
background: url('../images/sprides_v11.png') -6px -394px;
|
193 |
+
}
|
194 |
+
div#sidekick.playing div#sk_taskbar div.sk_toggles {
|
195 |
+
display: block;
|
196 |
+
margin-top: 100px;
|
197 |
+
transform: translate3d(0, 0, 0);
|
198 |
+
-webkit-transition: all 0.3s ease-out;
|
199 |
+
-moz-transition: all 0.3s ease-out;
|
200 |
+
-o-transition: all 0.3s ease-out;
|
201 |
+
transition: all 0.3s ease-out;
|
202 |
+
/*-moz-transition: width 0.3s ease-out, max-height 0.3s ease-out, background-color 0.3s ease-out, -moz-transform 0.3s ease-out;*/
|
203 |
+
|
204 |
+
/*-webkit-transition: width 0.3s ease-out, max-height 0.3s ease-out, background-color 0.3s ease-out, -webkit-transform 0.3s ease-out;*/
|
205 |
+
|
206 |
+
/*-o-transition: width 0.3s ease-out, max-height 0.3s ease-out, background-color 0.3s ease-out, -o-transform 0.3s ease-out;*/
|
207 |
+
|
208 |
+
/*transition: width 0.3s ease-out, max-height 0.3s ease-out, background-color 0.3s ease-out, transform 0.3s ease-out;*/
|
209 |
+
|
210 |
+
}
|
211 |
+
div#sidekick.playing div#sk_taskbar div.sk_toggles #toggle_drawer {
|
212 |
display: none;
|
213 |
}
|
214 |
div#sidekick button {
|
215 |
cursor: pointer;
|
216 |
cursor: hand;
|
217 |
+
padding: 0px;
|
218 |
}
|
219 |
+
div#sidekick div#sk_taskbar {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
220 |
width: 100%;
|
221 |
+
height: 100%;
|
222 |
+
z-index: 1000003;
|
223 |
position: relative;
|
224 |
+
background: #ff712b;
|
225 |
+
/* Old browsers */
|
226 |
+
|
227 |
+
/* IE9 SVG, needs conditional override of 'filter' to 'none' */
|
228 |
+
|
229 |
+
background: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pgo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgdmlld0JveD0iMCAwIDEgMSIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSI+CiAgPGxpbmVhckdyYWRpZW50IGlkPSJncmFkLXVjZ2ctZ2VuZXJhdGVkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjAlIiB5MT0iMCUiIHgyPSIwJSIgeTI9IjEwMCUiPgogICAgPHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iI2ZmNzEyYiIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjEwMCUiIHN0b3AtY29sb3I9IiNlZDVmMTkiIHN0b3Atb3BhY2l0eT0iMSIvPgogIDwvbGluZWFyR3JhZGllbnQ+CiAgPHJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9IjEiIGhlaWdodD0iMSIgZmlsbD0idXJsKCNncmFkLXVjZ2ctZ2VuZXJhdGVkKSIgLz4KPC9zdmc+);
|
230 |
+
background: -moz-linear-gradient(top, #ff712b 0%, #ed5f19 100%);
|
231 |
+
/* FF3.6+ */
|
232 |
+
|
233 |
+
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #ff712b), color-stop(100%, #ed5f19));
|
234 |
+
/* Chrome,Safari4+ */
|
235 |
+
|
236 |
+
background: -webkit-linear-gradient(top, #ff712b 0%, #ed5f19 100%);
|
237 |
+
/* Chrome10+,Safari5.1+ */
|
238 |
+
|
239 |
+
background: -o-linear-gradient(top, #ff712b 0%, #ed5f19 100%);
|
240 |
+
/* Opera 11.10+ */
|
241 |
+
|
242 |
+
background: -ms-linear-gradient(top, #ff712b 0%, #ed5f19 100%);
|
243 |
+
/* IE10+ */
|
244 |
+
|
245 |
+
background: linear-gradient(to bottom, #ff712b 0%, #ed5f19 100%);
|
246 |
+
/* W3C */
|
247 |
+
|
248 |
+
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff712b', endColorstr='#ed5f19', GradientType=0);
|
249 |
+
/* IE6-8 */
|
250 |
+
|
251 |
}
|
252 |
+
div#sidekick div#sk_taskbar button {
|
253 |
+
border: none;
|
254 |
+
height: 100%;
|
255 |
+
min-width: 26px;
|
256 |
+
float: left;
|
257 |
+
}
|
258 |
+
div#sidekick div#sk_taskbar div#logo {
|
259 |
+
float: left;
|
260 |
+
height: 100%;
|
261 |
+
width: 116px;
|
262 |
+
/*width: 124px; wp 3.8+ */
|
263 |
+
|
264 |
+
background: url('../images/sprides_v11.png') 8px 9px no-repeat;
|
265 |
+
cursor: pointer;
|
266 |
}
|
267 |
+
div#sidekick div#sk_taskbar button.sk_toggle {
|
268 |
+
float: left;
|
269 |
+
height: 100%;
|
270 |
+
width: 20px;
|
271 |
+
background: url('../images/sprides_v11.png') 0px -358px;
|
272 |
+
border: none;
|
273 |
+
}
|
274 |
+
div#sidekick div#sk_taskbar div.sk_info {
|
275 |
+
display: none;
|
276 |
+
height: 100%;
|
277 |
+
}
|
278 |
+
div#sidekick div#sk_taskbar div.sk_info .sk_time {
|
279 |
+
float: left;
|
280 |
+
height: 100%;
|
281 |
+
font-size: 16px;
|
282 |
color: white;
|
283 |
+
margin: 13px 30px;
|
284 |
+
opacity: 0.3;
|
285 |
}
|
286 |
+
div#sidekick div#sk_taskbar div.sk_info .sk_title {
|
287 |
+
float: left;
|
288 |
+
height: 100%;
|
289 |
+
font-size: 16px;
|
290 |
+
color: white;
|
291 |
+
border-left: solid 1px white;
|
292 |
+
opacity: 0.3;
|
293 |
}
|
294 |
+
div#sidekick div#sk_taskbar div.sk_info .sk_title label {
|
295 |
+
font-size: 10px;
|
296 |
+
display: block;
|
|
|
297 |
}
|
298 |
+
div#sidekick div#sk_taskbar div.sk_info .sk_title span,
|
299 |
+
div#sidekick div#sk_taskbar div.sk_info .sk_title label {
|
300 |
+
margin: 1px 30px 0px;
|
301 |
}
|
302 |
+
div#sidekick div#sk_taskbar div.sk_controls {
|
303 |
+
float: left;
|
304 |
+
height: 100%;
|
305 |
+
border-right: solid 1px white;
|
306 |
+
border-left: solid 1px white;
|
307 |
+
display: none;
|
308 |
+
background: #fb985f;
|
309 |
+
/* Old browsers */
|
310 |
+
|
311 |
+
/* IE9 SVG, needs conditional override of 'filter' to 'none' */
|
312 |
+
|
313 |
+
background: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pgo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgdmlld0JveD0iMCAwIDEgMSIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSI+CiAgPGxpbmVhckdyYWRpZW50IGlkPSJncmFkLXVjZ2ctZ2VuZXJhdGVkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjAlIiB5MT0iMCUiIHgyPSIwJSIgeTI9IjEwMCUiPgogICAgPHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iI2ZiOTg1ZiIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjEwMCUiIHN0b3AtY29sb3I9IiNlZDZjMjAiIHN0b3Atb3BhY2l0eT0iMSIvPgogIDwvbGluZWFyR3JhZGllbnQ+CiAgPHJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9IjEiIGhlaWdodD0iMSIgZmlsbD0idXJsKCNncmFkLXVjZ2ctZ2VuZXJhdGVkKSIgLz4KPC9zdmc+);
|
314 |
+
background: -moz-linear-gradient(top, #fb985f 0%, #ed6c20 100%);
|
315 |
+
/* FF3.6+ */
|
316 |
+
|
317 |
+
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #fb985f), color-stop(100%, #ed6c20));
|
318 |
+
/* Chrome,Safari4+ */
|
319 |
+
|
320 |
+
background: -webkit-linear-gradient(top, #fb985f 0%, #ed6c20 100%);
|
321 |
+
/* Chrome10+,Safari5.1+ */
|
322 |
+
|
323 |
+
background: -o-linear-gradient(top, #fb985f 0%, #ed6c20 100%);
|
324 |
+
/* Opera 11.10+ */
|
325 |
+
|
326 |
+
background: -ms-linear-gradient(top, #fb985f 0%, #ed6c20 100%);
|
327 |
+
/* IE10+ */
|
328 |
+
|
329 |
+
background: linear-gradient(to bottom, #fb985f 0%, #ed6c20 100%);
|
330 |
+
/* W3C */
|
331 |
+
|
332 |
+
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fb985f', endColorstr='#ed6c20', GradientType=0);
|
333 |
+
/* IE6-8 */
|
334 |
+
|
335 |
}
|
336 |
+
div#sidekick div#sk_taskbar div.sk_controls button {
|
337 |
+
width: 70px;
|
338 |
+
opacity: 0.3;
|
|
|
|
|
|
|
339 |
}
|
340 |
+
div#sidekick div#sk_taskbar div.sk_controls button.sidekick_restart {
|
341 |
+
background: url('../images/sprides_v11.png') 17px -140px;
|
|
|
|
|
|
|
|
|
342 |
}
|
343 |
+
div#sidekick div#sk_taskbar div.sk_controls button.sidekick_restart:hover {
|
344 |
+
background: #d9763b url('../images/sprides_v11.png') 17px -140px;
|
345 |
}
|
346 |
+
div#sidekick div#sk_taskbar div.sk_controls button.sidekick_play_pause {
|
347 |
+
background: url('../images/sprides_v11.png') 17px -178px;
|
348 |
}
|
349 |
+
div#sidekick div#sk_taskbar div.sk_controls button.sidekick_play_pause.playing {
|
350 |
+
background: url('../images/sprides_v11.png') 17px -718px;
|
351 |
+
/*-moz-animation: pulse 1s infinite linear;*/
|
352 |
+
|
353 |
+
/*-webkit-animation: pulse 1s infinite linear;*/
|
354 |
+
|
|
|
355 |
}
|
356 |
+
div#sidekick div#sk_taskbar div.sk_controls button.sidekick_play_pause:hover {
|
357 |
+
background: #d9763b url('../images/sprides_v11.png') 17px -178px;
|
|
|
358 |
}
|
359 |
+
div#sidekick div#sk_taskbar div.sk_controls button.sidekick_stop {
|
360 |
+
background: url('../images/sprides_v11.png') 17px -210px;
|
361 |
+
}
|
362 |
+
div#sidekick div#sk_taskbar div.sk_controls button.sidekick_stop:hover {
|
363 |
+
background: #d9763b url('../images/sprides_v11.png') 17px -210px;
|
|
|
364 |
}
|
365 |
+
div#sidekick div#sk_taskbar div.sk_toggle {
|
366 |
+
float: left;
|
367 |
+
height: 100%;
|
368 |
+
min-width: 400px;
|
369 |
+
display: none;
|
370 |
}
|
371 |
+
div#sidekick div#sk_taskbar div.sk_toggles {
|
372 |
+
transform: translate3d(0, 0, 0);
|
373 |
+
-webkit-transition: all 0.3s ease-out;
|
374 |
+
-moz-transition: all 0.3s ease-out;
|
375 |
+
-o-transition: all 0.3s ease-out;
|
376 |
+
transition: all 0.3s ease-out;
|
377 |
+
/*-moz-transition: width 0.3s ease-out, max-height 0.3s ease-out, background-color 0.3s ease-out, -moz-transform 0.3s ease-out;*/
|
378 |
+
|
379 |
+
/*-webkit-transition: width 0.3s ease-out, max-height 0.3s ease-out, background-color 0.3s ease-out, -webkit-transform 0.3s ease-out;*/
|
380 |
+
|
381 |
+
/*-o-transition: width 0.3s ease-out, max-height 0.3s ease-out, background-color 0.3s ease-out, -o-transform 0.3s ease-out;*/
|
382 |
+
|
383 |
+
/*transition: width 0.3s ease-out, max-height 0.3s ease-out, background-color 0.3s ease-out, transform 0.3s ease-out;*/
|
384 |
+
|
385 |
+
margin-top: 0px;
|
386 |
+
display: none;
|
387 |
+
float: right;
|
388 |
+
height: 100%;
|
389 |
}
|
390 |
+
div#sidekick div#sk_taskbar div.sk_toggles button {
|
391 |
+
height: 100%;
|
392 |
+
width: 70px;
|
393 |
}
|
394 |
+
div#sidekick div#sk_taskbar div.sk_toggles button#toggle_hotspots {
|
395 |
+
/*display: none;*/
|
|
|
|
|
|
|
|
|
396 |
|
397 |
+
border-left: solid 1px white;
|
398 |
+
background: #f1631d url('../images/sprides_v11.png') 10px -248px;
|
399 |
+
padding-left: 24px;
|
400 |
+
font-size: 18px;
|
401 |
color: white;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
402 |
}
|
403 |
+
div#sidekick div#sk_taskbar div.sk_toggles button#toggle_hotspots.on {
|
404 |
+
background: #fa8c00 url('../images/sprides_v11.png') 10px -248px;
|
405 |
+
}
|
406 |
+
div#sidekick div#sk_taskbar div.sk_toggles button#toggle_hotspots:hover {
|
407 |
+
background: #fa8c00 url('../images/sprides_v11.png') 10px -248px;
|
408 |
+
transform: translate3d(0, 0, 0);
|
409 |
+
-webkit-transition: all 0.3s ease-out;
|
410 |
+
-moz-transition: all 0.3s ease-out;
|
411 |
+
-o-transition: all 0.3s ease-out;
|
412 |
+
transition: all 0.3s ease-out;
|
413 |
+
/*-moz-transition: width 0.3s ease-out, max-height 0.3s ease-out, background-color 0.3s ease-out, -moz-transform 0.3s ease-out;*/
|
414 |
+
|
415 |
+
/*-webkit-transition: width 0.3s ease-out, max-height 0.3s ease-out, background-color 0.3s ease-out, -webkit-transform 0.3s ease-out;*/
|
416 |
+
|
417 |
+
/*-o-transition: width 0.3s ease-out, max-height 0.3s ease-out, background-color 0.3s ease-out, -o-transform 0.3s ease-out;*/
|
418 |
+
|
419 |
+
/*transition: width 0.3s ease-out, max-height 0.3s ease-out, background-color 0.3s ease-out, transform 0.3s ease-out;*/
|
420 |
+
|
421 |
}
|
422 |
+
div#sidekick div#sk_taskbar div.sk_toggles button#toggle_feedback {
|
423 |
+
background: #f1631d url('../images/sprides_v11.png') 17px -287px;
|
424 |
+
border-right: solid 1px white;
|
425 |
+
border-left: solid 1px white;
|
426 |
+
width: 74px;
|
427 |
+
}
|
428 |
+
div#sidekick div#sk_taskbar div.sk_toggles button#toggle_feedback:hover {
|
429 |
+
background: #fa8c00 url('../images/sprides_v11.png') 17px -287px;
|
430 |
+
transform: translate3d(0, 0, 0);
|
431 |
+
-webkit-transition: all 0.3s ease-out;
|
432 |
+
-moz-transition: all 0.3s ease-out;
|
433 |
+
-o-transition: all 0.3s ease-out;
|
434 |
+
transition: all 0.3s ease-out;
|
435 |
+
/*-moz-transition: width 0.3s ease-out, max-height 0.3s ease-out, background-color 0.3s ease-out, -moz-transform 0.3s ease-out;*/
|
436 |
+
|
437 |
+
/*-webkit-transition: width 0.3s ease-out, max-height 0.3s ease-out, background-color 0.3s ease-out, -webkit-transform 0.3s ease-out;*/
|
438 |
+
|
439 |
+
/*-o-transition: width 0.3s ease-out, max-height 0.3s ease-out, background-color 0.3s ease-out, -o-transform 0.3s ease-out;*/
|
440 |
+
|
441 |
+
/*transition: width 0.3s ease-out, max-height 0.3s ease-out, background-color 0.3s ease-out, transform 0.3s ease-out;*/
|
442 |
+
|
443 |
}
|
444 |
+
div#sidekick div#sk_taskbar div.sk_toggles button#toggle_preferences {
|
445 |
+
background: #f1631d url('../images/sprides_v11.png') 17px -33px;
|
446 |
+
border-right: solid 1px white;
|
447 |
+
border-left: solid 1px white;
|
448 |
+
width: 74px;
|
449 |
+
}
|
450 |
+
div#sidekick div#sk_taskbar div.sk_toggles button#toggle_preferences:hover {
|
451 |
+
background: #fa8c00 url('../images/sprides_v11.png') 17px -33px;
|
452 |
+
transform: translate3d(0, 0, 0);
|
453 |
+
-webkit-transition: all 0.3s ease-out;
|
454 |
+
-moz-transition: all 0.3s ease-out;
|
455 |
+
-o-transition: all 0.3s ease-out;
|
456 |
+
transition: all 0.3s ease-out;
|
457 |
+
/*-moz-transition: width 0.3s ease-out, max-height 0.3s ease-out, background-color 0.3s ease-out, -moz-transform 0.3s ease-out;*/
|
458 |
+
|
459 |
+
/*-webkit-transition: width 0.3s ease-out, max-height 0.3s ease-out, background-color 0.3s ease-out, -webkit-transform 0.3s ease-out;*/
|
460 |
+
|
461 |
+
/*-o-transition: width 0.3s ease-out, max-height 0.3s ease-out, background-color 0.3s ease-out, -o-transform 0.3s ease-out;*/
|
462 |
+
|
463 |
+
/*transition: width 0.3s ease-out, max-height 0.3s ease-out, background-color 0.3s ease-out, transform 0.3s ease-out;*/
|
464 |
+
|
465 |
}
|
466 |
+
div#sidekick div#sk_taskbar div.sk_toggles button#toggle_drawer {
|
467 |
+
background: #f1631d url('../images/sprides_v11.png') 17px -431px;
|
468 |
+
position: relative;
|
|
|
|
|
|
|
469 |
}
|
470 |
+
div#sidekick div#sk_taskbar div.sk_toggles button#toggle_drawer:hover {
|
471 |
+
background: #fa8c00 url('../images/sprides_v11.png') 17px -431px;
|
472 |
+
transform: translate3d(0, 0, 0);
|
473 |
+
-webkit-transition: all 0.3s ease-out;
|
474 |
+
-moz-transition: all 0.3s ease-out;
|
475 |
+
-o-transition: all 0.3s ease-out;
|
476 |
+
transition: all 0.3s ease-out;
|
477 |
+
/*-moz-transition: width 0.3s ease-out, max-height 0.3s ease-out, background-color 0.3s ease-out, -moz-transform 0.3s ease-out;*/
|
478 |
+
|
479 |
+
/*-webkit-transition: width 0.3s ease-out, max-height 0.3s ease-out, background-color 0.3s ease-out, -webkit-transform 0.3s ease-out;*/
|
480 |
+
|
481 |
+
/*-o-transition: width 0.3s ease-out, max-height 0.3s ease-out, background-color 0.3s ease-out, -o-transform 0.3s ease-out;*/
|
482 |
+
|
483 |
+
/*transition: width 0.3s ease-out, max-height 0.3s ease-out, background-color 0.3s ease-out, transform 0.3s ease-out;*/
|
484 |
+
|
485 |
+
}
|
486 |
+
div#sidekick div#sk_taskbar div.sk_toggles button#toggle_drawer.on {
|
487 |
+
background-color: #FA8C00;
|
488 |
}
|
489 |
+
div#sidekick div#sk_taskbar div.sk_toggles button#toggle_drawer.on i {
|
490 |
+
position: absolute;
|
491 |
+
left: 26px;
|
492 |
+
top: -10px;
|
493 |
width: 20px;
|
494 |
height: 20px;
|
495 |
+
background: url('../images/sprides_v11.png') -9px -696px;
|
496 |
+
}
|
497 |
+
div#sidekick #sk_drawer {
|
498 |
+
background-color: #dddddd;
|
499 |
+
-webkit-box-shadow: 0px 0px 15px 0px rgba(83, 83, 83, 0.6);
|
500 |
+
box-shadow: 0px 0px 15px 0px rgba(83, 83, 83, 0.6);
|
501 |
+
border: solid 1px #c6c6c6;
|
502 |
+
z-index: 100002;
|
503 |
+
position: absolute;
|
504 |
+
right: 0px;
|
505 |
+
bottom: 38px;
|
506 |
+
width: 300px;
|
507 |
+
height: 0px;
|
508 |
+
}
|
509 |
+
div#sidekick #sk_drawer h2 {
|
510 |
+
text-transform: uppercase;
|
511 |
+
background-color: #2A909A;
|
512 |
+
color: white;
|
513 |
+
padding: 20px 10px;
|
514 |
+
margin: 0px;
|
515 |
+
}
|
516 |
+
div#sidekick #sk_drawer h2 button {
|
517 |
+
background: url('../images/sprides_v11.png') -8px -656px no-repeat;
|
518 |
+
width: 20px;
|
519 |
+
height: 20px;
|
520 |
+
border: none;
|
521 |
+
right: 18px;
|
522 |
+
top: 18px;
|
523 |
cursor: pointer;
|
524 |
+
position: absolute;
|
525 |
}
|
526 |
+
div#sidekick #sk_drawer div.warning {
|
527 |
+
background-color: white;
|
528 |
+
padding: 20px 10px 100px;
|
529 |
+
text-align: center;
|
530 |
+
font-weight: bold;
|
531 |
+
font-size: 24px;
|
532 |
+
line-height: 26px;
|
533 |
}
|
534 |
+
div#sidekick #sk_drawer ul.sk_bucketContainer {
|
535 |
+
position: relative;
|
536 |
+
overflow-x: hidden;
|
537 |
+
margin: 0px;
|
538 |
}
|
539 |
+
div#sidekick #sk_drawer ul.sk_bucketContainer .heading.goprev {
|
540 |
+
background-color: white;
|
|
|
|
|
|
|
|
|
|
|
541 |
}
|
542 |
+
div#sidekick #sk_drawer ul.sk_bucketContainer .buckets {
|
543 |
+
position: absolute;
|
544 |
+
transform: translate3d(0, 0, 0);
|
545 |
+
-webkit-transition: all 0.3s ease-out;
|
546 |
+
-moz-transition: all 0.3s ease-out;
|
547 |
+
-o-transition: all 0.3s ease-out;
|
548 |
+
transition: all 0.3s ease-out;
|
549 |
+
/*-moz-transition: width 0.3s ease-out, max-height 0.3s ease-out, background-color 0.3s ease-out, -moz-transform 0.3s ease-out;*/
|
550 |
+
|
551 |
+
/*-webkit-transition: width 0.3s ease-out, max-height 0.3s ease-out, background-color 0.3s ease-out, -webkit-transform 0.3s ease-out;*/
|
552 |
+
|
553 |
+
/*-o-transition: width 0.3s ease-out, max-height 0.3s ease-out, background-color 0.3s ease-out, -o-transform 0.3s ease-out;*/
|
554 |
+
|
555 |
+
/*transition: width 0.3s ease-out, max-height 0.3s ease-out, background-color 0.3s ease-out, transform 0.3s ease-out;*/
|
556 |
+
|
557 |
}
|
558 |
+
div#sidekick #sk_drawer ul.sk_bucketContainer .buckets a {
|
559 |
+
text-decoration: none;
|
560 |
+
}
|
561 |
+
div#sidekick #sk_drawer ul.sk_bucketContainer .buckets.hide {
|
562 |
+
left: -300px;
|
563 |
+
transform: translate3d(0, 0, 0);
|
564 |
+
-webkit-transition: all 0.3s ease-out;
|
565 |
+
-moz-transition: all 0.3s ease-out;
|
566 |
+
-o-transition: all 0.3s ease-out;
|
567 |
+
transition: all 0.3s ease-out;
|
568 |
+
/*-moz-transition: width 0.3s ease-out, max-height 0.3s ease-out, background-color 0.3s ease-out, -moz-transform 0.3s ease-out;*/
|
569 |
+
|
570 |
+
/*-webkit-transition: width 0.3s ease-out, max-height 0.3s ease-out, background-color 0.3s ease-out, -webkit-transform 0.3s ease-out;*/
|
571 |
+
|
572 |
+
/*-o-transition: width 0.3s ease-out, max-height 0.3s ease-out, background-color 0.3s ease-out, -o-transform 0.3s ease-out;*/
|
573 |
+
|
574 |
+
/*transition: width 0.3s ease-out, max-height 0.3s ease-out, background-color 0.3s ease-out, transform 0.3s ease-out;*/
|
575 |
|
|
|
576 |
}
|
577 |
+
div#sidekick #sk_drawer ul.sk_bucketContainer .buckets .bucket_heading i {
|
578 |
+
-webkit-transform: rotate(90deg);
|
579 |
+
-moz-transform: rotate(90deg);
|
580 |
+
-ms-transform: rotate(90deg);
|
581 |
+
-o-transform: rotate(90deg);
|
582 |
+
transform: rotate(90deg);
|
583 |
}
|
584 |
+
div#sidekick #sk_drawer ul.sk_bucketContainer .sub_bucket {
|
585 |
+
/*display: none;*/
|
586 |
+
|
587 |
+
left: 300px;
|
588 |
+
position: absolute;
|
589 |
+
top: 0px;
|
590 |
+
overflow-y: auto;
|
591 |
+
overflow-x: hidden;
|
592 |
+
transform: translate3d(0, 0, 0);
|
593 |
+
-webkit-transition: all 0.3s ease-out;
|
594 |
+
-moz-transition: all 0.3s ease-out;
|
595 |
+
-o-transition: all 0.3s ease-out;
|
596 |
+
transition: all 0.3s ease-out;
|
597 |
+
/*-moz-transition: width 0.3s ease-out, max-height 0.3s ease-out, background-color 0.3s ease-out, -moz-transform 0.3s ease-out;*/
|
598 |
+
|
599 |
+
/*-webkit-transition: width 0.3s ease-out, max-height 0.3s ease-out, background-color 0.3s ease-out, -webkit-transform 0.3s ease-out;*/
|
600 |
+
|
601 |
+
/*-o-transition: width 0.3s ease-out, max-height 0.3s ease-out, background-color 0.3s ease-out, -o-transform 0.3s ease-out;*/
|
602 |
+
|
603 |
+
/*transition: width 0.3s ease-out, max-height 0.3s ease-out, background-color 0.3s ease-out, transform 0.3s ease-out;*/
|
604 |
+
|
605 |
}
|
606 |
+
div#sidekick #sk_drawer ul.sk_bucketContainer .sub_bucket.show {
|
607 |
+
/*display: block;*/
|
608 |
+
|
609 |
+
left: 0px;
|
610 |
+
transform: translate3d(0, 0, 0);
|
611 |
+
-webkit-transition: all 0.3s ease-out;
|
612 |
+
-moz-transition: all 0.3s ease-out;
|
613 |
+
-o-transition: all 0.3s ease-out;
|
614 |
+
transition: all 0.3s ease-out;
|
615 |
+
/*-moz-transition: width 0.3s ease-out, max-height 0.3s ease-out, background-color 0.3s ease-out, -moz-transform 0.3s ease-out;*/
|
616 |
+
|
617 |
+
/*-webkit-transition: width 0.3s ease-out, max-height 0.3s ease-out, background-color 0.3s ease-out, -webkit-transform 0.3s ease-out;*/
|
618 |
+
|
619 |
+
/*-o-transition: width 0.3s ease-out, max-height 0.3s ease-out, background-color 0.3s ease-out, -o-transform 0.3s ease-out;*/
|
620 |
+
|
621 |
+
/*transition: width 0.3s ease-out, max-height 0.3s ease-out, background-color 0.3s ease-out, transform 0.3s ease-out;*/
|
622 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
623 |
}
|
624 |
+
div#sidekick #sk_drawer ul.sk_bucketContainer .sub_bucket.hide {
|
625 |
+
left: -300px;
|
626 |
+
transform: translate3d(0, 0, 0);
|
627 |
+
-webkit-transition: all 0.3s ease-out;
|
628 |
+
-moz-transition: all 0.3s ease-out;
|
629 |
+
-o-transition: all 0.3s ease-out;
|
630 |
+
transition: all 0.3s ease-out;
|
631 |
+
/*-moz-transition: width 0.3s ease-out, max-height 0.3s ease-out, background-color 0.3s ease-out, -moz-transform 0.3s ease-out;*/
|
632 |
+
|
633 |
+
/*-webkit-transition: width 0.3s ease-out, max-height 0.3s ease-out, background-color 0.3s ease-out, -webkit-transform 0.3s ease-out;*/
|
634 |
+
|
635 |
+
/*-o-transition: width 0.3s ease-out, max-height 0.3s ease-out, background-color 0.3s ease-out, -o-transform 0.3s ease-out;*/
|
636 |
+
|
637 |
+
/*transition: width 0.3s ease-out, max-height 0.3s ease-out, background-color 0.3s ease-out, transform 0.3s ease-out;*/
|
638 |
+
|
639 |
}
|
640 |
+
div#sidekick #sk_drawer ul.sk_bucketContainer .sub_bucket li.heading {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
641 |
text-align: center;
|
642 |
+
}
|
643 |
+
div#sidekick #sk_drawer ul.sk_bucketContainer .sub_bucket li.sub_bucket_heading {
|
644 |
+
text-align: left;
|
645 |
+
}
|
646 |
+
div#sidekick #sk_drawer ul.sk_bucketContainer .sub_bucket li.sub_bucket_heading i {
|
647 |
+
-webkit-transform: rotate(90deg);
|
648 |
+
-moz-transform: rotate(90deg);
|
649 |
+
-ms-transform: rotate(90deg);
|
650 |
+
-o-transform: rotate(90deg);
|
651 |
+
transform: rotate(90deg);
|
652 |
+
}
|
653 |
+
div#sidekick #sk_drawer ul.sk_bucketContainer .walkthroughs {
|
654 |
+
/*min-height: 150px;*/
|
655 |
+
|
656 |
+
/*background-color: white;*/
|
657 |
+
|
658 |
+
transform: translate3d(0, 0, 0);
|
659 |
+
-webkit-transition: all 0.3s ease-out;
|
660 |
+
-moz-transition: all 0.3s ease-out;
|
661 |
+
-o-transition: all 0.3s ease-out;
|
662 |
+
transition: all 0.3s ease-out;
|
663 |
+
/*-moz-transition: width 0.3s ease-out, max-height 0.3s ease-out, background-color 0.3s ease-out, -moz-transform 0.3s ease-out;*/
|
664 |
+
|
665 |
+
/*-webkit-transition: width 0.3s ease-out, max-height 0.3s ease-out, background-color 0.3s ease-out, -webkit-transform 0.3s ease-out;*/
|
666 |
+
|
667 |
+
/*-o-transition: width 0.3s ease-out, max-height 0.3s ease-out, background-color 0.3s ease-out, -o-transform 0.3s ease-out;*/
|
668 |
+
|
669 |
+
/*transition: width 0.3s ease-out, max-height 0.3s ease-out, background-color 0.3s ease-out, transform 0.3s ease-out;*/
|
670 |
+
|
671 |
+
}
|
672 |
+
div#sidekick #sk_drawer ul.sk_bucketContainer .walkthroughs .overview {
|
673 |
+
font-weight: bold;
|
674 |
+
}
|
675 |
+
div#sidekick #sk_drawer ul.sk_bucketContainer .walkthroughs .walkthrough {
|
676 |
+
/*display: none;*/
|
677 |
+
|
678 |
+
left: 300px;
|
679 |
+
position: absolute;
|
680 |
+
top: 0px;
|
681 |
+
background-color: white;
|
682 |
+
transform: translate3d(0, 0, 0);
|
683 |
+
-webkit-transition: all 0.3s ease-out;
|
684 |
+
-moz-transition: all 0.3s ease-out;
|
685 |
+
-o-transition: all 0.3s ease-out;
|
686 |
+
transition: all 0.3s ease-out;
|
687 |
+
/*-moz-transition: width 0.3s ease-out, max-height 0.3s ease-out, background-color 0.3s ease-out, -moz-transform 0.3s ease-out;*/
|
688 |
+
|
689 |
+
/*-webkit-transition: width 0.3s ease-out, max-height 0.3s ease-out, background-color 0.3s ease-out, -webkit-transform 0.3s ease-out;*/
|
690 |
+
|
691 |
+
/*-o-transition: width 0.3s ease-out, max-height 0.3s ease-out, background-color 0.3s ease-out, -o-transform 0.3s ease-out;*/
|
692 |
+
|
693 |
+
/*transition: width 0.3s ease-out, max-height 0.3s ease-out, background-color 0.3s ease-out, transform 0.3s ease-out;*/
|
694 |
+
|
695 |
+
}
|
696 |
+
div#sidekick #sk_drawer ul.sk_bucketContainer .walkthroughs .walkthrough .heading {
|
697 |
+
margin-bottom: 10px;
|
698 |
text-align: center;
|
699 |
+
}
|
700 |
+
div#sidekick #sk_drawer ul.sk_bucketContainer .walkthroughs .walkthrough a {
|
701 |
+
text-decoration: none;
|
702 |
+
}
|
703 |
+
div#sidekick #sk_drawer ul.sk_bucketContainer .walkthroughs .walkthrough a li {
|
704 |
+
padding: 0px 0px 10px 10px;
|
705 |
+
height: auto;
|
706 |
font-size: 14px;
|
707 |
+
line-height: 22px;
|
708 |
+
color: #3e3e3e;
|
709 |
+
width: 90%;
|
710 |
+
transform: translate3d(0, 0, 0);
|
711 |
+
-webkit-transition: all 0.3s ease-out;
|
712 |
+
-moz-transition: all 0.3s ease-out;
|
713 |
+
-o-transition: all 0.3s ease-out;
|
714 |
+
transition: all 0.3s ease-out;
|
715 |
+
/*-moz-transition: width 0.3s ease-out, max-height 0.3s ease-out, background-color 0.3s ease-out, -moz-transform 0.3s ease-out;*/
|
716 |
|
717 |
+
/*-webkit-transition: width 0.3s ease-out, max-height 0.3s ease-out, background-color 0.3s ease-out, -webkit-transform 0.3s ease-out;*/
|
|
|
718 |
|
719 |
+
/*-o-transition: width 0.3s ease-out, max-height 0.3s ease-out, background-color 0.3s ease-out, -o-transform 0.3s ease-out;*/
|
|
|
720 |
|
721 |
+
/*transition: width 0.3s ease-out, max-height 0.3s ease-out, background-color 0.3s ease-out, transform 0.3s ease-out;*/
|
|
|
722 |
|
723 |
+
}
|
724 |
+
div#sidekick #sk_drawer ul.sk_bucketContainer .walkthroughs .walkthrough a:hover li {
|
725 |
+
color: #17909B;
|
726 |
+
margin-left: 10px;
|
727 |
+
transform: translate3d(0, 0, 0);
|
728 |
+
-webkit-transition: all 0.3s ease-out;
|
729 |
+
-moz-transition: all 0.3s ease-out;
|
730 |
+
-o-transition: all 0.3s ease-out;
|
731 |
+
transition: all 0.3s ease-out;
|
732 |
+
/*-moz-transition: width 0.3s ease-out, max-height 0.3s ease-out, background-color 0.3s ease-out, -moz-transform 0.3s ease-out;*/
|
733 |
|
734 |
+
/*-webkit-transition: width 0.3s ease-out, max-height 0.3s ease-out, background-color 0.3s ease-out, -webkit-transform 0.3s ease-out;*/
|
|
|
735 |
|
736 |
+
/*-o-transition: width 0.3s ease-out, max-height 0.3s ease-out, background-color 0.3s ease-out, -o-transform 0.3s ease-out;*/
|
|
|
737 |
|
738 |
+
/*transition: width 0.3s ease-out, max-height 0.3s ease-out, background-color 0.3s ease-out, transform 0.3s ease-out;*/
|
|
|
739 |
|
|
|
|
|
|
|
740 |
}
|
741 |
+
div#sidekick #sk_drawer ul.sk_bucketContainer .walkthroughs .walkthrough.show {
|
742 |
+
/*display: block;*/
|
743 |
+
|
744 |
+
left: 0px;
|
745 |
+
transform: translate3d(0, 0, 0);
|
746 |
+
-webkit-transition: all 0.3s ease-out;
|
747 |
+
-moz-transition: all 0.3s ease-out;
|
748 |
+
-o-transition: all 0.3s ease-out;
|
749 |
+
transition: all 0.3s ease-out;
|
750 |
+
/*-moz-transition: width 0.3s ease-out, max-height 0.3s ease-out, background-color 0.3s ease-out, -moz-transform 0.3s ease-out;*/
|
751 |
+
|
752 |
+
/*-webkit-transition: width 0.3s ease-out, max-height 0.3s ease-out, background-color 0.3s ease-out, -webkit-transform 0.3s ease-out;*/
|
753 |
+
|
754 |
+
/*-o-transition: width 0.3s ease-out, max-height 0.3s ease-out, background-color 0.3s ease-out, -o-transform 0.3s ease-out;*/
|
755 |
+
|
756 |
+
/*transition: width 0.3s ease-out, max-height 0.3s ease-out, background-color 0.3s ease-out, transform 0.3s ease-out;*/
|
757 |
+
|
758 |
+
}
|
759 |
+
div#sidekick #sk_drawer ul.sk_bucketContainer li {
|
760 |
+
width: 300px;
|
761 |
+
font-size: 16px;
|
762 |
color: white;
|
763 |
+
margin: 0;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
764 |
position: relative;
|
765 |
cursor: pointer;
|
766 |
cursor: hand;
|
767 |
+
max-height: 57px;
|
768 |
}
|
769 |
+
div#sidekick #sk_drawer ul.sk_bucketContainer li.heading {
|
770 |
+
background-color: #dddddd;
|
771 |
+
border-bottom: solid 1px #cbcbcb;
|
772 |
+
border-top: solid 1px #fff;
|
773 |
+
color: #353939;
|
774 |
+
overflow: hidden;
|
775 |
+
color: black;
|
776 |
+
background: #F3F3F3;
|
777 |
+
cursor: pointer;
|
778 |
}
|
779 |
+
div#sidekick #sk_drawer ul.sk_bucketContainer li.heading:hover {
|
780 |
+
color: #17909B;
|
781 |
+
background: #ebebeb;
|
|
|
|
|
|
|
782 |
}
|
783 |
+
div#sidekick #sk_drawer ul.sk_bucketContainer li.heading:hover i {
|
784 |
+
background: url('../images/sprides_v11.png') -7px -116px no-repeat;
|
|
|
785 |
}
|
786 |
+
div#sidekick #sk_drawer ul.sk_bucketContainer li.heading i {
|
787 |
+
-webkit-transform: rotate(270deg);
|
788 |
+
-moz-transform: rotate(270deg);
|
789 |
+
-ms-transform: rotate(270deg);
|
790 |
+
-o-transform: rotate(270deg);
|
791 |
+
transform: rotate(270deg);
|
792 |
+
display: block;
|
793 |
+
width: 20px;
|
794 |
+
height: 20px;
|
795 |
+
position: absolute;
|
796 |
+
right: 25px;
|
797 |
+
top: 17px;
|
798 |
+
background: url('../images/sprides_v11.png') -7px -80px no-repeat;
|
799 |
}
|
800 |
+
div#sidekick #sk_drawer ul.sk_bucketContainer li span {
|
801 |
+
margin: 19px 0 16px;
|
802 |
+
display: block;
|
803 |
+
padding-left: 20px;
|
804 |
}
|
images/arrows.png
DELETED
Binary file
|
images/arrows_01.png
DELETED
Binary file
|
images/arrows_02.png
DELETED
Binary file
|
images/arrows_04.png
DELETED
Binary file
|
images/arrows_05.png
DELETED
Binary file
|
images/sidekick_wp_sprites.png
DELETED
Binary file
|
images/sprides_v11.png
ADDED
Binary file
|
images/sprides_v11_retna.png
ADDED
Binary file
|
js/sk.source.js
CHANGED
@@ -18,334 +18,447 @@
|
|
18 |
/* 15 */ if (!window.console.groupEnd) window.console.groupEnd = function(){};
|
19 |
/* 16 */ if (!window.console.table) window.console.table = function(){};
|
20 |
/* 17 */ if (!window.console.error) window.console.error = function(){};
|
21 |
-
/* 18 */
|
22 |
-
/* 19 */
|
23 |
-
/* 20 */
|
24 |
-
/* 21 */ window.console.
|
25 |
-
/* 22 */
|
26 |
-
/* 23 */
|
27 |
-
/* 24 */
|
28 |
-
/* 25 */
|
29 |
-
/* 26 */
|
30 |
-
/* 27 */
|
31 |
-
/* 28 */
|
32 |
-
/* 29 */
|
33 |
-
/* 30 */
|
34 |
-
/* 31 */
|
35 |
-
/* 32 */
|
36 |
-
/* 33 */
|
37 |
-
/* 34 */
|
38 |
-
/* 35 */
|
39 |
-
/* 36 */
|
40 |
-
/* 37 */
|
41 |
-
/* 38 */
|
42 |
-
/* 39 */
|
43 |
-
/* 40 */
|
44 |
-
/* 41 */
|
45 |
-
/* 42 */
|
46 |
-
/* 43 */
|
47 |
-
/* 44 */
|
48 |
-
/* 45 */
|
49 |
-
/* 46 */
|
50 |
/* 47 */
|
51 |
-
/* 48 */ if (
|
52 |
-
/* 49 */
|
53 |
-
/* 50 */
|
54 |
|
55 |
/* appModel.js */
|
56 |
|
57 |
-
/* 51 */
|
58 |
-
/* 52 */
|
59 |
-
/* 53 */
|
60 |
-
/* 54 */ }
|
61 |
-
/* 55 */
|
62 |
-
/* 56 */
|
63 |
-
/* 57 */
|
64 |
-
/* 58 */
|
65 |
-
/* 59 */
|
66 |
-
/* 60 */
|
67 |
-
/* 61 */
|
68 |
-
/* 62 */
|
69 |
-
/* 63 */
|
70 |
-
/* 64 */
|
71 |
-
/* 65 */
|
72 |
-
/* 66 */
|
73 |
-
/* 67 */
|
74 |
-
/* 68 */
|
75 |
-
/* 69 */
|
76 |
-
/* 70 */
|
77 |
-
/* 71 */
|
78 |
-
/* 72 */
|
79 |
-
/* 73 */
|
80 |
-
/* 74 */
|
81 |
-
/* 75 */
|
82 |
-
/* 76 */
|
83 |
-
/* 77 */
|
84 |
-
/* 78 */
|
85 |
-
/* 79 */
|
86 |
-
/* 80 */
|
87 |
-
/* 81 */
|
88 |
-
/* 82 */
|
89 |
-
/* 83 */
|
90 |
-
/* 84 */
|
91 |
-
/* 85 */
|
92 |
/* 86 */
|
93 |
-
/* 87 */ console.
|
94 |
-
/* 88 */
|
95 |
-
/* 89 */
|
96 |
-
/* 90 */
|
97 |
-
/* 91 */
|
98 |
-
/* 92 */
|
99 |
-
/* 93 */
|
100 |
-
/* 94 */
|
101 |
-
/* 95 */
|
102 |
-
/* 96 */
|
103 |
-
/* 97 */
|
104 |
-
/* 98 */ }
|
105 |
-
/* 99 */
|
106 |
-
/* 100 */
|
107 |
|
108 |
/* appModel.js */
|
109 |
|
110 |
-
/* 101 */
|
111 |
-
/* 102 */
|
112 |
-
/* 103 */ //
|
113 |
/* 104 */
|
114 |
-
/* 105 */
|
115 |
-
/* 106 */
|
116 |
-
/* 107 */
|
117 |
-
/* 108 */
|
118 |
/* 109 */
|
119 |
-
/* 110 */
|
120 |
-
/* 111 */
|
121 |
-
/* 112 */
|
122 |
-
/* 113 */
|
123 |
-
/* 114 */
|
124 |
-
/* 115 */
|
125 |
-
/* 116 */
|
126 |
-
/* 117 */
|
127 |
-
/* 118 */
|
128 |
-
/* 119 */
|
129 |
-
/* 120 */
|
130 |
-
/* 121 */
|
131 |
-
/* 122 */
|
132 |
-
/* 123 */
|
133 |
-
/* 124 */
|
134 |
-
/* 125 */
|
135 |
-
/* 126 */
|
136 |
/* 127 */
|
137 |
-
/* 128 */
|
138 |
-
/* 129 */
|
139 |
-
/* 130 */
|
140 |
-
/* 131 */
|
141 |
-
/* 132 */
|
142 |
-
/* 133 */
|
143 |
-
/* 134 */
|
144 |
-
/* 135 */
|
145 |
/* 136 */
|
146 |
-
/* 137 */
|
147 |
-
/* 138 */
|
148 |
-
/* 139 */
|
149 |
-
/* 140 */
|
150 |
-
/* 141 */
|
151 |
-
/* 142 */
|
152 |
-
/* 143 */
|
153 |
-
/* 144 */
|
154 |
-
/* 145 */
|
155 |
-
/* 146 */
|
156 |
-
/* 147 */
|
157 |
-
/* 148 */
|
158 |
-
/* 149 */
|
159 |
-
/* 150 */
|
160 |
|
161 |
/* appModel.js */
|
162 |
|
163 |
-
/* 151 */
|
164 |
-
/* 152 */
|
165 |
/* 153 */
|
166 |
-
/* 154 */
|
167 |
-
/* 155 */
|
168 |
-
/* 156 */
|
169 |
-
/* 157 */
|
170 |
-
/* 158 */
|
171 |
-
/* 159 */
|
172 |
-
/* 160 */
|
173 |
-
/* 161 */
|
174 |
-
/* 162 */
|
175 |
-
/* 163 */
|
176 |
-
/* 164 */
|
177 |
-
/* 165 */
|
178 |
-
/* 166 */
|
179 |
-
/* 167 */
|
180 |
-
/* 168 */
|
181 |
-
/* 169 */
|
182 |
-
/* 170 */
|
183 |
-
/* 171 */
|
184 |
-
/* 172 */
|
185 |
-
/* 173 */
|
186 |
/* 174 */
|
187 |
-
/* 175 */
|
188 |
-
/* 176 */
|
189 |
-
/* 177 */
|
190 |
-
/* 178 */
|
191 |
-
/* 179 */
|
192 |
-
/* 180 */
|
193 |
-
/* 181 */
|
194 |
-
/* 182 */
|
195 |
-
/* 183 */
|
196 |
-
/* 184 */
|
197 |
-
/* 185 */
|
198 |
-
/* 186 */
|
199 |
-
/* 187 */
|
200 |
-
/* 188 */
|
201 |
-
/* 189 */
|
202 |
-
/* 190 */
|
203 |
-
/* 191 */
|
204 |
-
/* 192 */
|
205 |
-
/* 193 */
|
206 |
-
/* 194 */
|
207 |
-
/* 195 */
|
208 |
-
/* 196 */ }
|
209 |
-
/* 197 */
|
210 |
-
/* 198 */
|
211 |
-
/* 199 */
|
212 |
-
/* 200 */
|
213 |
|
214 |
/* appModel.js */
|
215 |
|
216 |
-
/* 201 */
|
217 |
-
/* 202 */
|
218 |
-
/* 203 */
|
219 |
-
/* 204 */
|
220 |
-
/* 205 */
|
221 |
-
/* 206 */
|
222 |
-
/* 207 */ }
|
223 |
-
/* 208 */
|
224 |
-
/* 209 */
|
225 |
-
/* 210 */
|
226 |
-
/* 211 */
|
227 |
-
/* 212 */
|
228 |
-
/* 213 */
|
229 |
-
/* 214 */
|
230 |
-
/* 215 */
|
231 |
-
/* 216 */
|
232 |
-
/* 217 */
|
233 |
-
/* 218 */
|
234 |
-
/* 219 */
|
235 |
-
/* 220 */
|
236 |
-
/* 221 */
|
237 |
-
/* 222 */
|
238 |
/* 223 */
|
239 |
-
/* 224 */
|
240 |
-
/* 225 */
|
241 |
-
/* 226 */
|
242 |
-
/* 227 */
|
243 |
-
/* 228 */
|
244 |
-
/* 229 */
|
245 |
-
/* 230 */
|
246 |
-
/* 231 */
|
247 |
-
/* 232 */
|
248 |
-
/* 233 */ }
|
249 |
/* 234 */
|
250 |
-
/* 235 */
|
251 |
-
/* 236 */
|
252 |
-
/* 237 */
|
253 |
-
/* 238 */
|
254 |
/* 239 */
|
255 |
-
/* 240 */
|
256 |
-
/* 241 */
|
257 |
-
/* 242 */
|
258 |
-
/* 243 */
|
259 |
-
/* 244 */
|
260 |
-
/* 245 */
|
261 |
-
/* 246 */
|
262 |
-
/* 247 */
|
263 |
-
/* 248 */
|
264 |
-
/* 249 */
|
265 |
-
/* 250 */
|
266 |
|
267 |
/* appModel.js */
|
268 |
|
269 |
-
/* 251 */
|
270 |
-
/* 252 */
|
271 |
-
/* 253 */
|
272 |
-
/* 254 */
|
273 |
-
/* 255 */
|
274 |
-
/* 256 */
|
275 |
-
/* 257 */
|
276 |
-
/* 258 */
|
277 |
-
/* 259 */
|
278 |
-
/* 260 */
|
279 |
-
/* 261 */
|
280 |
-
/* 262 */
|
281 |
-
/* 263 */
|
282 |
-
/* 264 */
|
283 |
-
/* 265 */
|
284 |
-
/* 266 */
|
285 |
-
/* 267 */
|
286 |
-
/* 268 */
|
287 |
-
/* 269 */
|
288 |
-
/* 270 */
|
289 |
-
/* 271 */
|
290 |
-
/* 272 */ console.log('
|
291 |
/* 273 */
|
292 |
-
/* 274 */
|
293 |
-
/* 275 */
|
294 |
-
/* 276 */
|
295 |
-
/* 277 */
|
296 |
-
/* 278 */
|
297 |
-
/* 279 */
|
298 |
/* 280 */
|
299 |
-
/* 281 */
|
300 |
-
/* 282 */
|
301 |
-
/* 283 */
|
302 |
-
/* 284 */
|
303 |
-
/* 285 */
|
304 |
-
/* 286 */
|
305 |
-
/* 287 */
|
306 |
/* 288 */
|
307 |
-
/* 289 */
|
308 |
-
/* 290 */
|
309 |
-
/* 291 */
|
310 |
-
/* 292 */
|
311 |
-
/* 293 */
|
312 |
-
/* 294 */
|
313 |
-
/* 295 */
|
314 |
/* 296 */ }
|
315 |
/* 297 */ }
|
316 |
-
/* 298 */
|
317 |
-
/* 299 */
|
318 |
-
/* 300 */
|
319 |
|
320 |
/* appModel.js */
|
321 |
|
322 |
/* 301 */ console.groupEnd();
|
323 |
/* 302 */ },
|
324 |
/* 303 */
|
325 |
-
/* 304 */
|
326 |
-
/* 305 */
|
327 |
-
/* 306 */
|
328 |
-
/* 307 */
|
329 |
-
/* 308 */
|
330 |
-
/* 309 */
|
331 |
-
/* 310 */
|
332 |
-
/* 311 */
|
333 |
-
/* 312 */
|
334 |
-
/* 313 */
|
335 |
-
/* 314 */
|
336 |
-
/* 315 */
|
337 |
-
/* 316 */
|
338 |
-
/* 317 */
|
339 |
-
/* 318 */
|
340 |
/* 319 */
|
341 |
-
/* 320 */
|
342 |
-
/* 321 */
|
343 |
-
/* 322 */
|
344 |
-
/* 323 */
|
345 |
-
/* 324 */
|
346 |
-
/* 325 */
|
347 |
-
/* 326 */
|
348 |
-
/* 327 */
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
349 |
|
350 |
;
|
351 |
/* bucketContainerModel.js */
|
@@ -354,18 +467,16 @@
|
|
354 |
/* 2 */
|
355 |
/* 3 */ SidekickWP.Models.BucketContainer = Backbone.Model.extend({
|
356 |
/* 4 */ defaults: {
|
357 |
-
/* 5 */
|
358 |
-
/* 6 */
|
359 |
-
/* 7 */
|
360 |
-
/* 8 */
|
361 |
-
/* 9 */
|
362 |
-
/* 10 */
|
363 |
-
/* 11 */
|
364 |
-
/* 12 */
|
365 |
-
/* 13 */
|
366 |
-
/* 14 */
|
367 |
-
/* 15 */
|
368 |
-
/* 16 */ }(jQuery));
|
369 |
|
370 |
;
|
371 |
/* bucketModel.js */
|
@@ -374,19 +485,20 @@
|
|
374 |
/* 2 */
|
375 |
/* 3 */ SidekickWP.Models.Bucket = Backbone.Model.extend({
|
376 |
/* 4 */ defaults: {
|
377 |
-
/* 5 */
|
378 |
-
/* 6 */
|
379 |
-
/* 7 */
|
380 |
-
/* 8 */
|
381 |
-
/* 9 */
|
382 |
-
/* 10 */
|
383 |
-
/* 11 */
|
384 |
-
/* 12 */
|
385 |
-
/* 13 */
|
386 |
-
/* 14 */
|
387 |
-
/* 15 */
|
388 |
-
/* 16 */
|
389 |
-
/* 17 */
|
|
|
390 |
|
391 |
;
|
392 |
/* helpers.js */
|
@@ -395,7 +507,7 @@
|
|
395 |
/* 2 */
|
396 |
/* 3 */ SidekickWP.Helpers = ({
|
397 |
/* 4 */ preventScrolling: function(){
|
398 |
-
/* 5 */ $('#sidekick .bucketContainer>div>ul').on('DOMMouseScroll mousewheel', function(ev) {
|
399 |
/* 6 */ console.log('asd');
|
400 |
/* 7 */ var $this = $(this),
|
401 |
/* 8 */ scrollTop = this.scrollTop,
|
@@ -429,26 +541,6 @@
|
|
429 |
/* 36 */
|
430 |
/* 37 */
|
431 |
|
432 |
-
;
|
433 |
-
/* listModel.js */
|
434 |
-
|
435 |
-
/* 1 */ (function($) {
|
436 |
-
/* 2 */
|
437 |
-
/* 3 */ SidekickWP.Models.List = Backbone.Model.extend({
|
438 |
-
/* 4 */ defaults: {
|
439 |
-
/* 5 */ bucket: null,
|
440 |
-
/* 6 */ title: 'List'
|
441 |
-
/* 7 */ },
|
442 |
-
/* 8 */
|
443 |
-
/* 9 */ initialize: function(){
|
444 |
-
/* 10 */ console.log('initialize bucketModel %o', this.attributes);
|
445 |
-
/* 11 */ this.view = new SidekickWP.Views.List({model: this});
|
446 |
-
/* 12 */ return this;
|
447 |
-
/* 13 */ }
|
448 |
-
/* 14 */ });
|
449 |
-
/* 15 */
|
450 |
-
/* 16 */ }(jQuery));
|
451 |
-
|
452 |
;
|
453 |
/* messageModel.js */
|
454 |
|
@@ -518,45 +610,48 @@
|
|
518 |
/* 29 */ data.source = 'plugin';
|
519 |
/* 30 */ data.action = 'track';
|
520 |
/* 31 */ data.data = JSON.stringify(model);
|
521 |
-
/* 32 */
|
522 |
-
/* 33 */
|
523 |
-
/* 34 */
|
524 |
-
/* 35 */
|
525 |
-
/* 36 */
|
526 |
-
/* 37 */
|
527 |
-
/* 38 */
|
528 |
-
/* 39 */
|
529 |
-
/* 40 */
|
530 |
-
/* 41 */
|
531 |
-
/* 42 */
|
532 |
-
/* 43 */
|
533 |
-
/* 44 */
|
534 |
-
/* 45 */
|
535 |
-
/* 46 */
|
536 |
-
/* 47 */
|
537 |
-
/* 48 */
|
538 |
-
/* 49 */
|
539 |
-
/* 50 */
|
540 |
|
541 |
/* trackingModel.js */
|
542 |
|
543 |
-
/* 51 */
|
544 |
-
/* 52 */
|
545 |
-
/* 53 */
|
546 |
-
/* 54 */
|
547 |
-
/* 55 */
|
548 |
-
/* 56 */
|
549 |
-
/* 57 */
|
550 |
-
/* 58 */
|
551 |
-
/* 59 */
|
552 |
-
/* 60 */
|
553 |
-
/* 61 */
|
554 |
-
/* 62 */
|
555 |
-
/* 63 */
|
556 |
-
/* 64 */
|
557 |
-
/* 65 */
|
558 |
/* 66 */
|
559 |
-
/* 67 */
|
|
|
|
|
|
|
560 |
|
561 |
;
|
562 |
/* appView.js */
|
@@ -564,282 +659,395 @@
|
|
564 |
/* 1 */ (function($) {
|
565 |
/* 2 */ SidekickWP.Views.App = Backbone.View.extend({
|
566 |
/* 3 */ initialize: function(){
|
567 |
-
/* 4 */ SidekickWP.Events.on('
|
568 |
-
/* 5 */ SidekickWP.Events.on('
|
569 |
-
/* 6 */ SidekickWP.Events.on('
|
570 |
-
/* 7 */ SidekickWP.Events.on('
|
571 |
-
/* 8 */
|
572 |
-
/* 9 */ SidekickWP.Events.on('
|
573 |
-
/* 10 */
|
574 |
-
/* 11 */
|
575 |
-
/* 12 */
|
576 |
-
/* 13 */
|
577 |
-
/* 14 */
|
578 |
/* 15 */ return this.render();
|
579 |
/* 16 */ },
|
580 |
/* 17 */
|
581 |
/* 18 */ render: function(){
|
582 |
-
/* 19 */ console.
|
583 |
/* 20 */
|
584 |
-
/* 21 */
|
585 |
-
/* 22 */
|
586 |
-
/* 23 */
|
587 |
-
/* 24 */
|
588 |
-
/* 25 */
|
589 |
-
/* 26 */
|
590 |
-
/* 27 */
|
591 |
-
/* 28 */
|
592 |
-
/* 29 */
|
593 |
-
/* 30 */
|
594 |
-
/* 31 */
|
595 |
-
/* 32 */
|
596 |
-
/* 33 */
|
597 |
-
/* 34 */
|
598 |
-
/* 35 */
|
599 |
-
/* 36 */
|
600 |
-
/* 37 */
|
601 |
-
/* 38 */
|
602 |
-
/* 39 */
|
603 |
-
/* 40 */
|
604 |
-
/* 41 */
|
605 |
-
/* 42 */
|
606 |
-
/* 43 */
|
607 |
-
/* 44 */
|
608 |
-
/* 45 */
|
609 |
-
/* 46 */
|
610 |
-
/* 47 */
|
611 |
-
/* 48 */
|
612 |
-
/* 49 */
|
613 |
/* 50 */
|
614 |
|
615 |
/* appView.js */
|
616 |
|
617 |
-
/* 51 */
|
618 |
-
/* 52 */
|
619 |
-
/* 53 */
|
620 |
-
/* 54 */
|
621 |
-
/* 55 */
|
622 |
-
/* 56 */
|
623 |
/* 57 */
|
624 |
-
/* 58 */
|
625 |
-
/* 59 */
|
626 |
-
/* 60 */
|
627 |
-
/* 61 */
|
628 |
-
/* 62 */
|
629 |
-
/* 63 */
|
630 |
-
/* 64 */
|
631 |
-
/* 65 */
|
632 |
-
/* 66 */
|
633 |
-
/* 67 */
|
634 |
-
/* 68 */
|
635 |
-
/* 69 */
|
636 |
-
/* 70 */
|
637 |
-
/* 71 */
|
638 |
-
/* 72 */
|
639 |
-
/* 73 */
|
640 |
-
/* 74 */
|
641 |
-
/* 75 */
|
642 |
-
/* 76 */
|
643 |
-
/* 77 */
|
644 |
-
/* 78 */
|
645 |
-
/* 79 */
|
646 |
-
/* 80 */
|
647 |
-
/* 81 */
|
648 |
-
/* 82 */
|
649 |
-
/* 83 */
|
650 |
-
/* 84 */
|
651 |
-
/* 85 */
|
652 |
-
/* 86 */
|
653 |
-
/* 87 */
|
654 |
-
/* 88 */
|
655 |
-
/* 89 */
|
656 |
-
/* 90 */
|
657 |
-
/* 91 */
|
658 |
-
/* 92 */
|
659 |
-
/* 93 */
|
660 |
-
/* 94 */
|
661 |
-
/* 95 */
|
662 |
-
/* 96 */
|
663 |
-
/* 97 */
|
664 |
-
/* 98 */
|
665 |
-
/* 99 */
|
666 |
-
/* 100 */
|
667 |
|
668 |
/* appView.js */
|
669 |
|
670 |
-
/* 101 */
|
671 |
-
/* 102 */
|
672 |
-
/* 103 */
|
673 |
/* 104 */
|
674 |
-
/* 105 */
|
675 |
-
/* 106 */
|
676 |
-
/* 107 */
|
677 |
-
/* 108 */
|
678 |
-
/* 109 */ $('
|
679 |
-
/* 110 */
|
680 |
-
/* 111 */
|
681 |
-
/* 112 */
|
682 |
-
/* 113 */
|
683 |
-
/* 114 */
|
684 |
-
/* 115 */
|
685 |
-
/* 116 */
|
686 |
-
/* 117 */
|
687 |
-
/* 118 */
|
688 |
-
/* 119 */
|
689 |
-
/* 120 */
|
690 |
-
/* 121 */
|
691 |
-
/* 122 */
|
692 |
/* 123 */
|
693 |
-
/* 124 */
|
694 |
-
/* 125 */
|
695 |
-
/* 126 */
|
696 |
-
/* 127 */
|
697 |
-
/* 128 */
|
698 |
-
/* 129 */
|
699 |
-
/* 130 */
|
700 |
-
/* 131 */
|
701 |
-
/* 132 */
|
702 |
-
/* 133 */
|
703 |
-
/* 134 */
|
704 |
-
/* 135 */
|
705 |
-
/* 136 */
|
706 |
-
/* 137 */
|
707 |
-
/* 138 */
|
708 |
-
/* 139 */
|
709 |
-
/* 140 */
|
710 |
-
/* 141 */
|
711 |
-
/* 142 */
|
712 |
-
/* 143 */
|
713 |
-
/* 144 */
|
714 |
-
/* 145 */
|
715 |
-
/* 146 */
|
716 |
-
/* 147 */
|
717 |
-
/* 148 */
|
718 |
-
/* 149 */
|
719 |
-
/* 150 */
|
720 |
|
721 |
/* appView.js */
|
722 |
|
723 |
-
/* 151 */
|
724 |
-
/* 152 */
|
725 |
-
/* 153 */
|
726 |
-
/* 154 */
|
727 |
-
/* 155 */
|
728 |
-
/* 156 */
|
729 |
-
/* 157 */ }
|
730 |
-
/* 158 */ $('#
|
731 |
-
/* 159 */
|
732 |
-
/* 160 */
|
733 |
-
/* 161 */
|
734 |
-
/* 162 */
|
735 |
-
/* 163 */
|
736 |
-
/* 164 */
|
737 |
-
/* 165 */
|
738 |
-
/* 166 */
|
739 |
-
/* 167 */
|
740 |
/* 168 */
|
741 |
-
/* 169 */ $('#sidekick
|
742 |
-
/* 170 */
|
743 |
-
/* 171 */
|
744 |
-
/* 172 */
|
745 |
-
/* 173 */
|
746 |
-
/* 174 */
|
747 |
-
/* 175 */
|
748 |
-
/* 176 */
|
749 |
-
/* 177 */
|
750 |
-
/* 178 */
|
751 |
-
/* 179 */
|
752 |
/* 180 */
|
753 |
-
/* 181 */
|
754 |
-
/* 182 */
|
755 |
-
/* 183 */
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
756 |
|
757 |
;
|
758 |
/* bucketContainerView.js */
|
759 |
|
760 |
/* 1 */ (function($) {
|
761 |
/* 2 */ SidekickWP.Views.BucketContainer = Backbone.View.extend({
|
762 |
-
/* 3 */
|
763 |
-
/* 4 */
|
764 |
-
/* 5 */
|
765 |
-
/* 6 */
|
766 |
-
/* 7 */
|
767 |
-
/* 8 */
|
768 |
-
/* 9 */
|
769 |
-
/* 10 */
|
770 |
/* 11 */
|
771 |
-
/* 12 */
|
772 |
-
/* 13 */
|
773 |
-
/* 14 */
|
774 |
-
/* 15 */
|
775 |
-
/* 16 */
|
776 |
-
/* 17 */
|
777 |
-
/* 18 */
|
778 |
-
/* 19 */
|
779 |
-
/* 20 */
|
780 |
-
/* 21 */
|
781 |
-
/* 22 */
|
782 |
-
/* 23 */ this.$el.
|
783 |
-
/* 24 */
|
784 |
-
/* 25 */
|
785 |
-
/* 26 */
|
786 |
-
/* 27 */
|
787 |
-
/* 28 */
|
788 |
-
/* 29 */
|
789 |
/* 30 */
|
790 |
-
/* 31 */
|
791 |
-
/* 32 */
|
792 |
-
/* 33 */
|
793 |
-
/* 34 */
|
794 |
-
/* 35 */
|
795 |
-
/* 36 */
|
796 |
-
/* 37 */
|
797 |
-
/* 38 */
|
798 |
-
/* 39 */
|
799 |
-
/* 40 */
|
800 |
-
/* 41 */
|
801 |
-
/* 42 */
|
802 |
-
/* 43 */
|
803 |
-
/* 44 */
|
804 |
-
/* 45 */
|
805 |
-
/* 46 */
|
806 |
-
/* 47 */
|
807 |
-
/* 48 */
|
808 |
-
/* 49 */
|
809 |
-
/* 50 */
|
810 |
|
811 |
/* bucketContainerView.js */
|
812 |
|
813 |
-
/* 51 */
|
814 |
-
/* 52 */
|
815 |
-
/* 53 */
|
816 |
-
/* 54 */
|
817 |
-
/* 55 */
|
818 |
-
/* 56 */
|
819 |
-
/* 57 */
|
820 |
-
/* 58 */
|
821 |
-
/* 59 */
|
822 |
-
/* 60 */
|
823 |
-
/* 61 */
|
824 |
-
/* 62 */
|
825 |
/* 63 */
|
826 |
-
/* 64 */ $('.
|
827 |
-
/* 65 */
|
828 |
-
/* 66 */
|
829 |
-
/* 67 */
|
830 |
-
/* 68 */
|
831 |
-
/* 69 */
|
832 |
-
/* 70 */
|
833 |
-
/* 71 */
|
834 |
-
/* 72 */
|
835 |
/* 73 */
|
836 |
-
/* 74 */ // SidekickWP.Helpers.preventScrolling();
|
837 |
-
/* 75 */ }
|
838 |
-
/* 76 */ });
|
839 |
-
/* 77 */
|
840 |
-
/* 78 */ }(jQuery));
|
841 |
-
/* 79 */
|
842 |
-
/* 80 */
|
843 |
|
844 |
;
|
845 |
/* bucketView.js */
|
@@ -857,52 +1065,25 @@
|
|
857 |
/* 11 */ SidekickWP.Events.trigger('track_explore',{what:'Bucket' });
|
858 |
/* 12 */
|
859 |
/* 13 */ var variables = {
|
860 |
-
/* 14 */
|
861 |
-
/* 15 */
|
862 |
-
/* 16 */
|
863 |
-
/* 17 */
|
864 |
-
/* 18 */
|
865 |
-
/* 19 */
|
866 |
-
/* 20 */
|
867 |
-
/* 21 */
|
868 |
-
/* 22 */
|
869 |
-
/* 23 */
|
870 |
-
/* 24 */
|
871 |
-
/* 25 */
|
872 |
-
/* 26 */
|
873 |
-
/* 27 */
|
874 |
-
|
875 |
-
|
876 |
-
/*
|
877 |
-
|
878 |
-
/*
|
879 |
-
/* 2 */ SidekickWP.Views.List = Backbone.View.extend({
|
880 |
-
/* 3 */
|
881 |
-
/* 4 */ initialize: function(models,options){
|
882 |
-
/* 5 */ return this;
|
883 |
-
/* 6 */ },
|
884 |
-
/* 7 */
|
885 |
-
/* 8 */ render: function(){
|
886 |
-
/* 9 */ console.group('%crender: render: listView %o', 'color:#8fa2ff', this);
|
887 |
-
/* 10 */
|
888 |
-
/* 11 */ SidekickWP.Events.trigger('track_explore',{what:'List' });
|
889 |
-
/* 12 */
|
890 |
-
/* 13 */ var variables = {
|
891 |
-
/* 14 */ bucket: this.model.get('bucket'),
|
892 |
-
/* 15 */ title: this.model.get('title')
|
893 |
-
/* 16 */ };
|
894 |
-
/* 17 */ console.log('variables %o', variables);
|
895 |
-
/* 18 */
|
896 |
-
/* 19 */ var template = _.template( SidekickWP.Templates.List, variables );
|
897 |
-
/* 20 */ console.log('template %o', template);
|
898 |
-
/* 21 */
|
899 |
-
/* 22 */ // SidekickWP.Helpers.preventScrolling();
|
900 |
-
/* 23 */ this.$el.append(template);
|
901 |
-
/* 24 */ console.groupEnd();
|
902 |
-
/* 25 */ return this;
|
903 |
-
/* 26 */ }
|
904 |
-
/* 27 */ });
|
905 |
-
/* 28 */ }(jQuery));
|
906 |
|
907 |
;
|
908 |
/* messageView.js */
|
@@ -927,12 +1108,12 @@
|
|
927 |
/* 18 */ var template = _.template( SidekickWP.Templates.Message, variables );
|
928 |
/* 19 */
|
929 |
/* 20 */ this.$el.append( template );
|
930 |
-
/* 21 */ SidekickWP.Helpers.preventScrolling();
|
931 |
-
/* 22 */ SidekickWP.Events.trigger('show_next_pane');
|
932 |
/* 23 */
|
933 |
-
/* 24 */ // $('#sidekick .prev_window').removeClass('prev_window');
|
934 |
-
/* 25 */ // $('#sidekick #main_menu').addClass('prev_window');
|
935 |
-
/* 26 */ // $('#sidekick ul.main>li').not('#main_menu,#review').remove();
|
936 |
/* 27 */
|
937 |
/* 28 */ return this;
|
938 |
/* 29 */ }
|
@@ -967,12 +1148,12 @@
|
|
967 |
/* 21 */ console.log('template %o', template);
|
968 |
/* 22 */
|
969 |
/* 23 */ this.$el.append( template );
|
970 |
-
/* 24 */ SidekickWP.Helpers.preventScrolling();
|
971 |
-
/* 25 */ SidekickWP.Events.trigger('show_next_pane');
|
972 |
/* 26 */
|
973 |
-
/* 27 */ // $('#sidekick .prev_window').removeClass('prev_window');
|
974 |
-
/* 28 */ // $('#sidekick #main_menu').addClass('prev_window');
|
975 |
-
/* 29 */ // $('#sidekick ul.main>li').not('#main_menu,#review').remove();
|
976 |
/* 30 */
|
977 |
/* 31 */ return this;
|
978 |
/* 32 */ },
|
@@ -985,24 +1166,24 @@
|
|
985 |
/* 39 */ setup_events: function(){
|
986 |
/* 40 */ var group_id = this.model.get('id');
|
987 |
/* 41 */
|
988 |
-
/* 42 */ $('#sidekick .review h2 button.goback, #sidekick .review input[type="button"]').unbind('click').click({context:this},function(e){
|
989 |
/* 43 */ console.log('click goback/button');
|
990 |
/* 44 */ SidekickWP.Events.trigger('show_main_pane');
|
991 |
/* 45 */ });
|
992 |
/* 46 */
|
993 |
-
/* 47 */ $('#sidekick .review .rate span').unbind('hover').hover(function(){
|
994 |
/* 48 */ $(this).addClass('hover')
|
995 |
/* 49 */ .prevAll().addClass('hover');
|
996 |
/* 50 */ },function(){
|
997 |
|
998 |
/* reviewView.js */
|
999 |
|
1000 |
-
/* 51 */ $('#sidekick .review .rate span').removeClass('hover');
|
1001 |
/* 52 */ });
|
1002 |
/* 53 */
|
1003 |
-
/* 54 */ $('#sidekick .review .rate span').unbind('click').click = this.rate;
|
1004 |
/* 55 */
|
1005 |
-
/* 56 */ $('#sidekick .review textarea').unbind('click').click(function(){
|
1006 |
/* 57 */ if(!$(this).hasClass('clicked')){
|
1007 |
/* 58 */ $(this).addClass('clicked')
|
1008 |
/* 59 */ .val('');
|
@@ -1013,7 +1194,7 @@
|
|
1013 |
/* 64 */ submit: function(){
|
1014 |
/* 65 */ var data = {
|
1015 |
/* 66 */ walkthrough_title: this.model.get('walkthrough_title'),
|
1016 |
-
/* 67 */ value: $('#sidekick textarea[name="comment"]').val(),
|
1017 |
/* 68 */ license: sk_license_key
|
1018 |
/* 69 */ };
|
1019 |
/* 70 */
|
@@ -1024,8 +1205,8 @@
|
|
1024 |
/* 75 */ dataType: 'json'
|
1025 |
/* 76 */ }).done(function(data,e){
|
1026 |
/* 77 */ console.log('Saved Comment');
|
1027 |
-
/* 78 */ $('#sidekick textarea').html('Thank You!');
|
1028 |
-
/* 79 */ $('#sidekick .review input[type="submit"]').val('Sent!');
|
1029 |
/* 80 */ setTimeout(SidekickWP.Events.trigger('show_main_pane'),3000);
|
1030 |
/* 81 */ }).error(function(e){
|
1031 |
/* 82 */ console.error('Comment Save error (%o)',e);
|
@@ -1042,7 +1223,7 @@
|
|
1042 |
/* 93 */ $(e.currentTarget).addClass('saved')
|
1043 |
/* 94 */ .prevAll().addClass('saved');
|
1044 |
/* 95 */
|
1045 |
-
/* 96 */ $('#sidekick .rate span').unbind('mouseenter mouseleave click').css({cursor: 'default'});
|
1046 |
/* 97 */
|
1047 |
/* 98 */ $.ajax({
|
1048 |
/* 99 */ url: 'http://www.wpuniversity.com/wp-admin/admin-ajax.php?action=wpu_add_rating',
|
@@ -1054,7 +1235,7 @@
|
|
1054 |
/* 102 */ dataType: 'json'
|
1055 |
/* 103 */ }).done(function(data,e){
|
1056 |
/* 104 */ console.log('Saved Rating');
|
1057 |
-
/* 105 */ $('#sidekick .hover').addClass('saved');
|
1058 |
/* 106 */
|
1059 |
/* 107 */ }).error(function(e){
|
1060 |
/* 108 */ console.error('Rating Save error (%o)',e);
|
@@ -1069,80 +1250,141 @@
|
|
1069 |
;
|
1070 |
/* templates.js */
|
1071 |
|
1072 |
-
/* 1
|
1073 |
-
/* 2
|
1074 |
-
/* 3
|
1075 |
-
/* 4
|
1076 |
-
/* 5
|
1077 |
-
/* 6
|
1078 |
-
/* 7
|
1079 |
-
/* 8
|
1080 |
-
/* 9
|
1081 |
-
/* 10
|
1082 |
-
/* 11
|
1083 |
-
/* 12
|
1084 |
-
/* 13
|
1085 |
-
/* 14
|
1086 |
-
/* 15
|
1087 |
-
/* 16
|
1088 |
-
/* 17
|
1089 |
-
/* 18
|
1090 |
-
/* 19
|
1091 |
-
/* 20
|
1092 |
-
/* 21
|
1093 |
-
/* 22
|
1094 |
-
/* 23
|
1095 |
-
/* 24
|
1096 |
-
/* 25
|
1097 |
-
/* 26
|
1098 |
-
/* 27
|
1099 |
-
/* 28
|
1100 |
-
/* 29
|
1101 |
-
/* 30
|
1102 |
-
/* 31
|
1103 |
-
/* 32
|
1104 |
-
/* 33
|
1105 |
-
/* 34
|
1106 |
-
/* 35
|
1107 |
-
/* 36
|
1108 |
-
/* 37
|
1109 |
-
/* 38
|
1110 |
-
/* 39
|
1111 |
-
/* 40
|
1112 |
-
/* 41
|
1113 |
-
/* 42
|
1114 |
-
/* 43
|
1115 |
-
/* 44
|
1116 |
-
/* 45
|
1117 |
-
/* 46
|
1118 |
-
/* 47
|
1119 |
-
/* 48
|
1120 |
-
/* 49
|
1121 |
-
/* 50
|
1122 |
|
1123 |
/* templates.js */
|
1124 |
|
1125 |
-
/* 51
|
1126 |
-
/* 52
|
1127 |
-
/* 53
|
1128 |
-
/* 54
|
1129 |
-
/* 55
|
1130 |
-
/* 56
|
1131 |
-
/* 57
|
1132 |
-
/* 58
|
1133 |
-
/* 59
|
1134 |
-
/* 60
|
1135 |
-
/* 61
|
1136 |
-
/* 62
|
1137 |
-
/* 63
|
1138 |
-
/* 64
|
1139 |
-
/* 65
|
1140 |
-
/* 66
|
1141 |
-
/* 67
|
1142 |
-
/* 68
|
1143 |
-
/* 69
|
1144 |
-
/* 70
|
1145 |
-
/* 71
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1146 |
|
1147 |
;
|
1148 |
/* jquery.lightbox_me.js */
|
@@ -2539,13 +2781,31 @@
|
|
2539 |
/* 848 */
|
2540 |
/* 849 */ })(jQuery, window);
|
2541 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2542 |
;
|
2543 |
/* sk_wp.js */
|
2544 |
|
2545 |
/* 1 */
|
2546 |
/* 2 */ jQuery(document).ready(function($) {
|
2547 |
-
/* 3 */ window.sidekickWP = new SidekickWP.Models.App(
|
2548 |
-
/* 4 */
|
2549 |
-
/* 5 */
|
2550 |
-
/* 6 */
|
2551 |
-
/* 7 */
|
|
|
|
18 |
/* 15 */ if (!window.console.groupEnd) window.console.groupEnd = function(){};
|
19 |
/* 16 */ if (!window.console.table) window.console.table = function(){};
|
20 |
/* 17 */ if (!window.console.error) window.console.error = function(){};
|
21 |
+
/* 18 */ if (!window.console.groupCollapsed) window.console.groupCollapsed = function(){};
|
22 |
+
/* 19 */
|
23 |
+
/* 20 */ if (window.console){
|
24 |
+
/* 21 */ window.console.info = function(msg,o1,o2,o3){if (!o1) o1 = '';if (!o2) o2 = '';if (!o3) o3 = '';console.log('%c' + msg,'color: blue;font-weight: bold',o1,o2,o3);};
|
25 |
+
/* 22 */ window.console.event = function(msg,o1,o2,o3){if (!o1) o1 = '';if (!o2) o2 = '';if (!o3) o3 = '';console.log('%c' + msg,'color: green;font-weight: bold',o1,o2,o3);};
|
26 |
+
/* 23 */ }
|
27 |
+
/* 24 */
|
28 |
+
/* 25 */ SidekickWP.Models.App = Backbone.Model.extend({
|
29 |
+
/* 26 */ defaults: {
|
30 |
+
/* 27 */ full_library: null,
|
31 |
+
/* 28 */ library_filtered_hotspots: null,
|
32 |
+
/* 29 */ library_filtered_walkthroughs: null,
|
33 |
+
/* 30 */ library_filtered_walkthroughs_by_id: null,
|
34 |
+
/* 31 */ library_filtered_walkthroughs_by_bucket: null,
|
35 |
+
/* 32 */ library_filtered_buckets: [],
|
36 |
+
/* 33 */ library_filtered_sub_buckets: null,
|
37 |
+
/* 34 */ library_filtered_sub_buckets_by_id: null,
|
38 |
+
/* 35 */ my_library: null,
|
39 |
+
/* 36 */ wp_version: null,
|
40 |
+
/* 37 */ installed_plugins: null,
|
41 |
+
/* 38 */ current_url: null,
|
42 |
+
/* 39 */ current_plugin: null,
|
43 |
+
/* 40 */ license_status: null,
|
44 |
+
/* 41 */ show_toggle_feedback: true,
|
45 |
+
/* 42 */ bucket_counts: []
|
46 |
+
/* 43 */ },
|
47 |
+
/* 44 */
|
48 |
+
/* 45 */ initialize: function(){
|
49 |
+
/* 46 */ console.group('%cinitialize: App Model %o', 'color:#3b4580', this);
|
50 |
/* 47 */
|
51 |
+
/* 48 */ if ( $.browser.msie && $.browser.version < 9) {
|
52 |
+
/* 49 */ console.error('This browser is not supported');
|
53 |
+
/* 50 */ return false;
|
54 |
|
55 |
/* appModel.js */
|
56 |
|
57 |
+
/* 51 */ }
|
58 |
+
/* 52 */
|
59 |
+
/* 53 */ _.extend(this, Backbone.Events);
|
60 |
+
/* 54 */ SidekickWP.Events = _.extend({}, Backbone.Events);
|
61 |
+
/* 55 */
|
62 |
+
/* 56 */ Sidekick.Events.on('loaded_walkthrough',this.loaded_walkthrough,this);
|
63 |
+
/* 57 */ // Sidekick.Events.on('stop',this.show_review,this);
|
64 |
+
/* 58 */ Sidekick.Events.on('stop',this.deactivate_controls,this);
|
65 |
+
/* 59 */ Sidekick.Events.on('track_play',this.activate_controls,this);
|
66 |
+
/* 60 */ SidekickWP.Events.on('show_msg',this.show_msg,this);
|
67 |
+
/* 61 */
|
68 |
+
/* 62 */ this.trackingModel = new SidekickWP.Models.Tracking();
|
69 |
+
/* 63 */
|
70 |
+
/* 64 */ if (typeof sk_library == 'undefined') {
|
71 |
+
/* 65 */ var msg = 'No Library Found!';
|
72 |
+
/* 66 */ SidekickWP.Events.trigger('track_error',{msg: msg});
|
73 |
+
/* 67 */
|
74 |
+
/* 68 */ console.error('Sidekick Library Not Found! -> %s',sk_library_file);
|
75 |
+
/* 69 */ return;
|
76 |
+
/* 70 */ } else {
|
77 |
+
/* 71 */ console.info('Library -> ' + sk_library_file);
|
78 |
+
/* 72 */ console.log('sk_library %o', sk_library);
|
79 |
+
/* 73 */ }
|
80 |
+
/* 74 */
|
81 |
+
/* 75 */ if (typeof sk_just_activated != 'undefined')
|
82 |
+
/* 76 */ SidekickWP.Events.trigger('window_activate');
|
83 |
+
/* 77 */
|
84 |
+
/* 78 */ if (typeof sk_main_soft_version === 'undefined') {
|
85 |
+
/* 79 */ console.error('No WP Version?!?');
|
86 |
+
/* 80 */ return false;
|
87 |
+
/* 81 */ }
|
88 |
+
/* 82 */
|
89 |
+
/* 83 */ if (typeof sk_main_soft_version != 'undefined') this.set('sk_main_soft_version',sk_main_soft_version);
|
90 |
+
/* 84 */ if (typeof sk_library != 'undefined') this.set('full_library',sk_library);
|
91 |
+
/* 85 */ if (typeof sk_installed_plugins != 'undefined') this.set('installed_plugins',sk_installed_plugins);
|
92 |
/* 86 */
|
93 |
+
/* 87 */ if (sk_track_data === true) console.log("Can't Track User Data!");
|
94 |
+
/* 88 */
|
95 |
+
/* 89 */ // console.table(this.attributes);
|
96 |
+
/* 90 */
|
97 |
+
/* 91 */ console.info('Full Library %o', this.get('full_library'));
|
98 |
+
/* 92 */ this.set('current_url',window.location.toString());
|
99 |
+
/* 93 */
|
100 |
+
/* 94 */ this.Config = {
|
101 |
+
/* 95 */ domain: 'http://www.wpuniversity.com'
|
102 |
+
/* 96 */ };
|
103 |
+
/* 97 */
|
104 |
+
/* 98 */ this.views = {};
|
105 |
+
/* 99 */
|
106 |
+
/* 100 */ this.check_library();
|
107 |
|
108 |
/* appModel.js */
|
109 |
|
110 |
+
/* 101 */ this.filter_walkthroughs();
|
111 |
+
/* 102 */ this.filter_buckets();
|
112 |
+
/* 103 */ // this.remove_empty_buckets();
|
113 |
/* 104 */
|
114 |
+
/* 105 */ this.views.app = new SidekickWP.Views.App({model: this, el: $("body")});
|
115 |
+
/* 106 */
|
116 |
+
/* 107 */ console.groupEnd();
|
117 |
+
/* 108 */ },
|
118 |
/* 109 */
|
119 |
+
/* 110 */ filter_walkthroughs: function(){
|
120 |
+
/* 111 */ var library = this.get('full_library');
|
121 |
+
/* 112 */ var check_list = [];
|
122 |
+
/* 113 */ var passed_list = [];
|
123 |
+
/* 114 */ var library_filtered_walkthroughs_by_id = [];
|
124 |
+
/* 115 */ var library_filtered_walkthroughs_by_bucket = [];
|
125 |
+
/* 116 */ var library_filtered_hotspots = [];
|
126 |
+
/* 117 */
|
127 |
+
/* 118 */ console.groupCollapsed('%cCHECK_WALKTHROUGH_COMPATIBILITY %o', 'color:#3b4580', walkthrough);
|
128 |
+
/* 119 */ // console.group('%cCHECK_WALKTHROUGH_COMPATIBILITY %o', 'color:#3b4580', walkthrough);
|
129 |
+
/* 120 */ for(var type in library.walkthroughs){
|
130 |
+
/* 121 */ for(var walkthrough_key in library.walkthroughs[type]){
|
131 |
+
/* 122 */ var walkthrough = library.walkthroughs[type][walkthrough_key];
|
132 |
+
/* 123 */ var check_walkthought = this.check_walkthrough_compatibility(walkthrough);
|
133 |
+
/* 124 */
|
134 |
+
/* 125 */ if (check_walkthought) {
|
135 |
+
/* 126 */ library_filtered_walkthroughs_by_id[walkthrough.id] = walkthrough;
|
136 |
/* 127 */
|
137 |
+
/* 128 */ if (walkthrough.type == 'hotspot') {
|
138 |
+
/* 129 */ _.each(walkthrough.hotspots,function(item){
|
139 |
+
/* 130 */ library_filtered_hotspots.push({url:item.url,selector: item.selector,id:walkthrough.id});
|
140 |
+
/* 131 */ });
|
141 |
+
/* 132 */ } else {
|
142 |
+
/* 133 */ for (var bucket in walkthrough.buckets){
|
143 |
+
/* 134 */ var bucket_id = walkthrough.buckets[bucket];
|
144 |
+
/* 135 */ this.assign_walkthrough(bucket_id,walkthrough);
|
145 |
/* 136 */
|
146 |
+
/* 137 */ if (typeof library_filtered_walkthroughs_by_bucket[bucket_id] === 'undefined') library_filtered_walkthroughs_by_bucket[bucket_id] = [];
|
147 |
+
/* 138 */ if (typeof library_filtered_walkthroughs_by_bucket[bucket_id][type] === 'undefined') library_filtered_walkthroughs_by_bucket[bucket_id][type] = [];
|
148 |
+
/* 139 */
|
149 |
+
/* 140 */ library_filtered_walkthroughs_by_bucket[bucket_id][type].push(walkthrough);
|
150 |
+
/* 141 */ }
|
151 |
+
/* 142 */ }
|
152 |
+
/* 143 */ if (!_.size(passed_list)) {
|
153 |
+
/* 144 */ passed_list = [walkthrough.id];
|
154 |
+
/* 145 */ } else {
|
155 |
+
/* 146 */ passed_list = _.union(passed_list,walkthrough.id);
|
156 |
+
/* 147 */ }
|
157 |
+
/* 148 */ }
|
158 |
+
/* 149 */ }
|
159 |
+
/* 150 */ }
|
160 |
|
161 |
/* appModel.js */
|
162 |
|
163 |
+
/* 151 */ console.log('passed_list %o', passed_list);
|
164 |
+
/* 152 */ console.log('library_filtered_walkthroughs_by_bucket %o', library_filtered_walkthroughs_by_bucket);
|
165 |
/* 153 */
|
166 |
+
/* 154 */ console.groupEnd();
|
167 |
+
/* 155 */
|
168 |
+
/* 156 */ this.set('library_filtered_hotspots',library_filtered_hotspots);
|
169 |
+
/* 157 */ this.set('library_filtered_walkthroughs',passed_list);
|
170 |
+
/* 158 */ this.set('library_filtered_walkthroughs_by_id',library_filtered_walkthroughs_by_id);
|
171 |
+
/* 159 */ this.set('library_filtered_walkthroughs_by_bucket',library_filtered_walkthroughs_by_bucket);
|
172 |
+
/* 160 */ },
|
173 |
+
/* 161 */
|
174 |
+
/* 162 */ assign_walkthrough: function(into_bucket_id,walkthrough){
|
175 |
+
/* 163 */ console.group('%cassign_walkthrough (%s) -> bucket %s', 'color:#8fa2ff',walkthrough.title,into_bucket_id);
|
176 |
+
/* 164 */
|
177 |
+
/* 165 */ var full_library = this.get('full_library');
|
178 |
+
/* 166 */ var library_filtered_buckets = this.get('library_filtered_buckets');
|
179 |
+
/* 167 */
|
180 |
+
/* 168 */ for (var bucket in full_library.buckets){
|
181 |
+
/* 169 */ var bucket_data = full_library.buckets[bucket];
|
182 |
+
/* 170 */ if (typeof bucket_data.sub_buckets == 'object') {
|
183 |
+
/* 171 */ var sub_buckets = bucket_data.sub_buckets;
|
184 |
+
/* 172 */ for (var sub_bucket in sub_buckets){
|
185 |
+
/* 173 */ var sub_bucket_data = sub_buckets[sub_bucket];
|
186 |
/* 174 */
|
187 |
+
/* 175 */ if (typeof sub_bucket_data.sub_buckets == 'object') {
|
188 |
+
/* 176 */ var sub_sub_buckets = sub_bucket_data.sub_buckets;
|
189 |
+
/* 177 */ for (var sub_sub_bucket in sub_sub_buckets){
|
190 |
+
/* 178 */ var sub_sub_bucket_data = sub_sub_buckets[sub_sub_bucket];
|
191 |
+
/* 179 */ if (sub_sub_bucket_data.id == into_bucket_id) {
|
192 |
+
/* 180 */ // console.log(' Assigning (%s) -> (%s)',walkthrough.title,into_bucket_id);
|
193 |
+
/* 181 */ (full_library.buckets[bucket].sub_buckets[sub_bucket].sub_buckets[sub_sub_bucket].walkthroughs = full_library.buckets[bucket].sub_buckets[sub_bucket].sub_buckets[sub_sub_bucket].walkthroughs || []).push(walkthrough);
|
194 |
+
/* 182 */ }
|
195 |
+
/* 183 */ }
|
196 |
+
/* 184 */ } else {
|
197 |
+
/* 185 */ if (sub_bucket_data.id == into_bucket_id) {
|
198 |
+
/* 186 */ // console.log(' Assigning (%s) -> (%s)',walkthrough.title,into_bucket_id);
|
199 |
+
/* 187 */ (full_library.buckets[bucket].sub_buckets[sub_bucket].walkthroughs = full_library.buckets[bucket].sub_buckets[sub_bucket].walkthroughs || []).push(walkthrough);
|
200 |
+
/* 188 */ }
|
201 |
+
/* 189 */ }
|
202 |
+
/* 190 */ }
|
203 |
+
/* 191 */ } else {
|
204 |
+
/* 192 */ if (bucket_data.id == into_bucket_id) {
|
205 |
+
/* 193 */ // console.log('Assigning (%s) -> (%s)',walkthrough.title,into_bucket_id);
|
206 |
+
/* 194 */ (full_library.buckets[bucket].walkthroughs = full_library.buckets[bucket].walkthroughs || []).push(walkthrough);
|
207 |
+
/* 195 */ }
|
208 |
+
/* 196 */ }
|
209 |
+
/* 197 */ }
|
210 |
+
/* 198 */
|
211 |
+
/* 199 */ this.set('library_filtered_buckets',library_filtered_buckets);
|
212 |
+
/* 200 */ console.groupEnd();
|
213 |
|
214 |
/* appModel.js */
|
215 |
|
216 |
+
/* 201 */ },
|
217 |
+
/* 202 */
|
218 |
+
/* 203 */ filter_buckets: function(){
|
219 |
+
/* 204 */ console.groupCollapsed('%cFILTER_BUCKETS', 'color:#8fa2ff');
|
220 |
+
/* 205 */
|
221 |
+
/* 206 */ var full_library = this.get('full_library');
|
222 |
+
/* 207 */ var library_filtered_sub_buckets = {};
|
223 |
+
/* 208 */ var bucket;
|
224 |
+
/* 209 */ var bucket_data;
|
225 |
+
/* 210 */ var sub_bucket;
|
226 |
+
/* 211 */ var sub_buckets;
|
227 |
+
/* 212 */ var sub_bucket_data;
|
228 |
+
/* 213 */
|
229 |
+
/* 214 */ console.log('LEVEL 3 full_library.buckets %o', full_library.buckets);
|
230 |
+
/* 215 */
|
231 |
+
/* 216 */
|
232 |
+
/* 217 */ for (bucket in full_library.buckets){
|
233 |
+
/* 218 */ console.log('bucket %o', bucket);
|
234 |
+
/* 219 */
|
235 |
+
/* 220 */ bucket_data = full_library.buckets[bucket];
|
236 |
+
/* 221 */
|
237 |
+
/* 222 */ library_filtered_sub_buckets[bucket] = {id:bucket_data.id,sub_buckets:[]};
|
238 |
/* 223 */
|
239 |
+
/* 224 */
|
240 |
+
/* 225 */ if (typeof bucket_data.sub_buckets == 'object') {
|
241 |
+
/* 226 */ sub_buckets = bucket_data.sub_buckets;
|
242 |
+
/* 227 */ for (sub_bucket in sub_buckets){
|
243 |
+
/* 228 */ console.log('sub_bucket %o', sub_bucket);
|
244 |
+
/* 229 */
|
245 |
+
/* 230 */ sub_bucket_data = sub_buckets[sub_bucket];
|
246 |
+
/* 231 */
|
247 |
+
/* 232 */ library_filtered_sub_buckets[bucket].sub_buckets[sub_bucket] = {id:sub_bucket_data.id};
|
248 |
+
/* 233 */ library_filtered_sub_buckets[sub_bucket] = {id:sub_bucket_data.id,sub_buckets:[]};
|
249 |
/* 234 */
|
250 |
+
/* 235 */
|
251 |
+
/* 236 */ if (typeof sub_bucket_data.sub_buckets == 'object') {
|
252 |
+
/* 237 */ var sub_sub_buckets = sub_bucket_data.sub_buckets;
|
253 |
+
/* 238 */
|
254 |
/* 239 */
|
255 |
+
/* 240 */ for (var sub_sub_bucket in sub_sub_buckets){
|
256 |
+
/* 241 */ console.log('sub_sub_bucket %o', sub_sub_bucket);
|
257 |
+
/* 242 */
|
258 |
+
/* 243 */ var sub_sub_bucket_data = sub_sub_buckets[sub_sub_bucket];
|
259 |
+
/* 244 */
|
260 |
+
/* 245 */ library_filtered_sub_buckets[sub_sub_bucket] = {id:sub_sub_bucket_data.id,sub_buckets:[]};
|
261 |
+
/* 246 */ library_filtered_sub_buckets[sub_bucket].sub_buckets[sub_sub_bucket] = {id:sub_sub_bucket_data.id,sub_buckets:[]};
|
262 |
+
/* 247 */
|
263 |
+
/* 248 */ // console.log('sub_sub_bucket %o - %o', sub_sub_bucket,sub_sub_bucket_data);
|
264 |
+
/* 249 */
|
265 |
+
/* 250 */ if (!sub_sub_bucket_data.walkthroughs && !sub_sub_bucket_data.sub_buckets) {
|
266 |
|
267 |
/* appModel.js */
|
268 |
|
269 |
+
/* 251 */ console.log('Deleteing -> %o',full_library.buckets[bucket].sub_buckets[sub_bucket].sub_buckets[sub_sub_bucket]);
|
270 |
+
/* 252 */ delete(full_library.buckets[bucket].sub_buckets[sub_bucket].sub_buckets[sub_sub_bucket]);
|
271 |
+
/* 253 */ }
|
272 |
+
/* 254 */
|
273 |
+
/* 255 */ if (typeof sub_sub_bucket_data.sub_buckets == 'object') {
|
274 |
+
/* 256 */ var sub_sub_sub_buckets = sub_sub_bucket_data.sub_buckets;
|
275 |
+
/* 257 */
|
276 |
+
/* 258 */ for (var sub_sub_sub_bucket in sub_sub_sub_buckets){
|
277 |
+
/* 259 */ console.log('sub_sub_sub_bucket %o', sub_sub_sub_bucket);
|
278 |
+
/* 260 */ var sub_sub_sub_bucket_data = sub_sub_sub_buckets[sub_sub_sub_bucket];
|
279 |
+
/* 261 */ library_filtered_sub_buckets[sub_sub_sub_bucket] = {id:sub_sub_sub_bucket_data.id,sub_buckets:[]};
|
280 |
+
/* 262 */ library_filtered_sub_buckets[sub_sub_bucket].sub_buckets[sub_sub_sub_bucket] = {id:sub_sub_sub_bucket_data.id,sub_buckets:[]};
|
281 |
+
/* 263 */ }
|
282 |
+
/* 264 */ }
|
283 |
+
/* 265 */
|
284 |
+
/* 266 */ }
|
285 |
+
/* 267 */ }
|
286 |
+
/* 268 */ }
|
287 |
+
/* 269 */ }
|
288 |
+
/* 270 */ }
|
289 |
+
/* 271 */
|
290 |
+
/* 272 */ console.log('LEVEL 2 full_library.buckets %o', full_library.buckets);
|
291 |
/* 273 */
|
292 |
+
/* 274 */ for (bucket in full_library.buckets){
|
293 |
+
/* 275 */ bucket_data = full_library.buckets[bucket];
|
294 |
+
/* 276 */ if (typeof bucket_data.sub_buckets == 'object') {
|
295 |
+
/* 277 */ sub_buckets = bucket_data.sub_buckets;
|
296 |
+
/* 278 */ for (sub_bucket in sub_buckets){
|
297 |
+
/* 279 */ sub_bucket_data = sub_buckets[sub_bucket];
|
298 |
/* 280 */
|
299 |
+
/* 281 */ if (!sub_bucket_data.walkthroughs && !sub_bucket_data.sub_buckets) {
|
300 |
+
/* 282 */ console.log('Deleteing -> %o',sub_bucket);
|
301 |
+
/* 283 */ delete(full_library.buckets[bucket].sub_buckets[sub_bucket]);
|
302 |
+
/* 284 */ }
|
303 |
+
/* 285 */ }
|
304 |
+
/* 286 */ }
|
305 |
+
/* 287 */ }
|
306 |
/* 288 */
|
307 |
+
/* 289 */ console.log('LEVEL 1 full_library.buckets %o', full_library.buckets);
|
308 |
+
/* 290 */
|
309 |
+
/* 291 */ for (bucket in full_library.buckets){
|
310 |
+
/* 292 */ bucket_data = full_library.buckets[bucket];
|
311 |
+
/* 293 */ if (!bucket_data.walkthroughs && !bucket_data.sub_buckets) {
|
312 |
+
/* 294 */ console.log('Deleteing -> %o',bucket);
|
313 |
+
/* 295 */ delete(full_library.buckets[bucket]);
|
314 |
/* 296 */ }
|
315 |
/* 297 */ }
|
316 |
+
/* 298 */
|
317 |
+
/* 299 */ this.set('library_filtered_sub_buckets',library_filtered_sub_buckets);
|
318 |
+
/* 300 */ console.log('full_library.buckets %o', full_library.buckets);
|
319 |
|
320 |
/* appModel.js */
|
321 |
|
322 |
/* 301 */ console.groupEnd();
|
323 |
/* 302 */ },
|
324 |
/* 303 */
|
325 |
+
/* 304 */ check_walkthrough_compatibility: function(walkthrough){
|
326 |
+
/* 305 */ var sk_main_soft_version = this.get('sk_main_soft_version');
|
327 |
+
/* 306 */ var pass_main_soft_version = false, pass_theme_version = false, pass_theme = false, pass_plugin = false, pass_plugin_version = false, pass_user_level = false;
|
328 |
+
/* 307 */ var bucket_counts = this.get('bucket_counts');
|
329 |
+
/* 308 */ var installed_plugins = this.get('installed_plugins') ;
|
330 |
+
/* 309 */
|
331 |
+
/* 310 */ // Checking Main Software Version Compatibility
|
332 |
+
/* 311 */ pass_main_soft_version = _.find(walkthrough.main_soft_version,function(val){
|
333 |
+
/* 312 */ if (val == sk_main_soft_version)
|
334 |
+
/* 313 */ return true;
|
335 |
+
/* 314 */ });
|
336 |
+
/* 315 */
|
337 |
+
/* 316 */ if (!pass_main_soft_version){
|
338 |
+
/* 317 */ console.error('FAILED %o - Main %s != %s',walkthrough.title, pass_main_soft_version,walkthrough.main_soft_version);
|
339 |
+
/* 318 */ console.log('sk_main_soft_version %o walkthrough.main_soft_version %o', sk_main_soft_version,walkthrough.main_soft_version);
|
340 |
/* 319 */
|
341 |
+
/* 320 */ return false;
|
342 |
+
/* 321 */ }
|
343 |
+
/* 322 */
|
344 |
+
/* 323 */ // Checking Theme Compatibility
|
345 |
+
/* 324 */ if (typeof walkthrough.theme !== 'undefined') {
|
346 |
+
/* 325 */ if (walkthrough.theme === sk_installed_theme) {
|
347 |
+
/* 326 */ pass_theme = true;
|
348 |
+
/* 327 */ if (walkthrough.theme_version) {
|
349 |
+
/* 328 */ pass_theme_version = _.find(walkthrough.theme_version,function(val){
|
350 |
+
/* 329 */ if (val == sk_theme_version) {
|
351 |
+
/* 330 */ return true;
|
352 |
+
/* 331 */ }
|
353 |
+
/* 332 */ });
|
354 |
+
/* 333 */ } else {
|
355 |
+
/* 334 */ pass_theme_version = true;
|
356 |
+
/* 335 */ }
|
357 |
+
/* 336 */ }
|
358 |
+
/* 337 */ if (!pass_theme || !pass_theme_version){
|
359 |
+
/* 338 */ console.error('FAILED %o - Theme %s (%o) != %s (%o)',walkthrough.title,walkthrough.theme_version, walkthrough.theme, pass_theme, sk_theme_version);
|
360 |
+
/* 339 */ return false;
|
361 |
+
/* 340 */ }
|
362 |
+
/* 341 */ }
|
363 |
+
/* 342 */
|
364 |
+
/* 343 */ // Checking Plugin Compatibility
|
365 |
+
/* 344 */ if (typeof walkthrough.plugin !== 'undefined') {
|
366 |
+
/* 345 */ if (typeof sk_installed_plugins === 'undefined') return false;
|
367 |
+
/* 346 */ pass_plugin = _.find(sk_installed_plugins,function(plugin_data){
|
368 |
+
/* 347 */ for (var plugin in plugin_data) {
|
369 |
+
/* 348 */ var version = plugin_data[plugin];
|
370 |
+
/* 349 */
|
371 |
+
/* 350 */ if (plugin == walkthrough.plugin) {
|
372 |
+
|
373 |
+
/* appModel.js */
|
374 |
+
|
375 |
+
/* 351 */ pass_plugin = true;
|
376 |
+
/* 352 */
|
377 |
+
/* 353 */ pass_plugin_version = _.find(walkthrough.plugin_version,function(version2){
|
378 |
+
/* 354 */ // console.log('version %o == %o ?', version,version2);
|
379 |
+
/* 355 */ if (version == version2) {
|
380 |
+
/* 356 */ pass_plugin_version = true;
|
381 |
+
/* 357 */ return true;
|
382 |
+
/* 358 */ }
|
383 |
+
/* 359 */ });
|
384 |
+
/* 360 */ // console.log('pass_plugin_version %o', pass_plugin_version);
|
385 |
+
/* 361 */ return true;
|
386 |
+
/* 362 */ }
|
387 |
+
/* 363 */ break;
|
388 |
+
/* 364 */ }
|
389 |
+
/* 365 */ });
|
390 |
+
/* 366 */ if (!pass_plugin || !pass_plugin_version){
|
391 |
+
/* 367 */ console.error('FAILED %o - Plugin %o (%o) != %s',walkthrough.title, sk_installed_plugins, walkthrough.plugin_version, walkthrough.plugin);
|
392 |
+
/* 368 */ return false;
|
393 |
+
/* 369 */ }
|
394 |
+
/* 370 */ }
|
395 |
+
/* 371 */
|
396 |
+
/* 372 */ // Checking User Role/Level Compatibility
|
397 |
+
/* 373 */ if (walkthrough.role) {
|
398 |
+
/* 374 */ pass_user_level = _.find(walkthrough.role,function(val){
|
399 |
+
/* 375 */ if (val == sk_user_level) {
|
400 |
+
/* 376 */ return true;
|
401 |
+
/* 377 */ }
|
402 |
+
/* 378 */ });
|
403 |
+
/* 379 */ }
|
404 |
+
/* 380 */
|
405 |
+
/* 381 */ if (!pass_user_level){
|
406 |
+
/* 382 */ console.error('FAILED %o - User Level %s != %s',walkthrough.title, sk_user_level, walkthrough.role);
|
407 |
+
/* 383 */ return false;
|
408 |
+
/* 384 */ }
|
409 |
+
/* 385 */
|
410 |
+
/* 386 */ console.log('%cPASSED! %o', 'color: #3ab00b',walkthrough.title);
|
411 |
+
/* 387 */ return true;
|
412 |
+
/* 388 */ },
|
413 |
+
/* 389 */
|
414 |
+
/* 390 */ check_library: function(){
|
415 |
+
/* 391 */ if (!this.get('full_library')) {
|
416 |
+
/* 392 */ console.error("WPU Library Not Found!");
|
417 |
+
/* 393 */ return false;
|
418 |
+
/* 394 */ }
|
419 |
+
/* 395 */ if (!this.get('sk_main_soft_version')){
|
420 |
+
/* 396 */ console.error("No WP Version Found!");
|
421 |
+
/* 397 */ return false;
|
422 |
+
/* 398 */ }
|
423 |
+
/* 399 */ // this.parse_my_library();
|
424 |
+
/* 400 */ },
|
425 |
+
|
426 |
+
/* appModel.js */
|
427 |
+
|
428 |
+
/* 401 */
|
429 |
+
/* 402 */ loaded_walkthrough: function(walkthrough_model){
|
430 |
+
/* 403 */ // console.log('WPU:loaded_walkthrough');
|
431 |
+
/* 404 */ this.set('last_loaded_walkthrough',walkthrough_model);
|
432 |
+
/* 405 */ },
|
433 |
+
/* 406 */
|
434 |
+
/* 407 */ activate_controls: function(){
|
435 |
+
/* 408 */ console.log('activate_controls');
|
436 |
+
/* 409 */ $('div#sidekick').addClass('playing');
|
437 |
+
/* 410 */ },
|
438 |
+
/* 411 */
|
439 |
+
/* 412 */ deactivate_controls: function(){
|
440 |
+
/* 413 */ $('div#sidekick').removeClass('playing');
|
441 |
+
/* 414 */ },
|
442 |
+
/* 415 */
|
443 |
+
/* 416 */ // show_review: function(a,b){
|
444 |
+
/* 417 */ // console.log('show_review');
|
445 |
+
/* 418 */ // var last_loaded_walkthrough = this.get('last_loaded_walkthrough');
|
446 |
+
/* 419 */ // console.log('last_loaded_walkthrough %o', last_loaded_walkthrough);
|
447 |
+
/* 420 */
|
448 |
+
/* 421 */ // var walkthrough_title = last_loaded_walkthrough.get('title');
|
449 |
+
/* 422 */ // console.log('walkthrough_title %o', walkthrough_title);
|
450 |
+
/* 423 */
|
451 |
+
/* 424 */ // // new SidekickWP.Models.Review({walkthrough_title: walkthrough_title});
|
452 |
+
/* 425 */ // },
|
453 |
+
/* 426 */
|
454 |
+
/* 427 */ show_msg: function(data,context){
|
455 |
+
/* 428 */ // console.log('show_msg %o',arguments);
|
456 |
+
/* 429 */ // console.log('this.models %o', this.models);
|
457 |
+
/* 430 */ // console.log('context %o', context);
|
458 |
+
/* 431 */ new SidekickWP.Models.Message({title: data.title, message: data.msg});
|
459 |
+
/* 432 */ }
|
460 |
+
/* 433 */ });
|
461 |
+
/* 434 */ }(jQuery));
|
462 |
|
463 |
;
|
464 |
/* bucketContainerModel.js */
|
467 |
/* 2 */
|
468 |
/* 3 */ SidekickWP.Models.BucketContainer = Backbone.Model.extend({
|
469 |
/* 4 */ defaults: {
|
470 |
+
/* 5 */ navigation_history: ['buckets']
|
471 |
+
/* 6 */ },
|
472 |
+
/* 7 */
|
473 |
+
/* 8 */ initialize: function(){
|
474 |
+
/* 9 */ this.view = new SidekickWP.Views.BucketContainer({model: this});
|
475 |
+
/* 10 */ return this;
|
476 |
+
/* 11 */ }
|
477 |
+
/* 12 */ });
|
478 |
+
/* 13 */
|
479 |
+
/* 14 */ }(jQuery));
|
|
|
|
|
480 |
|
481 |
;
|
482 |
/* bucketModel.js */
|
485 |
/* 2 */
|
486 |
/* 3 */ SidekickWP.Models.Bucket = Backbone.Model.extend({
|
487 |
/* 4 */ defaults: {
|
488 |
+
/* 5 */ full_library: null,
|
489 |
+
/* 6 */ library_filtered_walkthroughs: null,
|
490 |
+
/* 7 */ library_filtered_buckets: null,
|
491 |
+
/* 8 */ library_filtered_sub_buckets: null
|
492 |
+
/* 9 */ },
|
493 |
+
/* 10 */
|
494 |
+
/* 11 */ initialize: function(){
|
495 |
+
/* 12 */ console.log('initialize bucketModel %o', this.attributes);
|
496 |
+
/* 13 */ this.view = new SidekickWP.Views.Bucket({model: this});
|
497 |
+
/* 14 */ return this;
|
498 |
+
/* 15 */ }
|
499 |
+
/* 16 */ });
|
500 |
+
/* 17 */
|
501 |
+
/* 18 */ }(jQuery));
|
502 |
|
503 |
;
|
504 |
/* helpers.js */
|
507 |
/* 2 */
|
508 |
/* 3 */ SidekickWP.Helpers = ({
|
509 |
/* 4 */ preventScrolling: function(){
|
510 |
+
/* 5 */ $('div#sidekick .bucketContainer>div>ul').on('DOMMouseScroll mousewheel', function(ev) {
|
511 |
/* 6 */ console.log('asd');
|
512 |
/* 7 */ var $this = $(this),
|
513 |
/* 8 */ scrollTop = this.scrollTop,
|
541 |
/* 36 */
|
542 |
/* 37 */
|
543 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
544 |
;
|
545 |
/* messageModel.js */
|
546 |
|
610 |
/* 29 */ data.source = 'plugin';
|
611 |
/* 30 */ data.action = 'track';
|
612 |
/* 31 */ data.data = JSON.stringify(model);
|
613 |
+
/* 32 */ if (typeof sidekick !== 'undefined' && (typeof sk_track_data === 'undefined' || sk_track_data === true)) {
|
614 |
+
/* 33 */ data.user = sk_license_key;
|
615 |
+
/* 34 */ }
|
616 |
+
/* 35 */
|
617 |
+
/* 36 */ // console.log('send tracking to WPU',data);
|
618 |
+
/* 37 */ $.post("http://www.wpuniversity.com/wp-admin/admin-ajax.php", data);
|
619 |
+
/* 38 */ },
|
620 |
+
/* 39 */
|
621 |
+
/* 40 */ track_explore: function(data){
|
622 |
+
/* 41 */ window._gaq.push(['sidekickWP._trackEvent', 'Plugin - Explore', data.what, null, 0,true]);
|
623 |
+
/* 42 */ this.send({type: 'explore', label: data.what});
|
624 |
+
/* 43 */ },
|
625 |
+
/* 44 */
|
626 |
+
/* 45 */ track_open_sidekick_window: function(data){
|
627 |
+
/* 46 */ window._gaq.push(['sidekickWP._trackEvent', 'Plugin - Window', 'Open', null, 0,true]);
|
628 |
+
/* 47 */ this.send({type: 'open'});
|
629 |
+
/* 48 */ },
|
630 |
+
/* 49 */
|
631 |
+
/* 50 */ window_activate: function(data){
|
632 |
|
633 |
/* trackingModel.js */
|
634 |
|
635 |
+
/* 51 */ window._gaq.push(['sidekickWP._trackEvent', 'Plugin - Activate', '', wpu_plugin_version, 0,true]);
|
636 |
+
/* 52 */ this.send({type: 'activate'});
|
637 |
+
/* 53 */ },
|
638 |
+
/* 54 */
|
639 |
+
/* 55 */ window_deactivate: function(data){
|
640 |
+
/* 56 */ window._gaq.push(['sidekickWP._trackEvent', 'Plugin - Deactivate', '', wpu_plugin_version, 0,true]);
|
641 |
+
/* 57 */ this.send({type: 'deactivate'});
|
642 |
+
/* 58 */ },
|
643 |
+
/* 59 */
|
644 |
+
/* 60 */ track_error: function(data){
|
645 |
+
/* 61 */ window._gaq.push(['sidekickWP._trackEvent', 'Plugin', 'Error', data.msg,null,true]);
|
646 |
+
/* 62 */ this.send({type: 'error', label: data.msg});
|
647 |
+
/* 63 */ }
|
648 |
+
/* 64 */
|
649 |
+
/* 65 */ });
|
650 |
/* 66 */
|
651 |
+
/* 67 */ }(jQuery));
|
652 |
+
/* 68 */
|
653 |
+
/* 69 */
|
654 |
+
/* 70 */
|
655 |
|
656 |
;
|
657 |
/* appView.js */
|
659 |
/* 1 */ (function($) {
|
660 |
/* 2 */ SidekickWP.Views.App = Backbone.View.extend({
|
661 |
/* 3 */ initialize: function(){
|
662 |
+
/* 4 */ SidekickWP.Events.on('toggle_sidekick_drawer', this.toggle_sidekick_drawer, this);
|
663 |
+
/* 5 */ SidekickWP.Events.on('close_sidekick_drawer', this.close_sidekick_drawer, this);
|
664 |
+
/* 6 */ SidekickWP.Events.on('open_sidekick_drawer', this.open_sidekick_drawer, this);
|
665 |
+
/* 7 */ SidekickWP.Events.on('resize_sidekick_drawer', this.resize_sidekick_drawer, this);
|
666 |
+
/* 8 */ SidekickWP.Events.on('toggle_hotspots', this.toggle_hotspots, this);
|
667 |
+
/* 9 */ SidekickWP.Events.on('toggle_preferences', this.toggle_preferences, this);
|
668 |
+
/* 10 */
|
669 |
+
/* 11 */
|
670 |
+
/* 12 */ Sidekick.Events.on('track_play',this.toggle_sidekick_drawer,'hide');
|
671 |
+
/* 13 */ Sidekick.Events.on('track_stop',this.show_sidekick_drawer);
|
672 |
+
/* 14 */
|
673 |
/* 15 */ return this.render();
|
674 |
/* 16 */ },
|
675 |
/* 17 */
|
676 |
/* 18 */ render: function(){
|
677 |
+
/* 19 */ console.groupEnd('%crender: SidekickWP: appView %o', 'color:#8fa2ff', this);
|
678 |
/* 20 */
|
679 |
+
/* 21 */ this.BucketContainer = new SidekickWP.Models.BucketContainer({
|
680 |
+
/* 22 */ full_library: this.model.get('full_library'),
|
681 |
+
/* 23 */ library_filtered_walkthroughs: this.model.get('library_filtered_walkthroughs'),
|
682 |
+
/* 24 */ library_filtered_buckets: this.model.get('library_filtered_buckets'),
|
683 |
+
/* 25 */ library_filtered_sub_buckets: this.model.get('library_filtered_sub_buckets'),
|
684 |
+
/* 26 */ library_filtered_walkthroughs_by_bucket: this.model.get('library_filtered_walkthroughs_by_bucket'),
|
685 |
+
/* 27 */ bucket_counts: this.model.get('bucket_counts')
|
686 |
+
/* 28 */ });
|
687 |
+
/* 29 */
|
688 |
+
/* 30 */ if (_.size(this.model.get('library_filtered_walkthroughs')) > 0) {
|
689 |
+
/* 31 */ BucketContainer = this.BucketContainer.view.render().$el.html();
|
690 |
+
/* 32 */ } else {
|
691 |
+
/* 33 */ BucketContainer = '<div class="warning">No walkthroughs found for ' + sk_main_soft_name + ' ' + sk_main_soft_version + '</div>';
|
692 |
+
/* 34 */ SidekickWP.Events.trigger('show_msg',{title: "No Walkthroughs", msg: "We're sorry but it looks like there are no walkthroughs compatible with your version of software."},this.model);
|
693 |
+
/* 35 */ }
|
694 |
+
/* 36 */
|
695 |
+
/* 37 */ var template = _.template( SidekickWP.Templates.App, {
|
696 |
+
/* 38 */ BucketContainer: BucketContainer,
|
697 |
+
/* 39 */ hotspots: $.cookie('sidekick_hotspots')
|
698 |
+
/* 40 */ });
|
699 |
+
/* 41 */ this.$el.append( template );
|
700 |
+
/* 42 */
|
701 |
+
/* 43 */ // this.remove_empty_buckets();
|
702 |
+
/* 44 */
|
703 |
+
/* 45 */ if (!this.model.get('show_toggle_feedback'))
|
704 |
+
/* 46 */ $('#sk_taskbar #toggle_feedback').hide();
|
705 |
+
/* 47 */
|
706 |
+
/* 48 */ SidekickWP.Events.trigger('rendered');
|
707 |
+
/* 49 */ Sidekick.Events.trigger('bind_controls');
|
708 |
/* 50 */
|
709 |
|
710 |
/* appView.js */
|
711 |
|
712 |
+
/* 51 */ // this.toggle_sidekick_window();
|
713 |
+
/* 52 */ this.show_hotspots();
|
714 |
+
/* 53 */
|
715 |
+
/* 54 */ $(window).resize(_.debounce(function(){
|
716 |
+
/* 55 */ SidekickWP.Events.trigger('resize_sidekick_drawer');
|
717 |
+
/* 56 */ },500));
|
718 |
/* 57 */
|
719 |
+
/* 58 */ console.groupEnd();
|
720 |
+
/* 59 */ return this;
|
721 |
+
/* 60 */ },
|
722 |
+
/* 61 */
|
723 |
+
/* 62 */ events: {
|
724 |
+
/* 63 */ "click #logo,.sk_toggle": "toggle_sidekick_window",
|
725 |
+
/* 64 */ "click #toggle_drawer": "toggle_sidekick_drawer",
|
726 |
+
/* 65 */ "click #toggle_hotspots": "toggle_hotspots",
|
727 |
+
/* 66 */ "click #toggle_preferences": "toggle_preferences",
|
728 |
+
/* 67 */ "click #toggle_feedback": "show_feedback",
|
729 |
+
/* 68 */ "click #close_sidekick": "close_sidekick_window"
|
730 |
+
/* 69 */ },
|
731 |
+
/* 70 */
|
732 |
+
/* 71 */ goto_config: function(){
|
733 |
+
/* 72 */ // console.log('goto_config');
|
734 |
+
/* 73 */ window.open('/wp-admin/admin.php?page=sidekick','_self');
|
735 |
+
/* 74 */ },
|
736 |
+
/* 75 */
|
737 |
+
/* 76 */ show_feedback: function(){
|
738 |
+
/* 77 */ console.log('show_feedback');
|
739 |
+
/* 78 */ Sidekick.Events.trigger('show_modal',{title:'Feedback',message: 'Send us some feedback!',primary_button_message: 'Send',secondary_button_message:'Cancel',email:sk_user_email});
|
740 |
+
/* 79 */ },
|
741 |
+
/* 80 */
|
742 |
+
/* 81 */ resize_sidekick_drawer: function(){
|
743 |
+
/* 82 */ console.log('resize_sidekick_drawer %o', $('#sk_drawer').height());
|
744 |
+
/* 83 */
|
745 |
+
/* 84 */ if ($('#sidekick').hasClass('open')) {
|
746 |
+
/* 85 */ if ($('#sk_drawer').height() > 0) {
|
747 |
+
/* 86 */ $('div#sidekick #toggle_drawer').addClass('on');
|
748 |
+
/* 87 */ $('#sk_drawer').css({
|
749 |
+
/* 88 */ height: $('body').height() - 80,
|
750 |
+
/* 89 */ transition: 'all 0.3s ease-in-out'
|
751 |
+
/* 90 */ });
|
752 |
+
/* 91 */ $('#sk_drawer .sk_bucketContainer').css({
|
753 |
+
/* 92 */ height: $('body').height() - 56 - 40,
|
754 |
+
/* 93 */ transition: 'all 0.3s ease-in-out'
|
755 |
+
/* 94 */ });
|
756 |
+
/* 95 */ $('#sk_drawer .sub_bucket').css({
|
757 |
+
/* 96 */ maxHeight: $('body').height() - 137,
|
758 |
+
/* 97 */ transition: 'all 0.3s ease-in-out'
|
759 |
+
/* 98 */ });
|
760 |
+
/* 99 */ }
|
761 |
+
/* 100 */ } else {
|
762 |
|
763 |
/* appView.js */
|
764 |
|
765 |
+
/* 101 */ $('#sk_drawer').height(0);
|
766 |
+
/* 102 */ }
|
767 |
+
/* 103 */ },
|
768 |
/* 104 */
|
769 |
+
/* 105 */ show_sidekick_drawer: function(){
|
770 |
+
/* 106 */ $('div#sidekick').addClass('open');
|
771 |
+
/* 107 */ if ($('#sk_drawer').height() === 0) {
|
772 |
+
/* 108 */ $('div#sidekick #toggle_drawer').addClass('on');
|
773 |
+
/* 109 */ $('#sk_drawer').css({
|
774 |
+
/* 110 */ height: $('body').height() - 80,
|
775 |
+
/* 111 */ transition: 'all 0.3s ease-in-out'
|
776 |
+
/* 112 */ });
|
777 |
+
/* 113 */ $('#sk_drawer .sk_bucketContainer').css({
|
778 |
+
/* 114 */ height: $('body').height() - 56 - 40,
|
779 |
+
/* 115 */ transition: 'all 0.3s ease-in-out'
|
780 |
+
/* 116 */ });
|
781 |
+
/* 117 */ $('#sk_drawer .sub_bucket').css({
|
782 |
+
/* 118 */ maxHeight: $('body').height() - 137,
|
783 |
+
/* 119 */ transition: 'all 0.3s ease-in-out'
|
784 |
+
/* 120 */ });
|
785 |
+
/* 121 */ }
|
786 |
+
/* 122 */ },
|
787 |
/* 123 */
|
788 |
+
/* 124 */ toggle_preferences: function(){
|
789 |
+
/* 125 */ window.open(sk_plugin_url,'_self');
|
790 |
+
/* 126 */ },
|
791 |
+
/* 127 */
|
792 |
+
/* 128 */ toggle_sidekick_drawer: function(force){
|
793 |
+
/* 129 */ console.log('toggle_sidekick_drawer %o | %o | %o', force,$('#sk_drawer').height(),$('#sidekick').hasClass('open'));
|
794 |
+
/* 130 */
|
795 |
+
/* 131 */ if ($('#sk_drawer').height() > 0 || force == 'hide' || !$('#sidekick').hasClass('open')) {
|
796 |
+
/* 132 */ SidekickWP.Events.trigger('close_sidekick_drawer');
|
797 |
+
/* 133 */ } else {
|
798 |
+
/* 134 */ SidekickWP.Events.trigger('open_sidekick_drawer');
|
799 |
+
/* 135 */ }
|
800 |
+
/* 136 */ },
|
801 |
+
/* 137 */
|
802 |
+
/* 138 */ close_sidekick_drawer: function(){
|
803 |
+
/* 139 */ console.log('Closing Drawer');
|
804 |
+
/* 140 */ $('div#sidekick #toggle_drawer').removeClass('on');
|
805 |
+
/* 141 */ $('#sk_drawer').css({
|
806 |
+
/* 142 */ height: 0,
|
807 |
+
/* 143 */ transition: 'height 0.3s ease-in-out'
|
808 |
+
/* 144 */ });
|
809 |
+
/* 145 */ $('#sk_drawer .sk_bucketContainer').css({
|
810 |
+
/* 146 */ height: 0,
|
811 |
+
/* 147 */ transition: 'height 0.3s ease-in-out'
|
812 |
+
/* 148 */ });
|
813 |
+
/* 149 */ },
|
814 |
+
/* 150 */
|
815 |
|
816 |
/* appView.js */
|
817 |
|
818 |
+
/* 151 */ open_sidekick_drawer: function(){
|
819 |
+
/* 152 */ console.log('Showing Drawer');
|
820 |
+
/* 153 */ $('div#sidekick #toggle_drawer').addClass('on');
|
821 |
+
/* 154 */ $('#sk_drawer').css({
|
822 |
+
/* 155 */ height: $('body').height() - 80,
|
823 |
+
/* 156 */ transition: 'height 0.3s ease-in-out'
|
824 |
+
/* 157 */ });
|
825 |
+
/* 158 */ $('#sk_drawer .sk_bucketContainer').css({
|
826 |
+
/* 159 */ height: $('body').height() - 56 - 40,
|
827 |
+
/* 160 */ transition: 'height 0.3s ease-in-out'
|
828 |
+
/* 161 */ });
|
829 |
+
/* 162 */ },
|
830 |
+
/* 163 */
|
831 |
+
/* 164 */ toggle_sidekick_window: function(e){
|
832 |
+
/* 165 */ console.log('toggle_sidekick_window');
|
833 |
+
/* 166 */
|
834 |
+
/* 167 */ SidekickWP.Events.trigger('track_toggle_sidekick_window');
|
835 |
/* 168 */
|
836 |
+
/* 169 */ if ($('div#sidekick').hasClass('open')) {
|
837 |
+
/* 170 */ console.log('Closing Sidekick Window');
|
838 |
+
/* 171 */ SidekickWP.Events.trigger('close_sidekick_drawer');
|
839 |
+
/* 172 */ $('div#sidekick').wait(500).removeClass('open');
|
840 |
+
/* 173 */ } else {
|
841 |
+
/* 174 */ console.log('Showing Sidekick Window');
|
842 |
+
/* 175 */ $('div#sidekick').addClass('open').wait(500,function(e){
|
843 |
+
/* 176 */ SidekickWP.Events.trigger('open_sidekick_drawer');
|
844 |
+
/* 177 */ });
|
845 |
+
/* 178 */ }
|
846 |
+
/* 179 */ },
|
847 |
/* 180 */
|
848 |
+
/* 181 */ close_sidekick_window: function(e){
|
849 |
+
/* 182 */ console.log('close_sidekick_window');
|
850 |
+
/* 183 */ if ($('div#sidekick').hasClass('open')) {
|
851 |
+
/* 184 */ SidekickWP.Events.trigger('toggle_sidekick_drawer');
|
852 |
+
/* 185 */ $('div#sidekick').wait(500).removeClass('open');
|
853 |
+
/* 186 */ }
|
854 |
+
/* 187 */ },
|
855 |
+
/* 188 */
|
856 |
+
/* 189 */ toggle_hotspots: function(){
|
857 |
+
/* 190 */ console.log('toggle_hotspots');
|
858 |
+
/* 191 */ if ($('#toggle_hotspots').hasClass('on')) {
|
859 |
+
/* 192 */ console.log('Turning off hotspots');
|
860 |
+
/* 193 */ $('#toggle_hotspots').removeClass('on');
|
861 |
+
/* 194 */ $.cookie('sidekick_hotspots', 0, { expires: 365, path: '/' });
|
862 |
+
/* 195 */ $('.sk_hotspot').parent().remove();
|
863 |
+
/* 196 */ } else {
|
864 |
+
/* 197 */ console.log('Turning on hotspots');
|
865 |
+
/* 198 */ $('#toggle_hotspots').addClass('on');
|
866 |
+
/* 199 */ $.cookie('sidekick_hotspots', 1, { expires: 365, path: '/' });
|
867 |
+
/* 200 */ this.show_hotspots();
|
868 |
+
|
869 |
+
/* appView.js */
|
870 |
+
|
871 |
+
/* 201 */ }
|
872 |
+
/* 202 */ },
|
873 |
+
/* 203 */
|
874 |
+
/* 204 */ show_hotspots: function(){
|
875 |
+
/* 205 */ var hotspots = this.model.get('library_filtered_hotspots');
|
876 |
+
/* 206 */ var url = window.location.toString();
|
877 |
+
/* 207 */ var show_hotspots = $.cookie('sidekick_hotspots');
|
878 |
+
/* 208 */ // console.log('show_hotspots %o', show_hotspots);
|
879 |
+
/* 209 */ // console.log('show_hotspots === true %o', show_hotspots === true);
|
880 |
+
/* 210 */
|
881 |
+
/* 211 */ var count = 0;
|
882 |
+
/* 212 */ for(var hotspot in hotspots){
|
883 |
+
/* 213 */ var hotspot_data = hotspots[hotspot];
|
884 |
+
/* 214 */
|
885 |
+
/* 215 */ if (url.indexOf(hotspot_data.url) > -1) {
|
886 |
+
/* 216 */ var selectors = hotspot_data.selector;
|
887 |
+
/* 217 */
|
888 |
+
/* 218 */ if ($(selectors).length == 1 && $(selectors).is(':visible')) {
|
889 |
+
/* 219 */ // console.log('hotspot selectors-1 %o', selectors);
|
890 |
+
/* 220 */ count++;
|
891 |
+
/* 221 */ } else if ($(selectors).length > 1){
|
892 |
+
/* 222 */ _.each($(selectors),function(item,key){
|
893 |
+
/* 223 */ if ($(item).length && $(item).is(':visible')) {
|
894 |
+
/* 224 */ // console.log('hotspot selectors-2 %o', item);
|
895 |
+
/* 225 */ count++;
|
896 |
+
/* 226 */ }
|
897 |
+
/* 227 */ });
|
898 |
+
/* 228 */ }
|
899 |
+
/* 229 */ }
|
900 |
+
/* 230 */ }
|
901 |
+
/* 231 */
|
902 |
+
/* 232 */ if (count > 0) {
|
903 |
+
/* 233 */ $('#sidekick #toggle_hotspots').html(count).show();
|
904 |
+
/* 234 */ } else {
|
905 |
+
/* 235 */ $('#sidekick #toggle_hotspots').html(count).hide();
|
906 |
+
/* 236 */ }
|
907 |
+
/* 237 */
|
908 |
+
/* 238 */ if (show_hotspots === '1' || typeof show_hotspots === 'undefined') { // User unspecified default is on
|
909 |
+
/* 239 */ var selector_x = 'left';
|
910 |
+
/* 240 */ var selector_y = 'top';
|
911 |
+
/* 241 */ var hotspot_x = 'right';
|
912 |
+
/* 242 */ var hotspot_y = 'top';
|
913 |
+
/* 243 */ var hotspot_y_padding = '0';
|
914 |
+
/* 244 */ var hotspot_x_padding = '0';
|
915 |
+
/* 245 */
|
916 |
+
/* 246 */
|
917 |
+
/* 247 */ for(var hotspot in hotspots){
|
918 |
+
/* 248 */ var hotspot_data = hotspots[hotspot];
|
919 |
+
/* 249 */
|
920 |
+
/* 250 */ if (url.indexOf(hotspot_data.url) > -1) {
|
921 |
+
|
922 |
+
/* appView.js */
|
923 |
+
|
924 |
+
/* 251 */ var selectors = hotspot_data.selector;
|
925 |
+
/* 252 */ if ($(selectors).length == 1) {
|
926 |
+
/* 253 */ console.log('%cAttaching Single Hotspot %o -> (%o)','color: #64c541','sk_hotspot_' + hotspot, selectors);
|
927 |
+
/* 254 */ $('body').append('<a href="javascript: sidekick.play(' + hotspot_data.id + ')"><div class="sk_hotspot sk_hotspot_' + hotspot + '" data-target="' + selectors + '"></div></a>');
|
928 |
+
/* 255 */
|
929 |
+
/* 256 */ console.log('selector_x + " " + selector_y %o', selector_x + " " + selector_y);
|
930 |
+
/* 257 */ console.log('hotspot_x + hotspot_x_padding + " " + hotspot_y + hotspot_y_padding %o', hotspot_x + hotspot_x_padding + " " + hotspot_y + hotspot_y_padding);
|
931 |
+
/* 258 */
|
932 |
+
/* 259 */
|
933 |
+
/* 260 */ $('.sk_hotspot_' + hotspot).position({
|
934 |
+
/* 261 */ at: selector_x + " " + selector_y,
|
935 |
+
/* 262 */ my: hotspot_x + hotspot_x_padding + " " + hotspot_y + hotspot_y_padding,
|
936 |
+
/* 263 */ of: $(selectors)
|
937 |
+
/* 264 */ });
|
938 |
+
/* 265 */ $('.sk_hotspot').wait(200*count).addClass('visible');
|
939 |
+
/* 266 */ } else if ($(selectors).length > 1){
|
940 |
+
/* 267 */ _.each($(selectors),function(item,key){
|
941 |
+
/* 268 */ $('body').append('<a href="javascript: sidekick.play(' + hotspot_data.id + ')"><div class="sk_hotspot sk_hotspot_' + hotspot + '_' + key + '" data-target="' + item + '"></div></a>');
|
942 |
+
/* 269 */ console.log('%cAttaching Hotspot #o %o (%o)','color: #64c541',key,'sk_hotspot_' + hotspot + '_' + key, $('.sk_hotspot_' + hotspot + '_' + key));
|
943 |
+
/* 270 */
|
944 |
+
/* 271 */ $('.sk_hotspot_' + hotspot + '_' + key).position({
|
945 |
+
/* 272 */ at: selector_x + " " + selector_y,
|
946 |
+
/* 273 */ my: hotspot_x + hotspot_x_padding + " " + hotspot_y + hotspot_y_padding,
|
947 |
+
/* 274 */ // my: hotspot_x + " " + hotspot_y,
|
948 |
+
/* 275 */ of: item
|
949 |
+
/* 276 */ });
|
950 |
+
/* 277 */ $('.sk_hotspot').wait(200*count).addClass('visible');
|
951 |
+
/* 278 */ });
|
952 |
+
/* 279 */ } else {
|
953 |
+
/* 280 */ msg = "Couldn't attach a hotspot to selector (" + selectors + ")";
|
954 |
+
/* 281 */ Sidekick.Events.trigger('track_error',{model: this, msg: msg});
|
955 |
+
/* 282 */ console.error(msg);
|
956 |
+
/* 283 */ }
|
957 |
+
/* 284 */ }
|
958 |
+
/* 285 */ }
|
959 |
+
/* 286 */
|
960 |
+
/* 287 */ };
|
961 |
+
/* 288 */
|
962 |
+
/* 289 */
|
963 |
+
/* 290 */ }
|
964 |
+
/* 291 */ });
|
965 |
+
/* 292 */
|
966 |
+
/* 293 */ }(jQuery));
|
967 |
+
/* 294 */
|
968 |
+
/* 295 */
|
969 |
+
/* 296 */
|
970 |
+
/* 297 */
|
971 |
|
972 |
;
|
973 |
/* bucketContainerView.js */
|
974 |
|
975 |
/* 1 */ (function($) {
|
976 |
/* 2 */ SidekickWP.Views.BucketContainer = Backbone.View.extend({
|
977 |
+
/* 3 */
|
978 |
+
/* 4 */ initialize: function(models,options){
|
979 |
+
/* 5 */ SidekickWP.Events.on('rendered', this.setup_events, this);
|
980 |
+
/* 6 */ return this;
|
981 |
+
/* 7 */ },
|
982 |
+
/* 8 */
|
983 |
+
/* 9 */ render: function(){
|
984 |
+
/* 10 */ console.group('%crender: render: bucketContainerView %o', 'color:#8fa2ff', this);
|
985 |
/* 11 */
|
986 |
+
/* 12 */ SidekickWP.Events.trigger('track_explore',{what:'Bucket - ' + this.model.get('title') });
|
987 |
+
/* 13 */
|
988 |
+
/* 14 */ this.bucket = new SidekickWP.Models.Bucket({
|
989 |
+
/* 15 */ title: this.model.get('title'),
|
990 |
+
/* 16 */ full_library: this.model.get('full_library'),
|
991 |
+
/* 17 */ library_filtered_walkthroughs: this.model.get('library_filtered_walkthroughs'),
|
992 |
+
/* 18 */ library_filtered_buckets: this.model.get('library_filtered_buckets'),
|
993 |
+
/* 19 */ library_filtered_sub_buckets: this.model.get('library_filtered_sub_buckets'),
|
994 |
+
/* 20 */ library_filtered_walkthroughs_by_bucket: this.model.get('library_filtered_walkthroughs_by_bucket'),
|
995 |
+
/* 21 */ bucket_counts: this.model.get('bucket_counts')
|
996 |
+
/* 22 */ });
|
997 |
+
/* 23 */ this.$el.append(this.bucket.view.render().el);
|
998 |
+
/* 24 */ console.groupEnd();
|
999 |
+
/* 25 */ return this;
|
1000 |
+
/* 26 */ },
|
1001 |
+
/* 27 */
|
1002 |
+
/* 28 */ clicked_bucket: function(e){
|
1003 |
+
/* 29 */ console.log('clicked_bucket',e);
|
1004 |
/* 30 */
|
1005 |
+
/* 31 */ var navigation_history = this.model.get('navigation_history');
|
1006 |
+
/* 32 */
|
1007 |
+
/* 33 */ if ($(e).hasClass('goprev')) {
|
1008 |
+
/* 34 */ $('.show').removeClass('show');
|
1009 |
+
/* 35 */ navigation_history.pop();
|
1010 |
+
/* 36 */ var goto_bucket = navigation_history[navigation_history.length-1];
|
1011 |
+
/* 37 */ if (goto_bucket == 'buckets') {
|
1012 |
+
/* 38 */ $('[data-bucket_id="' + goto_bucket + '"]').removeClass('hide').addClass('show');
|
1013 |
+
/* 39 */ } else {
|
1014 |
+
/* 40 */ $('ul.sub_bucket[data-bucket_id="' + goto_bucket + '"]').removeClass('hide').addClass('show');
|
1015 |
+
/* 41 */ }
|
1016 |
+
/* 42 */
|
1017 |
+
/* 43 */ } else if ($(e).data('open_bucket')){
|
1018 |
+
/* 44 */ console.log('Showing Bucket %o',$(e).data('open_bucket'));
|
1019 |
+
/* 45 */ $(e).parent().removeClass('show').addClass('hide');
|
1020 |
+
/* 46 */ $('ul.sub_bucket[data-bucket_id="' + $(e).data('open_bucket') + '"]').addClass('show');
|
1021 |
+
/* 47 */ navigation_history.push($(e).data('open_bucket'));
|
1022 |
+
/* 48 */ } else {
|
1023 |
+
/* 49 */ console.log('Showing Walkthroughs %o',$(e).data('open_walkthroughs'));
|
1024 |
+
/* 50 */ $(e).parent().removeClass('show').addClass('hide');
|
1025 |
|
1026 |
/* bucketContainerView.js */
|
1027 |
|
1028 |
+
/* 51 */ $('ul.walkthrough[data-bucket_id="' + $(e).data('open_walkthroughs') + '"]').addClass('show');
|
1029 |
+
/* 52 */ navigation_history.push($(e).data('open_bucket'));
|
1030 |
+
/* 53 */ }
|
1031 |
+
/* 54 */ console.log('navigation_history %o', navigation_history);
|
1032 |
+
/* 55 */ this.model.set('navigation_history',navigation_history);
|
1033 |
+
/* 56 */ },
|
1034 |
+
/* 57 */
|
1035 |
+
/* 58 */ setup_events: function(){
|
1036 |
+
/* 59 */ $('.heading').unbind('click').click({context:this},function(e){
|
1037 |
+
/* 60 */ console.log('click');
|
1038 |
+
/* 61 */ e.data.context.clicked_bucket(this);
|
1039 |
+
/* 62 */ });
|
1040 |
/* 63 */
|
1041 |
+
/* 64 */ $('a.sidekick_play_walkthrough').unbind('click').click({context:this},function(e){
|
1042 |
+
/* 65 */ SidekickWP.Events.trigger('close_sidekick_window');
|
1043 |
+
/* 66 */ });
|
1044 |
+
/* 67 */ // SidekickWP.Helpers.preventScrolling();
|
1045 |
+
/* 68 */ }
|
1046 |
+
/* 69 */ });
|
1047 |
+
/* 70 */
|
1048 |
+
/* 71 */ }(jQuery));
|
1049 |
+
/* 72 */
|
1050 |
/* 73 */
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1051 |
|
1052 |
;
|
1053 |
/* bucketView.js */
|
1065 |
/* 11 */ SidekickWP.Events.trigger('track_explore',{what:'Bucket' });
|
1066 |
/* 12 */
|
1067 |
/* 13 */ var variables = {
|
1068 |
+
/* 14 */ full_library: this.model.get('full_library'),
|
1069 |
+
/* 15 */ library_filtered_buckets: this.model.get('library_filtered_buckets'),
|
1070 |
+
/* 16 */ library_filtered_walkthroughs: this.model.get('library_filtered_walkthroughs'),
|
1071 |
+
/* 17 */ library_filtered_sub_buckets: this.model.get('library_filtered_sub_buckets'),
|
1072 |
+
/* 18 */ library_filtered_walkthroughs_by_bucket: this.model.get('library_filtered_walkthroughs_by_bucket'),
|
1073 |
+
/* 19 */ bucket_counts: this.model.get('bucket_counts'),
|
1074 |
+
/* 20 */ sk_plugin_url: sk_plugin_url
|
1075 |
+
/* 21 */ };
|
1076 |
+
/* 22 */
|
1077 |
+
/* 23 */ console.log('variables %o', variables);
|
1078 |
+
/* 24 */
|
1079 |
+
/* 25 */ var template = _.template( SidekickWP.Templates.Bucket, variables );
|
1080 |
+
/* 26 */ this.$el.append(template);
|
1081 |
+
/* 27 */ console.groupEnd();
|
1082 |
+
/* 28 */ return this;
|
1083 |
+
/* 29 */ }
|
1084 |
+
/* 30 */ });
|
1085 |
+
/* 31 */
|
1086 |
+
/* 32 */ }(jQuery));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1087 |
|
1088 |
;
|
1089 |
/* messageView.js */
|
1108 |
/* 18 */ var template = _.template( SidekickWP.Templates.Message, variables );
|
1109 |
/* 19 */
|
1110 |
/* 20 */ this.$el.append( template );
|
1111 |
+
/* 21 */ // SidekickWP.Helpers.preventScrolling();
|
1112 |
+
/* 22 */ // SidekickWP.Events.trigger('show_next_pane');
|
1113 |
/* 23 */
|
1114 |
+
/* 24 */ // $('div#sidekick .prev_window').removeClass('prev_window');
|
1115 |
+
/* 25 */ // $('div#sidekick #main_menu').addClass('prev_window');
|
1116 |
+
/* 26 */ // $('div#sidekick ul.main>li').not('#main_menu,#review').remove();
|
1117 |
/* 27 */
|
1118 |
/* 28 */ return this;
|
1119 |
/* 29 */ }
|
1148 |
/* 21 */ console.log('template %o', template);
|
1149 |
/* 22 */
|
1150 |
/* 23 */ this.$el.append( template );
|
1151 |
+
/* 24 */ // SidekickWP.Helpers.preventScrolling();
|
1152 |
+
/* 25 */ // SidekickWP.Events.trigger('show_next_pane');
|
1153 |
/* 26 */
|
1154 |
+
/* 27 */ // $('div#sidekick .prev_window').removeClass('prev_window');
|
1155 |
+
/* 28 */ // $('div#sidekick #main_menu').addClass('prev_window');
|
1156 |
+
/* 29 */ // $('div#sidekick ul.main>li').not('#main_menu,#review').remove();
|
1157 |
/* 30 */
|
1158 |
/* 31 */ return this;
|
1159 |
/* 32 */ },
|
1166 |
/* 39 */ setup_events: function(){
|
1167 |
/* 40 */ var group_id = this.model.get('id');
|
1168 |
/* 41 */
|
1169 |
+
/* 42 */ $('div#sidekick .review h2 button.goback, #sidekick .review input[type="button"]').unbind('click').click({context:this},function(e){
|
1170 |
/* 43 */ console.log('click goback/button');
|
1171 |
/* 44 */ SidekickWP.Events.trigger('show_main_pane');
|
1172 |
/* 45 */ });
|
1173 |
/* 46 */
|
1174 |
+
/* 47 */ $('div#sidekick .review .rate span').unbind('hover').hover(function(){
|
1175 |
/* 48 */ $(this).addClass('hover')
|
1176 |
/* 49 */ .prevAll().addClass('hover');
|
1177 |
/* 50 */ },function(){
|
1178 |
|
1179 |
/* reviewView.js */
|
1180 |
|
1181 |
+
/* 51 */ $('div#sidekick .review .rate span').removeClass('hover');
|
1182 |
/* 52 */ });
|
1183 |
/* 53 */
|
1184 |
+
/* 54 */ $('div#sidekick .review .rate span').unbind('click').click = this.rate;
|
1185 |
/* 55 */
|
1186 |
+
/* 56 */ $('div#sidekick .review textarea').unbind('click').click(function(){
|
1187 |
/* 57 */ if(!$(this).hasClass('clicked')){
|
1188 |
/* 58 */ $(this).addClass('clicked')
|
1189 |
/* 59 */ .val('');
|
1194 |
/* 64 */ submit: function(){
|
1195 |
/* 65 */ var data = {
|
1196 |
/* 66 */ walkthrough_title: this.model.get('walkthrough_title'),
|
1197 |
+
/* 67 */ value: $('div#sidekick textarea[name="comment"]').val(),
|
1198 |
/* 68 */ license: sk_license_key
|
1199 |
/* 69 */ };
|
1200 |
/* 70 */
|
1205 |
/* 75 */ dataType: 'json'
|
1206 |
/* 76 */ }).done(function(data,e){
|
1207 |
/* 77 */ console.log('Saved Comment');
|
1208 |
+
/* 78 */ $('div#sidekick textarea').html('Thank You!');
|
1209 |
+
/* 79 */ $('div#sidekick .review input[type="submit"]').val('Sent!');
|
1210 |
/* 80 */ setTimeout(SidekickWP.Events.trigger('show_main_pane'),3000);
|
1211 |
/* 81 */ }).error(function(e){
|
1212 |
/* 82 */ console.error('Comment Save error (%o)',e);
|
1223 |
/* 93 */ $(e.currentTarget).addClass('saved')
|
1224 |
/* 94 */ .prevAll().addClass('saved');
|
1225 |
/* 95 */
|
1226 |
+
/* 96 */ $('div#sidekick .rate span').unbind('mouseenter mouseleave click').css({cursor: 'default'});
|
1227 |
/* 97 */
|
1228 |
/* 98 */ $.ajax({
|
1229 |
/* 99 */ url: 'http://www.wpuniversity.com/wp-admin/admin-ajax.php?action=wpu_add_rating',
|
1235 |
/* 102 */ dataType: 'json'
|
1236 |
/* 103 */ }).done(function(data,e){
|
1237 |
/* 104 */ console.log('Saved Rating');
|
1238 |
+
/* 105 */ $('div#sidekick .hover').addClass('saved');
|
1239 |
/* 106 */
|
1240 |
/* 107 */ }).error(function(e){
|
1241 |
/* 108 */ console.error('Rating Save error (%o)',e);
|
1250 |
;
|
1251 |
/* templates.js */
|
1252 |
|
1253 |
+
/* 1 */ _.templateSettings.interpolate = /\{\{(.*?)\}\}/;
|
1254 |
+
/* 2 */
|
1255 |
+
/* 3 */ SidekickWP.Templates.App = [
|
1256 |
+
/* 4 */ "<div id='sidekick' class='sidekick_player'>",
|
1257 |
+
/* 5 */ "<div id='sk_taskbar'>",
|
1258 |
+
/* 6 */ "<div id='logo'></div>",
|
1259 |
+
/* 7 */ "<button class='sk_toggle'></button>",
|
1260 |
+
/* 8 */ "<div class='sk_controls'>",
|
1261 |
+
/* 9 */ "<button class='sidekick_restart'></button>",
|
1262 |
+
/* 10 */ "<button class='sidekick_play_pause'></button>",
|
1263 |
+
/* 11 */ "<button class='sidekick_stop'></button>",
|
1264 |
+
/* 12 */ "</div>",
|
1265 |
+
/* 13 */ "<div class='sk_toggles'>",
|
1266 |
+
/* 14 */ // "<% console.log('hotspots %o',hotspots);%>",
|
1267 |
+
/* 15 */ "<button id='toggle_hotspots' <% if (hotspots === '1' || typeof hotspots === 'undefined'){%>class='on'<% } %> alt='Number of hotspots'>0</button>",
|
1268 |
+
/* 16 */ "<button id='toggle_feedback'></button>",
|
1269 |
+
/* 17 */ "<button id='toggle_preferences'></button>",
|
1270 |
+
/* 18 */ "<button id='toggle_drawer'><i></i></button>",
|
1271 |
+
/* 19 */ "</div>",
|
1272 |
+
/* 20 */ "<div class='sk_info'>",
|
1273 |
+
/* 21 */ "<div class='sk_time'>0:00/0:00</div>",
|
1274 |
+
/* 22 */ "<div class='sk_title'><label>Now Playing</label><span class='sk_walkthrough_title'></span></div>",
|
1275 |
+
/* 23 */ "</div>",
|
1276 |
+
/* 24 */ "</div>",
|
1277 |
+
/* 25 */ "<div id='sk_drawer'>",
|
1278 |
+
/* 26 */ "<h2>Walkthroughs<button id='close_sidekick'></button></h2>",
|
1279 |
+
/* 27 */ "<ul class='sk_bucketContainer'>",
|
1280 |
+
/* 28 */ "<% print(BucketContainer) %>",
|
1281 |
+
/* 29 */ "</ul>",
|
1282 |
+
/* 30 */ "</div>",
|
1283 |
+
/* 31 */ "</div>"
|
1284 |
+
/* 32 */ ].join("");
|
1285 |
+
/* 33 */
|
1286 |
+
/* 34 */ SidekickWP.Templates.Bucket = [
|
1287 |
+
/* 35 */ "<ul class='buckets' data-bucket_id='buckets'>",
|
1288 |
+
/* 36 */ "<% _.each(full_library.buckets, function(bucket_data, bucket_title){ %>",
|
1289 |
+
/* 37 */ // "<% console.log('primary bucket %o(%o) %o',bucket_title,bucket_data.id,bucket_data);%>",
|
1290 |
+
/* 38 */ "<li class='heading bucket_heading' <% if (bucket_data.sub_buckets){ %> data-open_bucket='<% print(bucket_data.id) %>' <% } else { %> data-open_walkthroughs='<% print(bucket_data.id) %>' <% } %> ><span><% print(bucket_title) %></span><i></i></li>",
|
1291 |
+
/* 39 */ "<% }); %>",
|
1292 |
+
/* 40 */ "</ul>",
|
1293 |
+
/* 41 */
|
1294 |
+
/* 42 */ "<% var already_done = []; %>",
|
1295 |
+
/* 43 */
|
1296 |
+
/* 44 */ "<ul class='sub_buckets'>",
|
1297 |
+
/* 45 */ "<% _.each(full_library.buckets, function(bucket_data,bucket_title){ %>",
|
1298 |
+
/* 46 */ // "<% console.log('level-1(%s) %o %o',bucket_data.id,bucket_title,bucket_data);%>",
|
1299 |
+
/* 47 */ "<ul class='sub_bucket' data-bucket_id='<% print(bucket_data.id) %>'>",
|
1300 |
+
/* 48 */ "<% already_done[bucket_data.id] = true; %>",
|
1301 |
+
/* 49 */ "<li class='heading goprev'><span><% print(bucket_title) %></span><i></i></li>",
|
1302 |
+
/* 50 */ "<% _.each(bucket_data.sub_buckets, function(sub_bucket_data){ %>",
|
1303 |
|
1304 |
/* templates.js */
|
1305 |
|
1306 |
+
/* 51 */ // "<% console.log('sub-bucket(%s) %o %o',sub_bucket_data.id,full_library.all_buckets_by_id[sub_bucket_data.id],sub_bucket_data);%>",
|
1307 |
+
/* 52 */ "<li class='heading sub_bucket_heading level1a' <% if (sub_bucket_data.sub_buckets){ %> data-open_bucket='<% print(sub_bucket_data.id) %>' <% } else { %> data-open_walkthroughs='<% print(sub_bucket_data.id) %>' <% } %>><span><% print(full_library.all_buckets_by_id[sub_bucket_data.id]) %></span><i></i></li>",
|
1308 |
+
/* 53 */ "<% }); %>",
|
1309 |
+
/* 54 */ "</ul>",
|
1310 |
+
/* 55 */ "<% }); %>",
|
1311 |
+
/* 56 */
|
1312 |
+
/* 57 */ "<% _.each(full_library.buckets, function(bucket_data,bucket_title){ %>",
|
1313 |
+
/* 58 */ "<% _.each(bucket_data.sub_buckets, function(sub_bucket_data){ %>",
|
1314 |
+
/* 59 */ "<% if (sub_bucket_data.sub_buckets && !already_done[sub_bucket_data.id]) { %>",
|
1315 |
+
/* 60 */ // "<% console.log('level-2(%s) %o %o',sub_bucket_data.id,full_library.all_buckets_by_id[sub_bucket_data.id],sub_bucket_data);%>",
|
1316 |
+
/* 61 */ "<% already_done[sub_bucket_data.id] = true; %>",
|
1317 |
+
/* 62 */ "<ul class='sub_bucket sub_sub_bucket' data-bucket_id='<% print(sub_bucket_data.id) %>'>",
|
1318 |
+
/* 63 */ "<li class='heading goprev'><span><% print(full_library.all_buckets_by_id[sub_bucket_data.id]) %></span><i></i></li>",
|
1319 |
+
/* 64 */ "<% _.each(sub_bucket_data.sub_buckets, function(sub_sub_bucket_data){ %>",
|
1320 |
+
/* 65 */ // "<% console.log('sub-bucket-2(%s) %o %o',sub_sub_bucket_data.id,full_library.all_buckets_by_id[sub_sub_bucket_data.id],sub_sub_bucket_data);%>",
|
1321 |
+
/* 66 */ "<li class='heading sub_bucket_heading level1b' <% if (sub_sub_bucket_data.sub_buckets){ %> data-open_bucket='<% print(sub_sub_bucket_data.id) %>' <% } else { %> data-open_walkthroughs='<% print(sub_sub_bucket_data.id) %>' <% } %> ><span><% print(full_library.all_buckets_by_id[sub_sub_bucket_data.id]) %></span><i></i></li>",
|
1322 |
+
/* 67 */ "<% }); %>",
|
1323 |
+
/* 68 */ "</ul>",
|
1324 |
+
/* 69 */ "<% } %>",
|
1325 |
+
/* 70 */ "<% }); %>",
|
1326 |
+
/* 71 */ "<% }); %>",
|
1327 |
+
/* 72 */
|
1328 |
+
/* 73 */ "<% _.each(full_library.buckets, function(bucket_data,bucket_title){ %>",
|
1329 |
+
/* 74 */ "<% _.each(bucket_data.sub_buckets, function(sub_bucket_data){ %>",
|
1330 |
+
/* 75 */ "<% _.each(sub_bucket_data.sub_buckets, function(sub_sub_bucket_data){ %>",
|
1331 |
+
/* 76 */ "<% if (sub_sub_bucket_data.sub_buckets && !already_done[sub_sub_bucket_data.id]) { %>",
|
1332 |
+
/* 77 */ // "<% console.log('level-3(%s) %o %o',sub_sub_bucket_data.id,full_library.all_buckets_by_id[sub_sub_bucket_data.id],sub_sub_bucket_data);%>",
|
1333 |
+
/* 78 */ "<ul class='sub_bucket sub_sub_bucket' data-bucket_id='<% print(sub_sub_bucket_data.id) %>'>",
|
1334 |
+
/* 79 */ "<li class='heading goprev'><span><% print(full_library.all_buckets_by_id[sub_sub_bucket_data.id]) %></span><i></i></li>",
|
1335 |
+
/* 80 */ "<% _.each(sub_sub_bucket_data.sub_buckets, function(sub_sub_sub_bucket_data){ %>",
|
1336 |
+
/* 81 */ // "<% console.log('sub-bucket-3(%s) %o %o',sub_sub_sub_bucket_data.id,full_library.all_buckets_by_id[sub_sub_sub_bucket_data.id],sub_sub_sub_bucket_data);%>",
|
1337 |
+
/* 82 */ "<li class='heading sub_bucket_heading level1b' <% if (sub_sub_sub_bucket_data.sub_buckets){ %> data-open_bucket='<% print(sub_sub_sub_bucket_data.id) %>' <% } else { %> data-open_walkthroughs='<% print(sub_sub_sub_bucket_data.id) %>' <% } %> ><span><% print(full_library.all_buckets_by_id[sub_sub_sub_bucket_data.id]) %></span><i></i></li>",
|
1338 |
+
/* 83 */ "<% }); %>",
|
1339 |
+
/* 84 */ "</ul>",
|
1340 |
+
/* 85 */ "<% } %>",
|
1341 |
+
/* 86 */ "<% }); %>",
|
1342 |
+
/* 87 */ "<% }); %>",
|
1343 |
+
/* 88 */ "<% }); %>",
|
1344 |
+
/* 89 */ "</ul>",
|
1345 |
+
/* 90 */
|
1346 |
+
/* 91 */ "<ul class='walkthroughs'>",
|
1347 |
+
/* 92 */ "<% _.each(library_filtered_walkthroughs_by_bucket, function(bucket_data, bucket_id){ %>",
|
1348 |
+
/* 93 */ // "<% console.log('bucket_data %o',bucket_data);%>",
|
1349 |
+
/* 94 */ // "<% console.log('bucket_id %o',bucket_id);%>",
|
1350 |
+
/* 95 */ "<ul class='walkthrough' data-bucket_id='<% print(bucket_id) %>'>",
|
1351 |
+
/* 96 */ "<li class='heading goprev'><span><% print(full_library.all_buckets_by_id[bucket_id]) %></span><i></i></li>",
|
1352 |
+
/* 97 */ "<ul class='walkthroughs_inner' data-bucket_id='<% print(bucket_id) %>'>",
|
1353 |
+
/* 98 */ "<% _.each(bucket_data.overview, function(walkthrough, walkthrough_key){ %>",
|
1354 |
+
/* 99 */ "<a href='javascript: sidekick.play(<% print(walkthrough.id) %>)'><li class='overview'><% print(walkthrough.title) %></li></a>",
|
1355 |
+
/* 100 */ "<% }); %>",
|
1356 |
+
|
1357 |
+
/* templates.js */
|
1358 |
+
|
1359 |
+
/* 101 */ "<% _.each(bucket_data.how, function(walkthrough, walkthrough_key){ %>",
|
1360 |
+
/* 102 */ "<a href='javascript: sidekick.play(<% print(walkthrough.id) %>)'><li class='how'><% print(walkthrough.title) %></li></a>",
|
1361 |
+
/* 103 */ "<% }); %>",
|
1362 |
+
/* 104 */ "</ul>",
|
1363 |
+
/* 105 */ "</ul>",
|
1364 |
+
/* 106 */ "<% }); %>",
|
1365 |
+
/* 107 */ "</ul>"
|
1366 |
+
/* 108 */ ].join("");
|
1367 |
+
/* 109 */
|
1368 |
+
/* 110 */ SidekickWP.Templates.Review = [
|
1369 |
+
/* 111 */ "<ul class='new_window review' data-title='<% print(title) %>'>",
|
1370 |
+
/* 112 */ "<li>",
|
1371 |
+
/* 113 */ "<div><div class='rate'><span data-val='1' class='rate1'></span><span data-val='2' class='rate2'></span><span data-val='3' class='rate3'></span><span data-val='4' class='rate4'></span><span data-val='5' class='rate5'></span></div>",
|
1372 |
+
/* 114 */ "<textarea name='comment'>Let us know if you found the Walkthrough helpful or if we can improve something.</textarea>",
|
1373 |
+
/* 115 */ "<br/><input type='button' value='Skip'></input><input type='submit' value='Submit'></input>",
|
1374 |
+
/* 116 */ "</li>",
|
1375 |
+
/* 117 */ "</ul>"
|
1376 |
+
/* 118 */ ].join("");
|
1377 |
+
/* 119 */
|
1378 |
+
/* 120 */
|
1379 |
+
/* 121 */ SidekickWP.Templates.Message = [
|
1380 |
+
/* 122 */ "<ul class='new_window message' data-title='<% print(title) %>'>",
|
1381 |
+
/* 123 */ "<li>",
|
1382 |
+
/* 124 */ "<div><% print(message) %></div>",
|
1383 |
+
/* 125 */ "</li>",
|
1384 |
+
/* 126 */ "</ul>"
|
1385 |
+
/* 127 */ ].join("");
|
1386 |
+
/* 128 */
|
1387 |
+
/* 129 */
|
1388 |
|
1389 |
;
|
1390 |
/* jquery.lightbox_me.js */
|
2781 |
/* 848 */
|
2782 |
/* 849 */ })(jQuery, window);
|
2783 |
|
2784 |
+
;
|
2785 |
+
/* jquery-center.js */
|
2786 |
+
|
2787 |
+
/* 1 */ (function(jQuery, window){
|
2788 |
+
/* 2 */
|
2789 |
+
/* 3 */ jQuery.fn.center = function () {
|
2790 |
+
/* 4 */ this.css("position","absolute");
|
2791 |
+
/* 5 */ this.css("top", Math.max(0, ((jQuery(window).height() - jQuery(this).outerHeight()) / 2) +
|
2792 |
+
/* 6 */ jQuery(window).scrollTop()) + "px");
|
2793 |
+
/* 7 */ this.css("left", Math.max(0, ((jQuery(window).width() - jQuery(this).outerWidth()) / 2) +
|
2794 |
+
/* 8 */ jQuery(window).scrollLeft()) + "px");
|
2795 |
+
/* 9 */ return this;
|
2796 |
+
/* 10 */ }
|
2797 |
+
/* 11 */
|
2798 |
+
/* 12 */ })(jQuery, window);
|
2799 |
+
|
2800 |
;
|
2801 |
/* sk_wp.js */
|
2802 |
|
2803 |
/* 1 */
|
2804 |
/* 2 */ jQuery(document).ready(function($) {
|
2805 |
+
/* 3 */ window.sidekickWP = new SidekickWP.Models.App({
|
2806 |
+
/* 4 */ show_toggle_feedback: true
|
2807 |
+
/* 5 */ });
|
2808 |
+
/* 6 */ console.log('window.sidekickWP %o', window.sidekickWP);
|
2809 |
+
/* 7 */ // jQuery('#logo').trigger('click');
|
2810 |
+
/* 8 */ });
|
2811 |
+
/* 9 */
|
readme.txt
CHANGED
@@ -1,37 +1,31 @@
|
|
1 |
=== Sidekick ===
|
2 |
-
Contributors:
|
3 |
Donate link: http://www.sidekick.pro
|
4 |
Tags: help, tutorial, training, learn, learning, sidekick, interactive help, teach, video, manual, videos, wphelp, support, instructions, question, questions, answers, answer, clippy, q&a, chat, wpuniversity, helper, walkthrough,
|
5 |
-
Requires at least: 3.
|
6 |
-
Tested up to: 3.
|
7 |
-
Stable tag: 1.
|
8 |
License: GNU Version 2 or Any Later Version
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
11 |
-
|
12 |
|
13 |
|
14 |
== Description ==
|
15 |
|
16 |
**SIDEKICK**
|
17 |
|
18 |
-
The
|
19 |
|
20 |
-
|
21 |
|
22 |
-
|
23 |
|
24 |
-
**
|
25 |
|
26 |
-
Sidekick
|
27 |
|
28 |
-
|
29 |
-
|
30 |
-
With the click of a button, you’ll get a step-by-step answer to your question instantly. So you can stop waiting for your developer call you back.
|
31 |
-
|
32 |
-
If you have any questions about the Sidekick plugin for WordPress, please contact [info@wpuniversity.com](mailto:info@wpuniveristy.com "Email WPUniversity").
|
33 |
-
|
34 |
-
Try the [demo](http://demo.wpuniversity.com "demo").
|
35 |
|
36 |
== Installation ==
|
37 |
|
@@ -49,7 +43,7 @@ Upgrade Notice
|
|
49 |
|
50 |
After installation, you will have access to at least 5 Core WordPress Walkthroughs and all third party walkthroughs that are applicable to your WordPress Dashboard.
|
51 |
|
52 |
-
If you choose to register an account by providing your name and email address, you will receive a free upgrade to access all 40+ of our WordPress Core Walkthroughs until
|
53 |
|
54 |
**Access to at least 5 Core Walkthroughs and all third party walkthroughs will remain free forever.**
|
55 |
|
@@ -59,7 +53,7 @@ Need more information? Want a clear understanding of the difference between a Co
|
|
59 |
|
60 |
= What is Sidekick for WordPress? =
|
61 |
|
62 |
-
The Sidekick platform provides real-time, guided support and learning from within any html or PHP based web application or CMS. Support is provided through modules called “Walkthroughs
|
63 |
The Sidekick plugin for WordPress connects the Sidekick platform with any WordPress Dashboard allowing real-time guided walkthroughs of core and 3rd party WordPress features and functions.
|
64 |
|
65 |
If you’d like to learn more about Sidekick, go to [Sidekick.pro](http://Sidekick.pro/ "Sidekick")
|
@@ -76,24 +70,24 @@ A Sidekick for WordPress Walkthrough is a real-time, guided tutorial that walks
|
|
76 |
|
77 |
= What are Core and 3rd Party WordPress Walkthroughs? =
|
78 |
|
79 |
-
When we say “Core Walkthroughs” for WordPress, we are referring to any support and learning that has to do with features and functions provided by a fresh, default install of WordPress, downloaded from WordPress.org. Basically, if a walkthrough is
|
80 |
|
81 |
Plugin and theme specific Walkthroughs are called Third Party Walkthroughs and are created and maintained by the plugin or theme creator, unless otherwise mentioned.
|
82 |
|
83 |
= How do I create Walkthroughs for my Plugin(s) or Theme(s)? =
|
84 |
|
85 |
-
At the moment Sidekick Composer, the tool we use to create Walkthroughs, is for in-house use only but we plan for that to change by the end of
|
86 |
|
87 |
= What does Sidekick for WordPress cost? =
|
88 |
|
89 |
The Sidekick plugin for WordPress is and always will be free to download and use. Installing the plugin gives you instant and unlimited access to at least 5 Core WordPress Walkthroughs as well as Walkthroughs created for any plugins or themes that are installed and active on your WordPress site.
|
90 |
If you would like access to the full library of Core WordPress Walkthroughs (40+) the cost is $20 per month per user. Price discounts start at just two licenses and go up from there.
|
91 |
|
92 |
-
|
93 |
|
94 |
= Ok, the plugin is installed and activated. How do I use it? =
|
95 |
|
96 |
-
Click on the little icon in the bottom right of your screen to open the Walkthrough menu. (Think Clippy
|
97 |
You will be presented with the Walkthrough menu. Select your category then your walkthrough and away you go.
|
98 |
|
99 |
= Can I suggest a Walkthrough that I’d like to see or give you feedback on the Sidekick WordPress Plugin? =
|
@@ -113,6 +107,14 @@ Absolutely. In fact, we rely on users like you to tell us about things that nee
|
|
113 |
|
114 |
== Changelog ==
|
115 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
116 |
= 1.00 =
|
117 |
* Added support for buckets.
|
118 |
|
@@ -129,4 +131,4 @@ Absolutely. In fact, we rely on users like you to tell us about things that nee
|
|
129 |
* Fixed Activation Bug
|
130 |
|
131 |
= 0.70 =
|
132 |
-
* Initial Beta Release
|
1 |
=== Sidekick ===
|
2 |
+
Contributors: raptor235,Ben Fox
|
3 |
Donate link: http://www.sidekick.pro
|
4 |
Tags: help, tutorial, training, learn, learning, sidekick, interactive help, teach, video, manual, videos, wphelp, support, instructions, question, questions, answers, answer, clippy, q&a, chat, wpuniversity, helper, walkthrough,
|
5 |
+
Requires at least: 3.7.1
|
6 |
+
Tested up to: 3.8
|
7 |
+
Stable tag: 1.1
|
8 |
License: GNU Version 2 or Any Later Version
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
11 |
+
Interactive help, support & training right inside your Dashboard.
|
12 |
|
13 |
|
14 |
== Description ==
|
15 |
|
16 |
**SIDEKICK**
|
17 |
|
18 |
+
The Sidekick Plugin for WordPress brings over 40 Walkthroughs for the WordPress Core right to your Dashboard. Each Walkthrough will guide you step-by-step through a task like creating a post or installing a new plugin!
|
19 |
|
20 |
+
Sidekick will also detect the plugins and themes you have active and push any related walkthroughs in the library, right to your Dashboard.
|
21 |
|
22 |
+
**Think [Clippy](http://en.wikipedia.org/wiki/Office_Assistant "Clippy"), but useful!**
|
23 |
|
24 |
+
**HOW DOES IT WORK?**
|
25 |
|
26 |
+
The [Sidekick](http://Sidekick.pro/ "Sidekick") platform provides **real-time, voice-guided support and learning** from within any html or PHP based web application or CMS. Support is provided through modules called "Walkthroughs”" that guide users through everything from understanding simple aspects of an application to completing even complicated tasks.
|
27 |
|
28 |
+
Walkthroughs are served directly from the Sidekick library. With the user’s permission, an installed Sidekick module can automatically detect a user’s access level, installed 3rd party extensions and settings. That information is used to pull the appropriate walkthroughs from the Sidekick library. Sidekick also collects anonymous user data (with the user’s permission) to track, amongst other things, which walkthroughs are attempted and completed and how often.
|
|
|
|
|
|
|
|
|
|
|
|
|
29 |
|
30 |
== Installation ==
|
31 |
|
43 |
|
44 |
After installation, you will have access to at least 5 Core WordPress Walkthroughs and all third party walkthroughs that are applicable to your WordPress Dashboard.
|
45 |
|
46 |
+
If you choose to register an account by providing your name and email address, you will receive a free upgrade to access all 40+ of our WordPress Core Walkthroughs until the end of December 2013 (subject to change). Following the free period, there will be a monthly charge to access the entire library of Core Walkthroughs.
|
47 |
|
48 |
**Access to at least 5 Core Walkthroughs and all third party walkthroughs will remain free forever.**
|
49 |
|
53 |
|
54 |
= What is Sidekick for WordPress? =
|
55 |
|
56 |
+
The Sidekick platform provides real-time, guided support and learning from within any html or PHP based web application or CMS. Support is provided through modules called “Walkthroughs” that guide users through everything from understanding simple aspects of an application to completing complicated tasks.
|
57 |
The Sidekick plugin for WordPress connects the Sidekick platform with any WordPress Dashboard allowing real-time guided walkthroughs of core and 3rd party WordPress features and functions.
|
58 |
|
59 |
If you’d like to learn more about Sidekick, go to [Sidekick.pro](http://Sidekick.pro/ "Sidekick")
|
70 |
|
71 |
= What are Core and 3rd Party WordPress Walkthroughs? =
|
72 |
|
73 |
+
When we say “Core Walkthroughs” for WordPress, we are referring to any support and learning that has to do with features and functions provided by a fresh, default install of WordPress, downloaded from WordPress.org. Basically, if a walkthrough is helping you complete a standard WordPress function like creating a post, it’s a Core Walkthrough and WPUniversity created it.
|
74 |
|
75 |
Plugin and theme specific Walkthroughs are called Third Party Walkthroughs and are created and maintained by the plugin or theme creator, unless otherwise mentioned.
|
76 |
|
77 |
= How do I create Walkthroughs for my Plugin(s) or Theme(s)? =
|
78 |
|
79 |
+
At the moment Sidekick Composer, the tool we use to create Walkthroughs, is for in-house use only but we plan for that to change by the end of December 2013. If you’re interested in getting a head start, send us an email at info@wpuniversity.com and we’ll let you know how you can get started.
|
80 |
|
81 |
= What does Sidekick for WordPress cost? =
|
82 |
|
83 |
The Sidekick plugin for WordPress is and always will be free to download and use. Installing the plugin gives you instant and unlimited access to at least 5 Core WordPress Walkthroughs as well as Walkthroughs created for any plugins or themes that are installed and active on your WordPress site.
|
84 |
If you would like access to the full library of Core WordPress Walkthroughs (40+) the cost is $20 per month per user. Price discounts start at just two licenses and go up from there.
|
85 |
|
86 |
+
For now, access to all 40+ Core Walkthroughs is FREE of charge!
|
87 |
|
88 |
= Ok, the plugin is installed and activated. How do I use it? =
|
89 |
|
90 |
+
Click on the little icon in the bottom right of your screen to open the Walkthrough menu. (Think Clippy, only useful.)
|
91 |
You will be presented with the Walkthrough menu. Select your category then your walkthrough and away you go.
|
92 |
|
93 |
= Can I suggest a Walkthrough that I’d like to see or give you feedback on the Sidekick WordPress Plugin? =
|
107 |
|
108 |
== Changelog ==
|
109 |
|
110 |
+
= 1.1 =
|
111 |
+
* Brand New User Interface
|
112 |
+
* Hotspot Support Added
|
113 |
+
* 3.8 Support Added
|
114 |
+
* Deeper sub-category support
|
115 |
+
* Sidekick Platform Upgraded
|
116 |
+
* Known bug exists with HTTPs protocols
|
117 |
+
|
118 |
= 1.00 =
|
119 |
* Added support for buckets.
|
120 |
|
131 |
* Fixed Activation Bug
|
132 |
|
133 |
= 0.70 =
|
134 |
+
* Initial Beta Release
|
sidekick.php
CHANGED
@@ -3,18 +3,18 @@
|
|
3 |
/*
|
4 |
Plugin Name: Sidekick
|
5 |
Plugin URL: http://www.wpuniversity.com/plugin/
|
6 |
-
Description: Adds a real-time WordPress training right
|
7 |
-
Requires at least: 3.
|
8 |
-
Tested up to: 3.
|
9 |
-
Version: 1.
|
10 |
Author: WPUniversity.com
|
11 |
Author URI: http://www.wpuniversity.com
|
12 |
*/
|
13 |
|
14 |
define('SK_DOMAIN','http://www.wpuniversity.com');
|
15 |
-
define('SK_PLUGIN_VERSION',1.
|
16 |
-
define('SK_LIBRARY_VERSION',
|
17 |
-
define('SK_PLATFORM_VERSION',
|
18 |
|
19 |
// this is the URL our updater / license checker pings. This should be the URL of the site with EDD installed
|
20 |
define( 'SK_STORE_URL', 'http://www.wpuniversity.com' ); // you should use your own CONSTANT name, and be sure to replace it throughout this file
|
@@ -31,6 +31,8 @@ if ( !function_exists('mlog')) {
|
|
31 |
|
32 |
class Sidekick{
|
33 |
function enqueue_required(){
|
|
|
|
|
34 |
wp_enqueue_script('jquery' , null );
|
35 |
wp_enqueue_script('underscore' , null, array('underscore'));
|
36 |
wp_enqueue_script('backbone' , null, array('jquery','underscore'));
|
@@ -43,17 +45,20 @@ class Sidekick{
|
|
43 |
}
|
44 |
|
45 |
function enqueue(){
|
46 |
-
|
47 |
if ($license = get_option("sk_license_key")){
|
48 |
-
define('SK_LIBRARY_FILE', "http://library.sidekick.pro/library/
|
49 |
} else {
|
50 |
-
define('SK_LIBRARY_FILE', "http://library.sidekick.pro/library/
|
51 |
}
|
52 |
|
53 |
-
wp_enqueue_script('sidekick' ,'http://platform.sidekick.pro/
|
54 |
wp_enqueue_script('sk' ,plugins_url( '/js/sk.source.js' , __FILE__ ), array('sidekick') ,SK_PLUGIN_VERSION);
|
55 |
-
wp_enqueue_script("sk_library" , SK_LIBRARY_FILE , array("sk") ,
|
56 |
wp_enqueue_style('sk-style' ,plugins_url( '/css/sidekick_wordpress.css' , __FILE__ ), null ,SK_PLUGIN_VERSION);
|
|
|
|
|
|
|
57 |
}
|
58 |
|
59 |
function setup_menu(){
|
@@ -80,25 +85,26 @@ class Sidekick{
|
|
80 |
}
|
81 |
|
82 |
if (isset($_POST['option_page']) && $_POST['option_page'] == 'sk_license') {
|
83 |
-
|
|
|
84 |
update_option('sk_first_name',$_POST['first_name']);
|
|
|
|
|
85 |
update_option('sk_email',$_POST['email']);
|
86 |
-
if (isset($_POST['sk_track_data'])) {
|
87 |
-
update_option( 'sk_track_data', true );
|
88 |
-
} else {
|
89 |
-
delete_option('sk_track_data');
|
90 |
-
}
|
91 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
92 |
$first_name = $_POST['first_name'];
|
93 |
$email = $_POST['email'];
|
94 |
$track_data = get_option( 'sk_track_data' );
|
95 |
$_POST['item_name'] = SK_ITEM_NAME;
|
96 |
|
97 |
-
|
98 |
-
$url = 'http://dev.wpuniversity.com?action=remote_wpu_register';
|
99 |
-
} else {
|
100 |
-
$url = 'http://www.wpuniversity.com?action=remote_wpu_register';
|
101 |
-
}
|
102 |
|
103 |
$response = wp_remote_post( $url, array(
|
104 |
'method' => 'POST',
|
@@ -114,7 +120,6 @@ class Sidekick{
|
|
114 |
|
115 |
if ( is_wp_error( $response ) ) {
|
116 |
$error_message = $response->get_error_message();
|
117 |
-
// echo "Something went wrong: $error_message";
|
118 |
} else {
|
119 |
$success = 'Successfully Activated';
|
120 |
update_option('sk_license_key',$response['body']);
|
@@ -126,6 +131,7 @@ class Sidekick{
|
|
126 |
}
|
127 |
update_option( 'sk_activated', true );
|
128 |
die('<script>window.open("' . get_site_url() . '/wp-admin/admin.php?page=sidekick&firstuse","_self")</script>');
|
|
|
129 |
}
|
130 |
}
|
131 |
|
@@ -139,8 +145,8 @@ class Sidekick{
|
|
139 |
$track_data = get_option( 'sk_track_data' );
|
140 |
|
141 |
global $wp_version;
|
142 |
-
if (version_compare($wp_version, '3.
|
143 |
-
$error = "Sorry, Sidekick requires WordPress 3.
|
144 |
}
|
145 |
|
146 |
if (!$license) {
|
@@ -184,9 +190,9 @@ class Sidekick{
|
|
184 |
|
185 |
<?php if (!$error): ?>
|
186 |
<?php if ($status == 'valid'): ?>
|
187 |
-
<
|
188 |
<?php else: ?>
|
189 |
-
<
|
190 |
<?php endif ?>
|
191 |
|
192 |
<form method="post">
|
@@ -197,7 +203,9 @@ class Sidekick{
|
|
197 |
<th scope="row" valign="top">First Name</th>
|
198 |
<td>
|
199 |
<input id="first_name" name="first_name" type="text" class="regular-text" <?php if ($status == 'valid'): ?>DISABLED<?php endif ?> value="<?php echo $first_name ?>" />
|
200 |
-
|
|
|
|
|
201 |
</td>
|
202 |
</tr>
|
203 |
|
@@ -205,7 +213,9 @@ class Sidekick{
|
|
205 |
<th scope="row" valign="top">E-Mail</th>
|
206 |
<td>
|
207 |
<input id="email" name="email" type="text" class="regular-text" <?php if ($status == 'valid'): ?>DISABLED<?php endif ?> value="<?php echo $email ?>" />
|
208 |
-
|
|
|
|
|
209 |
</td>
|
210 |
</tr>
|
211 |
|
@@ -238,33 +248,42 @@ class Sidekick{
|
|
238 |
</td>
|
239 |
</tr>
|
240 |
<?php endif ?>
|
241 |
-
|
242 |
-
|
243 |
-
|
244 |
-
|
245 |
-
|
246 |
-
|
247 |
-
|
248 |
-
|
249 |
-
|
250 |
-
</
|
251 |
-
|
252 |
</tbody>
|
253 |
</table>
|
254 |
<?php if (defined('SK_PLUGIN_DEGBUG')): ?>
|
255 |
<?php submit_button('Activate Library (Debug)'); ?>
|
256 |
<?php elseif ($status !== 'valid'): ?>
|
257 |
<?php submit_button('Activate Library'); ?>
|
|
|
|
|
258 |
<?php endif ?>
|
259 |
</form>
|
260 |
<?php endif ?>
|
261 |
|
262 |
-
<
|
263 |
<p><b>WordPress is about to get a whole lot easier to learn and use!</b></p>
|
264 |
-
<p>
|
265 |
-
<p>Sidekick
|
266 |
-
<p>
|
267 |
-
<
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
268 |
<p>Thank you,</p><br/>
|
269 |
|
270 |
</div>
|
@@ -297,32 +316,39 @@ class Sidekick{
|
|
297 |
<?php if (!$not_supported_ie): ?>
|
298 |
|
299 |
<script type="text/javascript">
|
300 |
-
var sk_library_file
|
301 |
-
var
|
302 |
-
var
|
303 |
-
var
|
304 |
-
var
|
305 |
-
var
|
306 |
-
var
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
307 |
<?php if ($license_key = get_option( "sk_license_key" )): ?>
|
308 |
-
|
309 |
-
|
310 |
-
|
311 |
-
|
312 |
-
|
313 |
-
|
314 |
-
|
315 |
-
|
316 |
-
|
317 |
-
|
318 |
-
|
319 |
-
|
320 |
-
<?php
|
321 |
-
|
322 |
-
|
323 |
-
email: "<?php echo $current_user->user_email; ?>",
|
324 |
-
created_at: 1234567980,
|
325 |
-
app_id: "75fbe21e31b2881f775fba2ff3ff7928485478e8",
|
326 |
// last_date_watched : 0,
|
327 |
// walkthroughs_watched: 0,
|
328 |
// number_of_plugins: 0,
|
@@ -389,7 +415,8 @@ class Sidekick{
|
|
389 |
function redirect(){
|
390 |
if (get_option('sk_do_activation_redirect', false)) {
|
391 |
delete_option('sk_do_activation_redirect');
|
392 |
-
|
|
|
393 |
die();
|
394 |
}
|
395 |
}
|
@@ -423,7 +450,6 @@ class Sidekick{
|
|
423 |
|
424 |
$sidekick = new Sidekick;
|
425 |
if (!defined('SK_PLUGIN_DEGBUG')){
|
426 |
-
mlog('Setting up Activation Hooks');
|
427 |
register_activation_hook( __FILE__, array($sidekick,'activate_plugin') );
|
428 |
register_deactivation_hook( __FILE__, array($sidekick,'deactivate_plugin') );
|
429 |
}
|
3 |
/*
|
4 |
Plugin Name: Sidekick
|
5 |
Plugin URL: http://www.wpuniversity.com/plugin/
|
6 |
+
Description: Adds a real-time WordPress training walkthroughs right in your Dashboard
|
7 |
+
Requires at least: 3.7
|
8 |
+
Tested up to: 3.8
|
9 |
+
Version: 1.1
|
10 |
Author: WPUniversity.com
|
11 |
Author URI: http://www.wpuniversity.com
|
12 |
*/
|
13 |
|
14 |
define('SK_DOMAIN','http://www.wpuniversity.com');
|
15 |
+
define('SK_PLUGIN_VERSION',1.08);
|
16 |
+
define('SK_LIBRARY_VERSION',4);
|
17 |
+
define('SK_PLATFORM_VERSION',5);
|
18 |
|
19 |
// this is the URL our updater / license checker pings. This should be the URL of the site with EDD installed
|
20 |
define( 'SK_STORE_URL', 'http://www.wpuniversity.com' ); // you should use your own CONSTANT name, and be sure to replace it throughout this file
|
31 |
|
32 |
class Sidekick{
|
33 |
function enqueue_required(){
|
34 |
+
mlog('PHP: enqueue_required');
|
35 |
+
|
36 |
wp_enqueue_script('jquery' , null );
|
37 |
wp_enqueue_script('underscore' , null, array('underscore'));
|
38 |
wp_enqueue_script('backbone' , null, array('jquery','underscore'));
|
45 |
}
|
46 |
|
47 |
function enqueue(){
|
48 |
+
mlog('PHP: enqueue');
|
49 |
if ($license = get_option("sk_license_key")){
|
50 |
+
define('SK_LIBRARY_FILE', "http://library.sidekick.pro/library/v" . SK_LIBRARY_VERSION . "/releases/{$license}/library.js?" . rand(1, 5000));
|
51 |
} else {
|
52 |
+
define('SK_LIBRARY_FILE', "http://library.sidekick.pro/library/v" . SK_LIBRARY_VERSION . "/sources/wpuniversity-free_library.js?" . rand(1, 5000));
|
53 |
}
|
54 |
|
55 |
+
wp_enqueue_script('sidekick' ,'http://platform.sidekick.pro/v' . SK_PLATFORM_VERSION . '/sidekick.min.js', array('backbone','jquery','underscore','jquery-effects-highlight'), SK_PLUGIN_VERSION);
|
56 |
wp_enqueue_script('sk' ,plugins_url( '/js/sk.source.js' , __FILE__ ), array('sidekick') ,SK_PLUGIN_VERSION);
|
57 |
+
wp_enqueue_script("sk_library" , SK_LIBRARY_FILE , array("sk") ,null);
|
58 |
wp_enqueue_style('sk-style' ,plugins_url( '/css/sidekick_wordpress.css' , __FILE__ ), null ,SK_PLUGIN_VERSION);
|
59 |
+
|
60 |
+
wp_enqueue_style('wp-pointer');
|
61 |
+
wp_enqueue_script('wp-pointer');
|
62 |
}
|
63 |
|
64 |
function setup_menu(){
|
85 |
}
|
86 |
|
87 |
if (isset($_POST['option_page']) && $_POST['option_page'] == 'sk_license') {
|
88 |
+
|
89 |
+
if (isset($_POST['first_name']) && $_POST['first_name'])
|
90 |
update_option('sk_first_name',$_POST['first_name']);
|
91 |
+
|
92 |
+
if (isset($_POST['email']) && $_POST['email'])
|
93 |
update_option('sk_email',$_POST['email']);
|
|
|
|
|
|
|
|
|
|
|
94 |
|
95 |
+
if (isset($_POST['sk_track_data'])) {
|
96 |
+
update_option( 'sk_track_data', true );
|
97 |
+
} else {
|
98 |
+
delete_option('sk_track_data');
|
99 |
+
}
|
100 |
+
|
101 |
+
if ($status !== 'valid') {
|
102 |
$first_name = $_POST['first_name'];
|
103 |
$email = $_POST['email'];
|
104 |
$track_data = get_option( 'sk_track_data' );
|
105 |
$_POST['item_name'] = SK_ITEM_NAME;
|
106 |
|
107 |
+
$url = 'http://www.wpuniversity.com?action=remote_wpu_register';
|
|
|
|
|
|
|
|
|
108 |
|
109 |
$response = wp_remote_post( $url, array(
|
110 |
'method' => 'POST',
|
120 |
|
121 |
if ( is_wp_error( $response ) ) {
|
122 |
$error_message = $response->get_error_message();
|
|
|
123 |
} else {
|
124 |
$success = 'Successfully Activated';
|
125 |
update_option('sk_license_key',$response['body']);
|
131 |
}
|
132 |
update_option( 'sk_activated', true );
|
133 |
die('<script>window.open("' . get_site_url() . '/wp-admin/admin.php?page=sidekick&firstuse","_self")</script>');
|
134 |
+
|
135 |
}
|
136 |
}
|
137 |
|
145 |
$track_data = get_option( 'sk_track_data' );
|
146 |
|
147 |
global $wp_version;
|
148 |
+
if (version_compare($wp_version, '3.7', '<=')) {
|
149 |
+
$error = "Sorry, Sidekick requires WordPress 3.7 or higher to function.";
|
150 |
}
|
151 |
|
152 |
if (!$license) {
|
190 |
|
191 |
<?php if (!$error): ?>
|
192 |
<?php if ($status == 'valid'): ?>
|
193 |
+
<h3>Your Sidekick Account</h3>
|
194 |
<?php else: ?>
|
195 |
+
<h3>Activate <b>Full Library</b></h3>
|
196 |
<?php endif ?>
|
197 |
|
198 |
<form method="post">
|
203 |
<th scope="row" valign="top">First Name</th>
|
204 |
<td>
|
205 |
<input id="first_name" name="first_name" type="text" class="regular-text" <?php if ($status == 'valid'): ?>DISABLED<?php endif ?> value="<?php echo $first_name ?>" />
|
206 |
+
<?php if ($status !== 'valid'): ?>
|
207 |
+
<label class="description" for="first_name"><?php _e('Enter your first name'); ?></label>
|
208 |
+
<?php endif ?>
|
209 |
</td>
|
210 |
</tr>
|
211 |
|
213 |
<th scope="row" valign="top">E-Mail</th>
|
214 |
<td>
|
215 |
<input id="email" name="email" type="text" class="regular-text" <?php if ($status == 'valid'): ?>DISABLED<?php endif ?> value="<?php echo $email ?>" />
|
216 |
+
<?php if ($status !== 'valid'): ?>
|
217 |
+
<label class="description" for="email"><?php _e('Enter your email address'); ?></label>
|
218 |
+
<?php endif ?>
|
219 |
</td>
|
220 |
</tr>
|
221 |
|
248 |
</td>
|
249 |
</tr>
|
250 |
<?php endif ?>
|
251 |
+
|
252 |
+
<tr valign="top">
|
253 |
+
<th scope="row" valign="top">
|
254 |
+
Data Tracking
|
255 |
+
</th>
|
256 |
+
<td>
|
257 |
+
<input id="sk_track_data" name="sk_track_data" type="checkbox" <?php if ($track_data): ?>CHECKED<?php endif ?> />
|
258 |
+
<input type='hidden' name='status' value='<?php echo $status ?>'/>
|
259 |
+
<label class="description" for="sk_track_data">Help Sidekick by providing tracking data which will help us build better help tools.</label>
|
260 |
+
</td>
|
261 |
+
</tr>
|
262 |
</tbody>
|
263 |
</table>
|
264 |
<?php if (defined('SK_PLUGIN_DEGBUG')): ?>
|
265 |
<?php submit_button('Activate Library (Debug)'); ?>
|
266 |
<?php elseif ($status !== 'valid'): ?>
|
267 |
<?php submit_button('Activate Library'); ?>
|
268 |
+
<?php else: ?>
|
269 |
+
<?php submit_button('Update'); ?>
|
270 |
<?php endif ?>
|
271 |
</form>
|
272 |
<?php endif ?>
|
273 |
|
274 |
+
<h3>About Sidekick</h3>
|
275 |
<p><b>WordPress is about to get a whole lot easier to learn and use!</b></p>
|
276 |
+
<p><b>We are very excited to introduce Sidekick for WordPress. Our team has been working ‘round the clock for months now preparing this latest iteration and we can’t wait to <a href='mailto:info@sidekick.pro'>hear</a> what you think! </b></p>
|
277 |
+
<p>Sidekick is currently avialable free of charge. To activate your free access, please enter your first name and email address here so we can keep you posted on what's new with the plugin and any upcoming changes that you should be aware of. </p>
|
278 |
+
<p><b>Here are a few other things you should know:</b></p>
|
279 |
+
<ul>
|
280 |
+
<li> 1. Clicking the check-box above will allow us to link your email address to the stats we collect so we can contact you if we have a question or notice an issue. It’s not mandatory, but it would help us out. </li>
|
281 |
+
<li> 2. Entering your email address is not a requirement to use the plugin, if you choose not to, you will have access to 5 WordPress core walkthroughs as well as any plugin or theme walkthroughs that are available for your install of WordPress. </li>
|
282 |
+
<li> 3. The Sidekick team adheres strictly to <a href='http://www.business.ftc.gov/documents/bus61-can-spam-act-compliance-guide-business'>CANSPAM</a> </li>
|
283 |
+
<li> 4. If you have any questions, bug reports or feedback, please send them to info@sidekick.pro</li>
|
284 |
+
<li> 5. <a href='http://www.wpuniversity.com'>WPUniversity</a> maintains our library of core WordPress Walkthroughs. 3rd party plugin and theme walkthroughs are created and maintained by their respective developers. </li>
|
285 |
+
<li> 6. WPUniversity sends out daily WordPress tips & tricks, WordPress community updates and the occasional special offer. If you'd like to receive these emails as well, please click <a href='http://wpuniversity.us4.list-manage.com/subscribe?u=59d2b3278da2364941b040f74&id=b1a91625c0'>here</a>.</li>
|
286 |
+
</ul>
|
287 |
<p>Thank you,</p><br/>
|
288 |
|
289 |
</div>
|
316 |
<?php if (!$not_supported_ie): ?>
|
317 |
|
318 |
<script type="text/javascript">
|
319 |
+
var sk_library_file = '<?php echo SK_LIBRARY_FILE ?>';
|
320 |
+
var sk_main_soft_name = 'WordPress';
|
321 |
+
var sk_main_soft_version = '<?php echo get_bloginfo("version"); ?>';
|
322 |
+
var sk_installed_plugins = <?php echo $this->list_plugins() ?>;
|
323 |
+
var sk_installed_theme = '<?php echo $theme->Name ?>';
|
324 |
+
var sk_theme_version = '<?php echo $theme->Version ?>';
|
325 |
+
var sk_domain = '<?php echo SK_DOMAIN ?>';
|
326 |
+
var sk_license_status = '<?php echo get_option( "sk_license_status" ) ?>';
|
327 |
+
var sk_plugin_version = <?php echo SK_PLUGIN_VERSION ?>;
|
328 |
+
var sk_library_version = <?php echo SK_LIBRARY_VERSION ?>;
|
329 |
+
var sk_platform_version = <?php echo SK_PLATFORM_VERSION ?>;
|
330 |
+
var sk_track_data = '<?php echo get_option( 'sk_track_data' ) ?>';
|
331 |
+
var sk_user_level = '<?php echo $user_role ?>';
|
332 |
+
var sk_user_email = '<?php echo $current_user->user_email ?>';
|
333 |
+
var sk_use_native_controls = false;
|
334 |
+
var sk_plugin_url = '<?php echo admin_url("admin.php?page=sidekick") ?>';
|
335 |
+
var sk_domain = '<?php echo str_replace("http://","",$_SERVER["SERVER_NAME"]) ?>'
|
336 |
<?php if ($license_key = get_option( "sk_license_key" )): ?>
|
337 |
+
var sk_license_key = '<?php echo $license_key ?>';
|
338 |
+
<?php else: ?>
|
339 |
+
var sk_license_key = 'demo';
|
340 |
+
<?php endif ?>
|
341 |
+
<?php if ($sk_just_activated): ?>
|
342 |
+
var sk_just_activated = true;
|
343 |
+
<?php endif; ?>
|
344 |
+
</script>
|
345 |
+
|
346 |
+
<?php if ($track_data): ?>
|
347 |
+
<script id="IntercomSettingsScriptTag">
|
348 |
+
window.intercomSettings = {
|
349 |
+
email: "<?php echo $current_user->user_email; ?>",
|
350 |
+
created_at: 1234567980,
|
351 |
+
app_id: "75fbe21e31b2881f775fba2ff3ff7928485478e8",
|
|
|
|
|
|
|
352 |
// last_date_watched : 0,
|
353 |
// walkthroughs_watched: 0,
|
354 |
// number_of_plugins: 0,
|
415 |
function redirect(){
|
416 |
if (get_option('sk_do_activation_redirect', false)) {
|
417 |
delete_option('sk_do_activation_redirect');
|
418 |
+
$siteurl = get_site_url();
|
419 |
+
wp_redirect($siteurl . "/wp-admin/admin.php?page=sidekick&firstuse");
|
420 |
die();
|
421 |
}
|
422 |
}
|
450 |
|
451 |
$sidekick = new Sidekick;
|
452 |
if (!defined('SK_PLUGIN_DEGBUG')){
|
|
|
453 |
register_activation_hook( __FILE__, array($sidekick,'activate_plugin') );
|
454 |
register_deactivation_hook( __FILE__, array($sidekick,'deactivate_plugin') );
|
455 |
}
|