0
0
mirror of https://github.com/twbs/bootstrap.git synced 2024-12-14 02:24:00 +01:00
Bootstrap/docs/4.1/examples/tooltip-viewport/tooltip-viewport.js
Mark Otto 8f7bd41993
Ship v4.1.0 (#26218)
* update docs path from docs/4.0/ to docs/4.1/

* bump version to 4.1.0

* Update redirects to work for 4.1 docs move

* Update docs version switcher to include latest and link to 4.0 docs

* re-run dist

* Update package-lock.json

* Update docs-navbar.html
2018-04-09 09:00:23 -07:00

33 lines
583 B
JavaScript

$(function () {
'use strict'
$('.tooltip-right').tooltip({
placement: 'right',
viewport: {
selector: 'body',
padding: 2
}
})
$('.tooltip-bottom').tooltip({
placement: 'bottom',
viewport: {
selector: 'body',
padding: 2
}
})
$('.tooltip-viewport-right').tooltip({
placement: 'right',
viewport: {
selector: '.container-viewport',
padding: 2
}
})
$('.tooltip-viewport-bottom').tooltip({
placement: 'bottom',
viewport: {
selector: '.container-viewport',
padding: 2
}
})
})