knack-rails 1.0.0 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/javascripts/knack-rails.js +8 -5
- data/app/assets/stylesheets/knack.sass +192 -193
- data/knack-rails.gemspec +2 -2
- data/lib/knack-rails/version.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b1940c84c1e1e8cb6c8dcd4741cec3a55bcd7518
|
4
|
+
data.tar.gz: fac341a0def0910cafd180ef987a57ce0596229a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fc29bb2bbfea09ce5c76445f6e6f5c5a74adbae83395fb894bc7e8e457806c8920829eaf9166532e9029f76ac642c227094183f96bfe81380946ff28aedbc6fb
|
7
|
+
data.tar.gz: 3897d69d2febfa10f7df14194d9d42e63e60745ebb79598cec81471c9d38fa52e75b8128705e473cd5cc1d4b1320e5e2354645ec0f34ad5c80da5672500ba041
|
@@ -42,6 +42,7 @@
|
|
42
42
|
fadeOut: function(){
|
43
43
|
clearTimeout(fullScreen.timeout);
|
44
44
|
fullScreen.active = false;
|
45
|
+
$('.menu-area').toggleClass('established');
|
45
46
|
$('#projector').unbind('mousemove');
|
46
47
|
$('.menu-area').unbind();
|
47
48
|
$('.menu-area').show();
|
@@ -60,6 +61,7 @@
|
|
60
61
|
|
61
62
|
fadeIn: function(){
|
62
63
|
fullScreen.active = true;
|
64
|
+
$('.menu-area').toggleClass('established');
|
63
65
|
$('.fullscreen').bind('click', fullScreen.exit);
|
64
66
|
$('.stage-area').dblclick(fullScreen.exit);
|
65
67
|
$('.menu-area').hide();
|
@@ -365,11 +367,12 @@
|
|
365
367
|
prepareProjector: function(){
|
366
368
|
attrScope.init();
|
367
369
|
|
368
|
-
$('#'+ _settings.id).append('<div class="
|
369
|
-
$('
|
370
|
-
$('
|
371
|
-
$('
|
372
|
-
$('
|
370
|
+
$('#'+ _settings.id).append('<div class="embed-container">');
|
371
|
+
$('.embed-container').append('<div class="thumbs-area"><div class="thumbs-box">');
|
372
|
+
$('.embed-container').append('<div class="stage-area">');
|
373
|
+
$('.embed-container').append('<div class="loader">');
|
374
|
+
$('.embed-container').append('<div class="arrows-area">');
|
375
|
+
$('.embed-container').append('<div class="menu-area">');
|
373
376
|
|
374
377
|
loader.show();
|
375
378
|
},
|
@@ -1,211 +1,210 @@
|
|
1
|
+
.place-for-projector
|
2
|
+
width: 50%
|
3
|
+
padding: 10px
|
4
|
+
margin: auto
|
5
|
+
|
1
6
|
.hidden
|
2
7
|
display: none
|
3
8
|
|
4
|
-
|
5
|
-
|
6
|
-
position: relative
|
7
|
-
overflow: hidden
|
8
|
-
outline: none
|
9
|
-
min-width: 200px
|
10
|
-
&:-webkit-full-screen
|
11
|
-
width: 100% !important
|
12
|
-
height: 100% !important
|
13
|
-
|
14
|
-
.loader
|
15
|
-
background-image: url("loading.gif-c200")
|
16
|
-
background-color: black
|
17
|
-
background-position: 51% 0
|
18
|
-
background-repeat: no-repeat
|
19
|
-
display: none
|
20
|
-
height: 100%
|
21
|
-
position: absolute
|
22
|
-
width: 100%
|
23
|
-
z-index: 5
|
9
|
+
.established
|
10
|
+
position: fixed !important
|
24
11
|
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
display: none
|
29
|
-
overflow: hidden
|
30
|
-
position: absolute
|
31
|
-
top: 0
|
32
|
-
width: 100%
|
33
|
-
z-index: 10
|
12
|
+
#projector:-webkit-full-screen
|
13
|
+
width: 100% !important
|
14
|
+
height: 100% !important
|
34
15
|
|
35
16
|
.full-thumbs
|
36
17
|
bottom: 0
|
37
18
|
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
height: 65px
|
42
|
-
margin-bottom: 5px
|
43
|
-
margin-right: 5px
|
44
|
-
position: relative
|
45
|
-
width: 100px
|
19
|
+
@media screen and (-webkit-min-device-pixel-ratio: 0)
|
20
|
+
.embed-container .thumbs-area .thumbs-box .thumb-image:first-of-type
|
21
|
+
margin-top: 15px !important
|
46
22
|
|
47
|
-
|
48
|
-
|
49
|
-
height: 99%
|
50
|
-
left: 2%
|
23
|
+
#projector
|
24
|
+
background: black
|
51
25
|
overflow: hidden
|
52
26
|
position: relative
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
cursor: pointer
|
58
|
-
height: 100%
|
27
|
+
padding-bottom: 56.25%
|
28
|
+
padding-top: 30px
|
29
|
+
height: 0
|
30
|
+
overflow: hidden
|
59
31
|
width: 100%
|
32
|
+
height: auto
|
33
|
+
margin-bottom: 12px
|
60
34
|
|
61
|
-
.
|
62
|
-
bottom: 0
|
63
|
-
left: 0
|
64
|
-
overflow: hidden
|
35
|
+
.embed-container
|
65
36
|
position: absolute
|
66
|
-
right: 0
|
67
37
|
top: 0
|
68
|
-
z-index: 1
|
69
|
-
|
70
|
-
.arrows-area
|
71
|
-
color: white
|
72
|
-
display: flex
|
73
|
-
height: 100px
|
74
38
|
left: 0
|
75
|
-
position: absolute
|
76
|
-
top: 35%
|
77
39
|
width: 100%
|
78
|
-
z-index: 2
|
79
|
-
|
80
|
-
.right-arrow
|
81
|
-
background-image: url("spritesheet.png")
|
82
|
-
background-position: -42px -42px
|
83
|
-
background-repeat: no-repeat
|
84
|
-
cursor: pointer
|
85
|
-
height: 34px
|
86
|
-
margin-right: 25px
|
87
|
-
margin-top: 35px
|
88
|
-
position: absolute
|
89
|
-
right: 0
|
90
|
-
width: 34px
|
91
|
-
|
92
|
-
.left-arrow
|
93
|
-
background-image: url("spritesheet.png")
|
94
|
-
background-position: -6px -42px
|
95
|
-
background-repeat: no-repeat
|
96
|
-
cursor: pointer
|
97
|
-
height: 34px
|
98
|
-
margin-left: 25px
|
99
|
-
margin-top: 35px
|
100
|
-
width: 34px
|
101
|
-
|
102
|
-
.menu-area
|
103
|
-
background: black
|
104
|
-
bottom: 0
|
105
|
-
height: 25px
|
106
|
-
position: absolute
|
107
|
-
width: 100%
|
108
|
-
-webkit-box-shadow: inset 1px 45px 9px -49px rgba(255, 200, 200, 1)
|
109
|
-
-moz-box-shadow: inset 1px 45px 9px -49px rgba(255, 200, 200, 1)
|
110
|
-
box-shadow: inset 1px 45px 9px -49px rgba(255, 200, 200, 1)
|
111
|
-
z-index: 11
|
112
|
-
|
113
|
-
.fullscreen
|
114
|
-
background-image: url("spritesheet.png")
|
115
|
-
background-position: -82px 2px
|
116
|
-
background-repeat: no-repeat
|
117
|
-
cursor: pointer
|
118
|
-
height: 25px
|
119
|
-
left: auto
|
120
|
-
position: absolute
|
121
|
-
right: 0
|
122
|
-
width: 25px
|
123
|
-
|
124
|
-
.exit
|
125
|
-
background-position: -82px -98px
|
126
|
-
|
127
|
-
.on
|
128
40
|
height: 100%
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
.
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
.
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
41
|
+
.thumbs-area
|
42
|
+
background: black
|
43
|
+
height: 100%
|
44
|
+
bottom: 25px
|
45
|
+
display: none
|
46
|
+
overflow: hidden
|
47
|
+
position: absolute
|
48
|
+
top: 0
|
49
|
+
width: 100%
|
50
|
+
z-index: 10
|
51
|
+
.thumbs-box
|
52
|
+
cursor: move
|
53
|
+
height: 99%
|
54
|
+
left: 2%
|
55
|
+
overflow: hidden
|
56
|
+
position: relative
|
57
|
+
top: 1%
|
58
|
+
width: 96%
|
59
|
+
.active-thumb
|
60
|
+
border: thin solid red !important
|
61
|
+
.thumb-image
|
62
|
+
border: thin solid #222
|
63
|
+
display: inline-flex
|
64
|
+
height: 65px
|
65
|
+
margin: 5px
|
66
|
+
position: relative
|
67
|
+
width: 100px
|
68
|
+
.image
|
69
|
+
cursor: pointer
|
70
|
+
height: 100%
|
71
|
+
width: 100%
|
72
|
+
.stage-area
|
73
|
+
bottom: 0
|
74
|
+
left: 0
|
75
|
+
overflow: hidden
|
76
|
+
position: absolute
|
77
|
+
right: 0
|
78
|
+
top: 0
|
79
|
+
z-index: 1
|
80
|
+
.on
|
81
|
+
height: 100%
|
82
|
+
left: 0
|
83
|
+
margin-left: auto
|
84
|
+
margin-right: auto
|
85
|
+
position: absolute
|
86
|
+
right: 0
|
87
|
+
.off
|
88
|
+
display: none
|
89
|
+
.loader
|
90
|
+
background-image: url("loading.gif-c200")
|
91
|
+
background-color: black
|
92
|
+
background-position: 51% 50%
|
93
|
+
background-repeat: no-repeat
|
94
|
+
display: none
|
95
|
+
height: 100%
|
96
|
+
position: absolute
|
97
|
+
width: 100%
|
98
|
+
z-index: 5
|
99
|
+
.arrows-area
|
100
|
+
color: white
|
101
|
+
display: flex
|
102
|
+
height: 25%
|
103
|
+
top: 30%
|
104
|
+
left: 0
|
105
|
+
position: relative
|
106
|
+
width: 100%
|
107
|
+
z-index: 2
|
108
|
+
.right-arrow
|
109
|
+
background-image: url("spritesheet.png")
|
110
|
+
background-position: -42px -42px
|
111
|
+
background-repeat: no-repeat
|
112
|
+
cursor: pointer
|
113
|
+
height: 34px
|
114
|
+
margin-right: 5%
|
115
|
+
position: absolute
|
116
|
+
right: 0
|
117
|
+
width: 34px
|
118
|
+
.left-arrow
|
119
|
+
background-image: url("spritesheet.png")
|
120
|
+
background-position: -6px -42px
|
121
|
+
background-repeat: no-repeat
|
122
|
+
cursor: pointer
|
123
|
+
height: 34px
|
124
|
+
margin-left: 5%
|
125
|
+
width: 34px
|
126
|
+
.menu-area
|
127
|
+
background: black
|
128
|
+
bottom: 0
|
129
|
+
height: 25px
|
130
|
+
position: absolute
|
131
|
+
width: 100%
|
132
|
+
-webkit-box-shadow: inset 1px 45px 9px -49px rgba(255, 200, 200, 1)
|
133
|
+
-moz-box-shadow: inset 1px 45px 9px -49px rgba(255, 200, 200, 1)
|
134
|
+
box-shadow: inset 1px 45px 9px -49px rgba(255, 200, 200, 1)
|
135
|
+
z-index: 11
|
136
|
+
.fullscreen
|
137
|
+
background-image: url("spritesheet.png")
|
138
|
+
background-position: -82px 2px
|
139
|
+
background-repeat: no-repeat
|
140
|
+
cursor: pointer
|
141
|
+
height: 25px
|
142
|
+
left: auto
|
143
|
+
position: absolute
|
144
|
+
right: 0
|
145
|
+
width: 25px
|
146
|
+
&.exit
|
147
|
+
background-position: -82px -98px !important
|
148
|
+
.thumb-box
|
149
|
+
box-shadow: inset 52px 0px 9px -57px rgba(255, 200, 200, 1)
|
150
|
+
-webkit-box-shadow: inset 52px 0px 9px -55px rgba(255, 200, 200, 1)
|
151
|
+
-moz-box-shadow: inset 52px 0px 9px -58px rgba(255, 200, 200, 1)
|
152
|
+
height: 25px
|
153
|
+
right: 25px
|
154
|
+
position: absolute
|
155
|
+
width: 30px
|
156
|
+
.thumb
|
157
|
+
background-image: url("spritesheet.png")
|
158
|
+
background-position: -5px -125px
|
159
|
+
background-repeat: no-repeat
|
160
|
+
cursor: pointer
|
161
|
+
height: 13px
|
162
|
+
left: 9px
|
163
|
+
position: absolute
|
164
|
+
top: 7.3px
|
165
|
+
width: 12px
|
166
|
+
.info-box
|
167
|
+
height: 25px
|
168
|
+
left: 84px
|
169
|
+
position: absolute
|
170
|
+
.info
|
171
|
+
font-family: Helvetica
|
172
|
+
font-size: 13px
|
173
|
+
color: #aaa
|
174
|
+
position: relative
|
175
|
+
top: 5px
|
176
|
+
white-space: nowrap
|
177
|
+
overflow: hidden
|
178
|
+
text-overflow: ellipsis
|
179
|
+
.counter
|
180
|
+
color: #aaa
|
181
|
+
font-family: Helvetica
|
182
|
+
font-size: 13px
|
183
|
+
box-shadow: inset -52px 0px 9px -57px rgba(255, 200, 200, 1)
|
184
|
+
-webkit-box-shadow: inset -52px 0px 9px -55px rgba(255, 200, 200, 1)
|
185
|
+
-moz-box-shadow: inset -52px 0px 9px -58px rgba(255, 200, 200, 1)
|
186
|
+
height: 25px
|
187
|
+
position: absolute
|
188
|
+
left: 22px
|
189
|
+
padding-right: 7px
|
190
|
+
width: 50px
|
191
|
+
.current, .total
|
192
|
+
position: relative
|
193
|
+
top: 5px
|
194
|
+
.play-box
|
195
|
+
height: 25px
|
196
|
+
left: 0
|
197
|
+
position: absolute
|
198
|
+
width: 25px
|
199
|
+
.stop
|
200
|
+
background-position: -110px -104px !important
|
201
|
+
.play
|
202
|
+
background-image: url("spritesheet.png")
|
203
|
+
background-position: -110px -4px
|
204
|
+
background-repeat: no-repeat
|
205
|
+
cursor: pointer
|
206
|
+
height: 13px
|
207
|
+
left: 5px
|
208
|
+
position: absolute
|
209
|
+
top: 7px
|
210
|
+
width: 8px
|
data/knack-rails.gemspec
CHANGED
@@ -10,8 +10,8 @@ Gem::Specification.new do |spec|
|
|
10
10
|
spec.email = ["evrybiont@gmail.com"]
|
11
11
|
|
12
12
|
spec.summary = %q{Jquery plugin}
|
13
|
-
spec.description = %q{Image Gallery}
|
14
|
-
spec.homepage = "https://github.com/evrybiont/knack"
|
13
|
+
spec.description = %q{Responsive Image Gallery}
|
14
|
+
spec.homepage = "https://github.com/evrybiont/knack-rails"
|
15
15
|
spec.license = "MIT"
|
16
16
|
|
17
17
|
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
data/lib/knack-rails/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: knack-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 2.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- evrybiont
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-06-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -38,7 +38,7 @@ dependencies:
|
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '10.0'
|
41
|
-
description: Image Gallery
|
41
|
+
description: Responsive Image Gallery
|
42
42
|
email:
|
43
43
|
- evrybiont@gmail.com
|
44
44
|
executables: []
|
@@ -61,7 +61,7 @@ files:
|
|
61
61
|
- lib/knack-rails.rb
|
62
62
|
- lib/knack-rails/engine.rb
|
63
63
|
- lib/knack-rails/version.rb
|
64
|
-
homepage: https://github.com/evrybiont/knack
|
64
|
+
homepage: https://github.com/evrybiont/knack-rails
|
65
65
|
licenses:
|
66
66
|
- MIT
|
67
67
|
metadata: {}
|
@@ -81,7 +81,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
81
81
|
version: '0'
|
82
82
|
requirements: []
|
83
83
|
rubyforge_project:
|
84
|
-
rubygems_version: 2.
|
84
|
+
rubygems_version: 2.5.1
|
85
85
|
signing_key:
|
86
86
|
specification_version: 4
|
87
87
|
summary: Jquery plugin
|