-
Notifications
You must be signed in to change notification settings - Fork 476
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #98 from iamceege/dev
Upgrade version 3.0
- Loading branch information
Showing
33 changed files
with
2,312 additions
and
266 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,57 @@ | ||
Tooltipster | ||
=========== | ||
|
||
A jQuery tooltip plugin by Caleb Jacob. For documentation and all that jazz, | ||
visit: http://calebjacob.com/tooltipster | ||
A jQuery tooltip plugin by Caleb Jacob under MIT license. | ||
|
||
A reminder of options/methods lies below. For detailed documentation, visit http://iamceege.github.io/tooltipster/ | ||
|
||
Options | ||
------------------------- | ||
|
||
animation | ||
arrow | ||
arrowColor | ||
autoClose | ||
content | ||
contentAsHTML | ||
contentCloning | ||
delay | ||
fixedWidth | ||
maxWidth | ||
functionInit | ||
functionBefore | ||
functionReady | ||
functionAfter | ||
icon | ||
iconCloning | ||
iconDesktop | ||
iconTheme | ||
iconTouch | ||
interactive | ||
interactiveTolerance | ||
offsetX | ||
offsetY | ||
onlyOne | ||
position | ||
positionTracker | ||
speed | ||
timer | ||
theme | ||
touchDevices | ||
trigger | ||
updateAnimation | ||
|
||
Methods | ||
------------------------- | ||
|
||
$.fn.tooltipster('setDefaults', {}) | ||
$(...).tooltipster('show') | ||
$(...).tooltipster('hide') | ||
$(...).tooltipster('disable') | ||
$(...).tooltipster('enable') | ||
$(...).tooltipster('destroy') | ||
$(...).tooltipster('content') | ||
$(...).tooltipster('content', myNewContent) | ||
$(...).tooltipster('reposition') | ||
$(...).tooltipster('elementTooltip') | ||
$(...).tooltipster('elementIcon') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
{ | ||
"name": "tooltipster", | ||
"version": "2.3.0", | ||
"version": "3.0.0", | ||
"main": ["js/jquery.tooltipster.min.js", "css/tooltipster.css"], | ||
"dependencies": { | ||
"jquery": ">=1.4" | ||
"jquery": ">=1.7" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<title></title> | ||
<meta charset="UTF-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no"> | ||
<link rel="stylesheet" type="text/css" href="reset.css" /> | ||
<link rel="stylesheet" type="text/css" href="style.css" /> | ||
<link rel="stylesheet" type="text/css" href="../css/tooltipster.css" /> | ||
|
||
<script type="text/javascript" src="http://code.jquery.com/jquery-1.7.0.min.js"></script> | ||
<script type="text/javascript" src="../js/jquery.tooltipster.js"></script> | ||
|
||
<script type="text/javascript"> | ||
$(document).ready(function() { | ||
$('.tooltip').tooltipster(); | ||
}); | ||
</script> | ||
</head> | ||
<body> | ||
|
||
<section class="container tooltip" title="Parent container"> | ||
<a href="http://google.com" class="tooltip" title="Get your Google on">Google</a> | ||
</section> | ||
|
||
<div id="hi" style="width: 100px; height: 100px; margin: 0 0 0 500px; background: #f00; position: fixed; top: 100px; right: 100px;" class="tooltip" title="This is the tooltip"></div> | ||
|
||
<section class="container"> | ||
<img src="map.png" usemap="#map" /> | ||
<map name="map"> | ||
<area shape="circle" coords="396,220,102" href="#" class="tooltip" title="Hello thar, mate!" /> | ||
</map> | ||
</section> | ||
</body> | ||
</html> |
File renamed without changes
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
/* Pretty printing styles. Used with prettify.js. */ | ||
|
||
/* SPAN elements with the classes below are added by prettyprint. */ | ||
.pln { color: #000 } /* plain text */ | ||
|
||
@media screen { | ||
.str { color: #080 } /* string content */ | ||
.kwd { color: #008 } /* a keyword */ | ||
.com { color: #800 } /* a comment */ | ||
.typ { color: #606 } /* a type name */ | ||
.lit { color: #066 } /* a literal value */ | ||
/* punctuation, lisp open bracket, lisp close bracket */ | ||
.pun, .opn, .clo { color: #660 } | ||
.tag { color: #008 } /* a markup tag name */ | ||
.atn { color: #606 } /* a markup attribute name */ | ||
.atv { color: #080 } /* a markup attribute value */ | ||
.dec, .var { color: #606 } /* a declaration; a variable name */ | ||
.fun { color: red } /* a function name */ | ||
} | ||
|
||
/* Use higher contrast and text-weight for printable form. */ | ||
@media print, projection { | ||
.str { color: #060 } | ||
.kwd { color: #006; font-weight: bold } | ||
.com { color: #600; font-style: italic } | ||
.typ { color: #404; font-weight: bold } | ||
.lit { color: #044 } | ||
.pun, .opn, .clo { color: #440 } | ||
.tag { color: #006; font-weight: bold } | ||
.atn { color: #404 } | ||
.atv { color: #060 } | ||
} | ||
|
||
/* Specify class=linenums on a pre to get line numbering */ | ||
ol.linenums { margin-top: 0; margin-bottom: 0 } /* IE indents via margin-left */ | ||
li.L0, | ||
li.L1, | ||
li.L2, | ||
li.L3, | ||
li.L5, | ||
li.L6, | ||
li.L7, | ||
li.L8 { list-style-type: none } | ||
/* Alternate shading for lines */ | ||
li.L1, | ||
li.L3, | ||
li.L5, | ||
li.L7, | ||
li.L9 { background: #eee } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
@charset "UTF-8"; | ||
|
||
html, body, div, span, applet, object, iframe, | ||
h1, h2, h3, h4, h5, h6, p, blockquote, pre, | ||
a, abbr, acronym, address, big, cite, code, | ||
del, dfn, em, img, ins, kbd, q, s, samp, | ||
small, strike, strong, sub, sup, tt, var, | ||
b, u, i, center, | ||
dl, dt, dd, ol, ul, li, | ||
fieldset, form, label, legend, | ||
table, caption, tbody, tfoot, thead, tr, th, td, | ||
article, aside, canvas, details, embed, | ||
figure, figcaption, footer, header, hgroup, | ||
menu, nav, output, ruby, section, summary, | ||
time, mark, audio, video { | ||
margin: 0; | ||
padding: 0; | ||
border: 0; | ||
font-size:100%; | ||
vertical-align: baseline; | ||
} | ||
/* HTML5 display-role reset for older browsers */ | ||
article, aside, details, figcaption, figure, | ||
footer, header, hgroup, menu, nav, section { | ||
display: block; | ||
} | ||
body { | ||
line-height: 1; | ||
} | ||
ol, ul { | ||
list-style: none; | ||
} | ||
blockquote, q { | ||
quotes: none; | ||
} | ||
blockquote:before, blockquote:after, | ||
q:before, q:after { | ||
content: ''; | ||
content: none; | ||
} | ||
table { | ||
border-collapse: collapse; | ||
border-spacing: 0; | ||
} | ||
|
Oops, something went wrong.