From 861315062c485e147cde30bc289ba55c60ecaa4b Mon Sep 17 00:00:00 2001 From: Marek Grzybek Date: Sat, 11 Mar 2017 19:21:19 +0100 Subject: [PATCH] (docs) Format the demo page code --- .eslintrc.js | 10 ++++-- demo/index.html | 90 ++++++++++++++++++++++++++++++++++++------------- 2 files changed, 73 insertions(+), 27 deletions(-) diff --git a/.eslintrc.js b/.eslintrc.js index 8ef68565..0361c7c6 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -1,9 +1,13 @@ module.exports = { - "env": { + env: { "browser": true }, - "extends": "eslint:recommended", - "rules": { + globals: { + baguetteBox: true, + hljs: true + }, + extends: "eslint:recommended", + rules: { "indent": [ "error", 4 diff --git a/demo/index.html b/demo/index.html index 74ac0869..0b498f2c 100644 --- a/demo/index.html +++ b/demo/index.html @@ -1,8 +1,8 @@ - - + + baguetteBox.js | Demo @@ -105,14 +105,30 @@

Sample gallery

baguetteBox.run('.baguetteBoxOne');

Responsive images

@@ -127,10 +143,18 @@

Responsive images

</a>

FadeIn animation

@@ -141,10 +165,18 @@

FadeIn animation

});

Small images, buttons disabled (use arrows or swipe gesture)

@@ -154,10 +186,18 @@

Small images, buttons disabled (use arrows or swipe gesture)

});

Single image (buttons hidden by default, custom caption function)

@@ -169,14 +209,16 @@

Single image (buttons hidden by default, custom caption function)

});

Usage instructions and source code can be found on GitHub