Skip to content
This repository has been archived by the owner on Aug 1, 2020. It is now read-only.

Commit

Permalink
Release v0.5.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Fengyuan Chen committed Mar 11, 2016
1 parent 6c0bc7f commit 2c12ebf
Show file tree
Hide file tree
Showing 8 changed files with 50 additions and 38 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
# Changelog


## 0.5.1 (Mar 11, 2016)

- Fixed the issue of the "button" option (#8).
- Fixed the issue of the "$.fn.viewer.setDefault" static method (#9).


## 0.5.0 (Jan 21, 2016)

- Add more available values to the "title", "toolbar" and "navbar" options.
Expand Down
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -739,11 +739,12 @@ Please read through our [contributing guidelines](CONTRIBUTING.md).
## Browser support
- Chrome (latest 2)
- Firefox (latest 2)
- Chrome (latest)
- Firefox (latest)
- Safari (latest)
- Opera (latest)
- Edge (latest)
- Internet Explorer 8+
- Opera (latest 2)
- Safari (latest 2)
As a jQuery plugin, you also need to see the [jQuery Browser Support](http://jquery.com/browser-support/).
Expand Down
4 changes: 2 additions & 2 deletions dist/viewer.css
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/*!
* Viewer v0.5.0
* Viewer v0.5.1
* https://github.com/fengyuanchen/viewer
*
* Copyright (c) 2015-2016 Fengyuan Chen
* Released under the MIT license
*
* Date: 2016-01-21T09:59:45.429Z
* Date: 2016-03-11T07:57:59.486Z
*/
.viewer-zoom-in:before,
.viewer-zoom-out:before,
Expand Down
32 changes: 18 additions & 14 deletions dist/viewer.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/*!
* Viewer v0.5.0
* Viewer v0.5.1
* https://github.com/fengyuanchen/viewer
*
* Copyright (c) 2015-2016 Fengyuan Chen
* Released under the MIT license
*
* Date: 2016-01-21T09:59:52.834Z
* Date: 2016-03-11T07:57:59.486Z
*/

(function (factory) {
Expand Down Expand Up @@ -309,6 +309,7 @@
}

$navbar.addClass(!options.navbar ? CLASS_HIDE : getResponsiveClass(options.navbar));
$button.toggleClass(CLASS_HIDE, !options.button);

if (options.inline) {
$button.addClass(CLASS_FULLSCREEN);
Expand Down Expand Up @@ -342,17 +343,11 @@
},

unbuild: function () {
var options = this.options;
var $this = this.$element;

if (!this.isBuilt) {
return;
}

if (options.inline) {
$this.removeClass(CLASS_HIDE);
}

this.isBuilt = false;
this.$viewer.remove();
},

Expand Down Expand Up @@ -591,8 +586,10 @@
},

resetImage: function () {
this.$image.remove();
this.$image = null;
if (this.$image) {
this.$image.remove();
this.$image = null;
}
},

start: function (e) {
Expand Down Expand Up @@ -754,9 +751,12 @@
this.initViewer();
this.renderViewer();
this.renderList();
this.initImage($.proxy(function () {
this.renderImage();
}, this));

if (this.isViewed) {
this.initImage($.proxy(function () {
this.renderImage();
}, this));
}

if (this.isPlayed) {
this.$player.
Expand Down Expand Up @@ -1857,6 +1857,10 @@
viewed: null
};

Viewer.setDefaults = function (options) {
$.extend(Viewer.DEFAULTS, options);
};

Viewer.TEMPLATE = (
'<div class="viewer-container">' +
'<div class="viewer-canvas"></div>' +
Expand Down
4 changes: 2 additions & 2 deletions dist/viewer.min.css

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

6 changes: 3 additions & 3 deletions dist/viewer.min.js

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,10 @@
</div>
<nav class="collapse navbar-collapse" id="navbar-collapse-1" role="navigation">
<ul class="nav navbar-nav navbar-right">
<li><a href="https://github.com/fengyuanchen/viewer/tree/v0.5.0/README.md">Docs</a></li>
<li><a href="https://github.com/fengyuanchen/viewer/tree/v0.5.1/README.md">Docs</a></li>
<li><a href="https://github.com/fengyuanchen/viewer">GitHub</a></li>
<li><a href="https://fengyuanchen.github.io/viewerjs" title="Viewer without jQuery">Viewer.js</a></li>
<li><a href="//fengyuanchen.github.io">More</a></li>
<li><a href="http://chenfengyuan.com">About</a></li>
<li><a href="http://fengyuanchen.github.io">More</a></li>
</ul>
</nav>
</div>
Expand All @@ -50,11 +49,11 @@
<!-- Jumbotron -->
<div class="jumbotron docs-jumbotron">
<div class="container">
<h1>Viewer <small class="version">v0.5.0</small></h1>
<h1>Viewer <small class="version">v0.5.1</small></h1>
<p class="lead">A simple jQuery image viewing plugin.</p>
<div class="docs-carbonads-container">
<div class="docs-carbonads">
<script type="text/javascript" id="_carbonads_js" src="//cdn.carbonads.com/carbon.js?zoneid=1673&serve=C6AILKT&placement=fengyuanchen" async></script>
<script id="_carbonads_js" src="//cdn.carbonads.com/carbon.js?zoneid=1673&serve=C6AILKT&placement=fengyuanchen" async></script>
</div>
</div>
</div>
Expand Down Expand Up @@ -270,15 +269,16 @@ <h3 class="page-header">Methods</h3>
<div class="container">
<p class="heart"></p>
<ul class="list-inline links">
<li><a href="https://github.com/fengyuanchen/viewer">GitHub</a></li>
<li><a href="https://github.com/fengyuanchen/viewer/releases">Releases</a></li>
<li><a href="https://github.com/fengyuanchen/viewer/issues">Issues</a></li>
<li><a href="https://github.com/fengyuanchen/viewer/blob/master/LICENSE">License</a></li>
<li><a href="http://chenfengyuan.com">About</a></li>
</ul>
</div>
</footer>

<!-- Scripts -->
<script src="https://code.jquery.com/jquery-1.12.0.min.js"></script>
<script src="https://code.jquery.com/jquery-1.12.1.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
<script src="//fengyuanchen.github.io/js/common.js"></script>
<script src="js/viewer.js"></script>
Expand Down
13 changes: 7 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "imageviewer",
"description": "A simple jQuery image viewing plugin.",
"version": "0.5.0",
"version": "0.5.1",
"main": "dist/viewer.js",
"keywords": [
"image",
Expand Down Expand Up @@ -34,20 +34,21 @@
"jquery": ">= 1.9.1"
},
"devDependencies": {
"gulp": "^3.9.0",
"gulp": "^3.9.1",
"gulp-autoprefixer": "^3.1.0",
"gulp-concat": "^2.6.0",
"gulp-csscomb": "^3.0.6",
"gulp-csslint": "^0.2.0",
"gulp-csslint": "^0.2.2",
"gulp-htmlcomb": "^0.1.0",
"gulp-jscs": "^3.0.2",
"gulp-jshint": "^1.12.0",
"gulp-load-plugins": "^1.2.0",
"gulp-minify-css": "^1.2.3",
"gulp-minify-css": "^1.2.4",
"gulp-qunit": "^1.3.1",
"gulp-rename": "^1.2.2",
"gulp-replace": "^0.5.4",
"gulp-sass": "^2.1.0",
"gulp-sass": "^2.2.0",
"gulp-sourcemaps": "^1.6.0",
"gulp-uglify": "^1.5.1"
"gulp-uglify": "^1.5.3"
}
}

0 comments on commit 2c12ebf

Please sign in to comment.