diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..af83a4d --- /dev/null +++ b/LICENSE @@ -0,0 +1,22 @@ +The MIT License (MIT) + +Copyright (c) Caleb Jacob and Louis Ameline + +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. + diff --git a/README.md b/README.md index c292920..7d904c9 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ Default ccs + js files = 9Kb gzipped. A reminder of options/methods lies below. For detailed documentation, visit http://iamceege.github.io/tooltipster/ Standard options -------------------------- +---------------- animation animationDuration @@ -43,7 +43,7 @@ updateAnimation zIndex Other options -------------------------- +------------- (these are available when you use sideTip, the default plugin) @@ -56,7 +56,7 @@ minWidth side Instance methods -------------------------- +---------------- close([callback]) content([myNewContent]) @@ -73,7 +73,7 @@ reposition() status() Global methods -------------------------- +-------------- instances([selector || element]) instancesLatest() diff --git a/dist/js/tooltipster.bundle.js b/dist/js/tooltipster.bundle.js index 3f14a37..1e57b6d 100644 --- a/dist/js/tooltipster.bundle.js +++ b/dist/js/tooltipster.bundle.js @@ -1,18 +1,9 @@ /** - * http://iamceege.github.io/tooltipster/ - * + * tooltipster http://iamceege.github.io/tooltipster/ * A rockin' custom tooltip jQuery plugin - * Developed by Caleb Jacob and Louis Ameline under the MIT license - * http://opensource.org/licenses/MIT - * - * 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. + * Developed by Caleb Jacob and Louis Ameline + * MIT license */ - ;(function($) { var globalCore = function() {}, diff --git a/dist/js/tooltipster.core.js b/dist/js/tooltipster.core.js index f238e03..8f163ef 100644 --- a/dist/js/tooltipster.core.js +++ b/dist/js/tooltipster.core.js @@ -1,18 +1,9 @@ /** - * http://iamceege.github.io/tooltipster/ - * + * tooltipster http://iamceege.github.io/tooltipster/ * A rockin' custom tooltip jQuery plugin - * Developed by Caleb Jacob and Louis Ameline under the MIT license - * http://opensource.org/licenses/MIT - * - * 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. + * Developed by Caleb Jacob and Louis Ameline + * MIT license */ - ;(function($) { var globalCore = function() {}, diff --git a/index.html b/index.html index 0ad0830..40bcaa4 100644 --- a/index.html +++ b/index.html @@ -213,7 +213,7 @@
Tooltipster allows you to use any HTML markup inside your tooltips. It means that you can insert things like images and text formatting tags. The preferred method to achieve this is to provide your content as an HTML element (which may be jQuery-wrapped) in the options. Example:
+Tooltipster allows you to use any HTML markup inside your tooltips. It means that you can insert things like images and text formatting tags. The preferred method to achieve this is to use an HTML element as content. Example:
<head> @@ -222,6 +222,7 @@5. Using HTML tags inside your tooltips
$(document).ready(function() { $('#origin').tooltipster({ + // we detach the content from the page and give it to Tooltipster content: $('#tooltip_content').detach() }); }); diff --git a/src/js/core.js b/src/js/core.js index 6af116f..c0d0cc5 100644 --- a/src/js/core.js +++ b/src/js/core.js @@ -1,18 +1,9 @@ /** - * http://iamceege.github.io/tooltipster/ - * + * tooltipster http://iamceege.github.io/tooltipster/ * A rockin' custom tooltip jQuery plugin - * Developed by Caleb Jacob and Louis Ameline under the MIT license - * http://opensource.org/licenses/MIT - * - * 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. + * Developed by Caleb Jacob and Louis Ameline + * MIT license */ - ;(function($) { var globalCore = function() {},