Skip to content

Commit b3a57bc

Browse files
committed
add loading error icon
1 parent 54ddb9d commit b3a57bc

13 files changed

+134
-101
lines changed

README.md

+29-28
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ Alternatively you can:
3434
- Mounting HTML node fragments as slides (you can add just everything as a slide!)
3535
- Gallery groups:
3636
- group images to specific galleries
37-
- smart inheritance of group config
38-
- Gallery tools:
37+
- group options inheritance
38+
- Toolbar & Gallery tools:
3939
- Fullscreen
4040
- Zoom in/out
4141
- Toggle resize
@@ -53,17 +53,15 @@ Alternatively you can:
5353
- Fully configurable via markup
5454
- Loading Spinner
5555
- Prefetch next image
56-
- Custom options
56+
- Customize via standard options
5757
- Simply customize via markup (data-attributes)
58-
- Arrange built-in animations
58+
- Built-in animations
5959
- Custom themes
6060
- Custom animations
61-
- Controls:
61+
- Supported controls:
6262
- Keyboard
6363
- Touch
64-
- Mousemove
65-
- Mousewheel
66-
- Browser history detection
64+
- Mouse (Move + Wheel)
6765
- Back-Button (Android)
6866
- Callbacks (onclick, onshow, onclose, onchange)
6967
- Global API for programmatic usage
@@ -75,7 +73,7 @@ __Technical properties:__
7573
- Event capturing (just one single global event listener)
7674
- Bind additional global event listener dynamically:
7775
- install when gallery opens
78-
- fully cleanup when gallery was closed
76+
- cleanup when gallery was closed
7977
- No dependencies, no jQuery
8078
- Fully Responsive
8179
- Touch-friendly mobile support
@@ -95,8 +93,8 @@ __Get Latest Stable Build (Recommended):__
9593
</tr>
9694
<tr>
9795
<td>spotlight.bundle.js</td>
98-
<td><a href="https://github.com/nextapps-de/spotlight/raw/0.7.4/dist/spotlight.bundle.js" target="_blank">Download</a></td>
99-
<td><a href="https://rawcdn.githack.com/nextapps-de/spotlight/0.7.4/dist/spotlight.bundle.js" target="_blank">https://rawcdn.githack.com/nextapps-de/spotlight/0.7.4/dist/spotlight.bundle.js</a></td>
96+
<td><a href="https://github.com/nextapps-de/spotlight/raw/0.7.5/dist/spotlight.bundle.js" target="_blank">Download</a></td>
97+
<td><a href="https://rawcdn.githack.com/nextapps-de/spotlight/0.7.5/dist/spotlight.bundle.js" target="_blank">https://rawcdn.githack.com/nextapps-de/spotlight/0.7.5/dist/spotlight.bundle.js</a></td>
10098
</tr>
10199
<tr>
102100
<td colspan=3">
@@ -105,14 +103,14 @@ __Get Latest Stable Build (Recommended):__
105103
</tr>
106104
<tr>
107105
<td>spotlight.min.js</td>
108-
<td><a href="https://github.com/nextapps-de/spotlight/raw/0.7.4/dist/js/spotlight.min.js" target="_blank">Download</a></td>
109-
<td><a href="https://rawcdn.githack.com/nextapps-de/spotlight/0.7.4/dist/js/spotlight.min.js" target="_blank">https://rawcdn.githack.com/nextapps-de/spotlight/0.7.4/dist/js/spotlight.min.js</a></td>
106+
<td><a href="https://github.com/nextapps-de/spotlight/raw/0.7.5/dist/js/spotlight.min.js" target="_blank">Download</a></td>
107+
<td><a href="https://rawcdn.githack.com/nextapps-de/spotlight/0.7.5/dist/js/spotlight.min.js" target="_blank">https://rawcdn.githack.com/nextapps-de/spotlight/0.7.5/dist/js/spotlight.min.js</a></td>
110108
</tr>
111109
<tr></tr>
112110
<tr>
113111
<td>spotlight.min.css</td>
114-
<td><a href="https://github.com/nextapps-de/spotlight/raw/0.7.4/dist/css/spotlight.min.css" target="_blank">Download</a></td>
115-
<td><a href="https://rawcdn.githack.com/nextapps-de/spotlight/0.7.4/dist/css/spotlight.min.css" target="_blank">https://rawcdn.githack.com/nextapps-de/spotlight/0.7.4/dist/css/spotlight.min.css</a></td>
112+
<td><a href="https://github.com/nextapps-de/spotlight/raw/0.7.5/dist/css/spotlight.min.css" target="_blank">Download</a></td>
113+
<td><a href="https://rawcdn.githack.com/nextapps-de/spotlight/0.7.5/dist/css/spotlight.min.css" target="_blank">https://rawcdn.githack.com/nextapps-de/spotlight/0.7.5/dist/css/spotlight.min.css</a></td>
116114
</tr>
117115
<tr>
118116
<td colspan=3">
@@ -121,25 +119,25 @@ __Get Latest Stable Build (Recommended):__
121119
</tr>
122120
<tr>
123121
<td>ES6 Modules</td>
124-
<td><a href="https://minhaskamal.github.io/DownGit/#/home?url=https://github.com/nextapps-de/spotlight/tree/0.7.4/src/js" target="_blank">Download</a></td>
122+
<td><a href="https://minhaskamal.github.io/DownGit/#/home?url=https://github.com/nextapps-de/spotlight/tree/0.7.5/src/js" target="_blank">Download</a></td>
125123
<td>The <i>/src/js</i> folder of this Github repository</td>
126124
</tr>
127125
<tr></tr>
128126
<tr>
129127
<td>LESS Files (source)</td>
130-
<td><a href="https://minhaskamal.github.io/DownGit/#/home?url=https://github.com/nextapps-de/spotlight/tree/0.7.4/src/css" target="_blank">Download</a></td>
128+
<td><a href="https://minhaskamal.github.io/DownGit/#/home?url=https://github.com/nextapps-de/spotlight/tree/0.7.5/src/css" target="_blank">Download</a></td>
131129
<td>The <i>/src/css</i> folder of this Github repository</td>
132130
</tr>
133131
<tr></tr>
134132
<tr>
135133
<td>spotlight.css (compiled)</td>
136-
<td><a href="https://github.com/nextapps-de/spotlight/raw/0.7.4/src/css/spotlight.css" target="_blank">Download</a></td>
137-
<td><a href="https://rawcdn.githack.com/nextapps-de/spotlight/0.7.4/src/css/spotlight.css" target="_blank">https://rawcdn.githack.com/nextapps-de/spotlight/0.7.4/src/css/spotlight.css</a></td>
134+
<td><a href="https://github.com/nextapps-de/spotlight/raw/0.7.5/src/css/spotlight.css" target="_blank">Download</a></td>
135+
<td><a href="https://rawcdn.githack.com/nextapps-de/spotlight/0.7.5/src/css/spotlight.css" target="_blank">https://rawcdn.githack.com/nextapps-de/spotlight/0.7.5/src/css/spotlight.css</a></td>
138136
</tr>
139137
<tr></tr>
140138
<tr>
141139
<td>src.zip</td>
142-
<td><a href="https://minhaskamal.github.io/DownGit/#/home?url=https://github.com/nextapps-de/spotlight/tree/0.7.4/dist" target="_blank">Download</a></td>
140+
<td><a href="https://minhaskamal.github.io/DownGit/#/home?url=https://github.com/nextapps-de/spotlight/tree/0.7.5/dist" target="_blank">Download</a></td>
143141
<td>Download all source files including image original resources.</td>
144142
</tr>
145143
</table>
@@ -152,7 +150,7 @@ npm install spotlight.js
152150

153151
__Get Latest Nightly (Do not use for production!):__
154152

155-
Just exchange the version number from the URLs above with "master", e.g.: "/spotlight/__0.7.4__/dist/" into "/spotlight/__master__/dist".
153+
Just exchange the version number from the URLs above with "master", e.g.: "/spotlight/__0.7.5__/dist/" into "/spotlight/__master__/dist".
156154

157155
### Use Bundled Version
158156

@@ -229,7 +227,7 @@ You can also load modules via CDN, e.g.:
229227

230228
```html
231229
<script type="module">
232-
import Spotlight from "https://unpkg.com/[email protected].4/src/js/spotlight.js";
230+
import Spotlight from "https://unpkg.com/[email protected].5/src/js/spotlight.js";
233231
</script>
234232
```
235233

@@ -444,7 +442,7 @@ You can either apply the following data-attributes to the ___spotlight-group___
444442
<tr>
445443
<td>autoplay</td>
446444
<td>true / false</td>
447-
<td>Autoplay when opening gallery (also requires the option <b>player</b> to be set)</td>
445+
<td>Autoplay when opening gallery (also requires the option <b>play</b> to be set)</td>
448446
<td>false</td>
449447
</tr>
450448
<tr></tr>
@@ -954,12 +952,14 @@ That is the same custom like button from above example, just shorter but also no
954952

955953
## Embedding Node Fragments
956954

957-
> With node fragments you can simply add everything as a slide.
955+
> With node fragments you can simply add everything as a slide. This way you can create your own full customized slides with its own interactions inside them.
958956
959957
You can use this feature completely by markup by providing a query selector as "src" which points to a node in your document.
960958

961959
### Using Auto-Mount / Auto-Unmount
962960

961+
> This workaround is also compatible if you are using server-side rendering.
962+
963963
You can use a hidden backstore optionally which holds the fragments to be inserted as a slide, e.g.:
964964

965965
```html
@@ -980,9 +980,9 @@ Provide a __dom query selector__ as "src" which points to a node in your documen
980980

981981
When closing the gallery or change the page to another slide, the fragment will automatically move back to its original position (the hidden backstore in this example).
982982

983-
### Custom Elements (API-only)
983+
### Custom Slides (API-only)
984984

985-
You can add nodes as slide which are not part of the document also via the API (e.g. fragments, templates, offscreen nodes). This way you can create your own full customized slides with its own interactions inside them. Also, you can create an iframe to load extern contents.
985+
You can add nodes as slide which are not part of the document via the API (e.g. fragments, templates, offscreen nodes). Also, you can create an iframe to load extern contents.
986986

987987
#### Example: Youtube Video
988988

@@ -994,7 +994,6 @@ Spotlight.show([{
994994
src: (function(){
995995
const iframe = document.createElement("iframe");
996996
iframe.src = "https://www.youtube.com/embed/tgbNymZ7vqY";
997-
iframe.height = "auto";
998997
return iframe;
999998
}())
1000999
}]);
@@ -1167,12 +1166,14 @@ To add custom styling just override CSS classes accordingly:
11671166
.spl-zoom-out { /* button zoom out (toolbar) */ }
11681167
.spl-zoom-in { /* button zoom in (toolbar) */ }
11691168
.spl-theme { /* button theme (toolbar) */ }
1170-
.spl-player { /* button autoplay (toolbar) */ }
1169+
.spl-play { /* button autoplay (toolbar) */ }
11711170
.spl-download { /* button download (toolbar) */ }
11721171
.spl-close { /* button close (toolbar) */ }
11731172
.spl-prev { /* button page prev */ }
11741173
.spl-next { /* button page next */ }
11751174
.spl-spinner { /* preloading spinner */ }
1175+
.spl-spinner.spin { /* show spinner */ }
1176+
.spl-spinner.error { /* show loading error */ }
11761177
.spl-title { /* image title */ }
11771178
.spl-description { /* image description */ }
11781179
.spl-button { /* button footer */ }

0 commit comments

Comments
 (0)