semantic-ui-sass 0.19.3.1 → 1.7.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +21 -0
- data/README.md +5 -6
- data/app/assets/fonts/semantic-ui/icons.eot +0 -0
- data/app/assets/fonts/semantic-ui/icons.otf +0 -0
- data/app/assets/fonts/semantic-ui/icons.svg +472 -367
- data/app/assets/fonts/semantic-ui/icons.ttf +0 -0
- data/app/assets/fonts/semantic-ui/icons.woff +0 -0
- data/app/assets/images/semantic-ui/flags.png +0 -0
- data/app/assets/javascripts/semantic-ui.js +9 -5
- data/app/assets/javascripts/semantic-ui/accordion.js +169 -102
- data/app/assets/javascripts/semantic-ui/api.js +840 -0
- data/app/assets/javascripts/semantic-ui/checkbox.js +203 -46
- data/app/assets/javascripts/semantic-ui/{behavior/colorize.js → colorize.js} +4 -2
- data/app/assets/javascripts/semantic-ui/dimmer.js +110 -76
- data/app/assets/javascripts/semantic-ui/dropdown.js +897 -285
- data/app/assets/javascripts/semantic-ui/{behavior/form.js → form.js} +127 -42
- data/app/assets/javascripts/semantic-ui/modal.js +294 -219
- data/app/assets/javascripts/semantic-ui/nag.js +120 -186
- data/app/assets/javascripts/semantic-ui/popup.js +491 -223
- data/app/assets/javascripts/semantic-ui/progress.js +779 -0
- data/app/assets/javascripts/semantic-ui/rating.js +66 -22
- data/app/assets/javascripts/semantic-ui/search.js +219 -99
- data/app/assets/javascripts/semantic-ui/shape.js +72 -29
- data/app/assets/javascripts/semantic-ui/sidebar.js +678 -142
- data/app/assets/javascripts/semantic-ui/site.js +487 -0
- data/app/assets/javascripts/semantic-ui/{behavior/state.js → state.js} +116 -151
- data/app/assets/javascripts/semantic-ui/sticky.js +771 -0
- data/app/assets/javascripts/semantic-ui/tab.js +680 -603
- data/app/assets/javascripts/semantic-ui/transition.js +269 -158
- data/app/assets/javascripts/semantic-ui/video.js +113 -32
- data/app/assets/javascripts/semantic-ui/visibility.js +970 -0
- data/app/assets/javascripts/semantic-ui/visit.js +513 -0
- data/app/assets/stylesheets/semantic-ui.scss +2 -0
- data/app/assets/stylesheets/semantic-ui/collections/_breadcrumb.scss +58 -14
- data/app/assets/stylesheets/semantic-ui/collections/_form.scss +464 -372
- data/app/assets/stylesheets/semantic-ui/collections/_grid.scss +1385 -533
- data/app/assets/stylesheets/semantic-ui/collections/_menu.scss +482 -655
- data/app/assets/stylesheets/semantic-ui/collections/_message.scss +238 -139
- data/app/assets/stylesheets/semantic-ui/collections/_table.scss +631 -280
- data/app/assets/stylesheets/semantic-ui/elements/_all.scss +3 -2
- data/app/assets/stylesheets/semantic-ui/elements/_button.scss +1614 -657
- data/app/assets/stylesheets/semantic-ui/elements/_divider.scss +143 -80
- data/app/assets/stylesheets/semantic-ui/elements/_flag.scss +1018 -0
- data/app/assets/stylesheets/semantic-ui/elements/_header.scss +302 -145
- data/app/assets/stylesheets/semantic-ui/elements/_icon.scss +1653 -1365
- data/app/assets/stylesheets/semantic-ui/elements/_image.scss +160 -59
- data/app/assets/stylesheets/semantic-ui/elements/_input.scss +247 -118
- data/app/assets/stylesheets/semantic-ui/elements/_label.scss +501 -470
- data/app/assets/stylesheets/semantic-ui/elements/_list.scss +888 -0
- data/app/assets/stylesheets/semantic-ui/elements/_loader.scss +189 -98
- data/app/assets/stylesheets/semantic-ui/elements/_rail.scss +125 -0
- data/app/assets/stylesheets/semantic-ui/elements/_reveal.scss +147 -212
- data/app/assets/stylesheets/semantic-ui/elements/_segment.scss +328 -190
- data/app/assets/stylesheets/semantic-ui/elements/_step.scss +261 -185
- data/app/assets/stylesheets/semantic-ui/globals/_all.scss +2 -0
- data/app/assets/stylesheets/semantic-ui/globals/_reset.scss +430 -0
- data/app/assets/stylesheets/semantic-ui/globals/_site.scss +128 -0
- data/app/assets/stylesheets/semantic-ui/modules/_accordion.scss +190 -106
- data/app/assets/stylesheets/semantic-ui/modules/_all.scss +2 -1
- data/app/assets/stylesheets/semantic-ui/modules/_checkbox.scss +303 -201
- data/app/assets/stylesheets/semantic-ui/modules/_dimmer.scss +72 -63
- data/app/assets/stylesheets/semantic-ui/modules/_dropdown.scss +711 -331
- data/app/assets/stylesheets/semantic-ui/modules/_modal.scss +262 -140
- data/app/assets/stylesheets/semantic-ui/modules/_nag.scss +82 -71
- data/app/assets/stylesheets/semantic-ui/modules/_popup.scss +163 -119
- data/app/assets/stylesheets/semantic-ui/modules/_progress.scss +435 -0
- data/app/assets/stylesheets/semantic-ui/modules/_rating.scss +163 -68
- data/app/assets/stylesheets/semantic-ui/modules/_search.scss +223 -150
- data/app/assets/stylesheets/semantic-ui/modules/_shape.scss +39 -40
- data/app/assets/stylesheets/semantic-ui/modules/_sidebar.scss +413 -147
- data/app/assets/stylesheets/semantic-ui/modules/_sticky.scss +80 -0
- data/app/assets/stylesheets/semantic-ui/modules/_tab.scss +49 -20
- data/app/assets/stylesheets/semantic-ui/modules/_transition.scss +542 -568
- data/app/assets/stylesheets/semantic-ui/modules/_video.scss +69 -37
- data/app/assets/stylesheets/semantic-ui/views/_ad.scss +265 -0
- data/app/assets/stylesheets/semantic-ui/views/_all.scss +1 -1
- data/app/assets/stylesheets/semantic-ui/views/_card.scss +758 -0
- data/app/assets/stylesheets/semantic-ui/views/_comment.scss +133 -92
- data/app/assets/stylesheets/semantic-ui/views/_feed.scss +200 -87
- data/app/assets/stylesheets/semantic-ui/views/_item.scss +298 -523
- data/app/assets/stylesheets/semantic-ui/views/_statistic.scss +390 -12
- data/lib/semantic/ui/sass/version.rb +2 -2
- data/tasks/converter.rb +99 -216
- metadata +22 -27
- data/app/assets/fonts/semantic-ui/basic.icons.eot +0 -0
- data/app/assets/fonts/semantic-ui/basic.icons.svg +0 -450
- data/app/assets/fonts/semantic-ui/basic.icons.ttf +0 -0
- data/app/assets/fonts/semantic-ui/basic.icons.woff +0 -0
- data/app/assets/images/semantic-ui/loader-large-inverted.gif +0 -0
- data/app/assets/images/semantic-ui/loader-large.gif +0 -0
- data/app/assets/images/semantic-ui/loader-medium-inverted.gif +0 -0
- data/app/assets/images/semantic-ui/loader-medium.gif +0 -0
- data/app/assets/images/semantic-ui/loader-mini-inverted.gif +0 -0
- data/app/assets/images/semantic-ui/loader-mini.gif +0 -0
- data/app/assets/images/semantic-ui/loader-small-inverted.gif +0 -0
- data/app/assets/images/semantic-ui/loader-small.gif +0 -0
- data/app/assets/javascripts/semantic-ui/behavior/api.js +0 -634
- data/app/assets/javascripts/semantic-ui/chatroom.js +0 -772
- data/app/assets/stylesheets/semantic-ui/depends/_basic.icon.scss +0 -4
- data/app/assets/stylesheets/semantic-ui/depends/_icon.scss +0 -4
- data/app/assets/stylesheets/semantic-ui/depends/_loader.scss +0 -8
- data/app/assets/stylesheets/semantic-ui/elements/_basic.icon.scss +0 -1124
- data/app/assets/stylesheets/semantic-ui/elements/_progress.scss +0 -280
- data/app/assets/stylesheets/semantic-ui/modules/_chatroom.scss +0 -299
- data/app/assets/stylesheets/semantic-ui/modules/_reveal.scss +0 -322
- data/app/assets/stylesheets/semantic-ui/views/_list.scss +0 -700
@@ -1,9 +1,9 @@
|
|
1
1
|
/*
|
2
2
|
* # Semantic - Nag
|
3
|
-
* http://github.com/
|
3
|
+
* http://github.com/semantic-org/semantic-ui/
|
4
4
|
*
|
5
5
|
*
|
6
|
-
* Copyright 2014
|
6
|
+
* Copyright 2014 Contributor
|
7
7
|
* Released under the MIT license
|
8
8
|
* http://opensource.org/licenses/MIT
|
9
9
|
*
|
@@ -11,23 +11,27 @@
|
|
11
11
|
|
12
12
|
;(function ($, window, document, undefined) {
|
13
13
|
|
14
|
+
"use strict";
|
15
|
+
|
14
16
|
$.fn.nag = function(parameters) {
|
15
17
|
var
|
16
|
-
$allModules
|
17
|
-
moduleSelector
|
18
|
+
$allModules = $(this),
|
19
|
+
moduleSelector = $allModules.selector || '',
|
18
20
|
|
19
|
-
time
|
20
|
-
performance
|
21
|
+
time = new Date().getTime(),
|
22
|
+
performance = [],
|
21
23
|
|
22
|
-
query
|
23
|
-
methodInvoked
|
24
|
-
queryArguments
|
24
|
+
query = arguments[0],
|
25
|
+
methodInvoked = (typeof query == 'string'),
|
26
|
+
queryArguments = [].slice.call(arguments, 1),
|
25
27
|
returnedValue
|
26
28
|
;
|
27
|
-
$
|
29
|
+
$allModules
|
28
30
|
.each(function() {
|
29
31
|
var
|
30
|
-
settings
|
32
|
+
settings = ( $.isPlainObject(parameters) )
|
33
|
+
? $.extend(true, {}, $.fn.nag.settings, parameters)
|
34
|
+
: $.extend({}, $.fn.nag.settings),
|
31
35
|
|
32
36
|
className = settings.className,
|
33
37
|
selector = settings.selector,
|
@@ -40,8 +44,9 @@ $.fn.nag = function(parameters) {
|
|
40
44
|
$module = $(this),
|
41
45
|
|
42
46
|
$close = $module.find(selector.close),
|
43
|
-
$context =
|
44
|
-
|
47
|
+
$context = (settings.context)
|
48
|
+
? $(settings.context)
|
49
|
+
: $('body'),
|
45
50
|
|
46
51
|
element = this,
|
47
52
|
instance = $module.data(moduleNamespace),
|
@@ -69,12 +74,6 @@ $.fn.nag = function(parameters) {
|
|
69
74
|
|
70
75
|
initialize: function() {
|
71
76
|
module.verbose('Initializing element');
|
72
|
-
// calculate module offset once
|
73
|
-
moduleOffset = $module.offset();
|
74
|
-
moduleHeight = $module.outerHeight();
|
75
|
-
contextWidth = $context.outerWidth();
|
76
|
-
contextHeight = $context.outerHeight();
|
77
|
-
contextOffset = $context.offset();
|
78
77
|
|
79
78
|
$module
|
80
79
|
.data(moduleNamespace, module)
|
@@ -82,43 +81,18 @@ $.fn.nag = function(parameters) {
|
|
82
81
|
$close
|
83
82
|
.on('click' + eventNamespace, module.dismiss)
|
84
83
|
;
|
85
|
-
|
86
|
-
if(settings.
|
84
|
+
|
85
|
+
if(settings.detachable && $module.parent()[0] !== $context[0]) {
|
87
86
|
$module
|
88
|
-
.
|
87
|
+
.detach()
|
88
|
+
.prependTo($context)
|
89
89
|
;
|
90
90
|
}
|
91
|
-
if(settings.sticky) {
|
92
|
-
module.verbose('Adding scroll events');
|
93
|
-
// retrigger on scroll for absolute
|
94
|
-
if(settings.position == 'absolute') {
|
95
|
-
$context
|
96
|
-
.on('scroll' + eventNamespace, module.event.scroll)
|
97
|
-
.on('resize' + eventNamespace, module.event.scroll)
|
98
|
-
;
|
99
|
-
}
|
100
|
-
// fixed is always relative to window
|
101
|
-
else {
|
102
|
-
$(window)
|
103
|
-
.on('scroll' + eventNamespace, module.event.scroll)
|
104
|
-
.on('resize' + eventNamespace, module.event.scroll)
|
105
|
-
;
|
106
|
-
}
|
107
|
-
// fire once to position on init
|
108
|
-
$.proxy(module.event.scroll, this)();
|
109
|
-
}
|
110
91
|
|
111
92
|
if(settings.displayTime > 0) {
|
112
93
|
setTimeout(module.hide, settings.displayTime);
|
113
94
|
}
|
114
|
-
|
115
|
-
if( !$module.is(':visible') ) {
|
116
|
-
module.show();
|
117
|
-
}
|
118
|
-
}
|
119
|
-
else {
|
120
|
-
module.hide();
|
121
|
-
}
|
95
|
+
module.show();
|
122
96
|
},
|
123
97
|
|
124
98
|
destroy: function() {
|
@@ -127,33 +101,21 @@ $.fn.nag = function(parameters) {
|
|
127
101
|
.removeData(moduleNamespace)
|
128
102
|
.off(eventNamespace)
|
129
103
|
;
|
130
|
-
if(settings.sticky) {
|
131
|
-
$context
|
132
|
-
.off(eventNamespace)
|
133
|
-
;
|
134
|
-
}
|
135
|
-
},
|
136
|
-
|
137
|
-
refresh: function() {
|
138
|
-
module.debug('Refreshing cached calculations');
|
139
|
-
moduleOffset = $module.offset();
|
140
|
-
moduleHeight = $module.outerHeight();
|
141
|
-
contextWidth = $context.outerWidth();
|
142
|
-
contextHeight = $context.outerHeight();
|
143
|
-
contextOffset = $context.offset();
|
144
104
|
},
|
145
105
|
|
146
106
|
show: function() {
|
147
|
-
module.
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
107
|
+
if( module.should.show() && !$module.is(':visible') ) {
|
108
|
+
module.debug('Showing nag', settings.animation.show);
|
109
|
+
if(settings.animation.show == 'fade') {
|
110
|
+
$module
|
111
|
+
.fadeIn(settings.duration, settings.easing)
|
112
|
+
;
|
113
|
+
}
|
114
|
+
else {
|
115
|
+
$module
|
116
|
+
.slideDown(settings.duration, settings.easing)
|
117
|
+
;
|
118
|
+
}
|
157
119
|
}
|
158
120
|
},
|
159
121
|
|
@@ -179,43 +141,9 @@ $.fn.nag = function(parameters) {
|
|
179
141
|
}
|
180
142
|
},
|
181
143
|
|
182
|
-
stick: function() {
|
183
|
-
module.refresh();
|
184
|
-
|
185
|
-
if(settings.position == 'fixed') {
|
186
|
-
var
|
187
|
-
windowScroll = $(window).prop('pageYOffset') || $(window).scrollTop(),
|
188
|
-
fixedOffset = ( $module.hasClass(className.bottom) )
|
189
|
-
? contextOffset.top + (contextHeight - moduleHeight) - windowScroll
|
190
|
-
: contextOffset.top - windowScroll
|
191
|
-
;
|
192
|
-
$module
|
193
|
-
.css({
|
194
|
-
position : 'fixed',
|
195
|
-
top : fixedOffset,
|
196
|
-
left : contextOffset.left,
|
197
|
-
width : contextWidth - settings.scrollBarWidth
|
198
|
-
})
|
199
|
-
;
|
200
|
-
}
|
201
|
-
else {
|
202
|
-
$module
|
203
|
-
.css({
|
204
|
-
top : yPosition
|
205
|
-
})
|
206
|
-
;
|
207
|
-
}
|
208
|
-
},
|
209
|
-
unStick: function() {
|
210
|
-
$module
|
211
|
-
.css({
|
212
|
-
top : ''
|
213
|
-
})
|
214
|
-
;
|
215
|
-
},
|
216
144
|
dismiss: function(event) {
|
217
145
|
if(settings.storageMethod) {
|
218
|
-
module.storage.set(settings.
|
146
|
+
module.storage.set(settings.key, settings.value);
|
219
147
|
}
|
220
148
|
module.hide();
|
221
149
|
event.stopImmediatePropagation();
|
@@ -228,77 +156,93 @@ $.fn.nag = function(parameters) {
|
|
228
156
|
module.debug('Persistent nag is set, can show nag');
|
229
157
|
return true;
|
230
158
|
}
|
231
|
-
if(module.storage.get(settings.
|
232
|
-
module.debug('Stored value is not set, can show nag', module.storage.get(settings.
|
159
|
+
if( module.storage.get(settings.key) != settings.value.toString() ) {
|
160
|
+
module.debug('Stored value is not set, can show nag', module.storage.get(settings.key));
|
233
161
|
return true;
|
234
162
|
}
|
235
|
-
module.debug('Stored value is set, cannot show nag', module.storage.get(settings.
|
163
|
+
module.debug('Stored value is set, cannot show nag', module.storage.get(settings.key));
|
236
164
|
return false;
|
237
|
-
}
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
|
165
|
+
}
|
166
|
+
},
|
167
|
+
|
168
|
+
get: {
|
169
|
+
storageOptions: function() {
|
170
|
+
var
|
171
|
+
options = {}
|
243
172
|
;
|
244
|
-
|
245
|
-
|
246
|
-
return true;
|
173
|
+
if(settings.expires) {
|
174
|
+
options.expires = settings.expires;
|
247
175
|
}
|
248
|
-
|
249
|
-
|
176
|
+
if(settings.domain) {
|
177
|
+
options.domain = settings.domain;
|
250
178
|
}
|
251
|
-
|
179
|
+
if(settings.path) {
|
180
|
+
options.path = settings.path;
|
181
|
+
}
|
182
|
+
return options;
|
252
183
|
}
|
253
184
|
},
|
254
185
|
|
255
|
-
|
186
|
+
clear: function() {
|
187
|
+
module.storage.remove(settings.key);
|
188
|
+
},
|
256
189
|
|
190
|
+
storage: {
|
257
191
|
set: function(key, value) {
|
258
|
-
|
259
|
-
|
260
|
-
|
192
|
+
var
|
193
|
+
options = module.get.storageOptions()
|
194
|
+
;
|
195
|
+
if(settings.storageMethod == 'localstorage' && window.localStorage !== undefined) {
|
196
|
+
window.localStorage.setItem(key, value);
|
197
|
+
module.debug('Value stored using local storage', key, value);
|
261
198
|
}
|
262
|
-
// store by cookie
|
263
199
|
else if($.cookie !== undefined) {
|
264
|
-
$.cookie(key, value);
|
200
|
+
$.cookie(key, value, options);
|
201
|
+
module.debug('Value stored using cookie', key, value, options);
|
265
202
|
}
|
266
203
|
else {
|
267
|
-
module.error(error.
|
204
|
+
module.error(error.noCookieStorage);
|
205
|
+
return;
|
268
206
|
}
|
269
207
|
},
|
270
|
-
get: function(key) {
|
271
|
-
|
272
|
-
|
273
|
-
|
208
|
+
get: function(key, value) {
|
209
|
+
var
|
210
|
+
storedValue
|
211
|
+
;
|
212
|
+
if(settings.storageMethod == 'localstorage' && window.localStorage !== undefined) {
|
213
|
+
storedValue = window.localStorage.getItem(key);
|
274
214
|
}
|
275
215
|
// get by cookie
|
276
216
|
else if($.cookie !== undefined) {
|
277
|
-
|
217
|
+
storedValue = $.cookie(key);
|
218
|
+
}
|
219
|
+
else {
|
220
|
+
module.error(error.noCookieStorage);
|
221
|
+
}
|
222
|
+
if(storedValue == 'undefined' || storedValue == 'null' || storedValue === undefined || storedValue === null) {
|
223
|
+
storedValue = undefined;
|
224
|
+
}
|
225
|
+
return storedValue;
|
226
|
+
},
|
227
|
+
remove: function(key) {
|
228
|
+
var
|
229
|
+
options = module.get.storageOptions()
|
230
|
+
;
|
231
|
+
if(settings.storageMethod == 'local' && window.store !== undefined) {
|
232
|
+
window.localStorage.removeItem(key);
|
233
|
+
}
|
234
|
+
// store by cookie
|
235
|
+
else if($.cookie !== undefined) {
|
236
|
+
$.removeCookie(key, options);
|
278
237
|
}
|
279
238
|
else {
|
280
239
|
module.error(error.noStorage);
|
281
240
|
}
|
282
241
|
}
|
283
|
-
|
284
242
|
},
|
285
243
|
|
286
|
-
event: {
|
287
|
-
scroll: function() {
|
288
|
-
if(timer !== undefined) {
|
289
|
-
clearTimeout(timer);
|
290
|
-
}
|
291
|
-
timer = setTimeout(function() {
|
292
|
-
if(module.should.stick() ) {
|
293
|
-
requestAnimationFrame(module.stick);
|
294
|
-
}
|
295
|
-
else {
|
296
|
-
module.unStick();
|
297
|
-
}
|
298
|
-
}, settings.lag);
|
299
|
-
}
|
300
|
-
},
|
301
244
|
setting: function(name, value) {
|
245
|
+
module.debug('Changing setting', name, value);
|
302
246
|
if( $.isPlainObject(name) ) {
|
303
247
|
$.extend(true, settings, name);
|
304
248
|
}
|
@@ -310,14 +254,11 @@ $.fn.nag = function(parameters) {
|
|
310
254
|
}
|
311
255
|
},
|
312
256
|
internal: function(name, value) {
|
313
|
-
|
314
|
-
|
315
|
-
|
316
|
-
|
317
|
-
|
318
|
-
else {
|
319
|
-
module[name] = value;
|
320
|
-
}
|
257
|
+
if( $.isPlainObject(name) ) {
|
258
|
+
$.extend(true, module, name);
|
259
|
+
}
|
260
|
+
else if(value !== undefined) {
|
261
|
+
module[name] = value;
|
321
262
|
}
|
322
263
|
else {
|
323
264
|
return module[name];
|
@@ -362,9 +303,9 @@ $.fn.nag = function(parameters) {
|
|
362
303
|
executionTime = currentTime - previousTime;
|
363
304
|
time = currentTime;
|
364
305
|
performance.push({
|
365
|
-
'Element' : element,
|
366
306
|
'Name' : message[0],
|
367
307
|
'Arguments' : [].slice.call(message, 1) || '',
|
308
|
+
'Element' : element,
|
368
309
|
'Execution Time' : executionTime
|
369
310
|
});
|
370
311
|
}
|
@@ -385,9 +326,6 @@ $.fn.nag = function(parameters) {
|
|
385
326
|
if(moduleSelector) {
|
386
327
|
title += ' \'' + moduleSelector + '\'';
|
387
328
|
}
|
388
|
-
if($allModules.size() > 1) {
|
389
|
-
title += ' ' + '(' + $allModules.size() + ')';
|
390
|
-
}
|
391
329
|
if( (console.group !== undefined || console.table !== undefined) && performance.length > 0) {
|
392
330
|
console.groupCollapsed(title);
|
393
331
|
if(console.table) {
|
@@ -435,6 +373,7 @@ $.fn.nag = function(parameters) {
|
|
435
373
|
return false;
|
436
374
|
}
|
437
375
|
else {
|
376
|
+
module.error(error.method, query);
|
438
377
|
return false;
|
439
378
|
}
|
440
379
|
});
|
@@ -457,6 +396,7 @@ $.fn.nag = function(parameters) {
|
|
457
396
|
return found;
|
458
397
|
}
|
459
398
|
};
|
399
|
+
|
460
400
|
if(methodInvoked) {
|
461
401
|
if(instance === undefined) {
|
462
402
|
module.initialize();
|
@@ -469,9 +409,9 @@ $.fn.nag = function(parameters) {
|
|
469
409
|
}
|
470
410
|
module.initialize();
|
471
411
|
}
|
472
|
-
|
473
412
|
})
|
474
413
|
;
|
414
|
+
|
475
415
|
return (returnedValue !== undefined)
|
476
416
|
? returnedValue
|
477
417
|
: this
|
@@ -491,46 +431,40 @@ $.fn.nag.settings = {
|
|
491
431
|
// allows cookie to be overriden
|
492
432
|
persist : false,
|
493
433
|
|
494
|
-
// set to zero to manually
|
434
|
+
// set to zero to require manually dismissal, otherwise hides on its own
|
495
435
|
displayTime : 0,
|
496
436
|
|
497
437
|
animation : {
|
498
|
-
show: 'slide',
|
499
|
-
hide: 'slide'
|
438
|
+
show : 'slide',
|
439
|
+
hide : 'slide'
|
500
440
|
},
|
501
441
|
|
502
|
-
|
503
|
-
|
504
|
-
|
442
|
+
context : false,
|
443
|
+
detachable : false,
|
444
|
+
|
445
|
+
expires : 30,
|
446
|
+
domain : false,
|
447
|
+
path : '/',
|
505
448
|
|
506
449
|
// type of storage to use
|
507
|
-
storageMethod
|
450
|
+
storageMethod : 'cookie',
|
508
451
|
|
509
452
|
// value to store in dismissed localstorage/cookie
|
510
|
-
|
511
|
-
|
512
|
-
|
513
|
-
// need to calculate stickyness on scroll
|
514
|
-
sticky : false,
|
515
|
-
|
516
|
-
// how often to check scroll event
|
517
|
-
lag : 0,
|
518
|
-
|
519
|
-
// context for scroll event
|
520
|
-
context : window,
|
453
|
+
key : 'nag',
|
454
|
+
value : 'dismiss',
|
521
455
|
|
522
456
|
error: {
|
523
|
-
noStorage
|
457
|
+
noStorage : 'Neither $.cookie or store is defined. A storage solution is required for storing state',
|
524
458
|
method : 'The method you called is not defined.'
|
525
459
|
},
|
526
460
|
|
527
461
|
className : {
|
528
|
-
bottom
|
529
|
-
fixed
|
462
|
+
bottom : 'bottom',
|
463
|
+
fixed : 'fixed'
|
530
464
|
},
|
531
465
|
|
532
466
|
selector : {
|
533
|
-
close: '.icon
|
467
|
+
close : '.close.icon'
|
534
468
|
},
|
535
469
|
|
536
470
|
speed : 500,
|