Template:Team:Waterloo/JS/jgallery
From 2014.igem.org
(Difference between revisions)
Line 7: | Line 7: | ||
<script type="text/javascript"> | <script type="text/javascript"> | ||
+ | |||
/*! | /*! | ||
- | * jGallery v1.3. | + | * jGallery v1.3.3 |
* http://jgallery.jakubkowalczyk.pl/ | * http://jgallery.jakubkowalczyk.pl/ | ||
* | * | ||
Line 81: | Line 82: | ||
var defaultsSliderMode = { | var defaultsSliderMode = { | ||
width: '940px', | width: '940px', | ||
- | height: ' | + | height: '300px', |
canResize: false, | canResize: false, | ||
draggableZoom: false, | draggableZoom: false, | ||
Line 87: | Line 88: | ||
thumbnailsFullScreen: false, | thumbnailsFullScreen: false, | ||
thumbType: 'square', | thumbType: 'square', | ||
- | |||
- | |||
canMinimalizeThumbnails: false, | canMinimalizeThumbnails: false, | ||
transition: 'rotateCubeRightOut_rotateCubeRightIn', | transition: 'rotateCubeRightOut_rotateCubeRightIn', | ||
Line 1,320: | Line 1,319: | ||
$active.attr( 'data-height', image.height ); | $active.attr( 'data-height', image.height ); | ||
} | } | ||
- | if ( jGalleryOptions[ this.jGallery.intId ].title && $imgThumb. | + | if ( jGalleryOptions[ this.jGallery.intId ].title && $imgThumb.is( '[alt]' ) ) { |
this.$title.html( $imgThumb.attr( 'alt' ) ).removeClass( 'before' ).removeClass( 'after' ); | this.$title.html( $imgThumb.attr( 'alt' ) ).removeClass( 'before' ).removeClass( 'after' ); | ||
- | |||
- | |||
- | |||
- | |||
} | } | ||
this.jGallery.setColours( { | this.jGallery.setColours( { | ||
Line 2,029: | Line 2,024: | ||
background-image: linear-gradient(to bottom,rgba( ' + arrBgAlt.r + ',' + arrBgAlt.g + ', ' + arrBgAlt.b + ', 0 ) 0%,rgba( ' + arrBgAlt.r + ',' + arrBgAlt.g + ', ' + arrBgAlt.b + ', 1 ) 100%);\ | background-image: linear-gradient(to bottom,rgba( ' + arrBgAlt.r + ',' + arrBgAlt.g + ', ' + arrBgAlt.b + ', 0 ) 0%,rgba( ' + arrBgAlt.r + ',' + arrBgAlt.g + ', ' + arrBgAlt.b + ', 1 ) 100%);\ | ||
background-repeat: repeat-x;\ | background-repeat: repeat-x;\ | ||
- | |||
- | |||
- | |||
- | |||
- | |||
}\ | }\ | ||
.jgallery.jgallery-slider[data-jgallery-id="' + this.intId + '"] .zoom-container .nav-bottom .jgallery-btn {\ | .jgallery.jgallery-slider[data-jgallery-id="' + this.intId + '"] .zoom-container .nav-bottom .jgallery-btn {\ |
Revision as of 06:26, 17 October 2014