@pageboard/html 0.14.19 → 0.14.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/elements/accordion.js +1 -1
- package/elements/fieldsets.js +1 -1
- package/elements/form.js +2 -2
- package/elements/grid.js +1 -1
- package/elements/image.js +1 -1
- package/elements/input-file.js +2 -2
- package/elements/input-property.js +12 -13
- package/elements/inputs.js +5 -5
- package/elements/layout.js +1 -1
- package/elements/link.js +2 -2
- package/elements/menu.js +2 -2
- package/elements/navigation.js +1 -1
- package/elements/page.js +1 -1
- package/elements/paragraph.js +2 -2
- package/elements/query-tags.js +1 -1
- package/elements/tab.js +1 -1
- package/elements/table.js +1 -1
- package/elements/template.js +1 -1
- package/package.json +3 -8
- package/ui/card.css +3 -3
- package/ui/components/accordion.css +241 -0
- package/ui/components/accordion.js +613 -0
- package/ui/components/ad.css +275 -0
- package/ui/components/api.js +1167 -0
- package/ui/components/breadcrumb.css +122 -0
- package/ui/components/button.css +3525 -0
- package/ui/components/card.css +939 -0
- package/ui/components/checkbox.css +604 -0
- package/ui/components/checkbox.js +831 -0
- package/ui/components/colorize.js +274 -0
- package/ui/components/comment.css +268 -0
- package/ui/components/container.css +149 -0
- package/ui/components/dimmer.css +224 -0
- package/ui/components/dimmer.js +733 -0
- package/ui/components/divider.css +253 -0
- package/ui/components/dropdown.css +1448 -0
- package/ui/components/dropdown.js +3955 -0
- package/ui/components/embed.css +160 -0
- package/ui/components/embed.js +706 -0
- package/ui/components/feed.css +281 -0
- package/ui/components/flag.css +1035 -0
- package/ui/components/form.css +1011 -0
- package/ui/components/form.js +1706 -0
- package/ui/components/grid.css +1941 -0
- package/ui/components/header.css +719 -0
- package/ui/components/icon.css +4777 -0
- package/ui/components/image.css +310 -0
- package/ui/components/input.css +469 -0
- package/ui/components/item.css +464 -0
- package/ui/components/label.css +1281 -0
- package/ui/components/list.css +943 -0
- package/ui/components/loader.css +339 -0
- package/ui/components/menu.css +1940 -0
- package/ui/components/message.css +468 -0
- package/ui/components/modal.css +617 -0
- package/ui/components/modal.js +1034 -0
- package/ui/components/nag.css +145 -0
- package/ui/components/nag.js +507 -0
- package/ui/components/placeholder.css +229 -0
- package/ui/components/popup.css +640 -0
- package/ui/components/popup.js +1532 -0
- package/ui/components/progress.css +502 -0
- package/ui/components/progress.js +931 -0
- package/ui/components/rail.css +152 -0
- package/ui/components/rating.css +257 -0
- package/ui/components/rating.js +508 -0
- package/ui/components/reset.css +476 -0
- package/ui/components/reveal.css +260 -0
- package/ui/components/search.css +431 -0
- package/ui/components/search.js +1505 -0
- package/ui/components/segment.css +824 -0
- package/ui/components/shape.css +143 -0
- package/ui/components/shape.js +921 -0
- package/ui/components/sidebar.css +537 -0
- package/ui/components/sidebar.js +1033 -0
- package/ui/components/site.css +184 -0
- package/ui/components/site.js +487 -0
- package/ui/components/state.js +708 -0
- package/ui/components/statistic.css +534 -0
- package/ui/components/step.css +566 -0
- package/ui/components/sticky.css +73 -0
- package/ui/components/sticky.js +959 -0
- package/ui/components/tab.css +89 -0
- package/ui/components/tab.js +952 -0
- package/ui/components/table.css +1108 -0
- package/ui/components/transition.css +1792 -0
- package/ui/components/transition.js +1095 -0
- package/ui/components/video.css +121 -0
- package/ui/components/video.js +532 -0
- package/ui/components/visibility.js +1311 -0
- package/ui/components/visit.js +517 -0
- package/ui/item.css +2 -2
- package/ui/layout.css +1 -1
- package/ui/themes/default/assets/fonts/brand-icons.eot +0 -0
- package/ui/themes/default/assets/fonts/brand-icons.svg +1008 -0
- package/ui/themes/default/assets/fonts/brand-icons.ttf +0 -0
- package/ui/themes/default/assets/fonts/brand-icons.woff +0 -0
- package/ui/themes/default/assets/fonts/brand-icons.woff2 +0 -0
- package/ui/themes/default/assets/fonts/icons.eot +0 -0
- package/ui/themes/default/assets/fonts/icons.otf +0 -0
- package/ui/themes/default/assets/fonts/icons.svg +1518 -0
- package/ui/themes/default/assets/fonts/icons.ttf +0 -0
- package/ui/themes/default/assets/fonts/icons.woff +0 -0
- package/ui/themes/default/assets/fonts/icons.woff2 +0 -0
- package/ui/themes/default/assets/fonts/outline-icons.eot +0 -0
- package/ui/themes/default/assets/fonts/outline-icons.svg +366 -0
- package/ui/themes/default/assets/fonts/outline-icons.ttf +0 -0
- package/ui/themes/default/assets/fonts/outline-icons.woff +0 -0
- package/ui/themes/default/assets/fonts/outline-icons.woff2 +0 -0
- package/ui/themes/default/assets/images/flags.png +0 -0
|
@@ -0,0 +1,517 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* # Semantic UI 2.0.0 - Visit
|
|
3
|
+
* http://github.com/semantic-org/semantic-ui/
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
* Copyright 2015 Contributors
|
|
7
|
+
* Released under the MIT license
|
|
8
|
+
* http://opensource.org/licenses/MIT
|
|
9
|
+
*
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
;(function ($, window, document, undefined) {
|
|
13
|
+
|
|
14
|
+
"use strict";
|
|
15
|
+
|
|
16
|
+
$.visit = $.fn.visit = function(parameters) {
|
|
17
|
+
var
|
|
18
|
+
$allModules = $.isFunction(this)
|
|
19
|
+
? $(window)
|
|
20
|
+
: $(this),
|
|
21
|
+
moduleSelector = $allModules.selector || '',
|
|
22
|
+
|
|
23
|
+
time = new Date().getTime(),
|
|
24
|
+
performance = [],
|
|
25
|
+
|
|
26
|
+
query = arguments[0],
|
|
27
|
+
methodInvoked = (typeof query == 'string'),
|
|
28
|
+
queryArguments = [].slice.call(arguments, 1),
|
|
29
|
+
returnedValue
|
|
30
|
+
;
|
|
31
|
+
$allModules
|
|
32
|
+
.each(function() {
|
|
33
|
+
var
|
|
34
|
+
settings = ( $.isPlainObject(parameters) )
|
|
35
|
+
? $.extend(true, {}, $.fn.visit.settings, parameters)
|
|
36
|
+
: $.extend({}, $.fn.visit.settings),
|
|
37
|
+
|
|
38
|
+
error = settings.error,
|
|
39
|
+
namespace = settings.namespace,
|
|
40
|
+
|
|
41
|
+
eventNamespace = '.' + namespace,
|
|
42
|
+
moduleNamespace = namespace + '-module',
|
|
43
|
+
|
|
44
|
+
$module = $(this),
|
|
45
|
+
$displays = $(),
|
|
46
|
+
|
|
47
|
+
element = this,
|
|
48
|
+
instance = $module.data(moduleNamespace),
|
|
49
|
+
module
|
|
50
|
+
;
|
|
51
|
+
module = {
|
|
52
|
+
|
|
53
|
+
initialize: function() {
|
|
54
|
+
if(settings.count) {
|
|
55
|
+
module.store(settings.key.count, settings.count);
|
|
56
|
+
}
|
|
57
|
+
else if(settings.id) {
|
|
58
|
+
module.add.id(settings.id);
|
|
59
|
+
}
|
|
60
|
+
else if(settings.increment && methodInvoked !== 'increment') {
|
|
61
|
+
module.increment();
|
|
62
|
+
}
|
|
63
|
+
module.add.display($module);
|
|
64
|
+
module.instantiate();
|
|
65
|
+
},
|
|
66
|
+
|
|
67
|
+
instantiate: function() {
|
|
68
|
+
module.verbose('Storing instance of visit module', module);
|
|
69
|
+
instance = module;
|
|
70
|
+
$module
|
|
71
|
+
.data(moduleNamespace, module)
|
|
72
|
+
;
|
|
73
|
+
},
|
|
74
|
+
|
|
75
|
+
destroy: function() {
|
|
76
|
+
module.verbose('Destroying instance');
|
|
77
|
+
$module
|
|
78
|
+
.removeData(moduleNamespace)
|
|
79
|
+
;
|
|
80
|
+
},
|
|
81
|
+
|
|
82
|
+
increment: function(id) {
|
|
83
|
+
var
|
|
84
|
+
currentValue = module.get.count(),
|
|
85
|
+
newValue = +(currentValue) + 1
|
|
86
|
+
;
|
|
87
|
+
if(id) {
|
|
88
|
+
module.add.id(id);
|
|
89
|
+
}
|
|
90
|
+
else {
|
|
91
|
+
if(newValue > settings.limit && !settings.surpass) {
|
|
92
|
+
newValue = settings.limit;
|
|
93
|
+
}
|
|
94
|
+
module.debug('Incrementing visits', newValue);
|
|
95
|
+
module.store(settings.key.count, newValue);
|
|
96
|
+
}
|
|
97
|
+
},
|
|
98
|
+
|
|
99
|
+
decrement: function(id) {
|
|
100
|
+
var
|
|
101
|
+
currentValue = module.get.count(),
|
|
102
|
+
newValue = +(currentValue) - 1
|
|
103
|
+
;
|
|
104
|
+
if(id) {
|
|
105
|
+
module.remove.id(id);
|
|
106
|
+
}
|
|
107
|
+
else {
|
|
108
|
+
module.debug('Removing visit');
|
|
109
|
+
module.store(settings.key.count, newValue);
|
|
110
|
+
}
|
|
111
|
+
},
|
|
112
|
+
|
|
113
|
+
get: {
|
|
114
|
+
count: function() {
|
|
115
|
+
return +(module.retrieve(settings.key.count)) || 0;
|
|
116
|
+
},
|
|
117
|
+
idCount: function(ids) {
|
|
118
|
+
ids = ids || module.get.ids();
|
|
119
|
+
return ids.length;
|
|
120
|
+
},
|
|
121
|
+
ids: function(delimitedIDs) {
|
|
122
|
+
var
|
|
123
|
+
idArray = []
|
|
124
|
+
;
|
|
125
|
+
delimitedIDs = delimitedIDs || module.retrieve(settings.key.ids);
|
|
126
|
+
if(typeof delimitedIDs === 'string') {
|
|
127
|
+
idArray = delimitedIDs.split(settings.delimiter);
|
|
128
|
+
}
|
|
129
|
+
module.verbose('Found visited ID list', idArray);
|
|
130
|
+
return idArray;
|
|
131
|
+
},
|
|
132
|
+
storageOptions: function(data) {
|
|
133
|
+
var
|
|
134
|
+
options = {}
|
|
135
|
+
;
|
|
136
|
+
if(settings.expires) {
|
|
137
|
+
options.expires = settings.expires;
|
|
138
|
+
}
|
|
139
|
+
if(settings.domain) {
|
|
140
|
+
options.domain = settings.domain;
|
|
141
|
+
}
|
|
142
|
+
if(settings.path) {
|
|
143
|
+
options.path = settings.path;
|
|
144
|
+
}
|
|
145
|
+
return options;
|
|
146
|
+
}
|
|
147
|
+
},
|
|
148
|
+
|
|
149
|
+
has: {
|
|
150
|
+
visited: function(id, ids) {
|
|
151
|
+
var
|
|
152
|
+
visited = false
|
|
153
|
+
;
|
|
154
|
+
ids = ids || module.get.ids();
|
|
155
|
+
if(id !== undefined && ids) {
|
|
156
|
+
$.each(ids, function(index, value){
|
|
157
|
+
if(value == id) {
|
|
158
|
+
visited = true;
|
|
159
|
+
}
|
|
160
|
+
});
|
|
161
|
+
}
|
|
162
|
+
return visited;
|
|
163
|
+
}
|
|
164
|
+
},
|
|
165
|
+
|
|
166
|
+
set: {
|
|
167
|
+
count: function(value) {
|
|
168
|
+
module.store(settings.key.count, value);
|
|
169
|
+
},
|
|
170
|
+
ids: function(value) {
|
|
171
|
+
module.store(settings.key.ids, value);
|
|
172
|
+
}
|
|
173
|
+
},
|
|
174
|
+
|
|
175
|
+
reset: function() {
|
|
176
|
+
module.store(settings.key.count, 0);
|
|
177
|
+
module.store(settings.key.ids, null);
|
|
178
|
+
},
|
|
179
|
+
|
|
180
|
+
add: {
|
|
181
|
+
id: function(id) {
|
|
182
|
+
var
|
|
183
|
+
currentIDs = module.retrieve(settings.key.ids),
|
|
184
|
+
newIDs = (currentIDs === undefined || currentIDs === '')
|
|
185
|
+
? id
|
|
186
|
+
: currentIDs + settings.delimiter + id
|
|
187
|
+
;
|
|
188
|
+
if( module.has.visited(id) ) {
|
|
189
|
+
module.debug('Unique content already visited, not adding visit', id, currentIDs);
|
|
190
|
+
}
|
|
191
|
+
else if(id === undefined) {
|
|
192
|
+
module.debug('ID is not defined');
|
|
193
|
+
}
|
|
194
|
+
else {
|
|
195
|
+
module.debug('Adding visit to unique content', id);
|
|
196
|
+
module.store(settings.key.ids, newIDs);
|
|
197
|
+
}
|
|
198
|
+
module.set.count( module.get.idCount() );
|
|
199
|
+
},
|
|
200
|
+
display: function(selector) {
|
|
201
|
+
var
|
|
202
|
+
$element = $(selector)
|
|
203
|
+
;
|
|
204
|
+
if($element.length > 0 && !$.isWindow($element[0])) {
|
|
205
|
+
module.debug('Updating visit count for element', $element);
|
|
206
|
+
$displays = ($displays.length > 0)
|
|
207
|
+
? $displays.add($element)
|
|
208
|
+
: $element
|
|
209
|
+
;
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
},
|
|
213
|
+
|
|
214
|
+
remove: {
|
|
215
|
+
id: function(id) {
|
|
216
|
+
var
|
|
217
|
+
currentIDs = module.get.ids(),
|
|
218
|
+
newIDs = []
|
|
219
|
+
;
|
|
220
|
+
if(id !== undefined && currentIDs !== undefined) {
|
|
221
|
+
module.debug('Removing visit to unique content', id, currentIDs);
|
|
222
|
+
$.each(currentIDs, function(index, value){
|
|
223
|
+
if(value !== id) {
|
|
224
|
+
newIDs.push(value);
|
|
225
|
+
}
|
|
226
|
+
});
|
|
227
|
+
newIDs = newIDs.join(settings.delimiter);
|
|
228
|
+
module.store(settings.key.ids, newIDs );
|
|
229
|
+
}
|
|
230
|
+
module.set.count( module.get.idCount() );
|
|
231
|
+
}
|
|
232
|
+
},
|
|
233
|
+
|
|
234
|
+
check: {
|
|
235
|
+
limit: function(value) {
|
|
236
|
+
value = value || module.get.count();
|
|
237
|
+
if(settings.limit) {
|
|
238
|
+
if(value >= settings.limit) {
|
|
239
|
+
module.debug('Pages viewed exceeded limit, firing callback', value, settings.limit);
|
|
240
|
+
settings.onLimit.call(element, value);
|
|
241
|
+
}
|
|
242
|
+
module.debug('Limit not reached', value, settings.limit);
|
|
243
|
+
settings.onChange.call(element, value);
|
|
244
|
+
}
|
|
245
|
+
module.update.display(value);
|
|
246
|
+
}
|
|
247
|
+
},
|
|
248
|
+
|
|
249
|
+
update: {
|
|
250
|
+
display: function(value) {
|
|
251
|
+
value = value || module.get.count();
|
|
252
|
+
if($displays.length > 0) {
|
|
253
|
+
module.debug('Updating displayed view count', $displays);
|
|
254
|
+
$displays.html(value);
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
},
|
|
258
|
+
|
|
259
|
+
store: function(key, value) {
|
|
260
|
+
var
|
|
261
|
+
options = module.get.storageOptions(value)
|
|
262
|
+
;
|
|
263
|
+
if(settings.storageMethod == 'localstorage' && window.localStorage !== undefined) {
|
|
264
|
+
window.localStorage.setItem(key, value);
|
|
265
|
+
module.debug('Value stored using local storage', key, value);
|
|
266
|
+
}
|
|
267
|
+
else if($.cookie !== undefined) {
|
|
268
|
+
$.cookie(key, value, options);
|
|
269
|
+
module.debug('Value stored using cookie', key, value, options);
|
|
270
|
+
}
|
|
271
|
+
else {
|
|
272
|
+
module.error(error.noCookieStorage);
|
|
273
|
+
return;
|
|
274
|
+
}
|
|
275
|
+
if(key == settings.key.count) {
|
|
276
|
+
module.check.limit(value);
|
|
277
|
+
}
|
|
278
|
+
},
|
|
279
|
+
retrieve: function(key, value) {
|
|
280
|
+
var
|
|
281
|
+
storedValue
|
|
282
|
+
;
|
|
283
|
+
if(settings.storageMethod == 'localstorage' && window.localStorage !== undefined) {
|
|
284
|
+
storedValue = window.localStorage.getItem(key);
|
|
285
|
+
}
|
|
286
|
+
// get by cookie
|
|
287
|
+
else if($.cookie !== undefined) {
|
|
288
|
+
storedValue = $.cookie(key);
|
|
289
|
+
}
|
|
290
|
+
else {
|
|
291
|
+
module.error(error.noCookieStorage);
|
|
292
|
+
}
|
|
293
|
+
if(storedValue == 'undefined' || storedValue == 'null' || storedValue === undefined || storedValue === null) {
|
|
294
|
+
storedValue = undefined;
|
|
295
|
+
}
|
|
296
|
+
return storedValue;
|
|
297
|
+
},
|
|
298
|
+
|
|
299
|
+
setting: function(name, value) {
|
|
300
|
+
if( $.isPlainObject(name) ) {
|
|
301
|
+
$.extend(true, settings, name);
|
|
302
|
+
}
|
|
303
|
+
else if(value !== undefined) {
|
|
304
|
+
settings[name] = value;
|
|
305
|
+
}
|
|
306
|
+
else {
|
|
307
|
+
return settings[name];
|
|
308
|
+
}
|
|
309
|
+
},
|
|
310
|
+
internal: function(name, value) {
|
|
311
|
+
module.debug('Changing internal', name, value);
|
|
312
|
+
if(value !== undefined) {
|
|
313
|
+
if( $.isPlainObject(name) ) {
|
|
314
|
+
$.extend(true, module, name);
|
|
315
|
+
}
|
|
316
|
+
else {
|
|
317
|
+
module[name] = value;
|
|
318
|
+
}
|
|
319
|
+
}
|
|
320
|
+
else {
|
|
321
|
+
return module[name];
|
|
322
|
+
}
|
|
323
|
+
},
|
|
324
|
+
debug: function() {
|
|
325
|
+
if(settings.debug) {
|
|
326
|
+
if(settings.performance) {
|
|
327
|
+
module.performance.log(arguments);
|
|
328
|
+
}
|
|
329
|
+
else {
|
|
330
|
+
module.debug = Function.prototype.bind.call(console.info, console, settings.name + ':');
|
|
331
|
+
module.debug.apply(console, arguments);
|
|
332
|
+
}
|
|
333
|
+
}
|
|
334
|
+
},
|
|
335
|
+
verbose: function() {
|
|
336
|
+
if(settings.verbose && settings.debug) {
|
|
337
|
+
if(settings.performance) {
|
|
338
|
+
module.performance.log(arguments);
|
|
339
|
+
}
|
|
340
|
+
else {
|
|
341
|
+
module.verbose = Function.prototype.bind.call(console.info, console, settings.name + ':');
|
|
342
|
+
module.verbose.apply(console, arguments);
|
|
343
|
+
}
|
|
344
|
+
}
|
|
345
|
+
},
|
|
346
|
+
error: function() {
|
|
347
|
+
module.error = Function.prototype.bind.call(console.error, console, settings.name + ':');
|
|
348
|
+
module.error.apply(console, arguments);
|
|
349
|
+
},
|
|
350
|
+
performance: {
|
|
351
|
+
log: function(message) {
|
|
352
|
+
var
|
|
353
|
+
currentTime,
|
|
354
|
+
executionTime,
|
|
355
|
+
previousTime
|
|
356
|
+
;
|
|
357
|
+
if(settings.performance) {
|
|
358
|
+
currentTime = new Date().getTime();
|
|
359
|
+
previousTime = time || currentTime;
|
|
360
|
+
executionTime = currentTime - previousTime;
|
|
361
|
+
time = currentTime;
|
|
362
|
+
performance.push({
|
|
363
|
+
'Name' : message[0],
|
|
364
|
+
'Arguments' : [].slice.call(message, 1) || '',
|
|
365
|
+
'Element' : element,
|
|
366
|
+
'Execution Time' : executionTime
|
|
367
|
+
});
|
|
368
|
+
}
|
|
369
|
+
clearTimeout(module.performance.timer);
|
|
370
|
+
module.performance.timer = setTimeout(module.performance.display, 500);
|
|
371
|
+
},
|
|
372
|
+
display: function() {
|
|
373
|
+
var
|
|
374
|
+
title = settings.name + ':',
|
|
375
|
+
totalTime = 0
|
|
376
|
+
;
|
|
377
|
+
time = false;
|
|
378
|
+
clearTimeout(module.performance.timer);
|
|
379
|
+
$.each(performance, function(index, data) {
|
|
380
|
+
totalTime += data['Execution Time'];
|
|
381
|
+
});
|
|
382
|
+
title += ' ' + totalTime + 'ms';
|
|
383
|
+
if(moduleSelector) {
|
|
384
|
+
title += ' \'' + moduleSelector + '\'';
|
|
385
|
+
}
|
|
386
|
+
if($allModules.length > 1) {
|
|
387
|
+
title += ' ' + '(' + $allModules.length + ')';
|
|
388
|
+
}
|
|
389
|
+
if( (console.group !== undefined || console.table !== undefined) && performance.length > 0) {
|
|
390
|
+
console.groupCollapsed(title);
|
|
391
|
+
if(console.table) {
|
|
392
|
+
console.table(performance);
|
|
393
|
+
}
|
|
394
|
+
else {
|
|
395
|
+
$.each(performance, function(index, data) {
|
|
396
|
+
console.log(data['Name'] + ': ' + data['Execution Time']+'ms');
|
|
397
|
+
});
|
|
398
|
+
}
|
|
399
|
+
console.groupEnd();
|
|
400
|
+
}
|
|
401
|
+
performance = [];
|
|
402
|
+
}
|
|
403
|
+
},
|
|
404
|
+
invoke: function(query, passedArguments, context) {
|
|
405
|
+
var
|
|
406
|
+
object = instance,
|
|
407
|
+
maxDepth,
|
|
408
|
+
found,
|
|
409
|
+
response
|
|
410
|
+
;
|
|
411
|
+
passedArguments = passedArguments || queryArguments;
|
|
412
|
+
context = element || context;
|
|
413
|
+
if(typeof query == 'string' && object !== undefined) {
|
|
414
|
+
query = query.split(/[\. ]/);
|
|
415
|
+
maxDepth = query.length - 1;
|
|
416
|
+
$.each(query, function(depth, value) {
|
|
417
|
+
var camelCaseValue = (depth != maxDepth)
|
|
418
|
+
? value + query[depth + 1].charAt(0).toUpperCase() + query[depth + 1].slice(1)
|
|
419
|
+
: query
|
|
420
|
+
;
|
|
421
|
+
if( $.isPlainObject( object[camelCaseValue] ) && (depth != maxDepth) ) {
|
|
422
|
+
object = object[camelCaseValue];
|
|
423
|
+
}
|
|
424
|
+
else if( object[camelCaseValue] !== undefined ) {
|
|
425
|
+
found = object[camelCaseValue];
|
|
426
|
+
return false;
|
|
427
|
+
}
|
|
428
|
+
else if( $.isPlainObject( object[value] ) && (depth != maxDepth) ) {
|
|
429
|
+
object = object[value];
|
|
430
|
+
}
|
|
431
|
+
else if( object[value] !== undefined ) {
|
|
432
|
+
found = object[value];
|
|
433
|
+
return false;
|
|
434
|
+
}
|
|
435
|
+
else {
|
|
436
|
+
return false;
|
|
437
|
+
}
|
|
438
|
+
});
|
|
439
|
+
}
|
|
440
|
+
if ( $.isFunction( found ) ) {
|
|
441
|
+
response = found.apply(context, passedArguments);
|
|
442
|
+
}
|
|
443
|
+
else if(found !== undefined) {
|
|
444
|
+
response = found;
|
|
445
|
+
}
|
|
446
|
+
if($.isArray(returnedValue)) {
|
|
447
|
+
returnedValue.push(response);
|
|
448
|
+
}
|
|
449
|
+
else if(returnedValue !== undefined) {
|
|
450
|
+
returnedValue = [returnedValue, response];
|
|
451
|
+
}
|
|
452
|
+
else if(response !== undefined) {
|
|
453
|
+
returnedValue = response;
|
|
454
|
+
}
|
|
455
|
+
return found;
|
|
456
|
+
}
|
|
457
|
+
};
|
|
458
|
+
if(methodInvoked) {
|
|
459
|
+
if(instance === undefined) {
|
|
460
|
+
module.initialize();
|
|
461
|
+
}
|
|
462
|
+
module.invoke(query);
|
|
463
|
+
}
|
|
464
|
+
else {
|
|
465
|
+
if(instance !== undefined) {
|
|
466
|
+
instance.invoke('destroy');
|
|
467
|
+
}
|
|
468
|
+
module.initialize();
|
|
469
|
+
}
|
|
470
|
+
|
|
471
|
+
})
|
|
472
|
+
;
|
|
473
|
+
return (returnedValue !== undefined)
|
|
474
|
+
? returnedValue
|
|
475
|
+
: this
|
|
476
|
+
;
|
|
477
|
+
};
|
|
478
|
+
|
|
479
|
+
$.fn.visit.settings = {
|
|
480
|
+
|
|
481
|
+
name : 'Visit',
|
|
482
|
+
|
|
483
|
+
debug : false,
|
|
484
|
+
verbose : false,
|
|
485
|
+
performance : true,
|
|
486
|
+
|
|
487
|
+
namespace : 'visit',
|
|
488
|
+
|
|
489
|
+
increment : false,
|
|
490
|
+
surpass : false,
|
|
491
|
+
count : false,
|
|
492
|
+
limit : false,
|
|
493
|
+
|
|
494
|
+
delimiter : '&',
|
|
495
|
+
storageMethod : 'localstorage',
|
|
496
|
+
|
|
497
|
+
key : {
|
|
498
|
+
count : 'visit-count',
|
|
499
|
+
ids : 'visit-ids'
|
|
500
|
+
},
|
|
501
|
+
|
|
502
|
+
expires : 30,
|
|
503
|
+
domain : false,
|
|
504
|
+
path : '/',
|
|
505
|
+
|
|
506
|
+
onLimit : function() {},
|
|
507
|
+
onChange : function() {},
|
|
508
|
+
|
|
509
|
+
error : {
|
|
510
|
+
method : 'The method you called is not defined',
|
|
511
|
+
missingPersist : 'Using the persist setting requires the inclusion of PersistJS',
|
|
512
|
+
noCookieStorage : 'The default storage cookie requires $.cookie to be included.'
|
|
513
|
+
}
|
|
514
|
+
|
|
515
|
+
};
|
|
516
|
+
|
|
517
|
+
})( jQuery, window , document );
|
package/ui/item.css
CHANGED
|
@@ -339,7 +339,7 @@
|
|
|
339
339
|
margin-right: 0.5em;
|
|
340
340
|
}
|
|
341
341
|
|
|
342
|
-
@media
|
|
342
|
+
@media (width >= 512px) and (width <= 991px) {
|
|
343
343
|
/* Tablet Only */
|
|
344
344
|
.ui.items > .ui {
|
|
345
345
|
margin: 1em 0em;
|
|
@@ -350,7 +350,7 @@
|
|
|
350
350
|
}
|
|
351
351
|
}
|
|
352
352
|
|
|
353
|
-
@media
|
|
353
|
+
@media (width <= 511px) {
|
|
354
354
|
/* Mobile Only */
|
|
355
355
|
.ui.items.stackable > .ui {
|
|
356
356
|
flex-direction: column;
|
package/ui/layout.css
CHANGED
|
Binary file
|