Skip to content

Commit

Permalink
Version 0.1.1.
Browse files Browse the repository at this point in the history
Fixed crash on no config and not loading of pictures containing white characters in their name.
  • Loading branch information
mnn committed Jul 3, 2015
1 parent ebce74b commit 303e4fb
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 4 deletions.
18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,17 @@ Showcase
You can try TGJS [over there](http://mnn.github.io/tgjs).


Features
========
* entirely client side, no need for hosting with dynamic language support
* data file (JSON) can be generated via in-built importer (image hostings), Gallery Importer application (also generates thumbnails, used for locally hosted files) or, if needed, by hand
* smart pagination
* title and duration labels in tiles view for any picture
* next/previous/close hot keys in detail view
* multiple thumbnails, changing on hover
* proper links even though it is a client side application


Usage
=====
Include dependencies (Angular and ui-router).
Expand All @@ -38,6 +49,13 @@ Include built files (you can download them at [releases page](releases)).
<link href="tgjs.css" rel="stylesheet" type="text/css"/>
```

And insert a gallery tag.

```html
<tiny-gallery src="data/gallery.json"></tiny-gallery>
```


Configuration
=============
It is done by creating global object named `TinyGalleryAppSettings`.
Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "TinyGalleryJS",
"version": "0.1.0",
"version": "0.1.1",
"authors": [
"monnef"
],
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "TinyGalleryJS",
"version": "0.1.0",
"version": "0.1.1",
"author": "monnef",
"description": "Tiny library providing basic gallery entirely on a client side.",
"homepage": "https://github.com/mnn/TinyGalleryJS",
Expand Down
2 changes: 1 addition & 1 deletion tiny-gallery-js/detail.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
</div>

<div class="tg-bg-picture"
style="background-image: url({{picture.galleryPicture}});">
style="background-image: url('{{picture.galleryPicture}}');">
</div>
<!--
<div class="tg-detail-picture-wrapper">
Expand Down
2 changes: 1 addition & 1 deletion tiny-gallery-js/js/tgjs.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ app = angular.module(appName, ['ui.router'])
LinkPageChangedEvent = "LinkPageChanged"

loadSettings = ->
settings = TinyGalleryAppSettings or {}
settings = window.TinyGalleryAppSettings or {}
settings.includeDir = settings.includeDir or './tiny-gallery-js/'
settings.dataDir = settings.dataDir or './'
settings.nearPagesCount = settings.nearPagesCount or 3
Expand Down

0 comments on commit 303e4fb

Please sign in to comment.