aboutsummaryrefslogtreecommitdiff
path: root/docs/assets/js
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2011-09-10 15:29:53 -0700
committerMark Otto <[email protected]>2011-09-10 15:29:53 -0700
commita95a0ed71c935c61c7c3d045e82df0b1d0cf5725 (patch)
tree4f99c3837487851e475f317977169a389d277c6e /docs/assets/js
parent99ede580cf85611bf446abd46fa1ad4daf850a59 (diff)
parenta8d447582741486e66a6a073015a9e9bd431af29 (diff)
downloadbootstrap-a95a0ed71c935c61c7c3d045e82df0b1d0cf5725.tar.xz
bootstrap-a95a0ed71c935c61c7c3d045e82df0b1d0cf5725.zip
conflict
Diffstat (limited to 'docs/assets/js')
-rw-r--r--docs/assets/js/application.js47
1 files changed, 10 insertions, 37 deletions
diff --git a/docs/assets/js/application.js b/docs/assets/js/application.js
index db59c79f9..86eefa89d 100644
--- a/docs/assets/js/application.js
+++ b/docs/assets/js/application.js
@@ -42,42 +42,15 @@ $(document).ready(function(){
// POSITION STATIC TWIPSIES
// ========================
- $('.twipsies.well a').each(function () {
- var type = this.title
- , $anchor = $(this)
- , $twipsy = $('.twipsy.' + type)
-
- , twipsy = {
- width: $twipsy.width() + 10
- , height: $twipsy.height() + 10
- }
-
- , anchor = {
- position: $anchor.position()
- , width: $anchor.width()
- , height: $anchor.height()
- }
-
- , offset = {
- above: {
- top: anchor.position.top - twipsy.height
- , left: anchor.position.left + (anchor.width/2) - (twipsy.width/2)
- }
- , below: {
- top: anchor.position.top + anchor.height
- , left: anchor.position.left + (anchor.width/2) - (twipsy.width/2)
- }
- , left: {
- top: anchor.position.top + (anchor.height/2) - (twipsy.height/2)
- , left: anchor.position.left - twipsy.width - 5
- }
- , right: {
- top: anchor.position.top + (anchor.height/2) - (twipsy.height/2)
- , left: anchor.position.left + anchor.width + 5
- }
- }
-
- $twipsy.css(offset[type])
- });
+ $(".twipsies a").each(function () {
+ $(this)
+ .twipsy({
+ live: false
+ , placement: $(this).attr('title')
+ , trigger: 'manual'
+ , offset: 2
+ })
+ .trigger('twipsy:show')
+ })
});