Permalink
Browse files

Added baguettebox assets

  • Loading branch information...
ralsina committed May 22, 2017
1 parent e4c5336 commit a9cdcac615e05b8f56e1fb9dfa51785ee235bea4
Showing with 1,651 additions and 1 deletion.
  1. +2 −1 bower.json
  2. +40 −0 bower_components/baguettebox.js/.bower.json
  3. +21 −0 bower_components/baguettebox.js/LICENSE
  4. +173 −0 bower_components/baguettebox.js/README.md
  5. +31 −0 bower_components/baguettebox.js/bower.json
  6. BIN bower_components/baguettebox.js/demo/img/1-1.jpg
  7. BIN bower_components/baguettebox.js/demo/img/1-2.jpg
  8. BIN bower_components/baguettebox.js/demo/img/1-3.jpg
  9. BIN bower_components/baguettebox.js/demo/img/1-4.jpg
  10. BIN bower_components/baguettebox.js/demo/img/1-5.jpg
  11. BIN bower_components/baguettebox.js/demo/img/1-6.jpg
  12. BIN bower_components/baguettebox.js/demo/img/1-7.jpg
  13. BIN bower_components/baguettebox.js/demo/img/1-8.jpg
  14. BIN bower_components/baguettebox.js/demo/img/2-1.jpg
  15. BIN bower_components/baguettebox.js/demo/img/2-2.jpg
  16. BIN bower_components/baguettebox.js/demo/img/2-3.jpg
  17. BIN bower_components/baguettebox.js/demo/img/2-4.jpg
  18. BIN bower_components/baguettebox.js/demo/img/3-1.jpg
  19. BIN bower_components/baguettebox.js/demo/img/3-2.jpg
  20. BIN bower_components/baguettebox.js/demo/img/3-3.jpg
  21. BIN bower_components/baguettebox.js/demo/img/3-4.jpg
  22. BIN bower_components/baguettebox.js/demo/img/5-1.jpg
  23. BIN bower_components/baguettebox.js/demo/img/big/2-1.jpg
  24. BIN bower_components/baguettebox.js/demo/img/big/2-2.jpg
  25. BIN bower_components/baguettebox.js/demo/img/big/2-3.jpg
  26. BIN bower_components/baguettebox.js/demo/img/big/2-4.jpg
  27. BIN bower_components/baguettebox.js/demo/img/forkme-on-github-right.png
  28. BIN bower_components/baguettebox.js/demo/img/medium/2-1.jpg
  29. BIN bower_components/baguettebox.js/demo/img/medium/2-2.jpg
  30. BIN bower_components/baguettebox.js/demo/img/medium/2-3.jpg
  31. BIN bower_components/baguettebox.js/demo/img/medium/2-4.jpg
  32. BIN bower_components/baguettebox.js/demo/img/small/2-1.jpg
  33. BIN bower_components/baguettebox.js/demo/img/small/2-2.jpg
  34. BIN bower_components/baguettebox.js/demo/img/small/2-3.jpg
  35. BIN bower_components/baguettebox.js/demo/img/small/2-4.jpg
  36. BIN bower_components/baguettebox.js/demo/img/small/4-1.jpg
  37. BIN bower_components/baguettebox.js/demo/img/small/4-2.jpg
  38. BIN bower_components/baguettebox.js/demo/img/small/4-3.jpg
  39. BIN bower_components/baguettebox.js/demo/img/small/4-4.jpg
  40. BIN bower_components/baguettebox.js/demo/img/thumbs/1-1.jpg
  41. BIN bower_components/baguettebox.js/demo/img/thumbs/1-2.jpg
  42. BIN bower_components/baguettebox.js/demo/img/thumbs/1-3.jpg
  43. BIN bower_components/baguettebox.js/demo/img/thumbs/1-4.jpg
  44. BIN bower_components/baguettebox.js/demo/img/thumbs/1-5.jpg
  45. BIN bower_components/baguettebox.js/demo/img/thumbs/1-6.jpg
  46. BIN bower_components/baguettebox.js/demo/img/thumbs/1-7.jpg
  47. BIN bower_components/baguettebox.js/demo/img/thumbs/1-8.jpg
  48. BIN bower_components/baguettebox.js/demo/img/thumbs/2-1.jpg
  49. BIN bower_components/baguettebox.js/demo/img/thumbs/2-2.jpg
  50. BIN bower_components/baguettebox.js/demo/img/thumbs/2-3.jpg
  51. BIN bower_components/baguettebox.js/demo/img/thumbs/2-4.jpg
  52. BIN bower_components/baguettebox.js/demo/img/thumbs/3-1.jpg
  53. BIN bower_components/baguettebox.js/demo/img/thumbs/3-2.jpg
  54. BIN bower_components/baguettebox.js/demo/img/thumbs/3-3.jpg
  55. BIN bower_components/baguettebox.js/demo/img/thumbs/3-4.jpg
  56. BIN bower_components/baguettebox.js/demo/img/thumbs/4-1.jpg
  57. BIN bower_components/baguettebox.js/demo/img/thumbs/4-2.jpg
  58. BIN bower_components/baguettebox.js/demo/img/thumbs/4-3.jpg
  59. BIN bower_components/baguettebox.js/demo/img/thumbs/4-4.jpg
  60. BIN bower_components/baguettebox.js/demo/img/thumbs/5-1.jpg
  61. +254 −0 bower_components/baguettebox.js/demo/index.html
  62. +2 −0 bower_components/baguettebox.js/demo/js/highlight.min.js
  63. +152 −0 bower_components/baguettebox.js/gulpfile.js
  64. +52 −0 bower_components/baguettebox.js/package.json
  65. +710 −0 bower_components/baguettebox.js/src/baguetteBox.js
  66. +196 −0 bower_components/baguettebox.js/src/baguetteBox.scss
  67. +4 −0 nikola/data/symlinked.txt
  68. +1 −0 nikola/data/themes/base/assets/css/baguetteBox.css
  69. +1 −0 nikola/data/themes/base/assets/css/baguetteBox.min.css
  70. +1 −0 nikola/data/themes/base/assets/js/baguetteBox.js
  71. +1 −0 nikola/data/themes/base/assets/js/baguetteBox.min.js
  72. +10 −0 scripts/update-bower.sh
View
@@ -13,6 +13,7 @@
"jquery": "<2.0.0",
"jquery-colorbox": "~1",
"moment": "~2",
- "livereload-js": "~2"
+ "livereload-js": "~2",
+ "baguettebox.js": "~1.8"
}
}
@@ -0,0 +1,40 @@
+{
+ "name": "baguettebox.js",
+ "version": "1.8.2",
+ "description": "Simple and easy to use lightbox script written in pure JavaScript",
+ "main": [
+ "./dist/baguetteBox.js",
+ "./dist/baguetteBox.css"
+ ],
+ "keywords": [
+ "lightbox"
+ ],
+ "authors": [
+ "feimosi"
+ ],
+ "license": "MIT",
+ "homepage": "https://github.com/feimosi/baguetteBox.js",
+ "repository": {
+ "type": "git",
+ "url": "git://github.com/feimosi/baguetteBox.js.git"
+ },
+ "ignore": [
+ "**/.*",
+ "node_modules",
+ "bower_components",
+ "test",
+ "tests",
+ "src/index.html",
+ "build/index.html",
+ "build/img"
+ ],
+ "_release": "1.8.2",
+ "_resolution": {
+ "type": "version",
+ "tag": "v1.8.2",
+ "commit": "87555d4e359b58cc44ca783b2da6c9e4ca42ef78"
+ },
+ "_source": "https://github.com/feimosi/baguetteBox.js.git",
+ "_target": "~1.8",
+ "_originalSource": "baguettebox.js"
+}
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2017 Marek Grzybek
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
@@ -0,0 +1,173 @@
+# baguetteBox.js
+
+[![GitHub Release](https://img.shields.io/github/release/feimosi/baguetteBox.js.svg)](https://github.com/feimosi/baguetteBox.js/releases)
+[![MIT License](https://img.shields.io/npm/l/baguettebox.js.svg)](http://opensource.org/licenses/MIT)
+![dependency Status](https://img.shields.io/badge/dependencies-none-blue.svg)
+[![devDependency Status](https://img.shields.io/david/dev/feimosi/baguetteBox.js.svg)](https://david-dm.org/feimosi/baguetteBox.js#info=devDependencies)
+[![Build Status](https://travis-ci.org/feimosi/baguetteBox.js.svg?branch=master)](https://travis-ci.org/feimosi/baguetteBox.js)
+
+Simple and easy to use lightbox script.
+
+[Demo page](https://feimosi.github.io/baguetteBox.js/)
+
+![Demo Page screenshot](http://i.imgur.com/uLSDpuW.png)
+
+## Features
+
+* Written in pure JavaScript, no dependencies required
+* Multiple-gallery support, allows custom options for each
+* Supports swipe gestures on touch-screen devices
+* Full screen mode available
+* Modern and minimal look
+* Image captions support
+* Responsive images
+* CSS3 transitions
+* SVG buttons, no extra files to download
+* Around 2.7KB gzipped
+
+## Installation
+
+### npm
+
+```sh
+npm install baguettebox.js --save
+```
+
+### Yarn
+```sh
+yarn add baguettebox.js
+```
+
+### Bower
+
+```sh
+bower install baguettebox.js --save
+```
+
+### CDN
+1. Use one of the following CDN providers:
+
+ https://cdnjs.com/libraries/baguettebox.js
+
+ http://jsdelivr.com/projects/baguettebox.js
+
+3. Copy URLs of the latest version (both `.js` and `.css` files)
+
+2. Paste the URLs in your HTML file:
+
+ ```html
+<link rel="stylesheet" href="<CSS URL>">
+<script src="<JS URL>" async></script>
+ ```
+
+### Manually
+
+1. Download `baguetteBox.min.css` and `baguetteBox.min.js` files from the `dist` folder.
+2. Include them somewhere in your document:
+
+ ```html
+<link rel="stylesheet" href="css/baguetteBox.min.css">
+<script src="js/baguetteBox.min.js" async></script>
+ ```
+
+## Usage
+
+Initialize the script by running:
+
+```js
+baguetteBox.run('.gallery');
+```
+
+where the first argument is a selector to a gallery (or galleries) containing `a` tags. The HTML code may look like this:
+
+```html
+<div class="gallery">
+ <a href="img/2-1.jpg" data-caption="Image caption">
+ <img src="img/thumbs/2-1.jpg" alt="First image">
+ </a>
+ <a href="img/2-2.jpg">
+ <img src="img/thumbs/2-2.jpg" alt="Second image">
+ </a>
+ ...
+</div>
+```
+
+To use captions put a `title` or `data-caption` attribute on the `a` tag.
+
+## Customization
+
+You can pass an object with custom options as the second parameter.
+
+```js
+baguetteBox.run('.gallery', {
+ // Custom options
+});
+```
+
+The following options are available:
+
+| Option | Type | Default | Description |
+| --- | --- | --- | --- |
+| `captions` | `Boolean` \| `function(element)` | `true` | Display image captions. Passing a function will use a string returned by this callback. The only argument is `a` element containing the image. Invoked in the context of the current gallery array |
+| `buttons` | `Boolean` \| `'auto'` | `'auto'` | Display buttons. `'auto'` hides buttons on touch-enabled devices or when only one image is available |
+| `fullScreen` | `Boolean` | `false` | Enable full screen mode |
+| `noScrollbars` | `Boolean` | `false` | Hide scrollbars when gallery is displayed |
+| `titleTag` | `Boolean` | `false` | Use caption value also in the gallery `img.title` attribute |
+| `async` | `Boolean` | `false` | Load files asynchronously |
+| `preload` | `Number` | `2` | How many files should be preloaded |
+| `animation` | `'slideIn'` \| `'fadeIn'` \| `false` | `'slideIn'` | Animation type |
+| `afterShow` | `function` | `null` | Callback to be run after showing the overlay |
+| `afterHide` | `function` | `null` | Callback to be run after hiding the overlay |
+| `onChange` | `function(currentIndex, imagesCount)` | `null` | Callback to be run when image changes |
+| `overlayBackgroundColor` | `String` | `'rgba`<br>`(0,0,0,0.8)'` | Background color for the lightbox overlay |
+| `filter` | `RegExp` | `/.+\.(gif|jpe?g|png|webp)/i` | Pattern to match image files. Applied to the `a.href` attribute |
+
+## API
+
+* `run` - initialize baguetteBox.js
+* `showNext` - switch to the next image
+* `showPrevious` - switch to the previous image
+* `destroy` - remove the plugin with any event bindings
+
+The first two methods return true on success or false if there are no more images to be loaded.
+
+## Responsive images
+
+To use this feature, simply put `data-at-{width}` attributes on `a` tags with a value being the path to the desired image. `{width}` should be the maximum screen width the image can be displayed at. The script chooses the first image with `{width}` greater than or equal to the current screen width for best user experience.
+That last `data-at-X` image is also used in the case of a screen larger than X.
+
+Here's an example of what the HTML code can look like:
+
+```html
+<a href="img/2-1.jpg"
+ data-at-450="img/thumbs/2-1.jpg"
+ data-at-800="img/small/2-1.jpg"
+ data-at-1366="img/medium/2-1.jpg"
+ data-at-1920="img/big/2-1.jpg">
+ <img src="img/thumbs/2-1.jpg">
+</a>
+```
+
+If you have 1366x768 resolution baguetteBox.js will choose `"img/medium/2-1.jpg"`. If, however, it's 1440x900 it'll choose `"img/big/2-1.jpg"`. Keep the `href` attribute as a fallback (link to a bigger image e.g. of HD size) for older browsers.
+
+## Compatibility
+
+* IE 8+
+* Chrome
+* Firefox 3.6+
+* Opera 12+
+* Safari 5+
+
+## Notes
+
+Feel free to report any issues!
+
+## Credits
+
+Creation of `baguetteBox.js` was inspired by a great jQuery plugin [touchTouch](https://github.com/martinaglv/touchTouch).
+
+## License
+
+Copyright (c) 2016 [feimosi](https://github.com/feimosi/)
+
+This content is released under the [MIT License](https://opensource.org/licenses/MIT).
@@ -0,0 +1,31 @@
+{
+ "name": "baguettebox.js",
+ "version": "1.8.2",
+ "description": "Simple and easy to use lightbox script written in pure JavaScript",
+ "main": [
+ "./dist/baguetteBox.js",
+ "./dist/baguetteBox.css"
+ ],
+ "keywords": [
+ "lightbox"
+ ],
+ "authors": [
+ "feimosi"
+ ],
+ "license": "MIT",
+ "homepage": "https://github.com/feimosi/baguetteBox.js",
+ "repository": {
+ "type": "git",
+ "url": "git://github.com/feimosi/baguetteBox.js.git"
+ },
+ "ignore": [
+ "**/.*",
+ "node_modules",
+ "bower_components",
+ "test",
+ "tests",
+ "src/index.html",
+ "build/index.html",
+ "build/img"
+ ]
+}
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Oops, something went wrong.

0 comments on commit a9cdcac

Please sign in to comment.