Wp-Pro-Quiz - Version 0.37

Version Description

  • New frontend init structure
  • Added gulp support
  • Fix #7 - compatibility with All In One WP Security (https://github.com/xeno010/Wp-Pro-Quiz/issues/7)
  • Fix #5 - order of questions changes (https://github.com/xeno010/Wp-Pro-Quiz/issues/5)
  • Merge pull request #6 - escape double quotes that breaks tag (https://github.com/xeno010/Wp-Pro-Quiz/pull/6)
  • Translation for polish have been added (Thanks Behrooz N.)
Download this release

Release Info

Developer xeno010
Plugin Icon 128x128 Wp-Pro-Quiz
Version 0.37
Comparing to
See all releases

Code changes from version 0.36 to 0.37

Files changed (80) hide show
  1. .gitignore +2 -1
  2. README.md +10 -14
  3. css/wpProQuiz_front.css +610 -525
  4. css/wpProQuiz_front.min.css +1 -1
  5. gulpfile.js +40 -0
  6. js/wpProQuiz_admin.js +3392 -3335
  7. js/wpProQuiz_admin.min.js +2 -83
  8. js/wpProQuiz_front.js +2219 -2003
  9. js/wpProQuiz_front.min.js +1 -48
  10. js/wpProQuiz_toplist.js +72 -67
  11. js/wpProQuiz_toplist.min.js +1 -2
  12. languages/wp-pro-quiz-ar.mo +0 -0
  13. languages/wp-pro-quiz-ar.po +4 -3
  14. languages/wp-pro-quiz-cs_CZ.mo +0 -0
  15. languages/wp-pro-quiz-cs_CZ.po +3 -3
  16. languages/wp-pro-quiz-da_DK.mo +0 -0
  17. languages/wp-pro-quiz-da_DK.po +4 -3
  18. languages/wp-pro-quiz-de_DE.mo +0 -0
  19. languages/wp-pro-quiz-de_DE.po +3 -3
  20. languages/wp-pro-quiz-el.mo +0 -0
  21. languages/wp-pro-quiz-el.po +3 -3
  22. languages/wp-pro-quiz-es_ES.mo +0 -0
  23. languages/wp-pro-quiz-es_ES.po +7 -5
  24. languages/wp-pro-quiz-fa_IR.mo +0 -0
  25. languages/wp-pro-quiz-fa_IR.po +4 -3
  26. languages/wp-pro-quiz-fi.mo +0 -0
  27. languages/wp-pro-quiz-fi.po +4 -3
  28. languages/wp-pro-quiz-fr_FR.mo +0 -0
  29. languages/wp-pro-quiz-fr_FR.po +4 -3
  30. languages/wp-pro-quiz-hu_HU.mo +0 -0
  31. languages/wp-pro-quiz-hu_HU.po +4 -3
  32. languages/wp-pro-quiz-id_ID.mo +0 -0
  33. languages/wp-pro-quiz-id_ID.po +4 -3
  34. languages/wp-pro-quiz-it_IT.mo +0 -0
  35. languages/wp-pro-quiz-it_IT.po +4 -3
  36. languages/wp-pro-quiz-ko_KR.mo +0 -0
  37. languages/wp-pro-quiz-ko_KR.po +4 -3
  38. languages/wp-pro-quiz-nb_NO.mo +0 -0
  39. languages/wp-pro-quiz-nb_NO.po +4 -3
  40. languages/wp-pro-quiz-nl_NL.mo +0 -0
  41. languages/wp-pro-quiz-nl_NL.po +7 -5
  42. languages/wp-pro-quiz-pl_PL.mo +0 -0
  43. languages/wp-pro-quiz-pl_PL.po +2977 -0
  44. languages/wp-pro-quiz-pt_BR.mo +0 -0
  45. languages/wp-pro-quiz-pt_BR.po +4 -3
  46. languages/wp-pro-quiz-ru_RU.mo +0 -0
  47. languages/wp-pro-quiz-ru_RU.po +4 -3
  48. languages/wp-pro-quiz-sk_SK.mo +0 -0
  49. languages/wp-pro-quiz-sk_SK.po +3 -3
  50. languages/wp-pro-quiz-sv_SE.mo +0 -0
  51. languages/wp-pro-quiz-sv_SE.po +4 -3
  52. languages/wp-pro-quiz-tr_TR.mo +0 -0
  53. languages/wp-pro-quiz-tr_TR.po +7 -5
  54. languages/wp-pro-quiz-zh_TW.mo +0 -0
  55. languages/wp-pro-quiz-zh_TW.po +5 -3
  56. languages/wp-pro-quiz.pot +5 -3
  57. lib/controller/WpProQuiz_Controller_Admin.php +202 -275
  58. lib/controller/WpProQuiz_Controller_Ajax.php +86 -73
  59. lib/controller/WpProQuiz_Controller_Category.php +52 -46
  60. lib/controller/WpProQuiz_Controller_Controller.php +20 -17
  61. lib/controller/WpProQuiz_Controller_Front.php +257 -241
  62. lib/controller/WpProQuiz_Controller_GlobalSettings.php +65 -65
  63. lib/controller/WpProQuiz_Controller_ImportExport.php +104 -95
  64. lib/controller/WpProQuiz_Controller_InfoAdaptation.php +16 -12
  65. lib/controller/WpProQuiz_Controller_Preview.php +68 -63
  66. lib/controller/WpProQuiz_Controller_Question.php +585 -704
  67. lib/controller/WpProQuiz_Controller_Quiz.php +865 -979
  68. lib/controller/WpProQuiz_Controller_QuizCompleted.php +0 -231
  69. lib/controller/WpProQuiz_Controller_Request.php +42 -35
  70. lib/controller/WpProQuiz_Controller_Statistics.php +443 -794
  71. lib/controller/WpProQuiz_Controller_StyleManager.php +24 -20
  72. lib/controller/WpProQuiz_Controller_Template.php +33 -29
  73. lib/controller/WpProQuiz_Controller_Toplist.php +288 -282
  74. lib/controller/WpProQuiz_Controller_WpqSupport.php +16 -12
  75. lib/helper/WpProQuiz_Helper_Captcha.php +92 -75
  76. lib/helper/WpProQuiz_Helper_DbUpgrade.php +1136 -1098
  77. lib/helper/WpProQuiz_Helper_Export.php +63 -53
  78. lib/helper/WpProQuiz_Helper_ExportXml.php +340 -293
  79. lib/helper/WpProQuiz_Helper_Form.php +116 -102
  80. lib/helper/WpProQuiz_Helper_Import.php +0 -125
.gitignore CHANGED
@@ -1 +1,2 @@
1
- .idea
 
1
+ .idea
2
+ node_modules
README.md CHANGED
@@ -1,14 +1,8 @@
1
- Wp-Pro-Quiz
2
- ==============
3
 
4
  A powerful and beautiful quiz plugin for WordPress.
5
- --------------
6
 
7
- **Description**
8
-
9
- A powerful and beautiful quiz plugin for WordPress.
10
-
11
- **Functions**
12
  - Single Choice
13
  - Multiple Choice
14
  - "Sorting" Choice
@@ -42,7 +36,7 @@ A powerful and beautiful quiz plugin for WordPress.
42
  - Fully compatible with cache plugins (e.g. WP-Super-Cache or W3 Total Cache)
43
 
44
 
45
- **Translations**
46
  - Arabic / عربي (Thanks Abuhassan)
47
  - Brazilian Portuguese / Português do Brasil (Thanks Gabriel V.)
48
  - Chinese (Traditional) (Thanks Dinno Lin)
@@ -56,27 +50,29 @@ A powerful and beautiful quiz plugin for WordPress.
56
  - Greek / ελληνικά (Thanks Ζαχαρίας Σ.)
57
  - Hungarian / magyar (Thanks Webstar Csoport Kft.)
58
  - Indonesian / Bahasa Indonesia (Thanks dieka91 and Creative Computer Club)
59
- - Italian / Italiano (Thanks Pacaldi)
60
  - Korean / 한국어 (Thanks Kyeong Choi)
61
  - Norwegian / norsk (Thanks Stein Ivar J.)
62
  - Persian / فارسی (Thanks Behrooz N.)
 
63
  - Russian / русский (Thanks Sergei B. and Alex A.)
 
64
  - Spanish / español (Thanks Carlos R.)
65
  - Swedish / svenska (Thanks Martin J.)
66
  - Turkish / Türkçe (Thanks Nsaral)
67
 
68
- **Live Demo**
69
  http://www.it-gecko.de/wp-pro-quiz-quiz-plugin-fuer-wordpress.html (scroll to "Demo")
70
 
71
- **Special**
72
  - Support for "User Role Editor" etc.
73
  - Support for BuddyPress achievements 3.x.x
74
 
75
- **Support**
76
  - English: http://wordpress.org/support/plugin/wp-pro-quiz
77
  - German/Deutsch: http://www.it-gecko.de/kontakt
78
 
79
- **Installation**
80
 
81
  1. Upload the wp-pro-quiz folder to the /wp-content/plugins/ directory
82
  2. Activate the plugin through the 'Plugins' menu in WordPress
1
+ #Wp-Pro-Quiz
 
2
 
3
  A powerful and beautiful quiz plugin for WordPress.
 
4
 
5
+ ##Functions
 
 
 
 
6
  - Single Choice
7
  - Multiple Choice
8
  - "Sorting" Choice
36
  - Fully compatible with cache plugins (e.g. WP-Super-Cache or W3 Total Cache)
37
 
38
 
39
+ ##Translations
40
  - Arabic / عربي (Thanks Abuhassan)
41
  - Brazilian Portuguese / Português do Brasil (Thanks Gabriel V.)
42
  - Chinese (Traditional) (Thanks Dinno Lin)
50
  - Greek / ελληνικά (Thanks Ζαχαρίας Σ.)
51
  - Hungarian / magyar (Thanks Webstar Csoport Kft.)
52
  - Indonesian / Bahasa Indonesia (Thanks dieka91 and Creative Computer Club)
53
+ - Italian / Italiano (Thanks Pacaldi and Fabio)
54
  - Korean / 한국어 (Thanks Kyeong Choi)
55
  - Norwegian / norsk (Thanks Stein Ivar J.)
56
  - Persian / فارسی (Thanks Behrooz N.)
57
+ - Polish / polski (Thanks Piotr Sz. BaGGietka)
58
  - Russian / русский (Thanks Sergei B. and Alex A.)
59
+ - Slovak / slovenščina (Thanks Martin D.)
60
  - Spanish / español (Thanks Carlos R.)
61
  - Swedish / svenska (Thanks Martin J.)
62
  - Turkish / Türkçe (Thanks Nsaral)
63
 
64
+ ##Live Demo
65
  http://www.it-gecko.de/wp-pro-quiz-quiz-plugin-fuer-wordpress.html (scroll to "Demo")
66
 
67
+ ##Special
68
  - Support for "User Role Editor" etc.
69
  - Support for BuddyPress achievements 3.x.x
70
 
71
+ ##Support
72
  - English: http://wordpress.org/support/plugin/wp-pro-quiz
73
  - German/Deutsch: http://www.it-gecko.de/kontakt
74
 
75
+ ##Installation
76
 
77
  1. Upload the wp-pro-quiz folder to the /wp-content/plugins/ directory
78
  2. Activate the plugin through the 'Plugins' menu in WordPress
css/wpProQuiz_front.css CHANGED
@@ -1,526 +1,611 @@
1
- .wpProQuiz_answerCorrect {
2
- background: #6DB46D !important;
3
- font-weight: bold !important;
4
- }
5
- .wpProQuiz_answerCorrect label {
6
- font-weight: bold !important;
7
- }
8
-
9
- .wpProQuiz_answerIncorrect {
10
- background: #FF9191 !important;
11
- font-weight: bold !important;
12
- }
13
- .wpProQuiz_content {
14
- margin-top: 10px !important;
15
- margin-bottom: 10px !important;
16
- }
17
-
18
- .wpProQuiz_content h2 {
19
- margin-bottom: 10px !important;
20
- }
21
- *+html .wpProQuiz_button, *+html .wpProQuiz_button:hover {
22
- padding: 3px 0 !important;
23
- }
24
- .wpProQuiz_button, .wpProQuiz_button:hover {
25
- margin: 0 !important;
26
- padding: 5px 10px !important;
27
- background: #13455B !important;
28
- border-radius: 11px !important;
29
- color: white !important;
30
- font-weight: bold !important;
31
- border: 1px solid #13455B !important;
32
- box-shadow: 1px 1px 1px #333 !important;
33
- text-shadow: none !important;
34
- filter: none !important;
35
- float: none;
36
- }
37
-
38
- .wpProQuiz_question_page {
39
- margin-bottom: 10px !important;
40
- }
41
-
42
- .wpProQuiz_question_page span {
43
- font-weight: bold !important;
44
- }
45
-
46
- .wpProQuiz_questionListItem:last-child, .wpProQuiz_questionListItemLastChildIE {
47
- padding: 3px !important;
48
- margin-bottom: 0 !important;
49
- }
50
-
51
- .wpProQuiz_questionListItem {
52
- padding: 3px !important;
53
- margin-bottom: 5px !important;
54
- background-image: none !important;
55
- margin-left: 0 !important;
56
- list-style: none !important;
57
- border: 0 !important;
58
- }
59
-
60
- .wpProQuiz_questionListItem > table {
61
- border-collapse: collapse !important;
62
- margin: 0 !important;
63
- padding: 0 !important;
64
- width: 100%;
65
- border: none !important;
66
- text-align: left !important;
67
- }
68
- .wpProQuiz_questionListItem > table .alt {
69
- background: inherit !important;
70
- }
71
-
72
- .wpProQuiz_questionListItem > table td {
73
- text-align: left !important;
74
- }
75
-
76
- .wpProQuiz_list, .wpProQuiz_listItem, .wpProQuiz_questionList, .wpProQuiz_sortStringList, .wpProQuiz_sortStringList, .wpProQuiz_maxtrixSortCriterion, .wpProQuiz_resultsList, .wpProQuiz_catOverview ol {
77
- list-style: none !important;
78
- padding: 0 !important;
79
- margin: 0 !important;
80
- }
81
- .wpProQuiz_list {
82
- border: 0 !important;
83
- }
84
- .wpProQuiz_questionList {
85
- margin-bottom: 10px !important;
86
- background: #F8FAF5 !important;
87
- border: 1px solid #C3D1A3 !important;
88
- padding: 5px !important;
89
- list-style: none !important;
90
- }
91
- .wpProQuiz_listItem {
92
- position: relative !important;
93
- border: 0 !important;
94
- background-image: none !important;
95
- }
96
- .wpProQuiz_response {
97
- background: #F8FAF5 !important;
98
- border: 1px solid #C4C4C4 !important;
99
- padding: 5px !important;
100
- margin-bottom: 15px !important;
101
- box-shadow: 1px 1px 2px #AAA !important;
102
- }
103
- .wpProQuiz_response span {
104
- font-weight: bold !important;
105
- }
106
- .wpProQuiz_sort {
107
- width: 25px !important;
108
- }
109
- .wpProQuiz_results h3 {
110
- margin-bottom: 10px !important;
111
- }
112
- .wpProQuiz_sort_correct_answer {
113
- font-weight: bold !important;
114
- margin-right: 5px !important;
115
- display: none !important;
116
- }
117
- .wpProQuiz_sortable, .wpProQuiz_sortStringItem {
118
- padding: 5px !important;
119
- border: 1px solid lightGrey !important;
120
- box-shadow: 2px 2px 1px #EEE;
121
- background-color: #F8FAF5 !important;
122
- cursor: move;
123
- }
124
- .wpProQuiz_time_limit .time {
125
- font-weight: bold !important;
126
- margin-top: 5px !important;
127
- margin-bottom: 5px !important;
128
- }
129
- .wpProQuiz_time_limit .wpProQuiz_progress {
130
- height: 10px !important;
131
- background-color: blue !important;
132
- margin-bottom: 5px !important;
133
- }
134
- .wpProQuiz_time_limit_expired {
135
- font-weight: bold !important;
136
- font-size: 15px !important;
137
- text-align: center !important;
138
- }
139
- .wpProQuiz_question_text {
140
- margin-bottom: 10px !important;
141
- }
142
- .wpProQuiz_tipp > div {
143
- padding: 10px !important;
144
- background-color: #DDECFF !important;
145
- border: 1px dotted #363636 !important;
146
- border-radius: 10px !important;
147
- position: absolute !important;
148
- bottom: 5px !important;
149
- left: 5px !important;
150
- right: 5px !important;
151
- box-shadow: 2px 2px 5px 0 #313131 !important;
152
- z-index: 99999 !important;
153
- }
154
- .wpProQuiz_matrixSortString, .wpProQuiz_matrixSortString > h3{
155
- margin-bottom: 10px !important;
156
- margin-top: 0 !important;
157
- }
158
- .wpProQuiz_matrixSortString {
159
- background: #F8FAF5 !important;
160
- border: 1px solid #C3D1A3 !important;
161
- padding: 5px !important;
162
- }
163
- .wpProQuiz_sortStringList {
164
- padding: 10px !important;
165
- border: 0 !important;
166
- }
167
- .wpProQuiz_sortStringList > li {
168
- float: left !important;
169
- margin-left: 5px !important;
170
- margin-right: 5px !important;
171
- margin-bottom: 5px !important;
172
- }
173
- .wpProQuiz_sortStringItem {
174
- margin: 0 !important;
175
- background-image: none !important;
176
- list-style: none !important;
177
- }
178
- .wpProQuiz_maxtrixSortCriterion {
179
- padding: 5px !important;
180
- }
181
- .wpProQuiz_placehold {
182
- background-color: #FFFFC2 !important;
183
- list-style: none !important;
184
- background-image: none !important;
185
- padding: 5px !important;
186
- height: 30px !important;
187
- min-width: 50px !important;
188
- margin: 0 !important;
189
- }
190
- .wpProQuiz_maxtrixSortText {
191
- padding: 5px !important;
192
- }
193
- .wpProQuiz_mextrixTr > td {
194
- border: 1px solid #D1D1D1 !important;
195
- padding: 5px !important;
196
- vertical-align: middle !important;
197
- }
198
- .wpProQuiz_points {
199
- font-weight: bold !important;
200
- text-align: center !important;
201
- margin-bottom: 20px !important;
202
- }
203
- .wpProQuiz_cloze input[type="text"] {
204
- background: transparent;
205
- border: 0 !important;
206
- border-bottom: 1px solid !important;
207
- height: 18px !important;
208
- margin: 0 !important;
209
- padding: 0 4px 0 4px !important;
210
- color: black !important;
211
- border-radius: 0 !important;
212
- box-shadow: 0 0 !important;
213
- }
214
- .wpProQuiz_cloze input:focus {
215
- outline: none !important;
216
- }
217
- .wpProQuiz_questionListItem input, .wpProQuiz_questionListItem label {
218
- margin: 0 !important;
219
- font-weight: normal;
220
- display: inline;
221
- }
222
- .wpProQuiz_questionListItem label {
223
- float: none;
224
- }
225
- .wpProQuiz_questionListItem input {
226
- float: none !important;
227
- display: inline !important;
228
- }
229
- .wpProQuiz_resultsList {
230
- border: 0 !important;
231
- }
232
- .wpProQuiz_resultsList > li {
233
- background-image: none !important;
234
- padding: 0 !important;
235
- margin: 0 !important;
236
- list-style-type: none !important;
237
- border: 0 !important;
238
- }
239
- .wpProQuiz_lock, .wpProQuiz_prerequisite, .wpProQuiz_startOnlyRegisteredUser, .wpProQuiz_loadQuiz {
240
- border: 1px dotted #FFC3C3 !important;
241
- background-color: #FFF7F7 !important;
242
- }
243
- .wpProQuiz_lock p, .wpProQuiz_prerequisite p, .wpProQuiz_startOnlyRegisteredUser p, .wpProQuiz_loadQuiz p {
244
- margin: 20px !important;
245
- font-weight: bold !important;
246
- }
247
- .wpProQuiz_toplistTable {
248
- width: 100% !important;
249
- border: 1px solid #C3D1A3 !important;
250
- border-collapse: collapse !important;
251
- margin: 0 !important;
252
- }
253
- .wpProQuiz_toplistTable caption {
254
- caption-side:top !important;
255
- text-align: right !important;
256
- padding-bottom: 2px !important;
257
- color: gray !important;
258
- margin: 0 !important;
259
- font-size: 11px !important;
260
- }
261
- .wpProQuiz_toplistTable thead tr {
262
- background: rgb(155,187,89) !important;
263
- padding: 5px !important;
264
- color: white !important;
265
- font-weight: bold !important;
266
- }
267
- .wpProQuiz_toplistTable tbody td:FIRST-CHILD{
268
- font-weight: bold !important;
269
- }
270
- .wpProQuiz_toplistTable td, .wpProQuiz_toplistTable th {
271
- padding: 5px !important;
272
- text-align: center !important;
273
- border: 0 !important;
274
- }
275
- .wpProQuiz_toplistTable th {
276
- background: #9BBB59 !important;
277
- }
278
- .wpProQuiz_toplistTrOdd {
279
- background-color: #EBF1DE !important;
280
- }
281
- .wpProQuiz_addToplist {
282
- margin-top: 10px !important;
283
- background-color: #F5FAEA !important;
284
- padding: 10px !important;
285
- border: 1px solid #C3D1A3 !important;
286
- }
287
- .wpProQuiz_addToplistMessage {
288
- border: 1px solid rgb(160, 160, 160) !important;
289
- background-color: #FCFFB3 !important;
290
- margin-bottom: 5px !important;
291
- border-radius: 5px !important;
292
- padding: 5px !important;
293
- font-weight: bold !important;
294
- color: dimGray !important;
295
- }
296
- .wpProQuiz_resultTable {
297
- margin: 15px auto !important;
298
- width: 400px !important;
299
- border: 1px solid #C4C4C4 !important;
300
- padding: 15px !important;
301
- font-weight: bold !important;
302
- }
303
- .wpProQuiz_resultTable table {
304
- width: 100% !important;
305
- border-collapse: collapse !important;
306
- margin: 0 !important;
307
- border: 0 !important;
308
- text-align: left !important;
309
- }
310
- .wpProQuiz_resultTable table td {
311
- text-align: left !important;
312
- }
313
- .wpProQuiz_resultTable .alt {
314
- background: inherit !important;
315
- }
316
- .wpProQuiz_resultName {
317
- width: 100px !important;
318
- border-right: 1px solid rgb(134, 134, 134) !important;
319
- padding: 10px 0 !important;
320
- border-bottom: 0 !important;
321
- border-top: 0 !important;
322
- border-left: 0 !important;
323
- }
324
- .wpProQuiz_resultValue {
325
- padding: 0 !important;
326
- border: 0 !important;
327
- }
328
- .wpProQuiz_resultValue div {
329
- color: black !important;
330
- text-align: right !important;
331
- box-shadow: 1px 1px 3px 1px #C4C4C4 !important;
332
- display: inline-block !important;
333
- height: 18px !important;
334
- zoom: 1 !important;
335
- *display: inline !important;
336
- margin-right: 3px !important;
337
- vertical-align: middle !important;
338
- }
339
- .wpProQuiz_addBox label {
340
- display: inline !important;
341
- }
342
- .wpProQuiz_addBox input[type="text"] {
343
- margin: 0 !important;
344
- }
345
- .wpProQuiz_reviewQuestion {
346
- max-height: 100px;
347
- overflow: hidden;
348
- border: 1px solid #C3D1A3;
349
- background-color: #F8FAF5;
350
- position: relative;
351
- }
352
- .wpProQuiz_box {
353
- border: 1px solid #C3D1A3;
354
- background-color: #F8FAF5;
355
- }
356
- .wpProQuiz_checkPage h3 {
357
- margin: 10px 0 10px 0;
358
- }
359
- .wpProQuiz_reviewQuestion ol, .wpProQuiz_checkPage ol {
360
- list-style-type: none !important;
361
- margin: 0 !important;
362
- padding: 5px 12px 0 5px !important;
363
- zoom: 1 !important;
364
- position: relative !important;
365
- border: 0 !important;
366
- }
367
- .wpProQuiz_reviewQuestion ol:after {
368
- content: ".";
369
- display: block;
370
- height: 0;
371
- clear: both;
372
- visibility: hidden;
373
- }
374
- .wpProQuiz_reviewQuestionTarget {
375
- font-weight: bold;
376
- border-color: #7DB1D3 !important;
377
- box-shadow: 0 0 2px 1px #C4C4C4;
378
- }
379
- .wpProQuiz_reviewQuestion li, .wpProQuiz_checkPage li {
380
- float: left !important;
381
- margin: 0 5px 5px 0 !important;
382
- border: 1px solid #CFCFCF;
383
- padding: 5px 0 5px 0 !important;
384
- width: 30px !important;
385
- text-align: center !important;
386
- background-color: white;
387
- cursor: pointer !important;
388
- list-style-type: none !important;
389
- background-image: none !important;
390
- }
391
-
392
- .wpProQuiz_reviewQuestion div {
393
- position: absolute;
394
- right: 0;
395
- background-color: #B8B8B8;
396
- top: 0;
397
- height: 20px;
398
- width: 10px;
399
- border: 0;
400
- border-radius: 10px;
401
- cursor: move;
402
- }
403
- .wpProQuiz_reviewLegend {
404
- padding: 5px !important;
405
- margin-bottom: 8px !important;
406
- }
407
- .wpProQuiz_reviewLegend ol {
408
- list-style-type: none !important;
409
- padding: 0 !important;
410
- margin: 0 !important;
411
- border: 0 !important;
412
- }
413
- .wpProQuiz_reviewLegend li {
414
- float: left !important;
415
- padding-right: 5px !important;
416
- list-style-type: none !important;
417
- margin: 0 !important;
418
- border: 0 !important;
419
- background-image: none !important;
420
- }
421
- .wpProQuiz_reviewColor {
422
- height: 10px !important;
423
- width: 10px !important;
424
- display: inline-block !important;
425
- margin-right: 2px !important;
426
- }
427
- .wpProQuiz_button2 {
428
- border: 1px solid #DADADA !important;
429
- background: whiteSmoke !important;
430
- color: #303030 !important;
431
- border-radius: 4px !important;
432
- padding: 3px 5px !important;
433
- box-shadow: 1px 1px 1px #A7A7A7 !important;
434
- text-shadow: none !important;
435
- filter: none !important;
436
- margin: 0 !important;
437
- font-weight: normal !important;
438
- }
439
- .wpProQuiz_button2:hover {
440
- background: #EBEBEB !important;
441
- }
442
- .wpProQuiz_reviewDiv {
443
- margin: 20px 0 20px 0 !important;
444
- }
445
- .wpProQuiz_header {
446
- margin: 0 !important;
447
- }
448
- .wpProQuiz_catOverview {
449
- margin-top: 10px;
450
- margin-bottom: 20px;
451
- }
452
- .wpProQuiz_catOverview li {
453
- list-style: none !important;
454
- padding: 0 !important;
455
- clear: left !important;
456
- border-bottom: 1px dashed #aaa;
457
- height: 1.05em !important;
458
- margin: 10px 0 0 0 !important;
459
- position: relative !important;
460
- }
461
- .wpProQuiz_catOverview span {
462
- background:#fff !important;
463
- padding:0 3px 0 0 !important;
464
- float:left !important;
465
- position:absolute !important;
466
- text-decoration:none !important;
467
- }
468
- span.wpProQuiz_catPercent {
469
- font-weight: bold !important;
470
- padding-left: 5px !important;
471
- color: #000 !important;
472
- right: 0 !important;
473
- }
474
- .wpProQuiz_forms {
475
- margin: 20px 0 20px 0 !important;
476
- }
477
- .wpProQuiz_required {
478
- color: #F00 !important;
479
- font-weight: bold !important;
480
- }
481
- .wpProQuiz_invalidate {
482
- border: 1px solid #FFCFCF !important;
483
- background: #FFEBE8 !important;
484
- padding: 4px !important;
485
- margin: 4px 0 4px 0 !important;
486
- display: none;
487
- }
488
-
489
- .wpProQuiz_forms table {
490
- width: auto !important;
491
- border-collapse: separate !important;
492
- border-spacing: 2px !important;
493
- border: 0;
494
- text-align: left !important;
495
- }
496
- .wpProQuiz_forms table .alt {
497
- background: inherit !important;
498
- }
499
- .wpProQuiz_forms table td {
500
- text-align: left !important;
501
- }
502
-
503
- .wpProQuiz_forms td {
504
- vertical-align: top !important;
505
- padding: 0 0 8px 0 !important;
506
- margin: 0 !important;
507
- border: 0 !important;
508
- background: none !important;
509
- }
510
- .wpProQuiz_forms input, .wpProQuiz_forms textarea, .wpProQuiz_forms label, .wpProQuiz_forms select {
511
- margin: 0 !important;
512
- float: none !important;
513
- display: inline !important;
514
- }
515
- .wpProQuiz_forms select {
516
- width: auto !important;
517
- }
518
- .wpProQuiz_resultForm {
519
- display: none;
520
- }
521
- .wpProQuiz_quiz input[type="checkbox"] {
522
- -webkit-appearance: checkbox;
523
- }
524
- .wpProQuiz_quiz input[type="radio"] {
525
- -webkit-appearance: radio;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
526
  }
1
+ .wpProQuiz_answerCorrect {
2
+ background: #6DB46D !important;
3
+ font-weight: bold !important;
4
+ }
5
+
6
+ .wpProQuiz_answerCorrect label {
7
+ font-weight: bold !important;
8
+ }
9
+
10
+ .wpProQuiz_answerIncorrect {
11
+ background: #FF9191 !important;
12
+ font-weight: bold !important;
13
+ }
14
+
15
+ .wpProQuiz_content {
16
+ margin-top: 10px !important;
17
+ margin-bottom: 10px !important;
18
+ }
19
+
20
+ .wpProQuiz_content h2 {
21
+ margin-bottom: 10px !important;
22
+ }
23
+
24
+ * + html .wpProQuiz_button, * + html .wpProQuiz_button:hover {
25
+ padding: 3px 0 !important;
26
+ }
27
+
28
+ .wpProQuiz_button, .wpProQuiz_button:hover {
29
+ margin: 0 !important;
30
+ padding: 5px 10px !important;
31
+ background: #13455B !important;
32
+ border-radius: 11px !important;
33
+ color: white !important;
34
+ font-weight: bold !important;
35
+ border: 1px solid #13455B !important;
36
+ box-shadow: 1px 1px 1px #333 !important;
37
+ text-shadow: none !important;
38
+ filter: none !important;
39
+ float: none;
40
+ }
41
+
42
+ .wpProQuiz_question_page {
43
+ margin-bottom: 10px !important;
44
+ }
45
+
46
+ .wpProQuiz_question_page span {
47
+ font-weight: bold !important;
48
+ }
49
+
50
+ .wpProQuiz_questionListItem:last-child, .wpProQuiz_questionListItemLastChildIE {
51
+ padding: 3px !important;
52
+ margin-bottom: 0 !important;
53
+ }
54
+
55
+ .wpProQuiz_questionListItem {
56
+ padding: 3px !important;
57
+ margin-bottom: 5px !important;
58
+ background-image: none !important;
59
+ margin-left: 0 !important;
60
+ list-style: none !important;
61
+ border: 0 !important;
62
+ }
63
+
64
+ .wpProQuiz_questionListItem > table {
65
+ border-collapse: collapse !important;
66
+ margin: 0 !important;
67
+ padding: 0 !important;
68
+ width: 100%;
69
+ border: none !important;
70
+ text-align: left !important;
71
+ }
72
+
73
+ .wpProQuiz_questionListItem > table .alt {
74
+ background: inherit !important;
75
+ }
76
+
77
+ .wpProQuiz_questionListItem > table td {
78
+ text-align: left !important;
79
+ }
80
+
81
+ .wpProQuiz_list, .wpProQuiz_listItem, .wpProQuiz_questionList, .wpProQuiz_sortStringList, .wpProQuiz_sortStringList, .wpProQuiz_maxtrixSortCriterion, .wpProQuiz_resultsList, .wpProQuiz_catOverview ol {
82
+ list-style: none !important;
83
+ padding: 0 !important;
84
+ margin: 0 !important;
85
+ }
86
+
87
+ .wpProQuiz_list {
88
+ border: 0 !important;
89
+ }
90
+
91
+ .wpProQuiz_questionList {
92
+ margin-bottom: 10px !important;
93
+ background: #F8FAF5 !important;
94
+ border: 1px solid #C3D1A3 !important;
95
+ padding: 5px !important;
96
+ list-style: none !important;
97
+ }
98
+
99
+ .wpProQuiz_listItem {
100
+ position: relative !important;
101
+ border: 0 !important;
102
+ background-image: none !important;
103
+ }
104
+
105
+ .wpProQuiz_response {
106
+ background: #F8FAF5 !important;
107
+ border: 1px solid #C4C4C4 !important;
108
+ padding: 5px !important;
109
+ margin-bottom: 15px !important;
110
+ box-shadow: 1px 1px 2px #AAA !important;
111
+ }
112
+
113
+ .wpProQuiz_response span {
114
+ font-weight: bold !important;
115
+ }
116
+
117
+ .wpProQuiz_sort {
118
+ width: 25px !important;
119
+ }
120
+
121
+ .wpProQuiz_results h3 {
122
+ margin-bottom: 10px !important;
123
+ }
124
+
125
+ .wpProQuiz_sort_correct_answer {
126
+ font-weight: bold !important;
127
+ margin-right: 5px !important;
128
+ display: none !important;
129
+ }
130
+
131
+ .wpProQuiz_sortable, .wpProQuiz_sortStringItem {
132
+ padding: 5px !important;
133
+ border: 1px solid lightGrey !important;
134
+ box-shadow: 2px 2px 1px #EEE;
135
+ background-color: #F8FAF5 !important;
136
+ cursor: move;
137
+ }
138
+
139
+ .wpProQuiz_time_limit .time {
140
+ font-weight: bold !important;
141
+ margin-top: 5px !important;
142
+ margin-bottom: 5px !important;
143
+ }
144
+
145
+ .wpProQuiz_time_limit .wpProQuiz_progress {
146
+ height: 10px !important;
147
+ background-color: blue !important;
148
+ margin-bottom: 5px !important;
149
+ }
150
+
151
+ .wpProQuiz_time_limit_expired {
152
+ font-weight: bold !important;
153
+ font-size: 15px !important;
154
+ text-align: center !important;
155
+ }
156
+
157
+ .wpProQuiz_question_text {
158
+ margin-bottom: 10px !important;
159
+ }
160
+
161
+ .wpProQuiz_tipp > div {
162
+ padding: 10px !important;
163
+ background-color: #DDECFF !important;
164
+ border: 1px dotted #363636 !important;
165
+ border-radius: 10px !important;
166
+ position: absolute !important;
167
+ bottom: 5px !important;
168
+ left: 5px !important;
169
+ right: 5px !important;
170
+ box-shadow: 2px 2px 5px 0 #313131 !important;
171
+ z-index: 99999 !important;
172
+ }
173
+
174
+ .wpProQuiz_matrixSortString, .wpProQuiz_matrixSortString > h3 {
175
+ margin-bottom: 10px !important;
176
+ margin-top: 0 !important;
177
+ }
178
+
179
+ .wpProQuiz_matrixSortString {
180
+ background: #F8FAF5 !important;
181
+ border: 1px solid #C3D1A3 !important;
182
+ padding: 5px !important;
183
+ }
184
+
185
+ .wpProQuiz_sortStringList {
186
+ padding: 10px !important;
187
+ border: 0 !important;
188
+ }
189
+
190
+ .wpProQuiz_sortStringList > li {
191
+ float: left !important;
192
+ margin-left: 5px !important;
193
+ margin-right: 5px !important;
194
+ margin-bottom: 5px !important;
195
+ }
196
+
197
+ .wpProQuiz_sortStringItem {
198
+ margin: 0 !important;
199
+ background-image: none !important;
200
+ list-style: none !important;
201
+ }
202
+
203
+ .wpProQuiz_maxtrixSortCriterion {
204
+ padding: 5px !important;
205
+ }
206
+
207
+ .wpProQuiz_placehold {
208
+ background-color: #FFFFC2 !important;
209
+ list-style: none !important;
210
+ background-image: none !important;
211
+ padding: 5px !important;
212
+ height: 30px !important;
213
+ min-width: 50px !important;
214
+ margin: 0 !important;
215
+ }
216
+
217
+ .wpProQuiz_maxtrixSortText {
218
+ padding: 5px !important;
219
+ }
220
+
221
+ .wpProQuiz_mextrixTr > td {
222
+ border: 1px solid #D1D1D1 !important;
223
+ padding: 5px !important;
224
+ vertical-align: middle !important;
225
+ }
226
+
227
+ .wpProQuiz_points {
228
+ font-weight: bold !important;
229
+ text-align: center !important;
230
+ margin-bottom: 20px !important;
231
+ }
232
+
233
+ .wpProQuiz_cloze input[type="text"] {
234
+ background: transparent;
235
+ border: 0 !important;
236
+ border-bottom: 1px solid !important;
237
+ height: 18px !important;
238
+ margin: 0 !important;
239
+ padding: 0 4px 0 4px !important;
240
+ color: black !important;
241
+ border-radius: 0 !important;
242
+ box-shadow: 0 0 !important;
243
+ }
244
+
245
+ .wpProQuiz_cloze input:focus {
246
+ outline: none !important;
247
+ }
248
+
249
+ .wpProQuiz_questionListItem input, .wpProQuiz_questionListItem label {
250
+ margin: 0 !important;
251
+ font-weight: normal;
252
+ display: inline;
253
+ }
254
+
255
+ .wpProQuiz_questionListItem label {
256
+ float: none;
257
+ }
258
+
259
+ .wpProQuiz_questionListItem input {
260
+ float: none !important;
261
+ display: inline !important;
262
+ }
263
+
264
+ .wpProQuiz_resultsList {
265
+ border: 0 !important;
266
+ }
267
+
268
+ .wpProQuiz_resultsList > li {
269
+ background-image: none !important;
270
+ padding: 0 !important;
271
+ margin: 0 !important;
272
+ list-style-type: none !important;
273
+ border: 0 !important;
274
+ }
275
+
276
+ .wpProQuiz_lock, .wpProQuiz_prerequisite, .wpProQuiz_startOnlyRegisteredUser, .wpProQuiz_loadQuiz {
277
+ border: 1px dotted #FFC3C3 !important;
278
+ background-color: #FFF7F7 !important;
279
+ }
280
+
281
+ .wpProQuiz_lock p, .wpProQuiz_prerequisite p, .wpProQuiz_startOnlyRegisteredUser p, .wpProQuiz_loadQuiz p {
282
+ margin: 20px !important;
283
+ font-weight: bold !important;
284
+ }
285
+
286
+ .wpProQuiz_toplistTable {
287
+ width: 100% !important;
288
+ border: 1px solid #C3D1A3 !important;
289
+ border-collapse: collapse !important;
290
+ margin: 0 !important;
291
+ }
292
+
293
+ .wpProQuiz_toplistTable caption {
294
+ caption-side: top !important;
295
+ text-align: right !important;
296
+ padding-bottom: 2px !important;
297
+ color: gray !important;
298
+ margin: 0 !important;
299
+ font-size: 11px !important;
300
+ }
301
+
302
+ .wpProQuiz_toplistTable thead tr {
303
+ background: rgb(155, 187, 89) !important;
304
+ padding: 5px !important;
305
+ color: white !important;
306
+ font-weight: bold !important;
307
+ }
308
+
309
+ .wpProQuiz_toplistTable tbody td:FIRST-CHILD {
310
+ font-weight: bold !important;
311
+ }
312
+
313
+ .wpProQuiz_toplistTable td, .wpProQuiz_toplistTable th {
314
+ padding: 5px !important;
315
+ text-align: center !important;
316
+ border: 0 !important;
317
+ }
318
+
319
+ .wpProQuiz_toplistTable th {
320
+ background: #9BBB59 !important;
321
+ }
322
+
323
+ .wpProQuiz_toplistTrOdd {
324
+ background-color: #EBF1DE !important;
325
+ }
326
+
327
+ .wpProQuiz_addToplist {
328
+ margin-top: 10px !important;
329
+ background-color: #F5FAEA !important;
330
+ padding: 10px !important;
331
+ border: 1px solid #C3D1A3 !important;
332
+ }
333
+
334
+ .wpProQuiz_addToplistMessage {
335
+ border: 1px solid rgb(160, 160, 160) !important;
336
+ background-color: #FCFFB3 !important;
337
+ margin-bottom: 5px !important;
338
+ border-radius: 5px !important;
339
+ padding: 5px !important;
340
+ font-weight: bold !important;
341
+ color: dimGray !important;
342
+ }
343
+
344
+ .wpProQuiz_resultTable {
345
+ margin: 15px auto !important;
346
+ width: 400px !important;
347
+ border: 1px solid #C4C4C4 !important;
348
+ padding: 15px !important;
349
+ font-weight: bold !important;
350
+ }
351
+
352
+ .wpProQuiz_resultTable table {
353
+ width: 100% !important;
354
+ border-collapse: collapse !important;
355
+ margin: 0 !important;
356
+ border: 0 !important;
357
+ text-align: left !important;
358
+ }
359
+
360
+ .wpProQuiz_resultTable table td {
361
+ text-align: left !important;
362
+ }
363
+
364
+ .wpProQuiz_resultTable .alt {
365
+ background: inherit !important;
366
+ }
367
+
368
+ .wpProQuiz_resultName {
369
+ width: 100px !important;
370
+ border-right: 1px solid rgb(134, 134, 134) !important;
371
+ padding: 10px 0 !important;
372
+ border-bottom: 0 !important;
373
+ border-top: 0 !important;
374
+ border-left: 0 !important;
375
+ }
376
+
377
+ .wpProQuiz_resultValue {
378
+ padding: 0 !important;
379
+ border: 0 !important;
380
+ }
381
+
382
+ .wpProQuiz_resultValue div {
383
+ color: black !important;
384
+ text-align: right !important;
385
+ box-shadow: 1px 1px 3px 1px #C4C4C4 !important;
386
+ display: inline-block !important;
387
+ height: 18px !important;
388
+ zoom: 1 !important;
389
+ *display: inline !important;
390
+ margin-right: 3px !important;
391
+ vertical-align: middle !important;
392
+ }
393
+
394
+ .wpProQuiz_addBox label {
395
+ display: inline !important;
396
+ }
397
+
398
+ .wpProQuiz_addBox input[type="text"] {
399
+ margin: 0 !important;
400
+ }
401
+
402
+ .wpProQuiz_reviewQuestion {
403
+ max-height: 100px;
404
+ overflow: hidden;
405
+ border: 1px solid #C3D1A3;
406
+ background-color: #F8FAF5;
407
+ position: relative;
408
+ }
409
+
410
+ .wpProQuiz_box {
411
+ border: 1px solid #C3D1A3;
412
+ background-color: #F8FAF5;
413
+ }
414
+
415
+ .wpProQuiz_checkPage h3 {
416
+ margin: 10px 0 10px 0;
417
+ }
418
+
419
+ .wpProQuiz_reviewQuestion ol, .wpProQuiz_checkPage ol {
420
+ list-style-type: none !important;
421
+ margin: 0 !important;
422
+ padding: 5px 12px 0 5px !important;
423
+ zoom: 1 !important;
424
+ position: relative !important;
425
+ border: 0 !important;
426
+ }
427
+
428
+ .wpProQuiz_reviewQuestion ol:after {
429
+ content: ".";
430
+ display: block;
431
+ height: 0;
432
+ clear: both;
433
+ visibility: hidden;
434
+ }
435
+
436
+ .wpProQuiz_reviewQuestionTarget {
437
+ font-weight: bold;
438
+ border-color: #7DB1D3 !important;
439
+ box-shadow: 0 0 2px 1px #C4C4C4;
440
+ }
441
+
442
+ .wpProQuiz_reviewQuestion li, .wpProQuiz_checkPage li {
443
+ float: left !important;
444
+ margin: 0 5px 5px 0 !important;
445
+ border: 1px solid #CFCFCF;
446
+ padding: 5px 0 5px 0 !important;
447
+ width: 30px !important;
448
+ text-align: center !important;
449
+ background-color: white;
450
+ cursor: pointer !important;
451
+ list-style-type: none !important;
452
+ background-image: none !important;
453
+ }
454
+
455
+ .wpProQuiz_reviewQuestion div {
456
+ position: absolute;
457
+ right: 0;
458
+ background-color: #B8B8B8;
459
+ top: 0;
460
+ height: 20px;
461
+ width: 10px;
462
+ border: 0;
463
+ border-radius: 10px;
464
+ cursor: move;
465
+ }
466
+
467
+ .wpProQuiz_reviewLegend {
468
+ padding: 5px !important;
469
+ margin-bottom: 8px !important;
470
+ }
471
+
472
+ .wpProQuiz_reviewLegend ol {
473
+ list-style-type: none !important;
474
+ padding: 0 !important;
475
+ margin: 0 !important;
476
+ border: 0 !important;
477
+ }
478
+
479
+ .wpProQuiz_reviewLegend li {
480
+ float: left !important;
481
+ padding-right: 5px !important;
482
+ list-style-type: none !important;
483
+ margin: 0 !important;
484
+ border: 0 !important;
485
+ background-image: none !important;
486
+ }
487
+
488
+ .wpProQuiz_reviewColor {
489
+ height: 10px !important;
490
+ width: 10px !important;
491
+ display: inline-block !important;
492
+ margin-right: 2px !important;
493
+ }
494
+
495
+ .wpProQuiz_button2 {
496
+ border: 1px solid #DADADA !important;
497
+ background: whiteSmoke !important;
498
+ color: #303030 !important;
499
+ border-radius: 4px !important;
500
+ padding: 3px 5px !important;
501
+ box-shadow: 1px 1px 1px #A7A7A7 !important;
502
+ text-shadow: none !important;
503
+ filter: none !important;
504
+ margin: 0 !important;
505
+ font-weight: normal !important;
506
+ }
507
+
508
+ .wpProQuiz_button2:hover {
509
+ background: #EBEBEB !important;
510
+ }
511
+
512
+ .wpProQuiz_reviewDiv {
513
+ margin: 20px 0 20px 0 !important;
514
+ }
515
+
516
+ .wpProQuiz_header {
517
+ margin: 0 !important;
518
+ }
519
+
520
+ .wpProQuiz_catOverview {
521
+ margin-top: 10px;
522
+ margin-bottom: 20px;
523
+ }
524
+
525
+ .wpProQuiz_catOverview li {
526
+ list-style: none !important;
527
+ padding: 0 !important;
528
+ clear: left !important;
529
+ border-bottom: 1px dashed #aaa;
530
+ height: 1.05em !important;
531
+ margin: 10px 0 0 0 !important;
532
+ position: relative !important;
533
+ }
534
+
535
+ .wpProQuiz_catOverview span {
536
+ background: #fff !important;
537
+ padding: 0 3px 0 0 !important;
538
+ float: left !important;
539
+ position: absolute !important;
540
+ text-decoration: none !important;
541
+ }
542
+
543
+ span.wpProQuiz_catPercent {
544
+ font-weight: bold !important;
545
+ padding-left: 5px !important;
546
+ color: #000 !important;
547
+ right: 0 !important;
548
+ }
549
+
550
+ .wpProQuiz_forms {
551
+ margin: 20px 0 20px 0 !important;
552
+ }
553
+
554
+ .wpProQuiz_required {
555
+ color: #F00 !important;
556
+ font-weight: bold !important;
557
+ }
558
+
559
+ .wpProQuiz_invalidate {
560
+ border: 1px solid #FFCFCF !important;
561
+ background: #FFEBE8 !important;
562
+ padding: 4px !important;
563
+ margin: 4px 0 4px 0 !important;
564
+ display: none;
565
+ }
566
+
567
+ .wpProQuiz_forms table {
568
+ width: auto !important;
569
+ border-collapse: separate !important;
570
+ border-spacing: 2px !important;
571
+ border: 0;
572
+ text-align: left !important;
573
+ }
574
+
575
+ .wpProQuiz_forms table .alt {
576
+ background: inherit !important;
577
+ }
578
+
579
+ .wpProQuiz_forms table td {
580
+ text-align: left !important;
581
+ }
582
+
583
+ .wpProQuiz_forms td {
584
+ vertical-align: top !important;
585
+ padding: 0 0 8px 0 !important;
586
+ margin: 0 !important;
587
+ border: 0 !important;
588
+ background: none !important;
589
+ }
590
+
591
+ .wpProQuiz_forms input, .wpProQuiz_forms textarea, .wpProQuiz_forms label, .wpProQuiz_forms select {
592
+ margin: 0 !important;
593
+ float: none !important;
594
+ display: inline !important;
595
+ }
596
+
597
+ .wpProQuiz_forms select {
598
+ width: auto !important;
599
+ }
600
+
601
+ .wpProQuiz_resultForm {
602
+ display: none;
603
+ }
604
+
605
+ .wpProQuiz_quiz input[type="checkbox"] {
606
+ -webkit-appearance: checkbox;
607
+ }
608
+
609
+ .wpProQuiz_quiz input[type="radio"] {
610
+ -webkit-appearance: radio;
611
  }
css/wpProQuiz_front.min.css CHANGED
@@ -1 +1 @@
1
- .wpProQuiz_answerCorrect{background:#6db46d!important;font-weight:bold!important}.wpProQuiz_answerCorrect label{font-weight:bold!important}.wpProQuiz_answerIncorrect{background:#ff9191!important;font-weight:bold!important}.wpProQuiz_content{margin-top:10px!important;margin-bottom:10px!important}.wpProQuiz_content h2{margin-bottom:10px!important}*+html .wpProQuiz_button,*+html .wpProQuiz_button:hover{padding:3px 0!important}.wpProQuiz_button,.wpProQuiz_button:hover{margin:0!important;padding:5px 10px!important;background:#13455b!important;border-radius:11px!important;color:white!important;font-weight:bold!important;border:1px solid #13455b!important;box-shadow:1px 1px 1px #333!important;text-shadow:none!important;filter:none!important;float:none}.wpProQuiz_question_page{margin-bottom:10px!important}.wpProQuiz_question_page span{font-weight:bold!important}.wpProQuiz_questionListItem:last-child,.wpProQuiz_questionListItemLastChildIE{padding:3px!important;margin-bottom:0!important}.wpProQuiz_questionListItem{padding:3px!important;margin-bottom:5px!important;background-image:none!important;margin-left:0!important;list-style:none!important;border:0!important}.wpProQuiz_questionListItem>table{border-collapse:collapse!important;margin:0!important;padding:0!important;width:100%;border:none!important;text-align:left!important}.wpProQuiz_questionListItem>table .alt{background:inherit!important}.wpProQuiz_questionListItem>table td{text-align:left!important}.wpProQuiz_list,.wpProQuiz_listItem,.wpProQuiz_questionList,.wpProQuiz_sortStringList,.wpProQuiz_sortStringList,.wpProQuiz_maxtrixSortCriterion,.wpProQuiz_resultsList,.wpProQuiz_catOverview ol{list-style:none!important;padding:0!important;margin:0!important}.wpProQuiz_list{border:0!important}.wpProQuiz_questionList{margin-bottom:10px!important;background:#f8faf5!important;border:1px solid #c3d1a3!important;padding:5px!important;list-style:none!important}.wpProQuiz_listItem{position:relative!important;border:0!important;background-image:none!important}.wpProQuiz_response{background:#f8faf5!important;border:1px solid #c4c4c4!important;padding:5px!important;margin-bottom:15px!important;box-shadow:1px 1px 2px #AAA!important}.wpProQuiz_response span{font-weight:bold!important}.wpProQuiz_sort{width:25px!important}.wpProQuiz_results h3{margin-bottom:10px!important}.wpProQuiz_sort_correct_answer{font-weight:bold!important;margin-right:5px!important;display:none!important}.wpProQuiz_sortable,.wpProQuiz_sortStringItem{padding:5px!important;border:1px solid lightGrey!important;box-shadow:2px 2px 1px #EEE;background-color:#f8faf5!important;cursor:move}.wpProQuiz_time_limit .time{font-weight:bold!important;margin-top:5px!important;margin-bottom:5px!important}.wpProQuiz_time_limit .wpProQuiz_progress{height:10px!important;background-color:blue!important;margin-bottom:5px!important}.wpProQuiz_time_limit_expired{font-weight:bold!important;font-size:15px!important;text-align:center!important}.wpProQuiz_question_text{margin-bottom:10px!important}.wpProQuiz_tipp>div{padding:10px!important;background-color:#ddecff!important;border:1px dotted #363636!important;border-radius:10px!important;position:absolute!important;bottom:5px!important;left:5px!important;right:5px!important;box-shadow:2px 2px 5px 0 #313131!important;z-index:99999!important}.wpProQuiz_matrixSortString,.wpProQuiz_matrixSortString>h3{margin-bottom:10px!important;margin-top:0!important}.wpProQuiz_matrixSortString{background:#f8faf5!important;border:1px solid #c3d1a3!important;padding:5px!important}.wpProQuiz_sortStringList{padding:10px!important;border:0!important}.wpProQuiz_sortStringList>li{float:left!important;margin-left:5px!important;margin-right:5px!important;margin-bottom:5px!important}.wpProQuiz_sortStringItem{margin:0!important;background-image:none!important;list-style:none!important}.wpProQuiz_maxtrixSortCriterion{padding:5px!important}.wpProQuiz_placehold{background-color:#ffffc2!important;list-style:none!important;background-image:none!important;padding:5px!important;height:30px!important;min-width:50px!important;margin:0!important}.wpProQuiz_maxtrixSortText{padding:5px!important}.wpProQuiz_mextrixTr>td{border:1px solid #d1d1d1!important;padding:5px!important;vertical-align:middle!important}.wpProQuiz_points{font-weight:bold!important;text-align:center!important;margin-bottom:20px!important}.wpProQuiz_cloze input[type="text"]{background:transparent;border:0!important;border-bottom:1px solid!important;height:18px!important;margin:0!important;padding:0 4px 0 4px!important;color:black!important;border-radius:0!important;box-shadow:0 0!important}.wpProQuiz_cloze input:focus{outline:none!important}.wpProQuiz_questionListItem input,.wpProQuiz_questionListItem label{margin:0!important;font-weight:normal;display:inline}.wpProQuiz_questionListItem label{float:none}.wpProQuiz_questionListItem input{float:none!important;display:inline!important}.wpProQuiz_resultsList{border:0!important}.wpProQuiz_resultsList>li{background-image:none!important;padding:0!important;margin:0!important;list-style-type:none!important;border:0!important}.wpProQuiz_lock,.wpProQuiz_prerequisite,.wpProQuiz_startOnlyRegisteredUser,.wpProQuiz_loadQuiz{border:1px dotted #ffc3c3!important;background-color:#fff7f7!important}.wpProQuiz_lock p,.wpProQuiz_prerequisite p,.wpProQuiz_startOnlyRegisteredUser p,.wpProQuiz_loadQuiz p{margin:20px!important;font-weight:bold!important}.wpProQuiz_toplistTable{width:100%!important;border:1px solid #c3d1a3!important;border-collapse:collapse!important;margin:0!important}.wpProQuiz_toplistTable caption{caption-side:top!important;text-align:right!important;padding-bottom:2px!important;color:gray!important;margin:0!important;font-size:11px!important}.wpProQuiz_toplistTable thead tr{background:#9bbb59!important;padding:5px!important;color:white!important;font-weight:bold!important}.wpProQuiz_toplistTable tbody td:FIRST-CHILD{font-weight:bold!important}.wpProQuiz_toplistTable td,.wpProQuiz_toplistTable th{padding:5px!important;text-align:center!important;border:0!important}.wpProQuiz_toplistTable th{background:#9bbb59!important}.wpProQuiz_toplistTrOdd{background-color:#ebf1de!important}.wpProQuiz_addToplist{margin-top:10px!important;background-color:#f5faea!important;padding:10px!important;border:1px solid #c3d1a3!important}.wpProQuiz_addToplistMessage{border:1px solid #a0a0a0!important;background-color:#fcffb3!important;margin-bottom:5px!important;border-radius:5px!important;padding:5px!important;font-weight:bold!important;color:dimGray!important}.wpProQuiz_resultTable{margin:15px auto!important;width:400px!important;border:1px solid #c4c4c4!important;padding:15px!important;font-weight:bold!important}.wpProQuiz_resultTable table{width:100%!important;border-collapse:collapse!important;margin:0!important;border:0!important;text-align:left!important}.wpProQuiz_resultTable table td{text-align:left!important}.wpProQuiz_resultTable .alt{background:inherit!important}.wpProQuiz_resultName{width:100px!important;border-right:1px solid #868686!important;padding:10px 0!important;border-bottom:0!important;border-top:0!important;border-left:0!important}.wpProQuiz_resultValue{padding:0!important;border:0!important}.wpProQuiz_resultValue div{color:black!important;text-align:right!important;box-shadow:1px 1px 3px 1px #c4c4c4!important;display:inline-block!important;height:18px!important;zoom:1!important;*display:inline!important;margin-right:3px!important;vertical-align:middle!important}.wpProQuiz_addBox label{display:inline!important}.wpProQuiz_addBox input[type="text"]{margin:0!important}.wpProQuiz_reviewQuestion{max-height:100px;overflow:hidden;border:1px solid #c3d1a3;background-color:#f8faf5;position:relative}.wpProQuiz_box{border:1px solid #c3d1a3;background-color:#f8faf5}.wpProQuiz_checkPage h3{margin:10px 0 10px 0}.wpProQuiz_reviewQuestion ol,.wpProQuiz_checkPage ol{list-style-type:none!important;margin:0!important;padding:5px 12px 0 5px!important;zoom:1!important;position:relative!important;border:0!important}.wpProQuiz_reviewQuestion ol:after{content:".";display:block;height:0;clear:both;visibility:hidden}.wpProQuiz_reviewQuestionTarget{font-weight:bold;border-color:#7db1d3!important;box-shadow:0 0 2px 1px #c4c4c4}.wpProQuiz_reviewQuestion li,.wpProQuiz_checkPage li{float:left!important;margin:0 5px 5px 0!important;border:1px solid #cfcfcf;padding:5px 0 5px 0!important;width:30px!important;text-align:center!important;background-color:white;cursor:pointer!important;list-style-type:none!important;background-image:none!important}.wpProQuiz_reviewQuestion div{position:absolute;right:0;background-color:#b8b8b8;top:0;height:20px;width:10px;border:0;border-radius:10px;cursor:move}.wpProQuiz_reviewLegend{padding:5px!important;margin-bottom:8px!important}.wpProQuiz_reviewLegend ol{list-style-type:none!important;padding:0!important;margin:0!important;border:0!important}.wpProQuiz_reviewLegend li{float:left!important;padding-right:5px!important;list-style-type:none!important;margin:0!important;border:0!important;background-image:none!important}.wpProQuiz_reviewColor{height:10px!important;width:10px!important;display:inline-block!important;margin-right:2px!important}.wpProQuiz_button2{border:1px solid #dadada!important;background:whiteSmoke!important;color:#303030!important;border-radius:4px!important;padding:3px 5px!important;box-shadow:1px 1px 1px #a7a7a7!important;text-shadow:none!important;filter:none!important;margin:0!important;font-weight:normal!important}.wpProQuiz_button2:hover{background:#ebebeb!important}.wpProQuiz_reviewDiv{margin:20px 0 20px 0!important}.wpProQuiz_header{margin:0!important}.wpProQuiz_catOverview{margin-top:10px;margin-bottom:20px}.wpProQuiz_catOverview li{list-style:none!important;padding:0!important;clear:left!important;border-bottom:1px dashed #aaa;height:1.05em!important;margin:10px 0 0 0!important;position:relative!important}.wpProQuiz_catOverview span{background:#fff!important;padding:0 3px 0 0!important;float:left!important;position:absolute!important;text-decoration:none!important}span.wpProQuiz_catPercent{font-weight:bold!important;padding-left:5px!important;color:#000!important;right:0!important}.wpProQuiz_forms{margin:20px 0 20px 0!important}.wpProQuiz_required{color:#F00!important;font-weight:bold!important}.wpProQuiz_invalidate{border:1px solid #ffcfcf!important;background:#ffebe8!important;padding:4px!important;margin:4px 0 4px 0!important;display:none}.wpProQuiz_forms table{width:auto!important;border-collapse:separate!important;border-spacing:2px!important;border:0;text-align:left!important}.wpProQuiz_forms table .alt{background:inherit!important}.wpProQuiz_forms table td{text-align:left!important}.wpProQuiz_forms td{vertical-align:top!important;padding:0 0 8px 0!important;margin:0!important;border:0!important;background:none!important}.wpProQuiz_forms input,.wpProQuiz_forms textarea,.wpProQuiz_forms label,.wpProQuiz_forms select{margin:0!important;float:none!important;display:inline!important}.wpProQuiz_forms select{width:auto!important}.wpProQuiz_resultForm{display:none}.wpProQuiz_quiz input[type="checkbox"]{-webkit-appearance:checkbox}.wpProQuiz_quiz input[type="radio"]{-webkit-appearance:radio}
1
+ .wpProQuiz_content,.wpProQuiz_content h2{margin-bottom:10px!important}.wpProQuiz_answerCorrect,.wpProQuiz_answerCorrect label,.wpProQuiz_answerIncorrect,.wpProQuiz_question_page span{font-weight:700!important}.wpProQuiz_answerCorrect{background:#6DB46D!important}.wpProQuiz_answerIncorrect{background:#FF9191!important}.wpProQuiz_content{margin-top:10px!important}*+html .wpProQuiz_button,*+html .wpProQuiz_button:hover{padding:3px 0!important}.wpProQuiz_button,.wpProQuiz_button:hover{margin:0!important;padding:5px 10px!important;background:#13455B!important;border-radius:11px!important;color:#fff!important;font-weight:700!important;border:1px solid #13455B!important;box-shadow:1px 1px 1px #333!important;text-shadow:none!important;filter:none!important;float:none}.wpProQuiz_question_page{margin-bottom:10px!important}.wpProQuiz_questionListItem:last-child,.wpProQuiz_questionListItemLastChildIE{padding:3px!important;margin-bottom:0!important}.wpProQuiz_questionListItem{padding:3px!important;margin-bottom:5px!important;background-image:none!important;margin-left:0!important;list-style:none!important;border:0!important}.wpProQuiz_questionListItem>table{border-collapse:collapse!important;margin:0!important;padding:0!important;width:100%;border:none!important;text-align:left!important}.wpProQuiz_questionListItem>table .alt{background:inherit!important}.wpProQuiz_questionListItem>table td{text-align:left!important}.wpProQuiz_points,.wpProQuiz_time_limit_expired{font-weight:700!important;text-align:center!important}.wpProQuiz_catOverview ol,.wpProQuiz_list,.wpProQuiz_listItem,.wpProQuiz_maxtrixSortCriterion,.wpProQuiz_questionList,.wpProQuiz_resultsList,.wpProQuiz_sortStringList{list-style:none!important;padding:0!important;margin:0!important}.wpProQuiz_list{border:0!important}.wpProQuiz_questionList{margin-bottom:10px!important;background:#F8FAF5!important;border:1px solid #C3D1A3!important;padding:5px!important;list-style:none!important}.wpProQuiz_listItem{position:relative!important;border:0!important;background-image:none!important}.wpProQuiz_response{background:#F8FAF5!important;border:1px solid #C4C4C4!important;padding:5px!important;margin-bottom:15px!important;box-shadow:1px 1px 2px #AAA!important}.wpProQuiz_response span{font-weight:700!important}.wpProQuiz_sort{width:25px!important}.wpProQuiz_results h3{margin-bottom:10px!important}.wpProQuiz_sort_correct_answer{font-weight:700!important;margin-right:5px!important;display:none!important}.wpProQuiz_sortStringItem,.wpProQuiz_sortable{padding:5px!important;border:1px solid #d3d3d3!important;box-shadow:2px 2px 1px #EEE;background-color:#F8FAF5!important;cursor:move}.wpProQuiz_time_limit .time{font-weight:700!important;margin-top:5px!important;margin-bottom:5px!important}.wpProQuiz_time_limit .wpProQuiz_progress{height:10px!important;background-color:#00f!important;margin-bottom:5px!important}.wpProQuiz_time_limit_expired{font-size:15px!important}.wpProQuiz_question_text{margin-bottom:10px!important}.wpProQuiz_tipp>div{padding:10px!important;background-color:#DDECFF!important;border:1px dotted #363636!important;border-radius:10px!important;position:absolute!important;bottom:5px!important;left:5px!important;right:5px!important;box-shadow:2px 2px 5px 0 #313131!important;z-index:99999!important}.wpProQuiz_matrixSortString,.wpProQuiz_matrixSortString>h3{margin-bottom:10px!important;margin-top:0!important}.wpProQuiz_matrixSortString{background:#F8FAF5!important;border:1px solid #C3D1A3!important;padding:5px!important}.wpProQuiz_sortStringList{padding:10px!important;border:0!important}.wpProQuiz_maxtrixSortCriterion,.wpProQuiz_maxtrixSortText,.wpProQuiz_placehold{padding:5px!important}.wpProQuiz_sortStringList>li{float:left!important;margin-left:5px!important;margin-right:5px!important;margin-bottom:5px!important}.wpProQuiz_placehold,.wpProQuiz_sortStringItem{background-image:none!important;margin:0!important;list-style:none!important}.wpProQuiz_placehold{background-color:#FFFFC2!important;height:30px!important;min-width:50px!important}.wpProQuiz_mextrixTr>td{border:1px solid #D1D1D1!important;padding:5px!important;vertical-align:middle!important}.wpProQuiz_points{margin-bottom:20px!important}.wpProQuiz_cloze input[type=text]{background:0 0;border:0!important;border-bottom:1px solid!important;height:18px!important;margin:0!important;padding:0 4px!important;color:#000!important;border-radius:0!important;box-shadow:0 0!important}.wpProQuiz_cloze input:focus{outline:0!important}.wpProQuiz_questionListItem input,.wpProQuiz_questionListItem label{margin:0!important;font-weight:400;display:inline}.wpProQuiz_questionListItem label{float:none}.wpProQuiz_questionListItem input{float:none!important;display:inline!important}.wpProQuiz_resultsList{border:0!important}.wpProQuiz_resultsList>li{background-image:none!important;padding:0!important;margin:0!important;list-style-type:none!important;border:0!important}.wpProQuiz_loadQuiz,.wpProQuiz_lock,.wpProQuiz_prerequisite,.wpProQuiz_startOnlyRegisteredUser{border:1px dotted #FFC3C3!important;background-color:#FFF7F7!important}.wpProQuiz_loadQuiz p,.wpProQuiz_lock p,.wpProQuiz_prerequisite p,.wpProQuiz_startOnlyRegisteredUser p{margin:20px!important;font-weight:700!important}.wpProQuiz_toplistTable{width:100%!important;border:1px solid #C3D1A3!important;border-collapse:collapse!important;margin:0!important}.wpProQuiz_toplistTable caption{caption-side:top!important;text-align:right!important;padding-bottom:2px!important;color:gray!important;margin:0!important;font-size:11px!important}.wpProQuiz_toplistTable thead tr{background:#9bbb59!important;padding:5px!important;color:#fff!important;font-weight:700!important}.wpProQuiz_toplistTable tbody td:FIRST-CHILD{font-weight:700!important}.wpProQuiz_toplistTable td,.wpProQuiz_toplistTable th{padding:5px!important;text-align:center!important;border:0!important}.wpProQuiz_toplistTable th{background:#9BBB59!important}.wpProQuiz_toplistTrOdd{background-color:#EBF1DE!important}.wpProQuiz_addToplist{margin-top:10px!important;background-color:#F5FAEA!important;padding:10px!important;border:1px solid #C3D1A3!important}.wpProQuiz_addToplistMessage{border:1px solid #a0a0a0!important;background-color:#FCFFB3!important;margin-bottom:5px!important;border-radius:5px!important;padding:5px!important;font-weight:700!important;color:#696969!important}.wpProQuiz_resultTable{margin:15px auto!important;width:25pc!important;border:1px solid #C4C4C4!important;padding:15px!important;font-weight:700!important}.wpProQuiz_resultTable table{width:100%!important;border-collapse:collapse!important;margin:0!important;border:0!important;text-align:left!important}.wpProQuiz_resultTable table td{text-align:left!important}.wpProQuiz_resultTable .alt{background:inherit!important}.wpProQuiz_resultName{width:75pt!important;border-right:1px solid #868686!important;padding:10px 0!important;border-bottom:0!important;border-top:0!important;border-left:0!important}.wpProQuiz_resultValue{padding:0!important;border:0!important}.wpProQuiz_box,.wpProQuiz_reviewQuestion{border:1px solid #C3D1A3;background-color:#F8FAF5}.wpProQuiz_resultValue div{color:#000!important;text-align:right!important;box-shadow:1px 1px 3px 1px #C4C4C4!important;display:inline-block!important;height:18px!important;zoom:1!important;*display:inline!important;margin-right:3px!important;vertical-align:middle!important}.wpProQuiz_addBox label{display:inline!important}.wpProQuiz_addBox input[type=text]{margin:0!important}.wpProQuiz_reviewQuestion{max-height:75pt;overflow:hidden;position:relative}.wpProQuiz_checkPage h3{margin:10px 0}.wpProQuiz_checkPage ol,.wpProQuiz_reviewQuestion ol{list-style-type:none!important;margin:0!important;padding:5px 9pt 0 5px!important;zoom:1!important;position:relative!important;border:0!important}.wpProQuiz_reviewQuestion ol:after{content:".";display:block;height:0;clear:both;visibility:hidden}.wpProQuiz_reviewQuestionTarget{font-weight:700;border-color:#7DB1D3!important;box-shadow:0 0 2px 1px #C4C4C4}.wpProQuiz_checkPage li,.wpProQuiz_reviewQuestion li{float:left!important;margin:0 5px 5px 0!important;border:1px solid #CFCFCF;padding:5px 0!important;width:30px!important;text-align:center!important;background-color:#fff;cursor:pointer!important;list-style-type:none!important;background-image:none!important}.wpProQuiz_forms table,.wpProQuiz_forms table td{text-align:left!important}.wpProQuiz_reviewQuestion div{position:absolute;right:0;background-color:#B8B8B8;top:0;height:20px;width:10px;border:0;border-radius:10px;cursor:move}.wpProQuiz_reviewLegend{padding:5px!important;margin-bottom:8px!important}.wpProQuiz_reviewLegend li,.wpProQuiz_reviewLegend ol{list-style-type:none!important;margin:0!important;border:0!important}.wpProQuiz_reviewLegend ol{padding:0!important}.wpProQuiz_reviewLegend li{float:left!important;padding-right:5px!important;background-image:none!important}.wpProQuiz_reviewColor{height:10px!important;width:10px!important;display:inline-block!important;margin-right:2px!important}.wpProQuiz_button2{border:1px solid #DADADA!important;background:#f5f5f5!important;color:#303030!important;border-radius:4px!important;padding:3px 5px!important;box-shadow:1px 1px 1px #A7A7A7!important;text-shadow:none!important;filter:none!important;margin:0!important;font-weight:400!important}.wpProQuiz_button2:hover{background:#EBEBEB!important}.wpProQuiz_reviewDiv{margin:20px 0!important}.wpProQuiz_header{margin:0!important}.wpProQuiz_catOverview{margin-top:10px;margin-bottom:20px}.wpProQuiz_catOverview li{list-style:none!important;padding:0!important;clear:left!important;border-bottom:1px dashed #aaa;height:1.05em!important;margin:10px 0 0!important;position:relative!important}.wpProQuiz_catOverview span{background:#fff!important;padding:0 3px 0 0!important;float:left!important;position:absolute!important;text-decoration:none!important}span.wpProQuiz_catPercent{font-weight:700!important;padding-left:5px!important;color:#000!important;right:0!important}.wpProQuiz_forms{margin:20px 0!important}.wpProQuiz_required{color:red!important;font-weight:700!important}.wpProQuiz_invalidate{border:1px solid #FFCFCF!important;background:#FFEBE8!important;padding:4px!important;margin:4px 0!important;display:none}.wpProQuiz_forms table{width:auto!important;border-collapse:separate!important;border-spacing:2px!important;border:0}.wpProQuiz_forms table .alt{background:inherit!important}.wpProQuiz_forms td{vertical-align:top!important;padding:0 0 8px!important;margin:0!important;border:0!important;background:0 0!important}.wpProQuiz_forms input,.wpProQuiz_forms label,.wpProQuiz_forms select,.wpProQuiz_forms textarea{margin:0!important;float:none!important;display:inline!important}.wpProQuiz_forms select{width:auto!important}.wpProQuiz_resultForm{display:none}.wpProQuiz_quiz input[type=checkbox]{-webkit-appearance:checkbox}.wpProQuiz_quiz input[type=radio]{-webkit-appearance:radio}
gulpfile.js ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ var gulp = require('gulp');
2
+ var minifyCss = require('gulp-minify-css');
3
+ var ext = require('gulp-ext-replace');
4
+ var uglify = require('gulp-uglify');
5
+
6
+ var paths = {
7
+ css: [
8
+ 'css/wpProQuiz_front.css'
9
+ ],
10
+ js: [
11
+ 'js/wpProQuiz_admin.js',
12
+ 'js/wpProQuiz_front.js',
13
+ 'js/wpProQuiz_toplist.js'
14
+ ]
15
+ };
16
+
17
+ gulp.task('css-task', function() {
18
+ return gulp
19
+ .src(paths.css)
20
+ .pipe(ext('min.css'))
21
+ .pipe(minifyCss({
22
+ compatibility: 'ie7'
23
+ }))
24
+ .pipe(gulp.dest('css'));
25
+ });
26
+
27
+ gulp.task('js-task', function() {
28
+ return gulp
29
+ .src(paths.js)
30
+ .pipe(ext('min.js'))
31
+ .pipe(uglify())
32
+ .pipe(gulp.dest('js'));
33
+ });
34
+
35
+ gulp.task('watch', function() {
36
+ gulp.watch(paths.css, ['css-task']);
37
+ gulp.watch(paths.js, ['js-task']);
38
+ });
39
+
40
+ gulp.task('default', ['css-task', 'js-task']);
js/wpProQuiz_admin.js CHANGED
@@ -1,3336 +1,3393 @@
1
- jQuery(document).ready(function($) {
2
- /**
3
- * @memberOf $.fn
4
- */
5
- $.fn.wpProQuiz_preview = function() {
6
- var methods = {
7
- openPreview: function(obj) {
8
- window.open($(obj).attr('href'), 'wpProQuizPreview', 'width=900,height=900');
9
- }
10
- };
11
-
12
- var init = function() {
13
- $('.wpProQuiz_prview').click(function(e) {
14
- methods.openPreview(this);
15
- e.preventDefault();
16
- });
17
- };
18
-
19
- init();
20
- };
21
-
22
- $.fn.wpProQuiz_quizOverall = function() {
23
-
24
- //function isEmpty(text) {
25
- // text = $.trim(text);
26
- //
27
- // return (!text || 0 === text.length);
28
- //};
29
- //
30
- //function ajaxPost(func, data, success) {
31
- // var d = {
32
- // action: 'wp_pro_quiz_admin_ajax',
33
- // func: func,
34
- // data: data
35
- // };
36
- //
37
- // $.post(ajaxurl, d, success, 'json');
38
- //};
39
- //
40
- //var methods = {
41
- // changeExport: function(input) {
42
- // $input = $(input);
43
- // $export = $('.wpProQuiz_exportList');
44
- // $export2 = $('.wpProQuiz_setQuizCategoryList');
45
- // $ul = $export.find('ul').first();
46
- // $ul2 = $export2.find('ul').first();
47
- // $export.find('li').remove();
48
- // $export2.find('li').remove();
49
- //
50
- // $('input[name="exportItems"]').each(function() {
51
- // $this = $(this);
52
- //
53
- // if(this.checked) {
54
- // var text = $this.parent().parent().find('.wpProQuiz_quizName a:eq(0)').text();
55
- // $('<li>' + text + '</li>').appendTo($ul);
56
- // $('<li>' + text + '</li>').appendTo($ul2);
57
- // }
58
- // });
59
- // },
60
- //
61
- // startExport: function() {
62
- // $ele = $('input[name="exportItems"]:checked');
63
- //
64
- // if($ele.length < 1) {
65
- // alert(wpProQuizLocalize.no_selected_quiz);
66
- // return false;
67
- // }
68
- //
69
- // $hidden = $('#exportHidden');
70
- //
71
- // $hidden.html('');
72
- //
73
- // $('input[name="exportItems"]').each(function() {
74
- // $this = $(this);
75
- //
76
- // if(this.checked) {
77
- // $('<input type="hidden" value="'+ this.value +'" name="exportIds[]">').appendTo($hidden);
78
- // }
79
- // });
80
- //
81
- // return true;
82
- // },
83
- //
84
- // setCategoriesStart: function() {
85
- // $ele = $('input[name="exportItems"]:checked');
86
- //
87
- // if($ele.length < 1) {
88
- // alert(wpProQuizLocalize.no_selected_quiz);
89
- // return false;
90
- // }
91
- //
92
- // var ids = [];
93
- //
94
- // $('input[name="exportItems"]').each(function() {
95
- // $this = $(this);
96
- //
97
- // if(this.checked) {
98
- // ids.push(this.value);
99
- // }
100
- // });
101
- //
102
- // var categoryId = $('select[name="category"]').val();
103
- //
104
- // var data = {
105
- // categoryId: categoryId,
106
- // quizIds: ids
107
- // };
108
- //
109
- // $('#ajaxLoad').show();
110
- //
111
- // ajaxPost('setQuizMultipleCategories', data, function(json) {
112
- // location.reload();
113
- // });
114
- //
115
- // return true;
116
- // },
117
- //
118
- // addCategory: function() {
119
- // var name = $.trim($('input[name="categoryAdd"]').val());
120
- //
121
- // if(isEmpty(name)) {
122
- // return;
123
- // }
124
- //
125
- // var data = {
126
- // categoryName: name,
127
- // type: 'quiz'
128
- // };
129
- //
130
- // ajaxPost('categoryAdd', data, function(json) {
131
- // if(json.err) {
132
- // $('#categoryMsgBox').text(json.err).show('fast').delay(2000).hide('fast');
133
- // return;
134
- // }
135
- //
136
- // var $option = $(document.createElement('option'))
137
- // .val(json.categoryId)
138
- // .text(json.categoryName)
139
- // .attr('selected', 'selected');
140
- //
141
- // $('select[name="category"]').append($option).change();
142
- //
143
- // });
144
- // }
145
- //};
146
- //
147
- //var init = function() {
148
- // $('.wpProQuiz_delete').click(function(e) {
149
- // var b = confirm(wpProQuizLocalize.delete_msg);
150
- //
151
- // if(!b) {
152
- // e.preventDefault();
153
- // return false;
154
- // }
155
- //
156
- // return true;
157
- // });
158
- //
159
- // $('.wpProQuiz_import').click(function(e) {
160
- // e.preventDefault();
161
- // $('.wpProQuiz_importList').show('fast');
162
- //
163
- // $('.wpProQuiz_exportList, .wpProQuiz_setQuizCategoryList').hide();
164
- // $('.wpProQuiz_exportCheck').hide();
165
- //
166
- // });
167
- //
168
- // $('.wpProQuiz_export').click(function(e) {
169
- // e.preventDefault();
170
- //
171
- // $('.wpProQuiz_exportList').show('fast');
172
- // $('.wpProQuiz_exportCheck').show('fast');
173
- // $('.wpProQuiz_importList, .wpProQuiz_setQuizCategoryList').hide();
174
- // });
175
- //
176
- // $('.wpProQuiz_setQuizCategory').click(function(e) {
177
- // e.preventDefault();
178
- //
179
- // $('.wpProQuiz_setQuizCategoryList').show('fast');
180
- // $('.wpProQuiz_exportCheck').show('fast');
181
- // $('.wpProQuiz_importList, .wpProQuiz_exportList').hide();
182
- // });
183
- //
184
- // $('input[name="exportItems"]').change(function() {
185
- // methods.changeExport(this);
186
- // });
187
- //
188
- // $('input[name="exportItemsAll"]').change(function() {
189
- // var $input = $('input[name="exportItems"]');
190
- // if(this.checked)
191
- // $input.attr('checked', true);
192
- // else
193
- // $input.attr('checked', false);
194
- //
195
- // $input.change();
196
- // });
197
- //
198
- // $('#exportStart').click(function(e) {
199
- //
200
- // if(!methods.startExport())
201
- // e.preventDefault();
202
- // });
203
- //
204
- // $('#setCategoriesStart').click(function(e) {
205
- //
206
- // if(!methods.setCategoriesStart())
207
- // e.preventDefault();
208
- // });
209
- //
210
- // $('select[name="category"]').change(function() {
211
- // var $this = $(this);
212
- // var box = $('#categoryAddBox').hide();
213
- //
214
- //
215
- // if($this.val() == "-1") {
216
- // box.show();
217
- // }
218
- //
219
- // }).change();
220
- //
221
- // $('#categoryAddBtn').click(function() {
222
- // methods.addCategory();
223
- // });
224
- //};
225
- //
226
- //init();
227
- };
228
-
229
- // $.fn.wpProQuiz_questionEdit = function() {
230
- //
231
- // var setup = function() {
232
- // if($('input[name="answerType"][checked="checked"]').size() < 1) {
233
- // $('input[name="answerType"][value="single"]').attr({'checked': 'checked'});
234
- // }
235
- //
236
- // $('input[name="answerType"]:checked').click();
237
- // $('#wpProQuiz_correctSameText').change();
238
- // $('#wpProQuiz_tip').change();
239
- // $('input[name="pointsPerAnswer"]').change();
240
- // $('input[name="answerPointsActivated"]').change();
241
- // };
242
- //
243
- // var formListener = {
244
- // setup: function() {
245
- // $('input[name="answerType"]').click(function(e) {
246
- // $('.answer_felder').children().css('display', 'none');
247
- //
248
- // switch (this.value) {
249
- // case 'single':
250
- // formListener.displaySingle('radio');
251
- // break;
252
- // case 'multiple':
253
- // formListener.displaySingle('checkbox');
254
- // break;
255
- // case 'free_answer':
256
- // formListener.displayFreeAnswer();
257
- // break;
258
- // case 'sort_answer':
259
- // formListener.displaySortAnswer();
260
- // break;
261
- // case 'matrix_sort_answer':
262
- // formListener.displayMatrixSortAnswer();
263
- // break;
264
- // case 'cloze_answer':
265
- // formListener.displayClozeAnswer();
266
- // break;
267
- // }
268
- // });
269
- //
270
- // $('.addAnswer').click(function(e) {
271
- // formListener.addAnswer(this);
272
- // });
273
- //
274
- // $('.deleteAnswer').click(function(e) {
275
- // formListener.deleteAnswer(this);
276
- // });
277
- //
278
- // $('#saveQuestion').click(function(e) {
279
- // return validate();
280
- // });
281
- //
282
- // $('.sort_answer ul, .classic_answer ul, .matrix_sort_answer ul').sortable({
283
- // handle: '.wpProQuiz_move',
284
- // update: function(event, ui) {
285
- // formListener.setValueClassicAnswer();
286
- // }
287
- // });
288
- //
289
- // $('#wpProQuiz_correctSameText').change(function() {
290
- // if(this.checked)
291
- // $('#wpProQuiz_incorrectMassageBox').hide();
292
- // else
293
- // $('#wpProQuiz_incorrectMassageBox').show();
294
- // });
295
- //
296
- // $('#wpProQuiz_tip').change(function(e) {
297
- // if(this.checked)
298
- // $('#wpProQuiz_tipBox').show();
299
- // else
300
- // $('#wpProQuiz_tipBox').hide();
301
- // });
302
- //
303
- // $('input[name="pointsPerAnswer"]').change(function() {
304
- // if(this.checked) {
305
- // $('#wpProQuiz_showPointsBox').show();
306
- // } else {
307
- // $('#wpProQuiz_showPointsBox').hide();
308
- // }
309
- // });
310
- //
311
- // $('input[name="answerPointsActivated"]').change(function() {
312
- // if(this.checked) {
313
- // $('input[name="points"]').attr('disabled', 'disabled');
314
- // $('.wpProQuiz_answerPoints').show();
315
- // $('#wpProQuiz_showPointsBox').show();
316
- // } else {
317
- // $('input[name="points"]').removeAttr('disabled');
318
- // $('.wpProQuiz_answerPoints').hide();
319
- // $('#wpProQuiz_showPointsBox').hide();
320
- // }
321
- // });
322
- //
323
- // $('.wpProQuiz_demoBox a').mouseover(function() {
324
- // $(this).next().show();
325
- // }).mouseout(function() {
326
- // $(this).next().hide();
327
- // }).click(function() {
328
- // return false;
329
- // });
330
- //
331
- // },
332
- //
333
- // displaySingle: function(type) {
334
- // $('.classic_answer').find('input[name="answerJson[classic_answer][correct][]"]').each(function() {
335
- // $("<input type=" + type + " />").attr({ name: this.name, value: this.value, checked: this.checked}).insertBefore(this);
336
- // }).remove();
337
- //
338
- // $('.classic_answer').css('display', 'block');
339
- // },
340
- //
341
- // displayFreeAnswer: function() {
342
- // $('.free_answer').css('display', 'block');
343
- // },
344
- //
345
- // displaySortAnswer: function() {
346
- // $('.sort_answer').css('display', 'block');
347
- // },
348
- //
349
- // displayMatrixSortAnswer: function() {
350
- // $('.matrix_sort_answer').show();
351
- // },
352
- //
353
- // displayClozeAnswer: function() {
354
- // $('.cloze_answer').show();
355
- // },
356
- //
357
- // addAnswer: function(obj) {
358
- // $(obj).siblings('ul').children().first()
359
- // .clone().css('display', 'block')
360
- // .appendTo($(obj).siblings('ul'));
361
- //
362
- // formListener.setValueClassicAnswer();
363
- //
364
- // $('.deleteAnswer').click(function(e) {
365
- // formListener.deleteAnswer(this);
366
- // });
367
- // },
368
- //
369
- // deleteAnswer: function(obj) {
370
- // $(obj).parent().parent('li').remove();
371
- //
372
- // formListener.setValueClassicAnswer();
373
- // },
374
- //
375
- // setValueClassicAnswer: function() {
376
- //
377
- // $('.classic_answer ul, .matrix_sort_answer ul, .sort_answer ul').children().each(function() {
378
- // var index = $(this).index();
379
- //
380
- // $(this).find( 'input[name="answerJson[classic_answer][correct][]"], '
381
- // + 'input[name="answerJson[classic_answer][html][]"], '
382
- // + 'input[name="answerJson[answer_matrix_sort][answer_html][]"], '
383
- // + 'input[name="answerJson[answer_matrix_sort][sort_string_html][]"], '
384
- // + 'input[name="answerJson[answer_sort][html][]"]').val(index);
385
- // });
386
- // }
387
- // };
388
- //
389
- // var validate = function () {
390
- //
391
- // var question = '';
392
- // var type = $('input[name="answerType"]:checked');
393
- // var $points = $('input[name="points"]');
394
- //
395
- // if(tinymce.editors.question != undefined && !tinymce.editors.question.isHidden()) {
396
- // question = tinymce.editors.question.getContent();
397
- // } else {
398
- // question = $('textarea[name="question"]').val();
399
- // }
400
- //
401
- // if(isNaN($points.val()) || $points.val() < 1) {
402
- // alert(wpProQuizLocalize.no_nummber_points);
403
- // $points.focus();
404
- // return false;
405
- // }
406
- //
407
- // if(isEmpty(question)) {
408
- // alert(wpProQuizLocalize.no_question_msg);
409
- // return false;
410
- // }
411
- //
412
- //
413
- // if(type.val() == 'single' || type.val() == 'multiple') {
414
- // var findChecked = true;
415
- // var findPoints = true;
416
- // if($('input[name="answerJson[classic_answer][correct][]"]:checked').each(function() {
417
- // if($.trim($(this).parent().parent().parent().parent().find('textarea').val()) != '') {
418
- // findChecked &= true;
419
- // } else {
420
- // findChecked = false;
421
- // }
422
- // })
423
- // .size() < 1) {
424
- // alert(wpProQuizLocalize.no_correct_msg);
425
- // return false;
426
- // }
427
- //
428
- // if($('input[name="answerPointsActivated"]:checked').length) {
429
- // $('input[name="answerJson[classic_answer][points][]"]').each(function() {
430
- // if($.trim($(this).parentsUntil('table').find('textarea').val()) != '') {
431
- // var points = $.trim($(this).val());
432
- //
433
- // if(isNaN(points) || points == '' || points < 0) {
434
- // findPoints = false;
435
- // } else {
436
- // findPoints &= true;
437
- // }
438
- // }
439
- // });
440
- //
441
- // if(!findPoints) {
442
- // alert(wpProQuizLocalize.no_nummber_points_new);
443
- // return false;
444
- // }
445
- // }
446
- //
447
- // if(!findChecked) {
448
- // alert(wpProQuizLocalize.no_answer_msg);
449
- // return false;
450
- // }
451
- // } else if(type.val() == 'sort_answer') {
452
- // var findChecked = false;
453
- // var findPoints = true;
454
- //
455
- // $('textarea[name="answerJson[answer_sort][answer][]"]').each(function() {
456
- // if(isEmpty($(this).val())) {
457
- // findChecked |= false;
458
- // } else {
459
- // findChecked = true;
460
- // }
461
- // });
462
- //
463
- // if($('input[name="answerPointsActivated"]:checked').length) {
464
- // $('input[name="answerJson[answer_sort][points][]"]').each(function() {
465
- // if($.trim($(this).parentsUntil('table').find('textarea').val()) != '') {
466
- // var points = $.trim($(this).val());
467
- //
468
- // if(isNaN(points) || points == '' || points < 0) {
469
- // findPoints = false;
470
- // } else {
471
- // findPoints &= true;
472
- // }
473
- // }
474
- // });
475
- //
476
- // if(!findPoints) {
477
- // alert(wpProQuizLocalize.no_nummber_points_new);
478
- // return false;
479
- // }
480
- // }
481
- //
482
- // if(!findChecked) {
483
- // alert(wpProQuizLocalize.no_answer_msg);
484
- // return false;
485
- // }
486
- // } else if(type.val() == 'matrix_sort_answer') {
487
- // var findChecked = false;
488
- // var findPoints = true;
489
- // $('textarea[name="answerJson[answer_matrix_sort][answer][]"]').each(function() {
490
- // if(isEmpty($(this).val())) {
491
- // findChecked |= false;
492
- // } else {
493
- //
494
- // var $sortString = $(this).parent().parent().find('textarea[name="answerJson[answer_matrix_sort][sort_string][]"]');
495
- //
496
- // if(isEmpty($sortString.val())) {
497
- // findChecked |= false;
498
- // } else {
499
- // findChecked = true;
500
- // }
501
- // }
502
- // });
503
- //
504
- // if($('input[name="answerPointsActivated"]:checked').length) {
505
- // $('input[name="answerJson[answer_matrix_sort][points][]"]').each(function() {
506
- // if($.trim($(this).parentsUntil('table').find('textarea').val()) != '') {
507
- // var points = $.trim($(this).val());
508
- //
509
- // if(isNaN(points) || points == '' || points < 0) {
510
- // findPoints = false;
511
- // } else {
512
- // findPoints &= true;
513
- // }
514
- // }
515
- // });
516
- //
517
- // if(!findPoints) {
518
- // alert(wpProQuizLocalize.no_nummber_points_new);
519
- // return false;
520
- // }
521
- // }
522
- //
523
- // if(!findChecked) {
524
- // alert(wpProQuizLocalize.no_answer_msg);
525
- // return false;
526
- // }
527
- // } else if(type.val() == 'cloze_answer') {
528
- // var clozeText = '';
529
- //
530
- // if(tinymce.editors.cloze != undefined && !tinymce.editors.cloze.isHidden()) {
531
- // clozeText = tinymce.editors.cloze.getContent();
532
- // } else {
533
- // clozeText = $('textarea[name="answerJson[answer_cloze][text]"]').val();
534
- // }
535
- //
536
- // if(isEmpty(clozeText)) {
537
- // alert(wpProQuizLocalize.no_answer_msg);
538
- // return false;
539
- // }
540
- // } else if(type.val() == 'free_answer') {
541
- // var freeText = $('textarea[name="answerJson[free_answer][correct]"]').val();
542
- //
543
- // if(isEmpty(freeText)) {
544
- // alert(wpProQuizLocalize.no_answer_msg);
545
- // return false;
546
- // }
547
- // }
548
- //
549
- // return true;
550
- // };
551
- //
552
- // var isEmpty = function(str) {
553
- // str = $.trim(str);
554
- // return (!str || 0 === str.length);
555
- // };
556
- //
557
- // formListener.setup();
558
- // setup();
559
- // };
560
-
561
- //$.fn.wpProQuiz_questionOverall = function() {
562
- //
563
- // var methode = {
564
- // saveSort: function() {
565
- //
566
- // var data = {
567
- // action: 'wp_pro_quiz_update_sort',
568
- // sort: methode.parseSortArray()
569
- // };
570
- //
571
- // var location = window.location.pathname + window.location.search;
572
- // var url = location.replace('admin.php', 'admin-ajax.php') + '&action=save_sort';
573
- //
574
- // $.post(url, data, function(response) {
575
- // $('#sortMsg').show(400).delay(1000).hide(400);
576
- // });
577
- // },
578
- //
579
- // parseSortArray: function() {
580
- // var array = new Array();
581
- //
582
- // $('tbody tr').each(function() {
583
- // array.push(this.id.replace('wpProQuiz_questionId_', ''));
584
- // });
585
- //
586
- // return array;
587
- // },
588
- //
589
- // sortUpdate: function(e, ui) {
590
- // $('.wpProQuiz_questionOverall tbody').children().each(function() {
591
- // $t = $(this).children().first().text($(this).index() + 1);
592
- // });
593
- // },
594
- //
595
- // loadQuestionCopy: function() {
596
- // var list = $('#questionCopySelect');
597
- // var location = window.location.pathname + window.location.search;
598
- // var url = location.replace('admin.php', 'admin-ajax.php') + '&action=load_question';
599
- // var data = {
600
- // action: 'wp_pro_quiz_load_question',
601
- // excludeId: 1
602
- // };
603
- //
604
- // list.hide();
605
- // list.empty();
606
- //
607
- // $('#loadDataImg').show();
608
- //
609
- // $.post(
610
- // url,
611
- // data,
612
- // function(json) {
613
- // $.each(json, function(i, v) {
614
- //
615
- // var group = $(document.createElement('optgroup'));
616
- //
617
- // group.attr('label', v.name);
618
- //
619
- // $.each(v.question, function(qi, qv) {
620
- // $(document.createElement('option'))
621
- // .val(qv.id)
622
- // .text(qv.name)
623
- // .appendTo(group);
624
- //
625
- //
626
- // });
627
- //
628
- // list.append(group);
629
- //
630
- // });
631
- //
632
- // $('#loadDataImg').hide();
633
- // list.show();
634
- // },
635
- // 'json'
636
- // );
637
- // }
638
- // };
639
- //
640
- // var init = function() {
641
- // $('.wp-list-table tbody').sortable({ handle: '.wpProQuiz_move', update: methode.sortUpdate });
642
- //
643
- // $('.wpProQuiz_delete').click(function(e) {
644
- // var b = confirm(wpProQuizLocalize.delete_msg);
645
- //
646
- // if(!b) {
647
- // e.preventDefault();
648
- // return false;
649
- // }
650
- //
651
- // return true;
652
- // });
653
- //
654
- // $('#wpProQuiz_saveSort').click(function(e) {
655
- // e.preventDefault();
656
- // methode.saveSort();
657
- // });
658
- //
659
- // $('#wpProQuiz_questionCopy').click(function(e) {
660
- // var $this = $('.wpProQuiz_questionCopy');
661
- //
662
- // if($this.is(':visible')) {
663
- // $this.hide();
664
- // } else {
665
- // $this.show();
666
- // methode.loadQuestionCopy();
667
- // }
668
- //
669
- // e.preventDefault();
670
- // });
671
- // };
672
- //
673
- // init();
674
- //};
675
-
676
- $.fn.wpProQuiz_quizEdit = function() {
677
-
678
- function ajaxPost(func, data, success) {
679
- var d = {
680
- action: 'wp_pro_quiz_admin_ajax',
681
- func: func,
682
- data: data
683
- };
684
-
685
- $.post(ajaxurl, d, success, 'json');
686
- };
687
-
688
- var methode = {
689
- addCategory: function() {
690
- var name = $.trim($('input[name="categoryAdd"]').val());
691
-
692
- if(isEmpty(name)) {
693
- return;
694
- }
695
-
696
- var data = {
697
- categoryName: name,
698
- type: 'quiz'
699
- };
700
-
701
- ajaxPost('categoryAdd', data, function(json) {
702
- if(json.err) {
703
- $('#categoryMsgBox').text(json.err).show('fast').delay(2000).hide('fast');
704
- return;
705
- }
706
-
707
- var $option = $(document.createElement('option'))
708
- .val(json.categoryId)
709
- .text(json.categoryName)
710
- .attr('selected', 'selected');
711
-
712
- $('select[name="category"]').append($option).change();
713
-
714
- });
715
- },
716
-
717
- addResult: function() {
718
- $('#resultList').children().each(function() {
719
- if($(this).css('display') == 'none') {
720
- //TODO rework
721
- var $this = $(this);
722
- var $text = $this.find('textarea[name="resultTextGrade[text][]"]');
723
- var id = $text.attr('id');
724
- var hidden = true;
725
-
726
- $this.find('input[name="resultTextGrade[prozent][]"]').val('0');
727
- $this.find('input[name="resultTextGrade[activ][]"]').val('1').keyup();
728
-
729
- if(tinymce.editors[id] != undefined && !tinymce.editors[id].isHidden()) {
730
- hidden = false;
731
- }
732
-
733
- if(switchEditors != undefined && !hidden) {
734
- switchEditors.go(id, 'toggle');
735
- switchEditors.go(id, 'toggle');
736
- }
737
-
738
- if(tinymce.editors[id] != undefined) {
739
- tinymce.editors[id].setContent('');
740
- } else {
741
- $text.val('');
742
- }
743
-
744
- if(tinymce.editors[id] != undefined && !hidden) {
745
- tinyMCE.execCommand('mceRemoveControl', false, id);
746
- }
747
-
748
- $this.parent().children(':visible').last().after($this);
749
-
750
- if(tinymce.editors[id] != undefined && !hidden) {
751
- tinyMCE.execCommand('mceAddControl', false, id);
752
- }
753
-
754
- $(this).show();
755
-
756
- if(switchEditors != undefined && !hidden) {
757
- switchEditors.go(id, 'toggle');
758
- }
759
-
760
-
761
- return false;
762
- }
763
- });
764
- },
765
-
766
- deleteResult: function(e) {
767
- $(e).parent().parent().hide();
768
- $(e).siblings('input[name="resultTextGrade[activ][]"]').val('0');
769
- },
770
-
771
- changeResult: function(e) {
772
- var $this = $(e);
773
-
774
- if(methode.validResultInput($this.val())) {
775
- $this.siblings('.resultProzent').text($this.val());
776
- $this.removeAttr('style');
777
- return true;
778
- }
779
-
780
- $this.css('background-color', '#FF9696');
781
-
782
- return false;
783
- },
784
-
785
- validResultInput: function(input) {
786
-
787
- if(isEmpty(input))
788
- return false;
789
-
790
- input = input.replace(/\,/, '.');
791
-
792
- if(!isNaN(input) && Number(input) <= 100 && Number(input) >= 0) {
793
- if(input.match(/\./) != null)
794
- return input.split('.')[1].length < 3;
795
-
796
- return true;
797
- }
798
-
799
- return false;
800
- },
801
-
802
- validInput: function() {
803
- if(isEmpty($('#wpProQuiz_title').val())) {
804
- alert(wpProQuizLocalize.no_title_msg);
805
- return false;
806
- }
807
-
808
- var text = '';
809
-
810
- if(tinymce.editors.text != undefined && !tinymce.editors.text.isHidden()) {
811
- text = tinymce.editors.text.getContent();
812
- } else {
813
- text = $('textarea[name="text"]').val();
814
- }
815
-
816
- if(isEmpty(text)) {
817
- alert(wpProQuizLocalize.no_quiz_start_msg);
818
- return false;
819
- }
820
-
821
- if($('#wpProQuiz_resultGradeEnabled:checked').length) {
822
- var rCheck = true;
823
-
824
- $('#resultList').children().each(function() {
825
- if($(this).is(':visible')) {
826
- if(!methode.validResultInput($(this).find('input[name="resultTextGrade[prozent][]"]').val())) {
827
- rCheck = false;
828
- return false;
829
- }
830
- }
831
- });
832
-
833
- if(!rCheck) {
834
- alert(wpProQuizLocalize.fail_grade_result);
835
- return false;
836
- }
837
- }
838
-
839
- return true;
840
- },
841
-
842
- resetLock: function() {
843
- var location = window.location.pathname + window.location.search;
844
- var url = location.replace('admin.php', 'admin-ajax.php');
845
- url = url.replace('action=edit', 'action=reset_lock');
846
-
847
- $.post(url, {
848
- action: 'wp_pro_quiz_reset_lock'
849
- }, function(data) {
850
- $('#resetLockMsg').show('fast').delay(2000).hide('fast');
851
- });
852
- },
853
-
854
- generateFormIds: function() {
855
- var index = 0;
856
-
857
- $('#form_table tbody > tr').each(function() {
858
- $(this).find('[name^="form[]"]').each(function() {
859
- var newname = $(this).attr('name').substr(6);
860
- $(this).attr('name', 'form[' + index + ']' + newname);
861
- });
862
-
863
- ++index;
864
- });
865
- },
866
-
867
- updateFormIds: function() {
868
- var index = -1;
869
- var selected = $('.emailFormVariables option:selected').val();
870
- var $formVariables = $('.formVariables').empty();
871
- var $emailFormVariables = $('.emailFormVariables').empty().append('<option value="-1"></option>');
872
-
873
- if($('.emailFormVariables').data('default') > -1) {
874
- selected = $('.emailFormVariables').data('default');
875
- $('.emailFormVariables').data('default', -1);
876
- }
877
-
878
- $('#form_table tbody > tr').each(function() {
879
- $(this).children().first().text(index);
880
- var fieldName = $(this).find('.formFieldName').val();
881
- var type = $(this).find('[name="form[][type]"] option:selected');
882
- var name = $(this).find('[name="form[][fieldname]"]').val();
883
-
884
- //is deleted?
885
- if($(this).find('input[name="form[][form_delete]"]').val() == 1)
886
- return;
887
-
888
- if(index >= 0 && !isEmpty(fieldName))
889
- $formVariables.append($('<li><span>$form{' + index + '}</span> - ' + fieldName + '</li>'));
890
-
891
- if(type.val() == 4)
892
- $emailFormVariables.append($('<option value="' + index + '">' + name + '</option>'))
893
-
894
- index++;
895
- });
896
-
897
- $('.emailFormVariables option[value="' + selected + '"]').prop('selected', true);
898
- }
899
-
900
- };
901
-
902
- var isEmpty = function(str) {
903
- str = $.trim(str);
904
- return (!str || 0 === str.length);
905
- };
906
-
907
- var init = function() {
908
- $('#statistics_on').change(function() {
909
- if(this.checked) {
910
- $('#statistics_ip_lock_tr').show();
911
- } else {
912
- $('#statistics_ip_lock_tr').hide();
913
- }
914
- });
915
-
916
- $('.addResult').click(function() {
917
- methode.addResult();
918
- });
919
-
920
- $('.deleteResult').click(function (e) {
921
- methode.deleteResult(this);
922
- });
923
-
924
- $('input[name="resultTextGrade[prozent][]"]').keyup(function(event) {
925
- methode.changeResult(this);
926
- }).keydown(function(event) {
927
- if(event.which == 13) {
928
- event.preventDefault();
929
- }
930
- });
931
-
932
- $('#wpProQuiz_resultGradeEnabled').change(function() {
933
- if(this.checked) {
934
- $('#resultGrade').show();
935
- $('#resultNormal').hide();
936
- } else {
937
- $('#resultGrade').hide();
938
- $('#resultNormal').show();
939
- }
940
- });
941
-
942
- $('#wpProQuiz_save').click(function(e) {
943
- if(!methode.validInput())
944
- e.preventDefault();
945
- else
946
- methode.generateFormIds();
947
-
948
- $('select[name="prerequisiteList[]"] option').attr('selected', 'selected');
949
- });
950
-
951
- $('input[name="template"]').click(function(e) {
952
- if($('select[name="templateSaveList"]').val() == '0') {
953
- if(isEmpty($('input[name="templateName"]').val())) {
954
- alert(wpProQuizLocalize.temploate_no_name);
955
-
956
- e.preventDefault();
957
- return false;
958
- }
959
- }
960
-
961
- methode.generateFormIds();
962
- $('select[name="prerequisiteList[]"] option').attr('selected', 'selected');
963
- });
964
-
965
- $('select[name="templateSaveList"]').change(function() {
966
- var $templateName = $('input[name="templateName"]');
967
-
968
- if($(this).val() == '0') {
969
- $templateName.show();
970
- } else {
971
- $templateName.hide();
972
- }
973
- }).change();
974
-
975
- $('input[name="quizRunOnce"]').change(function(e) {
976
- if(this.checked) {
977
- $('#wpProQuiz_quiz_run_once_type').show();
978
- $('input[name="quizRunOnceType"]:checked').change();
979
- } else {
980
- $('#wpProQuiz_quiz_run_once_type').hide();
981
- }
982
- });
983
-
984
- $('input[name="quizRunOnceType"]').change(function(e) {
985
- if(this.checked && (this.value == "1" || this.value == "3")) {
986
- $('#wpProQuiz_quiz_run_once_cookie').show();
987
- } else {
988
- $('#wpProQuiz_quiz_run_once_cookie').hide();
989
- }
990
- });
991
-
992
- $('input[name="resetQuizLock"]').click(function(e) {
993
- methode.resetLock();
994
-
995
- return false;
996
- });
997
-
998
- $('.wpProQuiz_demoBox a').mouseover(function(e) {
999
- var $this = $(this);
1000
- var d = $('#poststuff').width();
1001
- var img = $this.siblings().outerWidth(true);
1002
-
1003
- if(e.pageX + img > d) {
1004
- //var v = d + (e.pageX - (e.pageX + img + 30));
1005
- var v = jQuery(document).width() - $this.parent().offset().left - img - 30;
1006
- $(this).next().css('left', v + "px");
1007
- }
1008
-
1009
- $(this).next().show();
1010
-
1011
- }).mouseout(function() {
1012
- $(this).next().hide();
1013
- }).click(function() {
1014
- return false;
1015
- });
1016
-
1017
- $('input[name="showMaxQuestion"]').change(function() {
1018
- if(this.checked) {
1019
- // $('input[name="statisticsOn"]').removeAttr('checked').attr('disabled', 'disabled').change();
1020
- $('#wpProQuiz_showMaxBox').show();
1021
- } else {
1022
- // $('input[name="statisticsOn"]').removeAttr('disabled');
1023
- $('#wpProQuiz_showMaxBox').hide();
1024
- }
1025
- });
1026
-
1027
- $('#btnPrerequisiteAdd').click(function() {
1028
- $('select[name="quizList"] option:selected').removeAttr('selected').appendTo('select[name="prerequisiteList[]"]');
1029
- });
1030
-
1031
- $('#btnPrerequisiteDelete').click(function() {
1032
- $('select[name="prerequisiteList[]"] option:selected').removeAttr('selected').appendTo('select[name="quizList"]');
1033
- });
1034
-
1035
- $('input[name="prerequisite"]').change(function() {
1036
- if(this.checked)
1037
- $('#prerequisiteBox').show();
1038
- else
1039
- $('#prerequisiteBox').hide();
1040
-
1041
-
1042
- }).change();
1043
-
1044
- $('input[name="toplistDataAddMultiple"]').change(function() {
1045
- if(this.checked)
1046
- $('#toplistDataAddBlockBox').show();
1047
- else
1048
- $('#toplistDataAddBlockBox').hide();
1049
-
1050
- }).change();
1051
-
1052
- $('input[name="toplistActivated"]').change(function() {
1053
- if(this.checked)
1054
- $('#toplistBox > tr:gt(0)').show();
1055
- else
1056
- $('#toplistBox > tr:gt(0)').hide();
1057
-
1058
- }).change();
1059
-
1060
- $('input[name="showReviewQuestion"]').change(function() {
1061
- if(this.checked) {
1062
- $('.wpProQuiz_reviewQuestionOptions').show();
1063
- } else {
1064
- $('.wpProQuiz_reviewQuestionOptions').hide();
1065
- }
1066
- }).change();
1067
-
1068
- $('#statistics_on').change();
1069
- $('#wpProQuiz_resultGradeEnabled').change();
1070
- $('input[name="quizRunOnce"]').change();
1071
- $('input[name="quizRunOnceType"]:checked').change();
1072
- $('input[name="showMaxQuestion"]').change();
1073
-
1074
- $('#form_add').click(function() {
1075
- $('#form_table tbody > tr:eq(0)').clone(true).appendTo('#form_table tbody').show();
1076
- methode.updateFormIds();
1077
- });
1078
-
1079
- $('input[name="form_delete"]').click(function() {
1080
- var con = $(this).parents('tr');
1081
-
1082
- if(con.find('input[name="form[][form_id]"]').val() != "0") {
1083
- con.find('input[name="form[][form_delete]"]').val(1);
1084
- con.hide();
1085
- } else {
1086
- con.remove();
1087
- }
1088
-
1089
- methode.updateFormIds();
1090
- });
1091
-
1092
- $('#form_table tbody').sortable({ handle: '.form_move', update: methode.updateFormIds });
1093
- $('.form_move').click(function() {
1094
- return false;
1095
- });
1096
-
1097
- $('select[name="form[][type]"]').change(function() {
1098
- switch (Number($(this).val())) {
1099
- case 7:
1100
- case 8:
1101
- $(this).siblings('.editDropDown').show();
1102
- break;
1103
- default:
1104
- $(this).siblings('.editDropDown, .dropDownEditBox').hide();
1105
- break;
1106
- }
1107
-
1108
- }).change();
1109
-
1110
- $('.editDropDown').click(function() {
1111
- $('.dropDownEditBox').not(
1112
- $(this).siblings('.dropDownEditBox').toggle())
1113
- .hide();
1114
-
1115
- return false;
1116
- });
1117
-
1118
- $('.dropDownEditBox input').click(function() {
1119
- $(this).parent().hide();
1120
- });
1121
-
1122
- $('.formFieldName, select[name="form[][type]"]').change(function() {
1123
- methode.updateFormIds();
1124
- });
1125
-
1126
- $('select[name="category"]').change(function() {
1127
- var $this = $(this);
1128
- var box = $('#categoryAddBox').hide();
1129
-
1130
-
1131
- if($this.val() == "-1") {
1132
- box.show();
1133
- }
1134
-
1135
- }).change();
1136
-
1137
- $('#categoryAddBtn').click(function() {
1138
- methode.addCategory();
1139
- });
1140
-
1141
- $('input[name="emailNotification"]').change(function() {
1142
- var $tr = $('#adminEmailSettings tr:gt(0)');
1143
-
1144
- if($('input[name="emailNotification"]:checked').val() > 0) {
1145
- $tr.show();
1146
- } else {
1147
- $tr.hide();
1148
- }
1149
- }).change();
1150
-
1151
- $('input[name="userEmailNotification"]').change(function() {
1152
- var $tr = $('#userEmailSettings tr:gt(0)');
1153
-
1154
- if($('input[name="userEmailNotification"]:checked').val() > 0) {
1155
- $tr.show();
1156
- } else {
1157
- $tr.hide();
1158
- }
1159
- }).change();
1160
-
1161
- methode.updateFormIds();
1162
-
1163
- $('input[name="email[html]"]').change(function() {
1164
- if(switchEditors == undefined)
1165
- return false;
1166
-
1167
- if(this.checked) {
1168
- switchEditors.go('adminEmailEditor', 'tmce');
1169
- } else {
1170
- switchEditors.go('adminEmailEditor', 'html');
1171
- }
1172
-
1173
- }).change();
1174
-
1175
- $('input[name="userEmail[html]"]').change(function() {
1176
- if(switchEditors == undefined)
1177
- return false;
1178
-
1179
- if(this.checked) {
1180
- switchEditors.go('userEmailEditor', 'tmce');
1181
- } else {
1182
- switchEditors.go('userEmailEditor', 'html');
1183
- }
1184
-
1185
- }).change();
1186
- };
1187
-
1188
- init();
1189
- };
1190
-
1191
- $.fn.wpProQuiz_statistics = function() {
1192
- var currectTab = 'wpProQuiz_typeAnonymeUser';
1193
- var changePageNav = true;
1194
-
1195
- var methode = {
1196
- loadStatistics: function(userId) {
1197
- var location = window.location.pathname + window.location.search;
1198
- var url = location.replace('admin.php', 'admin-ajax.php') + '&action=load_statistics';
1199
- var data = {
1200
- action: 'wp_pro_quiz_load_statistics',
1201
- userId: userId
1202
- };
1203
-
1204
- $('#wpProQuiz_loadData').show();
1205
- $('#wpProQuiz_statistics_content, #wpProQuiz_statistics_overview').hide();
1206
-
1207
- $.post(
1208
- url,
1209
- data,
1210
- methode.setStatistics,
1211
- 'json'
1212
- );
1213
- },
1214
-
1215
- setStatistics: function(json) {
1216
- var $table = $('.wpProQuiz_statistics_table');
1217
- var $tbody = $table.find('tbody');
1218
-
1219
- if(currectTab == 'wpProQuiz_typeOverview') {
1220
- return;
1221
- }
1222
-
1223
- var setItem = function(i, j, r) {
1224
- i.find('.wpProQuiz_cCorrect').text(j.cCorrect + ' (' + j.pCorrect + '%)');
1225
- i.find('.wpProQuiz_cIncorrect').text(j.cIncorrect + ' (' + j.pIncorrect + '%)');
1226
- i.find('.wpProQuiz_cTip').text(j.cTip);
1227