|
154 | 154 | };
|
155 | 155 |
|
156 | 156 | $.fn.abigimage.defaults = {
|
157 |
| - fadeIn: 'normal', |
158 |
| - fadeOut: 'fast', |
159 |
| - |
160 |
| - prevBtnHtml: '←', |
161 |
| - closeBtnHtml: 'x', |
162 |
| - |
163 |
| - keyNext: [13 /* enter */, 32 /* space */, 39 /* right */, 40 /* down */], |
164 |
| - keyPrev: [8 /* backspace */, 37 /* left */, 38 /* up */], |
165 |
| - keyClose: [27 /* escape */, 35 /* end */, 36 /* home */], |
166 |
| - |
167 |
| - onopen: function() {}, |
168 |
| - |
169 |
| - overlayCSS: {position: 'fixed', zIndex: 101, top: 0, right: 0, bottom: 0, left: 0, display: 'none', |
170 |
| - backgroundColor: '#000', opacity: 0.9}, |
171 |
| - layoutCSS: {position: 'fixed', zIndex: 101, top: 0, right: 0, bottom: 0, left: 0, display: 'none', |
172 |
| - '-webkit-user-select': 'none', '-moz-user-select': 'none', 'user-select': 'none', |
173 |
| - '-webkit-tap-highlight-color': 'rgba(0, 0, 0, 0)', |
174 |
| - lineHeight: 2.5}, |
175 |
| - |
176 |
| - prevBtnWrapperCSS: {cursor: 'pointer', position: 'absolute', top: 0, right: '50%', bottom: 0, left: 0}, |
177 |
| - closeBtnWrapperCSS: {cursor: 'pointer', position: 'absolute', top: 0, right: 0, bottom: 0, left: '50%'}, |
178 |
| - |
179 |
| - prevBtnBoxCSS: {position: 'absolute', zIndex: 104, top: 0, bottom: 0, left: 0}, |
180 |
| - closeBtnBoxCSS: {position: 'absolute', zIndex: 104, top: 0, bottom: 0, right: 0}, |
181 |
| - |
182 |
| - prevBtnCSS: {color: '#fff', backgroundColor: '#000', opacity: 0.5, |
183 |
| - padding: '0 1em', borderRadius: '0 0 1ex 0'}, |
184 |
| - closeBtnCSS: {color: '#fff', backgroundColor: '#000', opacity: 0.5, |
185 |
| - padding: '0 1em', borderRadius: '0 0 0 1ex'}, |
186 |
| - |
187 |
| - prevBtnHoverCSS: {opacity: 1}, |
188 |
| - closeBtnHoverCSS: {opacity: 1}, |
189 |
| - |
190 |
| - imgCSS: {position: 'absolute', zIndex: 102, margin: 'auto', top: 0, right: 0, bottom: 0, left: 0, |
191 |
| - display: 'block', cursor: 'pointer', maxWidth: '100%', maxHeight: '100%'}, |
192 |
| - |
193 |
| - imgNextCSS: {position: 'absolute', top: '-10000px', width: '100px'}, |
194 |
| - imgPrevCSS: {position: 'absolute', top: '-10000px', width: '100px'}, |
195 |
| - |
196 |
| - bottomCSS: {position: 'absolute', zIndex: 103, right: 0, bottom: 0, left: 0, |
197 |
| - '-webkit-user-select': 'text', '-moz-user-select': 'text', 'user-select': 'text', |
198 |
| - backgroundColor: '#000', color: '#fff', opacity: 0.5, |
199 |
| - padding: '0 1em', textAlign: 'center'}, |
200 |
| - bottomHoverCSS: {opacity: 1}, |
201 |
| - |
202 |
| - overlayAttrs: {}, |
203 |
| - layoutAttrs: {}, |
204 |
| - prevBtnWrapperAttrs: {}, |
205 |
| - prevBtnBoxAttrs: {}, |
206 |
| - prevBtnAttrs: {}, |
207 |
| - closeBtnWrapperAttrs: {}, |
208 |
| - closeBtnBoxAttrs: {}, |
209 |
| - closeBtnAttrs: {}, |
210 |
| - imgAttrs: {}, |
211 |
| - imgNextAttrs: {}, |
212 |
| - imgPrevAttrs: {}, |
213 |
| - bottomAttrs: {} |
| 157 | + fadeIn: 'fast', |
| 158 | + fadeOut: 'fast', |
| 159 | + |
| 160 | + prevBtnHtml: '←', |
| 161 | + closeBtnHtml: 'x', |
| 162 | + |
| 163 | + keyNext: [13 /* enter */, 32 /* space */, 39 /* right */, 40 /* down */], |
| 164 | + keyPrev: [8 /* backspace */, 37 /* left */, 38 /* up */], |
| 165 | + keyClose: [27 /* escape */, 35 /* end */, 36 /* home */], |
| 166 | + |
| 167 | + onopen: function() {}, |
| 168 | + |
| 169 | + overlayCSS: {position: 'fixed', zIndex: 101, top: 0, right: 0, bottom: 0, left: 0, display: 'none', |
| 170 | + backgroundColor: '#000', opacity: .9}, |
| 171 | + layoutCSS: {position: 'fixed', zIndex: 101, top: 0, right: 0, bottom: 0, left: 0, display: 'none', |
| 172 | + '-webkit-user-select': 'none', '-moz-user-select': 'none', 'user-select': 'none', |
| 173 | + '-webkit-tap-highlight-color': 'rgba(0, 0, 0, 0)', |
| 174 | + lineHeight: 2.5}, |
| 175 | + |
| 176 | + prevBtnWrapperCSS: {cursor: 'pointer', position: 'absolute', top: 0, right: '50%', bottom: 0, left: 0}, |
| 177 | + closeBtnWrapperCSS: {cursor: 'pointer', position: 'absolute', top: 0, right: 0, bottom: 0, left: '50%'}, |
| 178 | + |
| 179 | + prevBtnBoxCSS: {position: 'absolute', zIndex: 104, top: 0, bottom: 0, left: 0}, |
| 180 | + closeBtnBoxCSS: {position: 'absolute', zIndex: 104, top: 0, bottom: 0, right: 0}, |
| 181 | + |
| 182 | + prevBtnCSS: {color: '#fff', backgroundColor: '#000', opacity: .5, |
| 183 | + padding: '0 1em', borderRadius: '0 0 1ex 0'}, |
| 184 | + closeBtnCSS: {color: '#fff', backgroundColor: '#000', opacity: .5, |
| 185 | + padding: '0 1em', borderRadius: '0 0 0 1ex'}, |
| 186 | + |
| 187 | + prevBtnHoverCSS: {opacity: 1}, |
| 188 | + closeBtnHoverCSS: {opacity: 1}, |
| 189 | + |
| 190 | + imgCSS: {position: 'absolute', zIndex: 102, margin: 'auto', top: 0, right: 0, bottom: 0, left: 0, |
| 191 | + display: 'block', cursor: 'pointer', maxWidth: '100%', maxHeight: '100%'}, |
| 192 | + |
| 193 | + imgNextCSS: {position: 'absolute', top: '-10000px', width: '100px'}, |
| 194 | + imgPrevCSS: {position: 'absolute', top: '-10000px', width: '100px'}, |
| 195 | + |
| 196 | + bottomCSS: {position: 'absolute', zIndex: 103, right: 0, bottom: 0, left: 0, |
| 197 | + '-webkit-user-select': 'text', '-moz-user-select': 'text', 'user-select': 'text', |
| 198 | + backgroundColor: '#000', color: '#fff', opacity: .5, |
| 199 | + padding: '0 1em', textAlign: 'center'}, |
| 200 | + bottomHoverCSS: {opacity: 1}, |
| 201 | + |
| 202 | + overlayAttrs: {}, |
| 203 | + layoutAttrs: {}, |
| 204 | + prevBtnWrapperAttrs: {}, |
| 205 | + prevBtnBoxAttrs: {}, |
| 206 | + prevBtnAttrs: {}, |
| 207 | + closeBtnWrapperAttrs: {}, |
| 208 | + closeBtnBoxAttrs: {}, |
| 209 | + closeBtnAttrs: {}, |
| 210 | + imgAttrs: {}, |
| 211 | + imgNextAttrs: {}, |
| 212 | + imgPrevAttrs: {}, |
| 213 | + bottomAttrs: {} |
214 | 214 | };
|
215 | 215 |
|
216 | 216 | }(jQuery));
|
0 commit comments