Skip to content

Commit

Permalink
new build
Browse files Browse the repository at this point in the history
  • Loading branch information
arm1n committed Mar 24, 2015
1 parent 1370790 commit 46cadae
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 22 deletions.
12 changes: 0 additions & 12 deletions dist/touch-imagelightbox.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions dist/touch-imagelightbox.css.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 15 additions & 5 deletions dist/touch-imagelightbox.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*! touch-imagelightbox - v0.1.0 - 2014-06-27
/*! touch-imagelightbox - v0.1.0 - 2015-03-24
* https://github.com/victorhaggqvist/touch-imagelightbox
* Copyright (c) 2014 Osvaldas Valutis (www.osvaldas.info); Licensed MIT
* Copyright (c) 2015 Osvaldas Valutis (www.osvaldas.info); Licensed MIT
* Contributors Victor Häggqvist (victorhaggqvist.com) */
;( function( $, window, document, undefined ) {
'use strict';
Expand Down Expand Up @@ -62,7 +62,9 @@
onStart: false,
onEnd: false,
onLoadStart: false,
onLoadEnd: false
onLoadEnd: false,
scaleX: 0.8,
scaleY: 0.9,
},
options);

Expand All @@ -84,8 +86,8 @@
setImage = function() {
if( !image.length ) return false;

var screenWidth = $( window ).width() * 0.8,
screenHeight = $( window ).height() * 0.9,
var screenWidth = $( window ).width() * options.scaleX,
screenHeight = $( window ).height() * options.scaleY,
tmpImage = new Image();

tmpImage.src = image.attr( 'src' );
Expand Down Expand Up @@ -317,6 +319,14 @@
targets = targets.add( $( this ) );
});

this.getCurrentImage = function() {
return image.length ? image : false;
};

this.getCurrentTarget = function() {
return target.length ? target : false;
};

this.switchImageLightbox = function( index ) {
var tmpTarget = targets.eq( index );
if( tmpTarget.length ) {
Expand Down
1 change: 1 addition & 0 deletions dist/touch-imagelightbox.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions dist/touch-imagelightbox.min.css.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 46cadae

Please sign in to comment.