From edecd2c5f33d98640ee0e7fb56c09c3dc4d36dd9 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Mon, 9 Mar 2015 15:02:51 +0000 Subject: [PATCH] nuke theme toggler js --- docs/assets/js/src/application.js | 27 --------------------------- 1 file changed, 27 deletions(-) diff --git a/docs/assets/js/src/application.js b/docs/assets/js/src/application.js index df44da5403..4f053cd8dd 100644 --- a/docs/assets/js/src/application.js +++ b/docs/assets/js/src/application.js @@ -32,33 +32,6 @@ // e.preventDefault() // }) - // theme toggler - (function () { - var stylesheetLink = $('#bs-theme-stylesheet') - var themeBtn = $('.bs-docs-theme-toggle') - - var activateTheme = function () { - stylesheetLink.attr('href', stylesheetLink.attr('data-href')) - themeBtn.text('Disable theme preview') - localStorage.setItem('previewTheme', true) - } - - if (localStorage.getItem('previewTheme')) { - activateTheme() - } - - themeBtn.click(function () { - var href = stylesheetLink.attr('href') - if (!href || href.indexOf('data') === 0) { - activateTheme() - } else { - stylesheetLink.attr('href', '') - themeBtn.text('Preview theme') - localStorage.removeItem('previewTheme') - } - }) - }) - // Tooltip and popover demos $('.tooltip-demo').tooltip({ selector: '[data-toggle="tooltip"]',