Skip to content
This repository was archived by the owner on Jan 19, 2023. It is now read-only.

Commit e097b0e

Browse files
author
fritz-c
committed
Make app example easier to serve on gh-pages without modification
1 parent 3ee57ad commit e097b0e

File tree

1 file changed

+34
-40
lines changed

1 file changed

+34
-40
lines changed

example/src/app.js

Lines changed: 34 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -3,52 +3,46 @@ var ReactDOM = require('react-dom');
33
var Lightbox = require('react-image-lightbox');
44

55
var images = [
6-
'/images/1.jpg',
7-
'/images/2.jpg',
8-
'/images/3.jpg',
9-
'/images/4.jpg',
6+
'images/1.jpg',
7+
'images/2.jpg',
8+
'images/3.jpg',
9+
'images/4.jpg',
1010
];
1111

1212
var thumbs = [
13-
'/images/1_thumb.jpg',
14-
'/images/2_thumb.jpg',
15-
'/images/3_thumb.jpg',
16-
'/images/4_thumb.jpg',
13+
'images/1_thumb.jpg',
14+
'images/2_thumb.jpg',
15+
'images/3_thumb.jpg',
16+
'images/4_thumb.jpg',
1717
];
1818

1919
var titles = [
20-
"",
21-
(
22-
<span>
23-
by&nbsp;
24-
<a href="http://flickr.com/photos/titrans/">
25-
quatre mains
26-
</a>
27-
&nbsp;(<a href="http://creativecommons.org/licenses/by/2.0/" title="Attribution License">
28-
Some rights reserved
29-
</a>)
30-
</span>
31-
),
32-
(
33-
<span>
34-
by&nbsp;
35-
<a href="http://flickr.com/photos/lachlanrogers/">latch.r</a>
36-
&nbsp;(<a href="http://creativecommons.org/licenses/by-sa/2.0/" title="Attribution-ShareAlike License">
37-
Some rights reserved
38-
</a>)
39-
</span>
40-
),
41-
(
42-
<span>
43-
by&nbsp;
44-
<a href="http://flickr.com/photos/fazen/">
45-
fazen
46-
</a>
47-
&nbsp;(<a href="http://creativecommons.org/licenses/by/2.0/" title="Attribution License">
48-
Some rights reserved
49-
</a>)
50-
</span>
51-
),
20+
'',
21+
(<span>
22+
by&nbsp;
23+
<a href="http://flickr.com/photos/titrans/">
24+
quatre mains
25+
</a>
26+
&nbsp;(<a href="http://creativecommons.org/licenses/by/2.0/" title="Attribution License">
27+
Some rights reserved
28+
</a>)
29+
</span>),
30+
(<span>
31+
by&nbsp;
32+
<a href="http://flickr.com/photos/lachlanrogers/">latch.r</a>
33+
&nbsp;(<a href="http://creativecommons.org/licenses/by-sa/2.0/" title="Attribution-ShareAlike License">
34+
Some rights reserved
35+
</a>)
36+
</span>),
37+
(<span>
38+
by&nbsp;
39+
<a href="http://flickr.com/photos/fazen/">
40+
fazen
41+
</a>
42+
&nbsp;(<a href="http://creativecommons.org/licenses/by/2.0/" title="Attribution License">
43+
Some rights reserved
44+
</a>)
45+
</span>),
5246
];
5347
var App = React.createClass({
5448
getInitialState: function() {

0 commit comments

Comments
 (0)