-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Version up
- Loading branch information
Showing
3 changed files
with
5 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
{ | ||
"name": "Respify", | ||
"main": "Respify.js", | ||
"version": "0.3.1", | ||
"version": "0.3.2", | ||
"homepage": "https://github.com/matthisk/Respify", | ||
"authors": [ | ||
"Matthisk Heimensen <[email protected]>" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
* Respify responsive image library | ||
* | ||
* Parse a responsive image from a set of data attributes trough media queries, depends upon the matchMedia polyfill for older browsers | ||
* @version 0.3.1 | ||
* @version 0.3.2 | ||
* @author Matthisk Heimensen <[email protected]> | ||
*/ | ||
(function( w, factory ) { | ||
|
@@ -100,9 +100,9 @@ | |
|
||
Picture.prototype.setMatch = function() { | ||
if( ! this.settings.background ) { | ||
this.setImage( this.currentMatch.src, this.$el.data( 'alt' ) ); | ||
this.setImage( encodeURI( this.currentMatch.src ), this.$el.data( 'alt' ) ); | ||
} else { | ||
this.$el.css( 'background-image', 'url(' + encodeURI(this.currentMatch.src) + ')' ); | ||
this.$el.css( 'background-image', 'url(' + encodeURI( this.currentMatch.src ) + ')' ); | ||
} | ||
}; | ||
|
||
|