Responsive Lightbox & Gallery - Version 1.4.1

Version Description

  • Fix: Swipebox script files inconsistency
Download this release

Release Info

Developer dfactory
Plugin Icon 128x128 Responsive Lightbox & Gallery
Version 1.4.1
Comparing to
See all releases

Code changes from version 1.4.0.1 to 1.4.1

assets/swipebox/source/jquery.swipebox.js CHANGED
@@ -1,472 +1,451 @@
1
- /**
2
- * Swipebox - A touchable jQuery lightbox
3
- *
4
- * @author Constantin Saguin - @brutaldesign
5
- * @author Arno Welzel
6
- * @link http://csag.co
7
- * @github http://github.com/brutaldesign/swipebox
8
- * @github https://github.com/arnowelzel/swipebox
9
- * @version 1.2.1
10
- * @license MIT License
11
- */
12
- ;
13
- (function (e, t, n, r) {
14
- n.swipebox = function (i, s) {
15
- var o = {
16
- useCSS: true,
17
- initialIndexOnArray: 0,
18
- hideBarsDelay: 3e3,
19
- videoMaxWidth: 1140,
20
- vimeoColor: "CCCCCC",
21
- beforeOpen: null,
22
- afterClose: null
23
- }, u = this,
24
- a = [],
25
- i = i,
26
- f = i.selector,
27
- l = n(f),
28
- c = t.createTouch !== r || "ontouchstart" in e || "onmsgesturechange" in e || navigator.msMaxTouchPoints,
29
- h = !! e.SVGSVGElement,
30
- p = e.innerWidth ? e.innerWidth : n(e).width(),
31
- d = e.innerHeight ? e.innerHeight : n(e).height(),
32
- v = '<div id="swipebox-overlay"> <div id="swipebox-slider"></div> <div id="swipebox-caption"></div> <div id="swipebox-action"> <a id="swipebox-close"></a> <a id="swipebox-prev"></a> <a id="swipebox-next"></a> </div> </div>';
33
- u.settings = {};
34
- u.init = function () {
35
- u.settings = n.extend({}, o, s);
36
- if (n.isArray(i)) {
37
- a = i;
38
- m.target = n(e);
39
- m.init(u.settings.initialIndexOnArray)
40
- } else {
41
- l.click(function (e) {
42
- u.refresh();
43
- a = [];
44
- var t, r, i;
45
- if (!i) {
46
- r = "rel";
47
- i = n(this).attr(r)
48
- }
49
- if (i && i !== "" && i !== "nofollow") {
50
- $elem = l.filter("[" + r + '="' + i + '"]')
51
- } else {
52
- $elem = n(f)
53
- }
54
- $elem.each(function () {
55
- var e = null,
56
- t = null;
57
- if (n(this).attr("title")) e = n(this).attr("title");
58
- else if (n(this).children("img").attr("alt")) e = n(this).children("img").attr("alt");
59
- if (n(this).attr("href")) t = n(this).attr("href");
60
- a.push({
61
- href: t,
62
- title: e
63
- })
64
- });
65
- t = $elem.index(n(this));
66
- e.preventDefault();
67
- e.stopPropagation();
68
- m.target = n(e.target);
69
- m.init(t)
70
- })
71
- }
72
- };
73
- u.refresh = function () {
74
- if (!n.isArray(i)) {
75
- m.destroy();
76
- $elem = n(f);
77
- m.actions()
78
- }
79
- };
80
- var m = {
81
- init: function (e) {
82
- if (u.settings.beforeOpen) u.settings.beforeOpen();
83
- this.target.trigger("swipebox-start");
84
- n.swipebox.isOpen = true;
85
- this.build();
86
- this.openSlide(e);
87
- this.openMedia(e);
88
- this.preloadMedia(e + 1);
89
- this.preloadMedia(e - 1)
90
- },
91
- build: function () {
92
- var e = this;
93
- n("body").append(v);
94
- if (e.doCssTrans()) {
95
- n("#swipebox-slider").css({
96
- "-webkit-transition": "left 0.4s ease",
97
- "-moz-transition": "left 0.4s ease",
98
- "-o-transition": "left 0.4s ease",
99
- "-khtml-transition": "left 0.4s ease",
100
- transition: "left 0.4s ease"
101
- });
102
- n("#swipebox-overlay").css({
103
- "-webkit-transition": "opacity 1s ease",
104
- "-moz-transition": "opacity 1s ease",
105
- "-o-transition": "opacity 1s ease",
106
- "-khtml-transition": "opacity 1s ease",
107
- transition: "opacity 1s ease"
108
- });
109
- n("#swipebox-action, #swipebox-caption").css({
110
- "-webkit-transition": "0.5s",
111
- "-moz-transition": "0.5s",
112
- "-o-transition": "0.5s",
113
- "-khtml-transition": "0.5s",
114
- transition: "0.5s"
115
- })
116
- }
117
- if (h) {
118
- var t = n("#swipebox-action #swipebox-close").css("background-image");
119
- t = t.replace("png", "svg");
120
- n("#swipebox-action #swipebox-prev,#swipebox-action #swipebox-next,#swipebox-action #swipebox-close").css({
121
- "background-image": t
122
- })
123
- }
124
- n.each(a, function () {
125
- n("#swipebox-slider").append('<div class="slide"></div>')
126
- });
127
- e.setDim();
128
- e.actions();
129
- e.keyboard();
130
- e.gesture();
131
- e.animBars();
132
- e.resize();
133
-
134
- scrollTimer = setInterval(function () {
135
- window.scrollTo(window.scrollX, window.scrollY);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
136
  }, 1000);
137
- },
138
- setDim: function () {
139
- var t, r, i = {};
140
- if ("onorientationchange" in e) {
141
- e.addEventListener("orientationchange", function () {
142
- if (e.orientation == 0) {
143
- t = p;
144
- r = d
145
- } else if (e.orientation == 90 || e.orientation == -90) {
146
- t = d;
147
- r = p
148
- }
149
- }, false)
150
- } else {
151
- t = e.innerWidth ? e.innerWidth : n(e).width();
152
- r = e.innerHeight ? e.innerHeight : n(e).height()
153
- }
154
- i = {
155
- width: t,
156
- height: r
157
- };
158
- n("#swipebox-overlay").css(i)
159
- },
160
- resize: function () {
161
- var t = this;
162
- n(e).resize(function () {
163
- t.setDim()
164
- }).resize()
165
- },
166
- supportTransition: function () {
167
- var e = "transition WebkitTransition MozTransition OTransition msTransition KhtmlTransition".split(" ");
168
- for (var n = 0; n < e.length; n++) {
169
- if (t.createElement("div").style[e[n]] !== r) {
170
- return e[n]
171
- }
172
- }
173
- return false
174
- },
175
- doCssTrans: function () {
176
- if (u.settings.useCSS && this.supportTransition()) {
177
- return true
178
- }
179
- },
180
- gesture: function () {
181
- if (c) {
182
- var e = this,
183
- t = null,
184
- r = 10,
185
- i = {}, s = {};
186
- var o = n("#swipebox-caption, #swipebox-action");
187
- o.addClass("visible-bars");
188
- e.setTimeout();
189
- n("#swipebox-slider").bind("touchstart", function (e) {
190
- n(this).addClass("touching");
191
- s = e.originalEvent.targetTouches[0];
192
- i.pageX = e.originalEvent.targetTouches[0].pageX;
193
- n(".touching").bind("touchmove", function (e) {
194
- e.preventDefault();
195
- e.stopPropagation();
196
- s = e.originalEvent.targetTouches[0]
197
- });
198
- return false
199
- }).bind("touchend", function (u) {
200
- u.preventDefault();
201
- u.stopPropagation();
202
- t = s.pageX - i.pageX;
203
- if (t >= r) {
204
- e.getPrev()
205
- } else if (t <= -r) {
206
- e.getNext()
207
- } else {
208
- if (!o.hasClass("visible-bars")) {
209
- e.showBars();
210
- e.setTimeout()
211
- } else {
212
- e.clearTimeout();
213
- e.hideBars()
214
- }
215
- }
216
- n(".touching").off("touchmove").removeClass("touching")
217
- })
218
- }
219
- },
220
- setTimeout: function () {
221
- if (u.settings.hideBarsDelay > 0) {
222
- var t = this;
223
- t.clearTimeout();
224
- t.timeout = e.setTimeout(function () {
225
- t.hideBars()
226
- }, u.settings.hideBarsDelay)
227
- }
228
- },
229
- clearTimeout: function () {
230
- e.clearTimeout(this.timeout);
231
- this.timeout = null
232
- },
233
- showBars: function () {
234
- var e = n("#swipebox-caption, #swipebox-action");
235
- if (this.doCssTrans()) {
236
- e.addClass("visible-bars")
237
- } else {
238
- n("#swipebox-caption").animate({
239
- top: 0
240
- }, 500);
241
- n("#swipebox-action").animate({
242
- bottom: 0
243
- }, 500);
244
- setTimeout(function () {
245
- e.addClass("visible-bars")
246
- }, 1e3)
247
- }
248
- },
249
- hideBars: function () {
250
- var e = n("#swipebox-caption, #swipebox-action");
251
- if (this.doCssTrans()) {
252
- e.removeClass("visible-bars")
253
- } else {
254
- n("#swipebox-caption").animate({
255
- top: "-50px"
256
- }, 500);
257
- n("#swipebox-action").animate({
258
- bottom: "-50px"
259
- }, 500);
260
- setTimeout(function () {
261
- e.removeClass("visible-bars")
262
- }, 1e3)
263
- }
264
- },
265
- animBars: function () {
266
- var e = this;
267
- var t = n("#swipebox-caption, #swipebox-action");
268
- t.addClass("visible-bars");
269
- e.setTimeout();
270
- n("#swipebox-slider").click(function (n) {
271
- if (!t.hasClass("visible-bars")) {
272
- e.showBars();
273
- e.setTimeout()
274
- } else {
275
- e.clearTimeout();
276
- e.hideBars()
277
- }
278
- });
279
- n("#swipebox-action").hover(function () {
280
- e.showBars();
281
- t.addClass("force-visible-bars");
282
- e.clearTimeout()
283
- }, function () {
284
- t.removeClass("force-visible-bars");
285
- e.setTimeout()
286
- })
287
- },
288
- keyboard: function () {
289
- var t = this;
290
- n(e).bind("keyup", function (e) {
291
- e.preventDefault();
292
- e.stopPropagation();
293
- if (e.keyCode == 37) {
294
- t.getPrev()
295
- } else if (e.keyCode == 39) {
296
- t.getNext()
297
- } else if (e.keyCode == 27) {
298
- t.closeSlide()
299
- }
300
- })
301
- },
302
- actions: function () {
303
- var e = this;
304
- if (a.length < 2) {
305
- n("#swipebox-prev, #swipebox-next").hide()
306
- } else {
307
- n("#swipebox-prev").bind("click", function (t) {
308
- t.preventDefault();
309
- t.stopPropagation();
310
- e.getPrev();
311
- e.setTimeout()
312
- });
313
- n("#swipebox-next").bind("click", function (t) {
314
- t.preventDefault();
315
- t.stopPropagation();
316
- e.getNext();
317
- e.setTimeout()
318
- })
319
- }
320
- n("#swipebox-close").bind("click", function (t) {
321
- e.closeSlide()
322
- })
323
- },
324
- setSlide: function (e, t) {
325
- t = t || false;
326
- var r = n("#swipebox-slider");
327
- if (this.doCssTrans()) {
328
- r.css({
329
- left: -e * 100 + "%"
330
- })
331
- } else {
332
- r.animate({
333
- left: -e * 100 + "%"
334
- })
335
- }
336
- n("#swipebox-slider .slide").removeClass("current");
337
- n("#swipebox-slider .slide").eq(e).addClass("current");
338
- this.setTitle(e);
339
- if (t) {
340
- r.fadeIn()
341
- }
342
- n("#swipebox-prev, #swipebox-next").removeClass("disabled");
343
- if (e == 0) {
344
- n("#swipebox-prev").addClass("disabled")
345
- } else if (e == a.length - 1) {
346
- n("#swipebox-next").addClass("disabled")
347
- }
348
- },
349
- openSlide: function (t) {
350
- n("html").addClass("swipebox");
351
- n(e).trigger("resize");
352
- this.setSlide(t, true)
353
- },
354
- preloadMedia: function (e) {
355
- var t = this,
356
- n = null;
357
- if (a[e] !== r) n = a[e].href;
358
- if (!t.isVideo(n)) {
359
- setTimeout(function () {
360
- t.openMedia(e)
361
- }, 1e3)
362
- } else {
363
- t.openMedia(e)
364
- }
365
- },
366
- openMedia: function (e) {
367
- var t = this,
368
- i = null;
369
- if (a[e] !== r) i = a[e].href;
370
- if (e < 0 || e >= a.length) {
371
- return false
372
- }
373
- if (!t.isVideo(i)) {
374
- t.loadMedia(i, function () {
375
- n("#swipebox-slider .slide").eq(e).html(this)
376
- })
377
- } else {
378
- n("#swipebox-slider .slide").eq(e).html(t.getVideo(i))
379
- }
380
- },
381
- setTitle: function (e, t) {
382
- var i = null;
383
- n("#swipebox-caption").empty();
384
- if (a[e] !== r) i = a[e].title;
385
- if (i) {
386
- n("#swipebox-caption").append(i)
387
- }
388
- },
389
- isVideo: function (e) {
390
- if (e) {
391
- if (e.match(/youtube\.com\/watch\?v=([a-zA-Z0-9\-_]+)/) || e.match(/vimeo\.com\/([0-9]*)/)) {
392
- return true
393
- }
394
- }
395
- },
396
- getVideo: function (e) {
397
- var t = "";
398
- var n = "";
399
- var r = e.match(/watch\?v=([a-zA-Z0-9\-_]+)/);
400
- var i = e.match(/vimeo\.com\/([0-9]*)/);
401
- if (r) {
402
- t = '<iframe width="560" height="315" src="//www.youtube.com/embed/' + r[1] + '" frameborder="0" allowfullscreen></iframe>'
403
- } else if (i) {
404
- t = '<iframe width="560" height="315" src="http://player.vimeo.com/video/' + i[1] + "?byline=0&portrait=0&color=" + u.settings.vimeoColor + '" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>'
405
- }
406
- return '<div class="swipebox-video-container" style="max-width:' + u.settings.videoMaxWidth + 'px"><div class="swipebox-video">' + t + "</div></div>"
407
- },
408
- loadMedia: function (e, t) {
409
- if (!this.isVideo(e)) {
410
- var r = n("<img>").on("load", function () {
411
- t.call(r)
412
- });
413
- r.attr("src", e)
414
- }
415
- },
416
- getNext: function () {
417
- var e = this;
418
- index = n("#swipebox-slider .slide").index(n("#swipebox-slider .slide.current"));
419
- if (index + 1 < a.length) {
420
- index++;
421
- e.setSlide(index);
422
- e.preloadMedia(index + 1)
423
- } else {
424
- n("#swipebox-slider").addClass("rightSpring");
425
- setTimeout(function () {
426
- n("#swipebox-slider").removeClass("rightSpring")
427
- }, 500)
428
- }
429
- },
430
- getPrev: function () {
431
- index = n("#swipebox-slider .slide").index(n("#swipebox-slider .slide.current"));
432
- if (index > 0) {
433
- index--;
434
- this.setSlide(index);
435
- this.preloadMedia(index - 1)
436
- } else {
437
- n("#swipebox-slider").addClass("leftSpring");
438
- setTimeout(function () {
439
- n("#swipebox-slider").removeClass("leftSpring")
440
- }, 500)
441
- }
442
- },
443
- closeSlide: function () {
444
- n("html").removeClass("swipebox");
445
- n(e).trigger("resize");
446
- this.destroy()
447
- },
448
- destroy: function () {
449
- n(e).unbind("keyup");
450
- n("#swipebox-slider").unbind("touchstart");
451
- n("#swipebox-slider").unbind("touchmove");
452
- n("#swipebox-slider").unbind("touchend");
453
- n("#swipebox-slider").unbind();
454
- n("#swipebox-overlay").remove();
455
- if (!n.isArray(i)) i.removeData("_swipebox");
456
- if (this.target) this.target.trigger("swipebox-destroy");
457
- n.swipebox.isOpen = false;
458
- if (u.settings.afterClose) u.settings.afterClose();
459
-
460
- scrollTimer = null;
461
- }
462
- };
463
- u.init()
464
- };
465
- n.fn.swipebox = function (e) {
466
- if (!n.data(this, "_swipebox")) {
467
- var t = new n.swipebox(this, e);
468
- this.data("_swipebox", t)
469
- }
470
- return this.data("_swipebox")
471
- }
472
- })(window, document, jQuery)
1
+ /*---------------------------------------------------------------------------------------------
2
+
3
+ @author Constantin Saguin - @brutaldesign
4
+ @link http://bsign.co
5
+ @github http://github.com/brutaldesign/swipebox
6
+ @version 1.1.2
7
+ @license MIT License
8
+
9
+ ----------------------------------------------------------------------------------------------*/
10
+
11
+ ;(function (window, document, $, undefined) {
12
+
13
+ $.swipebox = function(elem, options) {
14
+
15
+ var defaults = {
16
+ useCSS : true,
17
+ hideBarsDelay : 3000
18
+ },
19
+
20
+ plugin = this,
21
+ $elem = $(elem),
22
+ elem = elem,
23
+ selector = elem.selector,
24
+ $selector = $(selector),
25
+ isTouch = document.createTouch !== undefined || ('ontouchstart' in window) || ('onmsgesturechange' in window) || navigator.msMaxTouchPoints,
26
+ supportSVG = !!(window.SVGSVGElement),
27
+ html = '<div id="swipebox-overlay">\
28
+ <div id="swipebox-slider"></div>\
29
+ <div id="swipebox-caption"></div>\
30
+ <div id="swipebox-action">\
31
+ <a id="swipebox-close"></a>\
32
+ <a id="swipebox-prev"></a>\
33
+ <a id="swipebox-next"></a>\
34
+ </div>\
35
+ </div>';
36
+
37
+ plugin.settings = {}
38
+
39
+ plugin.init = function(){
40
+
41
+ plugin.settings = $.extend({}, defaults, options);
42
+
43
+ $selector.click(function(e){
44
+ e.preventDefault();
45
+ e.stopPropagation();
46
+ index = $elem.index($(this));
47
+ ui.target = $(e.target);
48
+ ui.init(index);
49
+ });
50
+ }
51
+
52
+ var ui = {
53
+
54
+ init : function(index){
55
+ this.target.trigger('swipebox-start');
56
+ this.build();
57
+ this.openSlide(index);
58
+ this.openImg(index);
59
+ this.preloadImg(index+1);
60
+ this.preloadImg(index-1);
61
+ },
62
+
63
+ build : function(){
64
+ var $this = this;
65
+
66
+ $('body').append(html);
67
+
68
+ if($this.doCssTrans()){
69
+ $('#swipebox-slider').css({
70
+ '-webkit-transition' : 'left 0.4s ease',
71
+ '-moz-transition' : 'left 0.4s ease',
72
+ '-o-transition' : 'left 0.4s ease',
73
+ '-khtml-transition' : 'left 0.4s ease',
74
+ 'transition' : 'left 0.4s ease'
75
+ });
76
+ $('#swipebox-overlay').css({
77
+ '-webkit-transition' : 'opacity 1s ease',
78
+ '-moz-transition' : 'opacity 1s ease',
79
+ '-o-transition' : 'opacity 1s ease',
80
+ '-khtml-transition' : 'opacity 1s ease',
81
+ 'transition' : 'opacity 1s ease'
82
+ });
83
+ $('#swipebox-action, #swipebox-caption').css({
84
+ '-webkit-transition' : '0.5s',
85
+ '-moz-transition' : '0.5s',
86
+ '-o-transition' : '0.5s',
87
+ '-khtml-transition' : '0.5s',
88
+ 'transition' : '0.5s'
89
+ });
90
+ }
91
+
92
+
93
+ if(supportSVG){
94
+ var bg = $('#swipebox-action #swipebox-close').css('background-image');
95
+ bg = bg.replace('png', 'svg');
96
+ $('#swipebox-action #swipebox-prev,#swipebox-action #swipebox-next,#swipebox-action #swipebox-close').css({
97
+ 'background-image' : bg
98
+ });
99
+ }
100
+
101
+ $elem.each(function(){
102
+ $('#swipebox-slider').append('<div class="slide"></div>');
103
+ });
104
+
105
+ $this.setDim();
106
+ $this.actions();
107
+ $this.keyboard();
108
+ $this.gesture();
109
+ $this.animBars();
110
+
111
+ $(window).resize(function() {
112
+ $this.setDim();
113
+ }).resize();
114
+ },
115
+
116
+ setDim : function(){
117
+ var sliderCss = {
118
+ width : $(window).width(),
119
+ height : window.innerHeight ? window.innerHeight : $(window).height() // fix IOS bug
120
+ }
121
+
122
+ $('#swipebox-overlay').css(sliderCss);
123
+
124
+ },
125
+
126
+ supportTransition : function() {
127
+ var prefixes = 'transition WebkitTransition MozTransition OTransition msTransition KhtmlTransition'.split(' ');
128
+ for(var i = 0; i < prefixes.length; i++) {
129
+ if(document.createElement('div').style[prefixes[i]] !== undefined) {
130
+ return prefixes[i];
131
+ }
132
+ }
133
+ return false;
134
+ },
135
+
136
+ doCssTrans : function(){
137
+ if(plugin.settings.useCSS && this.supportTransition() ){
138
+ return true;
139
+ }
140
+ },
141
+
142
+ gesture : function(){
143
+ if ( isTouch ){
144
+ var $this = this,
145
+ distance = null,
146
+ swipMinDistance = 10,
147
+ startCoords = {},
148
+ endCoords = {};
149
+ var b = $('#swipebox-caption, #swipebox-action');
150
+
151
+ b.addClass('visible-bars');
152
+ $this.setTimeout();
153
+
154
+ $('body').bind('touchstart', function(e){
155
+
156
+ $(this).addClass('touching');
157
+
158
+ endCoords = e.originalEvent.targetTouches[0];
159
+ startCoords.pageX = e.originalEvent.targetTouches[0].pageX;
160
+
161
+ $('.touching').bind('touchmove',function(e){
162
+ e.preventDefault();
163
+ e.stopPropagation();
164
+ endCoords = e.originalEvent.targetTouches[0];
165
+
166
+ });
167
+
168
+ return false;
169
+
170
+ }).bind('touchend',function(e){
171
+ e.preventDefault();
172
+ e.stopPropagation();
173
+
174
+ distance = endCoords.pageX - startCoords.pageX;
175
+
176
+ if( distance >= swipMinDistance ){
177
+ // swipeLeft
178
+ $this.getPrev();
179
+ }
180
+
181
+ else if( distance <= - swipMinDistance ){
182
+ // swipeRight
183
+ $this.getNext();
184
+
185
+ }else{
186
+ // tap
187
+ if(!b.hasClass('visible-bars')){
188
+ $this.showBars();
189
+ $this.setTimeout();
190
+ }else{
191
+ $this.clearTimeout();
192
+ $this.hideBars();
193
+ }
194
+
195
+ }
196
+
197
+ $('.touching').off('touchmove').removeClass('touching');
198
+
199
+ });
200
+
201
+ }
202
+ },
203
+
204
+ setTimeout: function(){
205
+ if(plugin.settings.hideBarsDelay > 0){
206
+ var $this = this;
207
+ $this.clearTimeout();
208
+ $this.timeout = window.setTimeout( function(){
209
+ $this.hideBars() },
210
+ plugin.settings.hideBarsDelay
211
+ );
212
+ }
213
+ },
214
+
215
+ clearTimeout: function(){
216
+ window.clearTimeout(this.timeout);
217
+ this.timeout = null;
218
+ },
219
+
220
+ showBars : function(){
221
+ var b = $('#swipebox-caption, #swipebox-action');
222
+ if(this.doCssTrans()){
223
+ b.addClass('visible-bars');
224
+ }else{
225
+ $('#swipebox-caption').animate({ top : 0 }, 500);
226
+ $('#swipebox-action').animate({ bottom : 0 }, 500);
227
+ setTimeout(function(){
228
+ b.addClass('visible-bars');
229
+ }, 1000);
230
+ }
231
+ },
232
+
233
+ hideBars : function(){
234
+ var b = $('#swipebox-caption, #swipebox-action');
235
+ if(this.doCssTrans()){
236
+ b.removeClass('visible-bars');
237
+ }else{
238
+ $('#swipebox-caption').animate({ top : '-50px' }, 500);
239
+ $('#swipebox-action').animate({ bottom : '-50px' }, 500);
240
+ setTimeout(function(){
241
+ b.removeClass('visible-bars');
242
+ }, 1000);
243
+ }
244
+ },
245
+
246
+ animBars : function(){
247
+ var $this = this;
248
+ var b = $('#swipebox-caption, #swipebox-action');
249
+
250
+ b.addClass('visible-bars');
251
+ $this.setTimeout();
252
+
253
+ $('#swipebox-slider').click(function(e){
254
+ if(!b.hasClass('visible-bars')){
255
+ $this.showBars();
256
+ $this.setTimeout();
257
+ }
258
+ });
259
+
260
+ $('#swipebox-action').hover(function() {
261
+ $this.showBars();
262
+ b.addClass('force-visible-bars');
263
+ $this.clearTimeout();
264
+
265
+ },function() {
266
+ b.removeClass('force-visible-bars');
267
+ $this.setTimeout();
268
+
269
+ });
270
+ },
271
+
272
+ keyboard : function(){
273
+ var $this = this;
274
+ $(window).bind('keyup', function(e){
275
+ e.preventDefault();
276
+ e.stopPropagation();
277
+ if (e.keyCode == 37){
278
+ $this.getPrev();
279
+ }
280
+ else if (e.keyCode==39){
281
+ $this.getNext();
282
+ }
283
+ else if (e.keyCode == 27) {
284
+ $this.closeSlide();
285
+ }
286
+ });
287
+ },
288
+
289
+ actions : function(){
290
+ var $this = this;
291
+
292
+ if( $elem.length < 2 ){
293
+ $('#swipebox-prev, #swipebox-next').hide();
294
+ }else{
295
+ $('#swipebox-prev').bind('click touchend', function(e){
296
+ e.preventDefault();
297
+ e.stopPropagation();
298
+ $this.getPrev();
299
+ $this.setTimeout();
300
+ });
301
+
302
+ $('#swipebox-next').bind('click touchend', function(e){
303
+ e.preventDefault();
304
+ e.stopPropagation();
305
+ $this.getNext();
306
+ $this.setTimeout();
307
+ });
308
+ }
309
+
310
+ $('#swipebox-close').bind('click touchend', function(e){
311
+ $this.closeSlide();
312
+ });
313
+ },
314
+
315
+ setSlide : function (index, isFirst){
316
+ isFirst = isFirst || false;
317
+
318
+ var slider = $('#swipebox-slider');
319
+
320
+ if(this.doCssTrans()){
321
+ slider.css({ left : (-index*100)+'%' });
322
+ }else{
323
+ slider.animate({ left : (-index*100)+'%' });
324
+ }
325
+
326
+ $('#swipebox-slider .slide').removeClass('current');
327
+ $('#swipebox-slider .slide').eq(index).addClass('current');
328
+ this.setTitle(index);
329
+
330
+ if( isFirst ){
331
+ slider.fadeIn();
332
+ }
333
+
334
+ $('#swipebox-prev, #swipebox-next').removeClass('disabled');
335
+ if(index == 0){
336
+ $('#swipebox-prev').addClass('disabled');
337
+ }else if( index == $elem.length - 1 ){
338
+ $('#swipebox-next').addClass('disabled');
339
+ }
340
+ },
341
+
342
+ openSlide : function (index){
343
+
344
+ $('html').addClass('swipebox');
345
+ $(window).trigger('resize'); // fix scroll bar visibility on desktop
346
+ this.setSlide(index, true);
347
+ },
348
+
349
+ preloadImg : function (index){
350
+ var $this = this;
351
+ setTimeout(function(){
352
+ $this.openImg(index);
353
  }, 1000);
354
+ },
355
+
356
+ openImg : function (index){
357
+ var $this = this;
358
+ if(index < 0 || index >= $elem.length){
359
+ return false;
360
+ }
361
+
362
+ $this.loadImg($elem.eq(index).attr('href'), function(){
363
+ $('#swipebox-slider .slide').eq(index).html(this);
364
+ });
365
+ },
366
+
367
+
368
+ setTitle : function(index, isFirst){
369
+ $('#swipebox-caption').empty();
370
+
371
+ if($elem.eq(index).attr('title')){
372
+ $('#swipebox-caption').append($elem.eq(index).attr('title'));
373
+ }
374
+ },
375
+
376
+ loadImg : function (src, callback){
377
+ var img = $('<img>').on('load', function(){
378
+ callback.call(img);
379
+ });
380
+
381
+ img.attr('src',src);
382
+ },
383
+
384
+ getNext : function (){
385
+ var $this = this;
386
+ index = $('#swipebox-slider .slide').index($('#swipebox-slider .slide.current'));
387
+ if(index+1 < $elem.length){
388
+ index++;
389
+ $this.setSlide(index);
390
+ $this.preloadImg(index+1);
391
+ }
392
+ else{
393
+
394
+ $('#swipebox-slider').addClass('rightSpring');
395
+ setTimeout(function(){
396
+ $('#swipebox-slider').removeClass('rightSpring');
397
+ },500);
398
+ }
399
+ },
400
+
401
+ getPrev : function (){
402
+ var $this = this;
403
+ index = $('#swipebox-slider .slide').index($('#swipebox-slider .slide.current'));
404
+ if(index > 0){
405
+ index--;
406
+ $this.setSlide(index);
407
+ $this.preloadImg(index-1);
408
+ }
409
+ else{
410
+
411
+ $('#swipebox-slider').addClass('leftSpring');
412
+ setTimeout(function(){
413
+ $('#swipebox-slider').removeClass('leftSpring');
414
+ },500);
415
+ }
416
+ },
417
+
418
+
419
+ closeSlide : function (){
420
+ var $this = this;
421
+ $(window).trigger('resize');
422
+ $('html').removeClass('swipebox');
423
+ $this.destroy();
424
+ },
425
+
426
+ destroy : function(){
427
+ var $this = this;
428
+ $(window).unbind('keyup');
429
+ $('body').unbind('touchstart');
430
+ $('body').unbind('touchmove');
431
+ $('body').unbind('touchend');
432
+ $('#swipebox-slider').unbind();
433
+ $('#swipebox-overlay').remove();
434
+ $elem.removeData('_swipebox');
435
+ $this.target.trigger('swipebox-destroy');
436
+ }
437
+
438
+ }
439
+
440
+ plugin.init();
441
+
442
+ }
443
+
444
+ $.fn.swipebox = function(options){
445
+ if (!$.data(this, "_swipebox")) {
446
+ var swipebox = new $.swipebox(this, options);
447
+ this.data('_swipebox', swipebox);
448
+ }
449
+ }
450
+
451
+ }(window, document, jQuery));
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
assets/swipebox/source/jquery.swipebox.min.js CHANGED
@@ -1,10 +1,12 @@
1
- /*---------------------------------------------------------------------------------------------
2
-
3
- @author Constantin Saguin - @brutaldesign
4
- @link http://csag.co
5
- @github http://github.com/brutaldesign/swipebox
6
- @version 1.2.1
7
- @license MIT License
8
-
9
- ----------------------------------------------------------------------------------------------*/
10
- ;(function(e,t,n,r){n.swipebox=function(i,s){var o={useCSS:true,hideBarsDelay:3e3,videoMaxWidth:1140,vimeoColor:"CCCCCC",beforeOpen:null,afterClose:null},u=this,a=[],i=i,f=i.selector,l=n(f),c=t.createTouch!==r||"ontouchstart"in e||"onmsgesturechange"in e||navigator.msMaxTouchPoints,h=!!e.SVGSVGElement,p=e.innerWidth?e.innerWidth:n(e).width(),d=e.innerHeight?e.innerHeight:n(e).height(),v='<div id="swipebox-overlay"> <div id="swipebox-slider"></div> <div id="swipebox-caption"></div> <div id="swipebox-action"> <a id="swipebox-close"></a> <a id="swipebox-prev"></a> <a id="swipebox-next"></a> </div> </div>';u.settings={};u.init=function(){u.settings=n.extend({},o,s);if(n.isArray(i)){a=i;m.target=n(e);m.init(0)}else{l.click(function(e){a=[];var t,r,i;if(!i){r="rel";i=n(this).attr(r)}if(i&&i!==""&&i!=="nofollow"){$elem=l.filter("["+r+'="'+i+'"]')}else{$elem=n(f)}$elem.each(function(){var e=null,t=null;if(n(this).attr("title"))e=n(this).attr("title");if(n(this).attr("href"))t=n(this).attr("href");a.push({href:t,title:e})});t=$elem.index(n(this));e.preventDefault();e.stopPropagation();m.target=n(e.target);m.init(t)})}};u.refresh=function(){if(!n.isArray(i)){m.destroy();$elem=n(f);m.actions()}};var m={init:function(e){if(u.settings.beforeOpen)u.settings.beforeOpen();this.target.trigger("swipebox-start");n.swipebox.isOpen=true;this.build();this.openSlide(e);this.openMedia(e);this.preloadMedia(e+1);this.preloadMedia(e-1)},build:function(){var e=this;n("body").append(v);if(e.doCssTrans()){n("#swipebox-slider").css({"-webkit-transition":"left 0.4s ease","-moz-transition":"left 0.4s ease","-o-transition":"left 0.4s ease","-khtml-transition":"left 0.4s ease",transition:"left 0.4s ease"});n("#swipebox-overlay").css({"-webkit-transition":"opacity 1s ease","-moz-transition":"opacity 1s ease","-o-transition":"opacity 1s ease","-khtml-transition":"opacity 1s ease",transition:"opacity 1s ease"});n("#swipebox-action, #swipebox-caption").css({"-webkit-transition":"0.5s","-moz-transition":"0.5s","-o-transition":"0.5s","-khtml-transition":"0.5s",transition:"0.5s"})}if(h){var t=n("#swipebox-action #swipebox-close").css("background-image");t=t.replace("png","svg");n("#swipebox-action #swipebox-prev,#swipebox-action #swipebox-next,#swipebox-action #swipebox-close").css({"background-image":t})}n.each(a,function(){n("#swipebox-slider").append('<div class="slide"></div>')});e.setDim();e.actions();e.keyboard();e.gesture();e.animBars();e.resize();scrollTimer = setInterval(function() {window.scrollTo(window.scrollX, window.scrollY);}, 1000);},setDim:function(){var t,r,i={};if("onorientationchange"in e){e.addEventListener("orientationchange",function(){if(e.orientation==0){t=p;r=d}else if(e.orientation==90||e.orientation==-90){t=d;r=p}},false)}else{t=e.innerWidth?e.innerWidth:n(e).width();r=e.innerHeight?e.innerHeight:n(e).height()}i={width:t,height:r};n("#swipebox-overlay").css(i)},resize:function(){var t=this;n(e).resize(function(){t.setDim()}).resize()},supportTransition:function(){var e="transition WebkitTransition MozTransition OTransition msTransition KhtmlTransition".split(" ");for(var n=0;n<e.length;n++){if(t.createElement("div").style[e[n]]!==r){return e[n]}}return false},doCssTrans:function(){if(u.settings.useCSS&&this.supportTransition()){return true}},gesture:function(){if(c){var e=this,t=null,r=10,i={},s={};var o=n("#swipebox-caption, #swipebox-action");o.addClass("visible-bars");e.setTimeout();n("body").bind("touchstart",function(e){n(this).addClass("touching");s=e.originalEvent.targetTouches[0];i.pageX=e.originalEvent.targetTouches[0].pageX;n(".touching").bind("touchmove",function(e){e.preventDefault();e.stopPropagation();s=e.originalEvent.targetTouches[0]});return false}).bind("touchend",function(u){u.preventDefault();u.stopPropagation();t=s.pageX-i.pageX;if(t>=r){e.getPrev()}else if(t<=-r){e.getNext()}else{if(!o.hasClass("visible-bars")){e.showBars();e.setTimeout()}else{e.clearTimeout();e.hideBars()}}n(".touching").off("touchmove").removeClass("touching")})}},setTimeout:function(){if(u.settings.hideBarsDelay>0){var t=this;t.clearTimeout();t.timeout=e.setTimeout(function(){t.hideBars()},u.settings.hideBarsDelay)}},clearTimeout:function(){e.clearTimeout(this.timeout);this.timeout=null},showBars:function(){var e=n("#swipebox-caption, #swipebox-action");if(this.doCssTrans()){e.addClass("visible-bars")}else{n("#swipebox-caption").animate({top:0},500);n("#swipebox-action").animate({bottom:0},500);setTimeout(function(){e.addClass("visible-bars")},1e3)}},hideBars:function(){var e=n("#swipebox-caption, #swipebox-action");if(this.doCssTrans()){e.removeClass("visible-bars")}else{n("#swipebox-caption").animate({top:"-50px"},500);n("#swipebox-action").animate({bottom:"-50px"},500);setTimeout(function(){e.removeClass("visible-bars")},1e3)}},animBars:function(){var e=this;var t=n("#swipebox-caption, #swipebox-action");t.addClass("visible-bars");e.setTimeout();n("#swipebox-slider").click(function(n){if(!t.hasClass("visible-bars")){e.showBars();e.setTimeout()}});n("#swipebox-action").hover(function(){e.showBars();t.addClass("force-visible-bars");e.clearTimeout()},function(){t.removeClass("force-visible-bars");e.setTimeout()})},keyboard:function(){var t=this;n(e).bind("keyup",function(e){e.preventDefault();e.stopPropagation();if(e.keyCode==37){t.getPrev()}else if(e.keyCode==39){t.getNext()}else if(e.keyCode==27){t.closeSlide()}})},actions:function(){var e=this;if(a.length<2){n("#swipebox-prev, #swipebox-next").hide()}else{n("#swipebox-prev").bind("click touchend",function(t){t.preventDefault();t.stopPropagation();e.getPrev();e.setTimeout()});n("#swipebox-next").bind("click touchend",function(t){t.preventDefault();t.stopPropagation();e.getNext();e.setTimeout()})}n("#swipebox-close").bind("click touchend",function(t){e.closeSlide()})},setSlide:function(e,t){t=t||false;var r=n("#swipebox-slider");if(this.doCssTrans()){r.css({left:-e*100+"%"})}else{r.animate({left:-e*100+"%"})}n("#swipebox-slider .slide").removeClass("current");n("#swipebox-slider .slide").eq(e).addClass("current");this.setTitle(e);if(t){r.fadeIn()}n("#swipebox-prev, #swipebox-next").removeClass("disabled");if(e==0){n("#swipebox-prev").addClass("disabled")}else if(e==a.length-1){n("#swipebox-next").addClass("disabled")}},openSlide:function(t){n("html").addClass("swipebox");n(e).trigger("resize");this.setSlide(t,true)},preloadMedia:function(e){var t=this,n=null;if(a[e]!==r)n=a[e].href;if(!t.isVideo(n)){setTimeout(function(){t.openMedia(e)},1e3)}else{t.openMedia(e)}},openMedia:function(e){var t=this,i=null;if(a[e]!==r)i=a[e].href;if(e<0||e>=a.length){return false}if(!t.isVideo(i)){t.loadMedia(i,function(){n("#swipebox-slider .slide").eq(e).html(this)})}else{n("#swipebox-slider .slide").eq(e).html(t.getVideo(i))}},setTitle:function(e,t){var i=null;n("#swipebox-caption").empty();if(a[e]!==r)i=a[e].title;if(i){n("#swipebox-caption").append(i)}},isVideo:function(e){if(e){if(e.match(/youtube\.com\/watch\?v=([a-zA-Z0-9\-_]+)/)||e.match(/vimeo\.com\/([0-9]*)/)){return true}}},getVideo:function(e){var t="";var n="";var r=e.match(/watch\?v=([a-zA-Z0-9\-_]+)/);var i=e.match(/vimeo\.com\/([0-9]*)/);if(r){t='<iframe width="560" height="315" src="//www.youtube.com/embed/'+r[1]+'" frameborder="0" allowfullscreen></iframe>'}else if(i){t='<iframe width="560" height="315" src="http://player.vimeo.com/video/'+i[1]+"?byline=0&portrait=0&color="+u.settings.vimeoColor+'" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>'}return'<div class="swipebox-video-container" style="max-width:'+u.settings.videoMaxWidth+'px"><div class="swipebox-video">'+t+"</div></div>"},loadMedia:function(e,t){if(!this.isVideo(e)){var r=n("<img>").on("load",function(){t.call(r)});r.attr("src",e)}},getNext:function(){var e=this;index=n("#swipebox-slider .slide").index(n("#swipebox-slider .slide.current"));if(index+1<a.length){index++;e.setSlide(index);e.preloadMedia(index+1)}else{n("#swipebox-slider").addClass("rightSpring");setTimeout(function(){n("#swipebox-slider").removeClass("rightSpring")},500)}},getPrev:function(){index=n("#swipebox-slider .slide").index(n("#swipebox-slider .slide.current"));if(index>0){index--;this.setSlide(index);this.preloadMedia(index-1)}else{n("#swipebox-slider").addClass("leftSpring");setTimeout(function(){n("#swipebox-slider").removeClass("leftSpring")},500)}},closeSlide:function(){n("html").removeClass("swipebox");n(e).trigger("resize");this.destroy()},destroy:function(){n(e).unbind("keyup");n("body").unbind("touchstart");n("body").unbind("touchmove");n("body").unbind("touchend");n("#swipebox-slider").unbind();n("#swipebox-overlay").remove();if(!n.isArray(i))i.removeData("_swipebox");if(this.target)this.target.trigger("swipebox-destroy");n.swipebox.isOpen=false;if(u.settings.afterClose)u.settings.afterClose();scrollTimer = null}};u.init()};n.fn.swipebox=function(e){if(!n.data(this,"_swipebox")){var t=new n.swipebox(this,e);this.data("_swipebox",t)}return this.data("_swipebox")}})(window,document,jQuery);
 
 
1
+ /**
2
+ * Swipebox - A touchable jQuery lightbox
3
+ *
4
+ * @author Constantin Saguin - @brutaldesign
5
+ * @author Arno Welzel
6
+ * @link http://csag.co
7
+ * @github http://github.com/brutaldesign/swipebox
8
+ * @github https://github.com/arnowelzel/swipebox
9
+ * @version 1.2.1
10
+ * @license MIT License
11
+ */
12
+ (function(e,t,n,r){n.swipebox=function(i,s){var o={useCSS:true,initialIndexOnArray:0,hideBarsDelay:3e3,videoMaxWidth:1140,vimeoColor:"CCCCCC",beforeOpen:null,afterClose:null},u=this,a=[],i=i,f=i.selector,l=n(f),c=t.createTouch!==r||"ontouchstart"in e||"onmsgesturechange"in e||navigator.msMaxTouchPoints,h=!!e.SVGSVGElement,p=e.innerWidth?e.innerWidth:n(e).width(),d=e.innerHeight?e.innerHeight:n(e).height(),v='<div id="swipebox-overlay"> <div id="swipebox-slider"></div> <div id="swipebox-caption"></div> <div id="swipebox-action"> <a id="swipebox-close"></a> <a id="swipebox-prev"></a> <a id="swipebox-next"></a> </div> </div>';u.settings={};u.init=function(){u.settings=n.extend({},o,s);if(n.isArray(i)){a=i;m.target=n(e);m.init(u.settings.initialIndexOnArray)}else{l.click(function(e){u.refresh();a=[];var t,r,i;if(!i){r="rel";i=n(this).attr(r)}if(i&&i!==""&&i!=="nofollow"){$elem=l.filter("["+r+'="'+i+'"]')}else{$elem=n(f)}$elem.each(function(){var e=null,t=null;if(n(this).attr("title"))e=n(this).attr("title");else if(n(this).children("img").attr("alt"))e=n(this).children("img").attr("alt");if(n(this).attr("href"))t=n(this).attr("href");a.push({href:t,title:e})});t=$elem.index(n(this));e.preventDefault();e.stopPropagation();m.target=n(e.target);m.init(t)})}};u.refresh=function(){if(!n.isArray(i)){m.destroy();$elem=n(f);m.actions()}};var m={init:function(e){if(u.settings.beforeOpen)u.settings.beforeOpen();this.target.trigger("swipebox-start");n.swipebox.isOpen=true;this.build();this.openSlide(e);this.openMedia(e);this.preloadMedia(e+1);this.preloadMedia(e-1)},build:function(){var e=this;n("body").append(v);if(e.doCssTrans()){n("#swipebox-slider").css({"-webkit-transition":"left 0.4s ease","-moz-transition":"left 0.4s ease","-o-transition":"left 0.4s ease","-khtml-transition":"left 0.4s ease",transition:"left 0.4s ease"});n("#swipebox-overlay").css({"-webkit-transition":"opacity 1s ease","-moz-transition":"opacity 1s ease","-o-transition":"opacity 1s ease","-khtml-transition":"opacity 1s ease",transition:"opacity 1s ease"});n("#swipebox-action, #swipebox-caption").css({"-webkit-transition":"0.5s","-moz-transition":"0.5s","-o-transition":"0.5s","-khtml-transition":"0.5s",transition:"0.5s"})}if(h){var t=n("#swipebox-action #swipebox-close").css("background-image");t=t.replace("png","svg");n("#swipebox-action #swipebox-prev,#swipebox-action #swipebox-next,#swipebox-action #swipebox-close").css({"background-image":t})}n.each(a,function(){n("#swipebox-slider").append('<div class="slide"></div>')});e.setDim();e.actions();e.keyboard();e.gesture();e.animBars();e.resize();scrollTimer=setInterval(function(){window.scrollTo(window.scrollX,window.scrollY)},1e3)},setDim:function(){var t,r,i={};if("onorientationchange"in e){e.addEventListener("orientationchange",function(){if(e.orientation==0){t=p;r=d}else if(e.orientation==90||e.orientation==-90){t=d;r=p}},false)}else{t=e.innerWidth?e.innerWidth:n(e).width();r=e.innerHeight?e.innerHeight:n(e).height()}i={width:t,height:r};n("#swipebox-overlay").css(i)},resize:function(){var t=this;n(e).resize(function(){t.setDim()}).resize()},supportTransition:function(){var e="transition WebkitTransition MozTransition OTransition msTransition KhtmlTransition".split(" ");for(var n=0;n<e.length;n++){if(t.createElement("div").style[e[n]]!==r){return e[n]}}return false},doCssTrans:function(){if(u.settings.useCSS&&this.supportTransition()){return true}},gesture:function(){if(c){var e=this,t=null,r=10,i={},s={};var o=n("#swipebox-caption, #swipebox-action");o.addClass("visible-bars");e.setTimeout();n("#swipebox-slider").bind("touchstart",function(e){n(this).addClass("touching");s=e.originalEvent.targetTouches[0];i.pageX=e.originalEvent.targetTouches[0].pageX;n(".touching").bind("touchmove",function(e){e.preventDefault();e.stopPropagation();s=e.originalEvent.targetTouches[0]});return false}).bind("touchend",function(u){u.preventDefault();u.stopPropagation();t=s.pageX-i.pageX;if(t>=r){e.getPrev()}else if(t<=-r){e.getNext()}else{if(!o.hasClass("visible-bars")){e.showBars();e.setTimeout()}else{e.clearTimeout();e.hideBars()}}n(".touching").off("touchmove").removeClass("touching")})}},setTimeout:function(){if(u.settings.hideBarsDelay>0){var t=this;t.clearTimeout();t.timeout=e.setTimeout(function(){t.hideBars()},u.settings.hideBarsDelay)}},clearTimeout:function(){e.clearTimeout(this.timeout);this.timeout=null},showBars:function(){var e=n("#swipebox-caption, #swipebox-action");if(this.doCssTrans()){e.addClass("visible-bars")}else{n("#swipebox-caption").animate({top:0},500);n("#swipebox-action").animate({bottom:0},500);setTimeout(function(){e.addClass("visible-bars")},1e3)}},hideBars:function(){var e=n("#swipebox-caption, #swipebox-action");if(this.doCssTrans()){e.removeClass("visible-bars")}else{n("#swipebox-caption").animate({top:"-50px"},500);n("#swipebox-action").animate({bottom:"-50px"},500);setTimeout(function(){e.removeClass("visible-bars")},1e3)}},animBars:function(){var e=this;var t=n("#swipebox-caption, #swipebox-action");t.addClass("visible-bars");e.setTimeout();n("#swipebox-slider").click(function(n){if(!t.hasClass("visible-bars")){e.showBars();e.setTimeout()}else{e.clearTimeout();e.hideBars()}});n("#swipebox-action").hover(function(){e.showBars();t.addClass("force-visible-bars");e.clearTimeout()},function(){t.removeClass("force-visible-bars");e.setTimeout()})},keyboard:function(){var t=this;n(e).bind("keyup",function(e){e.preventDefault();e.stopPropagation();if(e.keyCode==37){t.getPrev()}else if(e.keyCode==39){t.getNext()}else if(e.keyCode==27){t.closeSlide()}})},actions:function(){var e=this;if(a.length<2){n("#swipebox-prev, #swipebox-next").hide()}else{n("#swipebox-prev").bind("click",function(t){t.preventDefault();t.stopPropagation();e.getPrev();e.setTimeout()});n("#swipebox-next").bind("click",function(t){t.preventDefault();t.stopPropagation();e.getNext();e.setTimeout()})}n("#swipebox-close").bind("click",function(t){e.closeSlide()})},setSlide:function(e,t){t=t||false;var r=n("#swipebox-slider");if(this.doCssTrans()){r.css({left:-e*100+"%"})}else{r.animate({left:-e*100+"%"})}n("#swipebox-slider .slide").removeClass("current");n("#swipebox-slider .slide").eq(e).addClass("current");this.setTitle(e);if(t){r.fadeIn()}n("#swipebox-prev, #swipebox-next").removeClass("disabled");if(e==0){n("#swipebox-prev").addClass("disabled")}else if(e==a.length-1){n("#swipebox-next").addClass("disabled")}},openSlide:function(t){n("html").addClass("swipebox");n(e).trigger("resize");this.setSlide(t,true)},preloadMedia:function(e){var t=this,n=null;if(a[e]!==r)n=a[e].href;if(!t.isVideo(n)){setTimeout(function(){t.openMedia(e)},1e3)}else{t.openMedia(e)}},openMedia:function(e){var t=this,i=null;if(a[e]!==r)i=a[e].href;if(e<0||e>=a.length){return false}if(!t.isVideo(i)){t.loadMedia(i,function(){n("#swipebox-slider .slide").eq(e).html(this)})}else{n("#swipebox-slider .slide").eq(e).html(t.getVideo(i))}},setTitle:function(e,t){var i=null;n("#swipebox-caption").empty();if(a[e]!==r)i=a[e].title;if(i){n("#swipebox-caption").append(i)}},isVideo:function(e){if(e){if(e.match(/youtube\.com\/watch\?v=([a-zA-Z0-9\-_]+)/)||e.match(/vimeo\.com\/([0-9]*)/)){return true}}},getVideo:function(e){var t="";var n="";var r=e.match(/watch\?v=([a-zA-Z0-9\-_]+)/);var i=e.match(/vimeo\.com\/([0-9]*)/);if(r){t='<iframe width="560" height="315" src="//www.youtube.com/embed/'+r[1]+'" frameborder="0" allowfullscreen></iframe>'}else if(i){t='<iframe width="560" height="315" src="http://player.vimeo.com/video/'+i[1]+"?byline=0&portrait=0&color="+u.settings.vimeoColor+'" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>'}return'<div class="swipebox-video-container" style="max-width:'+u.settings.videoMaxWidth+'px"><div class="swipebox-video">'+t+"</div></div>"},loadMedia:function(e,t){if(!this.isVideo(e)){var r=n("<img>").on("load",function(){t.call(r)});r.attr("src",e)}},getNext:function(){var e=this;index=n("#swipebox-slider .slide").index(n("#swipebox-slider .slide.current"));if(index+1<a.length){index++;e.setSlide(index);e.preloadMedia(index+1)}else{n("#swipebox-slider").addClass("rightSpring");setTimeout(function(){n("#swipebox-slider").removeClass("rightSpring")},500)}},getPrev:function(){index=n("#swipebox-slider .slide").index(n("#swipebox-slider .slide.current"));if(index>0){index--;this.setSlide(index);this.preloadMedia(index-1)}else{n("#swipebox-slider").addClass("leftSpring");setTimeout(function(){n("#swipebox-slider").removeClass("leftSpring")},500)}},closeSlide:function(){n("html").removeClass("swipebox");n(e).trigger("resize");this.destroy()},destroy:function(){n(e).unbind("keyup");n("#swipebox-slider").unbind("touchstart");n("#swipebox-slider").unbind("touchmove");n("#swipebox-slider").unbind("touchend");n("#swipebox-slider").unbind();n("#swipebox-overlay").remove();if(!n.isArray(i))i.removeData("_swipebox");if(this.target)this.target.trigger("swipebox-destroy");n.swipebox.isOpen=false;if(u.settings.afterClose)u.settings.afterClose();scrollTimer=null}};u.init()};n.fn.swipebox=function(e){if(!n.data(this,"_swipebox")){var t=new n.swipebox(this,e);this.data("_swipebox",t)}return this.data("_swipebox")}})(window,document,jQuery)
assets/swipebox/source/swipebox.css CHANGED
@@ -63,7 +63,7 @@ html.swipebox {
63
  max-width: 1140px;
64
  max-height: 100%;
65
  width: 100%;
66
- padding: 0;
67
  box-sizing: border-box;
68
  -webkit-box-sizing: border-box;
69
  -moz-box-sizing: border-box;
@@ -91,6 +91,7 @@ html.swipebox {
91
  z-index: 999;
92
  height: 50px;
93
  width: 100%;
 
94
  }
95
 
96
  #swipebox-action {
63
  max-width: 1140px;
64
  max-height: 100%;
65
  width: 100%;
66
+ padding:5%;
67
  box-sizing: border-box;
68
  -webkit-box-sizing: border-box;
69
  -moz-box-sizing: border-box;
91
  z-index: 999;
92
  height: 50px;
93
  width: 100%;
94
+ overflow: hidden;
95
  }
96
 
97
  #swipebox-action {
languages/responsive-lightbox-ja.mo CHANGED
Binary file
languages/responsive-lightbox-ja.po CHANGED
@@ -1,19 +1,23 @@
1
  msgid ""
2
  msgstr ""
3
- "Project-Id-Version: Responsive Lightbox\n"
4
- "POT-Creation-Date: 2013-08-12 10:20+0100\n"
5
- "PO-Revision-Date: 2013-11-01 09:42+0900\n"
 
6
  "Last-Translator: stranger-jp <wordpress.stranger.jp@gmail.com>\n"
7
- "Language-Team: stranger-jp\n"
8
- "Language: ja\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
- "X-Poedit-KeywordsList: gettext;gettext_noop;__;_e\n"
13
- "X-Poedit-Basepath: .\n"
14
- "X-Poedit-SourceCharset: UTF-8\n"
15
- "X-Generator: Poedit 1.5.7\n"
16
- "X-Poedit-SearchPath-0: ..\n"
 
 
 
 
17
 
18
  msgid "prettyPhoto"
19
  msgstr "prettyPhoto"
@@ -189,20 +193,14 @@ msgstr "プラグインの非活性化設定を削除します。"
189
  msgid "Select a method of applying a lightbox effect."
190
  msgstr "Lightboxの効果の適用方法を選択します。"
191
 
192
- msgid ""
193
- "Disable if you don't want to top and bottom bars to be hidden after a period "
194
- "of time."
195
  msgstr "一定期間後に隠される上部と下部のバーを非表示にする場合は無効にします。"
196
 
197
- msgid ""
198
- "Enter the time after which the top and bottom bars will be hidden (when "
199
- "hiding is enabled)."
200
- msgstr ""
201
- "上部と下部のバーが(隠蔽が有効になっている場合)隠れされるまでの時間を入力して"
202
- "ください。"
203
 
204
- msgid "Enter the max video width in a lightbox"
205
- msgstr "Lightboxの最大動画の幅を入力してください。"
206
 
207
  msgid "Select animation speed for lightbox effect."
208
  msgstr "Lightboxエフェクトのアニメーション速度を選択してください。"
@@ -213,12 +211,6 @@ msgstr "スライドショーで画像を表示します。"
213
  msgid "Enter time (in miliseconds)."
214
  msgstr "時間(ミリ秒単位)を入力します。"
215
 
216
- msgid "Automatically start slideshow"
217
- msgstr "有効で自動的にスライドショーを開始します。"
218
-
219
- msgid "Value between 0 and 1 (for e.g. 0.5)"
220
- msgstr "0と1 (例えば0.5)の間の値"
221
-
222
  msgid "Display image tiltle."
223
  msgstr "有効にすると画像のタイトルを表示します。"
224
 
@@ -237,9 +229,6 @@ msgstr "水平パディング(ピクセル単位)"
237
  msgid "Select flash window mode."
238
  msgstr "フラッシュ・ウィンドウモードを選択します。"
239
 
240
- msgid "Automatically start videos"
241
- msgstr "動画を自動再生するかどうかを設定します。"
242
-
243
  msgid "If set to true, only the close button will close the window."
244
  msgstr "有効にした場合、閉じるボタンでウィンドウを閉じます。"
245
 
@@ -247,22 +236,13 @@ msgid "Allow prettyPhoto to update the url to enable deeplinking."
247
  msgstr "prettyPhotoがディープリンクを有効にするURLを更新することを許可します。"
248
 
249
  msgid "If enabled, a gallery will overlay the fullscreen image on mouse over."
250
- msgstr ""
251
- "有効にした場合ギャラリーにマウスオーバーでフルスクリーン画像をオーバーレイし"
252
- "ます。"
253
-
254
- msgid "Set to false if you open forms inside prettyPhoto"
255
- msgstr "prettyPhoto内部フォームを開く場合は無効にします。"
256
 
257
  msgid "Display links to Facebook and Twitter."
258
  msgstr "FacebookやTwitterへのリンクを表示します。"
259
 
260
- msgid ""
261
- "Changes were not saved because there was attempt to save settings of "
262
- "inactive script. The site has been reloaded to the proper script settings."
263
- msgstr ""
264
- "無効なスクリプトの設定を保存しようとする試みがあったので変更は保存されません"
265
- "でした。サイトは適切なスクリプトの設定でリロードされています。"
266
 
267
  msgid "Settings of SwipeBox script were restored to defaults."
268
  msgstr "SwipeBoxスクリプトの設定がデフォルトに復元されました。"
@@ -270,12 +250,8 @@ msgstr "SwipeBoxスクリプトの設定がデフォルトに復元されまし
270
  msgid "Settings of prettyPhoto script were restored to defaults."
271
  msgstr "prettyPhotoスクリプトの設定がデフォルトに復元されました。"
272
 
273
- msgid ""
274
- "Changes were not set to defaults because there was attempt to reset settings "
275
- "of inactive script. The site has been reloaded to the proper script settings."
276
- msgstr ""
277
- "非アクティブスクリプトの設定をリセットする試みがあったので変更はデフォルトに"
278
- "設定されていません。サイトは適切なスクリプトの設定にリロードされています。"
279
 
280
  msgid "Responsive Lightbox"
281
  msgstr "レスポンシブLightbox"
@@ -286,10 +262,8 @@ msgstr "デフォルトにリセット"
286
  msgid "Need support?"
287
  msgstr "Need support?"
288
 
289
- msgid ""
290
- "If you are having problems with this plugin, please talk about them in the"
291
- msgstr ""
292
- "If you are having problems with this plugin, please talk about them in the"
293
 
294
  msgid "Support forum"
295
  msgstr "Support forum"
@@ -366,9 +340,6 @@ msgstr "エラスティック"
366
  msgid "Enable escape button"
367
  msgstr "Escボタンを有効"
368
 
369
- msgid "Enter the max video width in a lightbox."
370
- msgstr "lightboxに最大動画幅を入力します。"
371
-
372
  msgid "fade"
373
  msgstr "フェード"
374
 
@@ -390,12 +361,8 @@ msgstr "コンテンツをクリックで隠す"
390
  msgid "Hide on overlay click"
391
  msgstr "オーバーレイをクリックで隠す"
392
 
393
- msgid ""
394
- "Hides all the flash object on a page. Enable this if flash appears over "
395
- "prettyPhoto."
396
- msgstr ""
397
- "ページですべてのフラッシュを非表示にします。フラッシュがprettyPhoto上で表示さ"
398
- "れる場合これを有効にしてください。"
399
 
400
  msgid "If true, FancyBox is scaled to fit in viewport."
401
  msgstr "有効の場合 FancyBoxはビューポートに収まるようにスケーリングします。"
@@ -491,8 +458,7 @@ msgid "Toggle if clicking the content should close FancyBox."
491
  msgstr "コンテンツをクリックするとFancyBoxを閉じるべきかどうかを切り替えます。"
492
 
493
  msgid "Toggle if clicking the overlay should close FancyBox."
494
- msgstr ""
495
- "オーバーレイをクリックすると、 FancyBoxを閉じるべきかどうかを切り替えます。"
496
 
497
  msgid "Toggle if pressing Esc button closes FancyBox."
498
  msgstr "ESCボタンを押すとFancyBoxを閉じた場合に切り替えます。"
@@ -509,22 +475,14 @@ msgstr "タイトルを切り替えます。"
509
  msgid "Transition (in/out)"
510
  msgstr "トランジション(イン/アウト)"
511
 
512
- msgid ""
513
- "When true, \"overlayShow\" is set to TRUE and \"hideOnOverlayClick\", "
514
- "\"hideOnContentClick\", \"enableEscapeButton\", \"showCloseButton\" are set "
515
- "to FALSE."
516
- msgstr ""
517
- "有効にした場合\"オーバーレイを表示\"は有効になり、\"閉じるボタンを表示"
518
- "\"、\"Escボタンを有効\"、\"オーバーレイをクリックで隠す\"、\"コンテンツをク"
519
- "リックで隠す\"は無効になります。"
520
 
521
  msgid "When true, FancyBox is centered while scrolling page."
522
  msgstr "有効の場合スクロールするとFancyBoxを中央に配置します。"
523
 
524
- msgid ""
525
- "When true, galleries will be cyclic, allowing you to keep pressing next/back."
526
- msgstr ""
527
- "有効の場合ギャラリーは繰り返し、次へ/戻るを押すと維持することができます。"
528
 
529
  msgid "When true, transparency of content is changed for elastic transitions."
530
  msgstr "有効の場合コンテンツの透明度は弾性遷移に変更されます。"
@@ -536,9 +494,7 @@ msgid "yes"
536
  msgstr "はい"
537
 
538
  msgid "Set the overflow CSS property to create or hide scrollbars."
539
- msgstr ""
540
- "スクロールバーを作成したり、非表示にオーバーフローのCSSプロパティを設定しま"
541
- "す。"
542
 
543
  msgid "Nivo Lightbox"
544
  msgstr "Nivo Lightbox"
@@ -564,9 +520,6 @@ msgstr "フォール"
564
  msgid "Keyboard navigation"
565
  msgstr "キーボードナビゲーション"
566
 
567
- msgid "Error messageThe effect to use when showing the lightbox."
568
- msgstr "lightboxを表示するとき、効果が使うエラーメッセージ。"
569
-
570
  msgid "Enable/Disable keyboard navigation (left/right/escape)."
571
  msgstr "キーボードナビゲーションを有効/無効にします。(右/左/エスケープ)"
572
 
@@ -584,3 +537,87 @@ msgstr "Nivoスクリプトの設定をデフォルトに復元しました。"
584
 
585
  msgid "Are you sure you want to reset these settings to defaults?"
586
  msgstr "これらの設定をデフォルトにリセットしてもよろしいですか?"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  msgid ""
2
  msgstr ""
3
+ "Project-Id-Version: Responsive Lightbox v1.4.0.1\n"
4
+ "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: \n"
6
+ "PO-Revision-Date: 2014-03-19 23:03+0900\n"
7
  "Last-Translator: stranger-jp <wordpress.stranger.jp@gmail.com>\n"
8
+ "Language-Team: \n"
 
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
+ "Plural-Forms: nplurals=1; plural=0;\n"
13
+ "X-Generator: Poedit 1.6.4\n"
14
+ "X-Poedit-SourceCharset: utf-8\n"
15
+ "X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;"
16
+ "_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2\n"
17
+ "X-Poedit-Basepath: ../\n"
18
+ "X-Textdomain-Support: yes\n"
19
+ "Language: ja_JP\n"
20
+ "X-Poedit-SearchPath-0: .\n"
21
 
22
  msgid "prettyPhoto"
23
  msgstr "prettyPhoto"
193
  msgid "Select a method of applying a lightbox effect."
194
  msgstr "Lightboxの効果の適用方法を選択します。"
195
 
196
+ msgid "Disable if you don't want to top and bottom bars to be hidden after a period of time."
 
 
197
  msgstr "一定期間後に隠される上部と下部のバーを非表示にする場合は無効にします。"
198
 
199
+ msgid "Enter the time after which the top and bottom bars will be hidden (when hiding is enabled)."
200
+ msgstr "上部と下部のバーが(隠蔽が有効になっている場合)隠れされるまでの時間を入力してください。"
 
 
 
 
201
 
202
+ msgid "Enter the max video width in a lightbox."
203
+ msgstr "Lightboxの動画最大幅を入力してください。"
204
 
205
  msgid "Select animation speed for lightbox effect."
206
  msgstr "Lightboxエフェクトのアニメーション速度を選択してください。"
211
  msgid "Enter time (in miliseconds)."
212
  msgstr "時間(ミリ秒単位)を入力します。"
213
 
 
 
 
 
 
 
214
  msgid "Display image tiltle."
215
  msgstr "有効にすると画像のタイトルを表示します。"
216
 
229
  msgid "Select flash window mode."
230
  msgstr "フラッシュ・ウィンドウモードを選択します。"
231
 
 
 
 
232
  msgid "If set to true, only the close button will close the window."
233
  msgstr "有効にした場合、閉じるボタンでウィンドウを閉じます。"
234
 
236
  msgstr "prettyPhotoがディープリンクを有効にするURLを更新することを許可します。"
237
 
238
  msgid "If enabled, a gallery will overlay the fullscreen image on mouse over."
239
+ msgstr "有効にした場合ギャラリーにマウスオーバーでフルスクリーン画像をオーバーレイします。"
 
 
 
 
 
240
 
241
  msgid "Display links to Facebook and Twitter."
242
  msgstr "FacebookやTwitterへのリンクを表示します。"
243
 
244
+ msgid "Changes were not saved because there was attempt to save settings of inactive script. The site has been reloaded to the proper script settings."
245
+ msgstr "無効なスクリプトの設定を保存しようとする試みがあったので変更は保存されませんでした。サイトは適切なスクリプトの設定でリロードされています。"
 
 
 
 
246
 
247
  msgid "Settings of SwipeBox script were restored to defaults."
248
  msgstr "SwipeBoxスクリプトの設定がデフォルトに復元されました。"
250
  msgid "Settings of prettyPhoto script were restored to defaults."
251
  msgstr "prettyPhotoスクリプトの設定がデフォルトに復元されました。"
252
 
253
+ msgid "Changes were not set to defaults because there was attempt to reset settings of inactive script. The site has been reloaded to the proper script settings."
254
+ msgstr "非アクティブスクリプトの設定をリセットする試みがあったので変更はデフォルトに設定されていません。サイトは適切なスクリプトの設定にリロードされています。"
 
 
 
 
255
 
256
  msgid "Responsive Lightbox"
257
  msgstr "レスポンシブLightbox"
262
  msgid "Need support?"
263
  msgstr "Need support?"
264
 
265
+ msgid "If you are having problems with this plugin, please talk about them in the"
266
+ msgstr "If you are having problems with this plugin, please talk about them in the"
 
 
267
 
268
  msgid "Support forum"
269
  msgstr "Support forum"
340
  msgid "Enable escape button"
341
  msgstr "Escボタンを有効"
342
 
 
 
 
343
  msgid "fade"
344
  msgstr "フェード"
345
 
361
  msgid "Hide on overlay click"
362
  msgstr "オーバーレイをクリックで隠す"
363
 
364
+ msgid "Hides all the flash object on a page. Enable this if flash appears over prettyPhoto."
365
+ msgstr "ページですべてのフラッシュを非表示にします。フラッシュがprettyPhoto上で表示される場合これを有効にしてください。"
 
 
 
 
366
 
367
  msgid "If true, FancyBox is scaled to fit in viewport."
368
  msgstr "有効の場合 FancyBoxはビューポートに収まるようにスケーリングします。"
458
  msgstr "コンテンツをクリックするとFancyBoxを閉じるべきかどうかを切り替えます。"
459
 
460
  msgid "Toggle if clicking the overlay should close FancyBox."
461
+ msgstr "オーバーレイをクリックすると、 FancyBoxを閉じるべきかどうかを切り替えます。"
 
462
 
463
  msgid "Toggle if pressing Esc button closes FancyBox."
464
  msgstr "ESCボタンを押すとFancyBoxを閉じた場合に切り替えます。"
475
  msgid "Transition (in/out)"
476
  msgstr "トランジション(イン/アウト)"
477
 
478
+ msgid "When true, \"overlayShow\" is set to TRUE and \"hideOnOverlayClick\", \"hideOnContentClick\", \"enableEscapeButton\", \"showCloseButton\" are set to FALSE."
479
+ msgstr "有効にした場合\"オーバーレイを表示\"は有効になり、\"閉じるボタンを表示\"、\"Escボタンを有効\"、\"オーバーレイをクリックで隠す\"、\"コンテンツをクリックで隠す\"は無効になります。"
 
 
 
 
 
 
480
 
481
  msgid "When true, FancyBox is centered while scrolling page."
482
  msgstr "有効の場合スクロールするとFancyBoxを中央に配置します。"
483
 
484
+ msgid "When true, galleries will be cyclic, allowing you to keep pressing next/back."
485
+ msgstr "有効の場合ギャラリーは繰り返し、次へ/戻るを押すと維持することができます。"
 
 
486
 
487
  msgid "When true, transparency of content is changed for elastic transitions."
488
  msgstr "有効の場合コンテンツの透明度は弾性遷移に変更されます。"
494
  msgstr "はい"
495
 
496
  msgid "Set the overflow CSS property to create or hide scrollbars."
497
+ msgstr "スクロールバーを作成したり、非表示にオーバーフローのCSSプロパティを設定します。"
 
 
498
 
499
  msgid "Nivo Lightbox"
500
  msgstr "Nivo Lightbox"
520
  msgid "Keyboard navigation"
521
  msgstr "キーボードナビゲーション"
522
 
 
 
 
523
  msgid "Enable/Disable keyboard navigation (left/right/escape)."
524
  msgstr "キーボードナビゲーションを有効/無効にします。(右/左/エスケープ)"
525
 
537
 
538
  msgid "Are you sure you want to reset these settings to defaults?"
539
  msgstr "これらの設定をデフォルトにリセットしてもよろしいですか?"
540
+
541
+ msgid "1.4.0.1"
542
+ msgstr "1.4.0.1"
543
+
544
+ msgid "Allow expand"
545
+ msgstr "拡大を許可"
546
+
547
+ msgid "Custom events"
548
+ msgstr "カスタムイベント"
549
+
550
+ msgid "dFactory"
551
+ msgstr "dFactory"
552
+
553
+ msgid "Enable this if you're having problems with navigation icons not visible on some devices."
554
+ msgstr "いくつかのデバイス上で表示出来ないナビゲーションアイコンの問題を抱えている場合は、これを有効にします。"
555
+
556
+ msgid "Enable triggering lightbox on custom jquery events."
557
+ msgstr "カスタムjqueryのイベントトリガーのlightboxを有効にします。"
558
+
559
+ msgid "http://www.dfactory.eu/"
560
+ msgstr "http://www.dfactory.eu/"
561
+
562
+ msgid "http://www.dfactory.eu/plugins/responsive-lightbox/"
563
+ msgstr "http://www.dfactory.eu/plugins/responsive-lightbox/"
564
+
565
+ msgid "Responsive Lightbox allows users to view larger versions of images and galleries in a lightbox (overlay) effect optimized for mobile devices."
566
+ msgstr "レスポンシブLightboxは、ユーザーがモバイルデバイス用に最適化されたlightbox (オーバーレイ) の効果で画像やギャラリーの大きいバージョンを表示することができます。"
567
+
568
+ msgid "Enter a space separated list of events."
569
+ msgstr "イベントのスペースで区切って入力します。"
570
+
571
+ msgid "Expands something."
572
+ msgstr "何かを拡大します。"
573
+
574
+ msgid "Animation speed."
575
+ msgstr "アニメーション速度。"
576
+
577
+ msgid "Enable keyboard keys"
578
+ msgstr "キーボードのキーを有効"
579
+
580
+ msgid "Enable keyboard shortcuts (arrows Left/Right and Esc)."
581
+ msgstr "キーボードショートカット(左右の矢印とEsc) を有効にします。"
582
+
583
+ msgid "Footer"
584
+ msgstr "フッター"
585
+
586
+ msgid "Force PNG icons"
587
+ msgstr "PNGアイコンを強制"
588
+
589
+ msgid "Header"
590
+ msgstr "ヘッダー"
591
+
592
+ msgid "Image Lightbox"
593
+ msgstr "Image Lightbox"
594
+
595
+ msgid "Loading place"
596
+ msgstr "場所のロード"
597
+
598
+ msgid "Preload next image"
599
+ msgstr "次の画像をプリロード"
600
+
601
+ msgid "Quit after last image"
602
+ msgstr "最後の画像の後に終了する"
603
+
604
+ msgid "Quit after viewing the last image."
605
+ msgstr "最後の画像を表示した後に終了します。"
606
+
607
+ msgid "Quit when anything but image is clicked"
608
+ msgstr "画像以外のものをクリックしたときに終了する"
609
+
610
+ msgid "Quit when anything but the viewed image is clicked."
611
+ msgstr "何かをクリックしたときに表示された画像を終了します。"
612
+
613
+ msgid "Quit when image is clicked"
614
+ msgstr "画像をクリックしたときに終了する"
615
+
616
+ msgid "Quit when the viewed image is clicked."
617
+ msgstr "表示された画像をクリックしたときに終了します。"
618
+
619
+ msgid "Select where all the lightbox scripts should be placed."
620
+ msgstr "すべてのlightboxのスクリプトを置く場所を選択する"
621
+
622
+ msgid "Silently preload the next image."
623
+ msgstr "サイレントモードで次の画像をプリロードします。"
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://www.dfactory.eu/
4
  Tags: gallery, images, lightbox, links, photos, template, theme, photo, image, picture, slideshow, modal, overlay, YouTube, Vimeo, video, videos
5
  Requires at least: 3.3
6
  Tested up to: 3.8.1
7
- Stable tag: 1.4.0.1
8
  License: MIT License
9
  License URI: http://opensource.org/licenses/MIT
10
 
@@ -60,6 +60,9 @@ No questions yet.
60
 
61
  == Changelog ==
62
 
 
 
 
63
  = 1.4.0 =
64
  * New: Added Image Lightbox script
65
  * New: Option to load scripts in header or footer
@@ -141,7 +144,5 @@ Initial release
141
 
142
  == Upgrade Notice ==
143
 
144
- = 1.4.0.1 =
145
-
146
- * New: Added Image Lightbox script
147
- * New: Option to load scripts in header or footer
4
  Tags: gallery, images, lightbox, links, photos, template, theme, photo, image, picture, slideshow, modal, overlay, YouTube, Vimeo, video, videos
5
  Requires at least: 3.3
6
  Tested up to: 3.8.1
7
+ Stable tag: 1.4.1
8
  License: MIT License
9
  License URI: http://opensource.org/licenses/MIT
10
 
60
 
61
  == Changelog ==
62
 
63
+ = 1.4.1 =
64
+ * Fix: Swipebox script files inconsistency
65
+
66
  = 1.4.0 =
67
  * New: Added Image Lightbox script
68
  * New: Option to load scripts in header or footer
144
 
145
  == Upgrade Notice ==
146
 
147
+ = 1.4.1 =
148
+ * Fix: Swipebox script files inconsistency
 
 
responsive-lightbox.php CHANGED
@@ -2,7 +2,7 @@
2
  /*
3
  Plugin Name: Responsive Lightbox
4
  Description: Responsive Lightbox allows users to view larger versions of images and galleries in a lightbox (overlay) effect optimized for mobile devices.
5
- Version: 1.4.0.1
6
  Author: dFactory
7
  Author URI: http://www.dfactory.eu/
8
  Plugin URI: http://www.dfactory.eu/plugins/responsive-lightbox/
@@ -109,7 +109,7 @@ class Responsive_Lightbox
109
  'quit_on_document_click' => true
110
  )
111
  ),
112
- 'version' => '1.4.0.1'
113
  );
114
  private $scripts = array();
115
  private $options = array();
@@ -2080,7 +2080,7 @@ class Responsive_Lightbox
2080
  {
2081
  wp_register_script(
2082
  'responsive-lightbox-swipebox',
2083
- plugins_url('assets/swipebox/source/jquery.swipebox.js', __FILE__),
2084
  array('jquery'),
2085
  '',
2086
  ($this->options['settings']['loading_place'] === 'header' ? false : true)
2
  /*
3
  Plugin Name: Responsive Lightbox
4
  Description: Responsive Lightbox allows users to view larger versions of images and galleries in a lightbox (overlay) effect optimized for mobile devices.
5
+ Version: 1.4.1
6
  Author: dFactory
7
  Author URI: http://www.dfactory.eu/
8
  Plugin URI: http://www.dfactory.eu/plugins/responsive-lightbox/
109
  'quit_on_document_click' => true
110
  )
111
  ),
112
+ 'version' => '1.4.1'
113
  );
114
  private $scripts = array();
115
  private $options = array();
2080
  {
2081
  wp_register_script(
2082
  'responsive-lightbox-swipebox',
2083
+ plugins_url('assets/swipebox/source/jquery.swipebox.min.js', __FILE__),
2084
  array('jquery'),
2085
  '',
2086
  ($this->options['settings']['loading_place'] === 'header' ? false : true)