1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-09-26 05:19:15 +02:00

move it to the sidebar

This commit is contained in:
Mark Otto
2014-05-22 18:38:43 -07:00
parent 707b362b80
commit 12b5d46f17
5 changed files with 19 additions and 20 deletions

View File

@@ -56,16 +56,16 @@
// theme toggler
;(function () {
var stylesheetLink = $('#bs-theme-stylesheet')
var themeBtn = $('#bs-theme-btn')
var themeBtn = $('.bs-docs-theme-toggle')
themeBtn.click(function () {
var href = stylesheetLink.attr('href');
if (!href || href.indexOf('data') === 0) {
stylesheetLink.attr('href', stylesheetLink.attr('data-href'))
themeBtn.text('Deactivate Theme')
themeBtn.text('Disable theme preview')
}
else {
stylesheetLink.attr('href', '')
themeBtn.text('Activate Theme')
themeBtn.text('Preview theme')
}
})
})();