Skip to content

Commit ac9f7fa

Browse files
Update readme
1 parent 7653755 commit ac9f7fa

File tree

1 file changed

+11
-30
lines changed

1 file changed

+11
-30
lines changed

README.md

Lines changed: 11 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,25 @@
11
Bootstrap Hover Tabs
22
====================
33

4-
This is a super-simple and lightweight plugin for Bootstrap which allows you to activate tabs on hover.
4+
This is a super-simple and lightweight plugin for Bootstrap which automatically activates tabs on hover.
55

66
**Note:** This plugin is also available via [Bootstrap Plugins](https://github.com/tonystar/bootstrap-plugins) — the ultimate set of must-have plugins for Bootstrap.
77

8-
Usage
9-
-----
8+
Installation
9+
------------
1010

11-
First, add this script somewhere after `bootstrap.js`:
11+
Link to the script in your code after you include the main Bootstrap JS file(s):
1212

1313
```html
14+
<script src="<...>/jquery.min.js"></script>
15+
<script src="<...>/bootstrap.min.js"></script>
1416
<script src="//cdn.rawgit.com/tonystar/bootstrap-hover-tabs/master/bootstrap-hover-tabs.js"></script>
1517
```
18+
That's it. No additional configuration required!
1619

17-
Then, just add `data-hover="tab"` in addition to `data-toggle="tab"` for each tab link.
18-
19-
Example
20-
-------
20+
Usage
21+
-----
2122

22-
```html
23-
<div>
24-
25-
<!-- Nav tabs -->
26-
<ul class="nav nav-tabs" role="tablist">
27-
<li class="active"><a href="#home" data-toggle="tab" data-hover="tab">Home</a></li>
28-
<li><a href="#profile" data-toggle="tab" data-hover="tab">Profile</a></li>
29-
<li><a href="#messages" data-toggle="tab" data-hover="tab">Messages</a></li>
30-
<li><a href="#settings" data-toggle="tab" data-hover="tab">Settings</a></li>
31-
</ul>
32-
33-
<!-- Tab panes -->
34-
<div class="tab-content">
35-
<div class="tab-pane active" id="home">...</div>
36-
<div class="tab-pane" id="profile">...</div>
37-
<div class="tab-pane" id="messages">...</div>
38-
<div class="tab-pane" id="settings">...</div>
39-
</div>
40-
41-
</div>
42-
```
23+
No instructions here! Just follow the **Installation** section and you are done!
4324

44-
## [Docs →](http://bootstrap.tonystar.me/hover-tabs)
25+
## [Example & Docs →](http://bootstrap.tonystar.me/hover-tabs)

0 commit comments

Comments
 (0)