Skip to content

Commit d898f81

Browse files
committed
publish
1 parent 53f61bc commit d898f81

File tree

2 files changed

+14
-11
lines changed

2 files changed

+14
-11
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
2+
# Installation
3+
4+
Just unzip the files into your file structure and link to tooltip.js and tooltip.css.
5+
No JS setup is needed. Will find all elements with a "title" attribute by default. If you want to change this, simply change the last line of tooltip.js to find the appropriate elements.

index.html

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,10 @@
7777
#main {
7878
position: absolute;
7979
width: 650px;
80-
height: 400px;
80+
height: 420px;
8181
top: 50%;
8282
left: 50%;
83-
margin: -220px 0px 0px -345px;
83+
margin: -230px 0px 0px -345px;
8484
background: #efefef;
8585
padding: 20px;
8686
border-radius: 6px;
@@ -162,16 +162,14 @@
162162
display: block;
163163
text-align: right;
164164
text-decoration: none;
165-
font-size: 18px;
165+
font-size: 17px;
166166
font-family: Tahoma;
167-
margin-top: 15px;
167+
margin-top: 35px;
168168
}
169169

170-
#get .arrow {
170+
#get a {
171171
font-size: 20px;
172-
font-family: "Trebuchet MS";
173-
font-weight: bold;
174-
vertical-align: -1px;
172+
margin-left: 5px;
175173
}
176174

177175

@@ -181,7 +179,7 @@
181179
<div id="tl" data-test-title="Hi... I'm the top left title attribute!">Top Left</div>
182180
<div id="tr" data-test-title="Hi... I'm the top right title attribute!">Top Right</div>
183181
<div id="bl" data-test-title="Hi... I'm the bottom left title attribute!">Bottom Left</div>
184-
<div id="br" data-test-title="Hi... I'm the bottom right title attribute!Hi... I'm the bottom right title attribute!Hi... I'm the bottom right title attribute!Hi... I'm the bottom right title attribute!Hi... I'm the bottom right title attribute!Hi... I'm the bottom right title attribute!Hi... I'm the bottom right title attribute!Hi... I'm the bottom right title attribute!Hi... I'm the bottom right title attribute!Hi... I'm the bottom right title attribute!Hi... I'm the bottom right title attribute!Hi... I'm the bottom right title attribute!Hi... I'm the bottom right title attribute!Hi... I'm the bottom right title attribute!Hi... I'm the bottom right title attribute!">Bottom Right</div>
182+
<div id="br" data-test-title="Hi... I'm the bottom right title attribute!">Bottom Right</div>
185183
<div id="main">
186184
<h1>A minimal jQuery tooltip plugin</h1>
187185
<div id="tc" data-test-title="Hi... I'm the top center title attribute!">Top Center</div>
@@ -243,8 +241,8 @@ <h4>HTML:</h4>
243241
<h4>Javascript:</h4>
244242
<p>None!</p>
245243
<h4>Installation:</h4>
246-
<p>Just unzip into your web directory and link to the tooltip.js file.</p>
247-
<a id="get" href="https://nodeload.github.com/andrewplummer/tooltip/zipball/master">get the code <span class="arrow">></span></a>
244+
<p>Just unzip into your web directory and link to the js/css files.</p>
245+
<div id="get">get the code: <a href="http://github.com/andrewplummer/tooltip">github</a><a href="https://nodeload.github.com/andrewplummer/tooltip/zipball/master">zip</a>
248246
</div>
249247
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script>
250248
<script type="text/javascript" src="javascripts/tooltip.js"></script>

0 commit comments

Comments
 (0)