From e7bb3fe0fb15145685042c24e253a8645e939b75 Mon Sep 17 00:00:00 2001 From: Panagiotis Papadatis Date: Fri, 3 Jul 2015 09:49:36 +0300 Subject: [PATCH] minor updates on readme, usage and version --- README.md | 32 +++++++++++++++++++++++++++++--- index.html | 27 +++++++++++---------------- js/floativ.js | 7 ++----- package.json | 2 +- 4 files changed, 43 insertions(+), 25 deletions(-) diff --git a/README.md b/README.md index 766f08e..85d2d39 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,9 @@ # floativ -floativ is a floating scroll-box at the bottom of the screen of your site that contains text, among other things, which can be displayed while browsing a web page. This floating scroll-box disappears when the user reaches an element with a specific id. +floativ is a responsive floating scroll-box at the bottom of the screen of your site that contains text, among other things, which can be displayed while browsing a web page. This floating scroll-box disappears when the user reaches an element with a specific id. ## Installation 1. Download and install [NodeJS](https://nodejs.org/) -2. Clone or Download project straight from GitHub. +2. Clone or Download project straight from [GitHub](https://github.com/GBratsos/floativ). 3. Extract the zip file and start working. ## Directions @@ -13,7 +13,33 @@ floativ is a floating scroll-box at the bottom of the screen of your site that c ## NPM Package You can find and install floativ from npm [here](https://www.npmjs.com/package/floativ). -## Library Compatibility +## Usage +Put this `$("#floativ").floativ();` inside __script tags__ at the bottom of your HTML file. +You can also specify parameters, such as: +```html +
+
+
+ + + + + + +
+
+ ... YOUR CONTENT HERE ... +
+
+
+``` + +## Dependecnies +* [jQuery](https://github.com/jquery/jquery) +* [mCustomScrollbar](https://github.com/malihu/malihu-custom-scrollbar-plugin) +* [FontAwesome](https://github.com/FortAwesome/Font-Awesome) + +## Library compatibility This library works for IE8+, Mozilla Firefox 4+, Google Chrome 11+, Opera 10+, Safari 4+. ## License diff --git a/index.html b/index.html index f5da8c6..aa5470c 100644 --- a/index.html +++ b/index.html @@ -118,7 +118,7 @@

Usage

</span> </div> <div class="floativ-body"> - ... YOUR TEXT HERE ... + ... YOUR CONTENT HERE ... </div> </div> </div> @@ -130,9 +130,9 @@

Dependencies


@@ -142,15 +142,6 @@

Library compatibility

This library works for IE8+, Mozilla Firefox 4+, Google Chrome 11+, Opera 10+, Safari 4+.

-
-
-

TODO

-
-
- -
@@ -258,8 +249,12 @@

License

@@ -282,4 +277,4 @@

License

- \ No newline at end of file + diff --git a/js/floativ.js b/js/floativ.js index 58326c0..6617757 100644 --- a/js/floativ.js +++ b/js/floativ.js @@ -3,7 +3,7 @@ * displayed while browsing a web page. This floating box disappears when the user reaches an element with * a specific id. * - * Version 1.1.0 + * Version 1.1.1 * */ (function ($) { @@ -19,10 +19,7 @@ widthExpand: "160px", // Expandable width animate: "slow", // Animation method customClass: null, // Extra class for the parent object - scrollbar: { // mCustomScrollbar (default) options - alwaysShowScrollbar: 1, - theme: "dark-3" - } + scrollbar: {} // mCustomScrollbar (default) options }; var o = $.extend(defaults, options); // Merge defaults with user inputs diff --git a/package.json b/package.json index 4af9017..48d34f8 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "floativ", - "version": "1.1.0", + "version": "1.1.1", "description": "floativ is a floating scroll-box at the bottom of the screen of your site that contains text, among other things, which can be displayed while browsing a web page. This floating scroll-box disappears when the user reaches an element with a specific id.", "main": "floativ.js", "scripts": {