Skip to content

Commit d66c889

Browse files
author
Constantin
committed
1.2.5 stable
1 parent 73b9358 commit d66c889

File tree

8 files changed

+23
-26
lines changed

8 files changed

+23
-26
lines changed

README.md

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Swipebox is a jQuery "lightbox" plugin for desktop, mobile and tablet.
1919

2020
###Compatibility
2121

22-
Chrome, Safari, Firefox, Opera, IE8+, IOS4+, Android, windows phone.
22+
Chrome, Safari, Firefox, Opera, IE9+, IOS4+, Android, windows phone.
2323

2424
##Usage
2525

@@ -29,15 +29,15 @@ Include jquery and the swipebox script in your head tags or right before your bo
2929

3030
```html
3131
<script src="lib/jquery-1.9.0.js"></script>
32-
<script src="source/jquery.swipebox.js"></script>
32+
<script src="src/js/jquery.swipebox.js"></script>
3333
```
3434

3535
###CSS
3636

3737
Include the swipebox CSS style in your head tags.
3838

3939
```html
40-
<link rel="stylesheet" href="source/swipebox.css">
40+
<link rel="stylesheet" href="src/css/swipebox.css">
4141
```
4242

4343
###HTML
@@ -53,7 +53,7 @@ Use a specific class for your links and use the title attribute as caption.
5353
Bind the swipebox behaviour on every link with the "swipebox" class.
5454

5555
```javascript
56-
$(".swipebox").swipebox();
56+
$( '.swipebox' ).swipebox();
5757
```
5858

5959
###Options
@@ -72,6 +72,3 @@ afterClose: function(){} // called after closing
7272
I want to keep this plugin as simple as possible. I won't merge pull requests for additional features such as download buttons, social like buttons, IE8 compatibility etc... But feel free to fork the project and customize it to suit to your needs. Most wanted PR are for bug fixes. Also, a future improvement will be to allow zoom on touchable devices.
7373

7474
Thanks for your understanding and thank you all for your helpful support!
75-
76-
####Credits
77-
Photos by [Daniele Zedda](http://www.flickr.com/photos/astragony/)

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"name": "swipebox",
3-
"version": "1.2.4",
3+
"version": "1.2.5",
44
"main": "source/jquery.swipebox.js"
55
}

demo/images/image-1.jpg

-72.7 KB
Binary file not shown.

demo/images/image-2.jpg

-62.9 KB
Binary file not shown.

demo/images/image-3.jpg

-102 KB
Binary file not shown.

demo/images/image-4.jpg

-72.5 KB
Binary file not shown.

demo/index.html

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@
66
<meta name="description" content="A touchable jQuery lightbox plugin for desktop, mobile and tablet" />
77
<meta property="og:site_name" content="Swipebox" />
88
<meta property="og:url" content="http://brutaldesign.github.com/swipebox/" />
9-
<meta property="og:image" content="http://swipebox.brutaldesign.com/meta/swipe250.jpg" />
9+
<meta property="og:image" content="http://swipebox.csag.co/images/swipe250.jpg" />
1010
<meta property="og:type" content="article" />
1111
<meta property="og:title" content="Swipebox | A touchable jQuery lightbox" />
1212
<meta property="og:description" content="Swipebox is a jQuery lightbox plugin for desktop, mobile and tablet">
1313
<meta itemprop="name" content="Swipebox | A touchable jQuery lightbox">
14-
<meta itemprop="image" content="http://swipebox.brutaldesign.com/meta/swipe250.jpg">
14+
<meta itemprop="image" content="http://swipebox.csag.co/images/swipe250.jpg">
1515
<meta itemprop="description" content="Swipebox is a jQuery lightbox plugin for desktop, mobile and tablet">
1616
<link href='http://fonts.googleapis.com/css?family=Source+Sans+Pro:400,700|Noto+Serif:400,700&subset=latin,latin-ext' rel='stylesheet' type='text/css'>
1717
<link rel="stylesheet" href="style.css">
@@ -105,23 +105,23 @@ <h3>Compatibility</h3>
105105
<h2>Try it</h2>
106106
<ul id="box-container">
107107
<li class="box">
108-
<a href="images/image-1.jpg" class="swipebox" title="Fog">
109-
<img src="images/image-1.jpg" alt="image">
108+
<a href="http://swipebox.csag.co/images/image-1.jpg" class="swipebox" title="Fog">
109+
<img src="http://swipebox.csag.co/images/image-1.jpg" alt="image">
110110
</a>
111111
</li>
112112
<li class="box">
113-
<a href="images/image-2.jpg" class="swipebox" title="City">
114-
<img src="images/image-2.jpg" alt="image">
113+
<a href="http://swipebox.csag.co/images/image-2.jpg" class="swipebox" title="City">
114+
<img src="http://swipebox.csag.co/images/image-2.jpg" alt="image">
115115
</a>
116116
</li>
117117
<li class="box">
118-
<a href="images/image-3.jpg" class="swipebox" title="Street">
119-
<img src="images/image-3.jpg" alt="image">
118+
<a href="http://swipebox.csag.co/images/image-3.jpg" class="swipebox" title="Street">
119+
<img src="http://swipebox.csag.co/images/image-3.jpg" alt="image">
120120
</a>
121121
</li>
122122
<li class="box">
123-
<a href="images/image-4.jpg" class="swipebox" title="Mustache Guy">
124-
<img src="images/image-4.jpg" alt="image">
123+
<a href="http://swipebox.csag.co/images/image-4.jpg" class="swipebox" title="Mustache Guy">
124+
<img src="http://swipebox.csag.co/images/image-4.jpg" alt="image">
125125
</a>
126126
</li>
127127
</ul>
@@ -255,8 +255,8 @@ <h3>Options</h3>
255255
$( '#gallery' ).click( function( e ) {
256256
e.preventDefault();
257257
$.swipebox( [
258-
{ href : 'images/image-1.jpg', title : 'My Caption' },
259-
{ href : 'images/image-2.jpg', title : 'My Second Caption' }
258+
{ href : 'http://swipebox.csag.co/mages/image-1.jpg', title : 'My Caption' },
259+
{ href : 'http://swipebox.csag.co/images/image-2.jpg', title : 'My Second Caption' }
260260
] );
261261
} );
262262

demo/style.css

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* normalize.css v3.0.0 | MIT License | git.io/normalize */
1+
/*! normalize.css v3.0.0 | MIT License | git.io/normalize */
22
/**
33
* 1. Set default font family to sans-serif.
44
* 2. Prevent iOS text size adjust after orientation change, without disabling
@@ -741,11 +741,11 @@ pre span {
741741
-webkit-box-shadow: 0 6px 0 #256e68;
742742
-moz-box-shadow: 0 6px 0 #256e68;
743743
box-shadow: 0 6px 0 #256e68;
744-
-webkit-border-radius: 8px;
745-
-moz-border-radius: 8px;
746-
-ms-border-radius: 8px;
747-
-o-border-radius: 8px;
748-
border-radius: 8px;
744+
-webkit-border-radius: 6px;
745+
-moz-border-radius: 6px;
746+
-ms-border-radius: 6px;
747+
-o-border-radius: 6px;
748+
border-radius: 6px;
749749
font-size: 1.5rem;
750750
padding: 1.7rem 2.5rem;
751751
margin: 1rem 0.5%;

0 commit comments

Comments
 (0)