diff options
author | Mark Otto <markdotto@gmail.com> | 2017-07-03 10:02:30 +0300 |
---|---|---|
committer | Mark Otto <markdotto@gmail.com> | 2017-07-03 10:03:48 +0300 |
commit | 1a8f098a8a5b43a737c0416a62beb3487d618242 (patch) | |
tree | 16a5243c45cf7b8944b845c963f1d759bb27601c /docs | |
parent | 11e6178496779bb196a63772b1dbed0954a3c7ec (diff) |
rip out the browser detection
Diffstat (limited to 'docs')
-rw-r--r-- | docs/assets/js/src/customizer.js | 35 | ||||
-rw-r--r-- | docs/customize.html | 4 |
2 files changed, 2 insertions, 37 deletions
diff --git a/docs/assets/js/src/customizer.js b/docs/assets/js/src/customizer.js index b1a782349b..84d3e6832d 100644 --- a/docs/assets/js/src/customizer.js +++ b/docs/assets/js/src/customizer.js @@ -481,40 +481,5 @@ window.onload = function () { // wait for load in a dumb way because B-0 }) }); - // browser support alert - (function () { - function failback() { - $('.bs-docs-section, .bs-docs-sidebar').css('display', 'none') - showCallout('Looks like your current browser doesn\'t support the Bootstrap Customizer. Please take a second ' + - 'to <a href="http://browsehappy.com/">upgrade to a more modern browser</a> (other than Safari).', true) - } - /** - * Based on: - * Blob Feature Check v1.1.0 - * https://github.com/ssorallen/blob-feature-check/ - * License: Public domain (http://unlicense.org) - */ - var url = window.webkitURL || window.URL // Safari 6 uses "webkitURL". - var svg = new Blob( - ['<svg xmlns=\'http://www.w3.org/2000/svg\'></svg>'], - { type: 'image/svg+xml;charset=utf-8' } - ) - var objectUrl = url.createObjectURL(svg); - - if (/^blob:/.exec(objectUrl) === null || !supportsFile) { - // `URL.createObjectURL` created a URL that started with something other - // than "blob:", which means it has been polyfilled and is not supported by - // this browser. - failback() - } else { - $('<img>') - .on('load', function () { - $compileBtn.prop('disabled', false) - }) - .on('error', failback) - .attr('src', objectUrl) - } - })(); - parseUrl() } diff --git a/docs/customize.html b/docs/customize.html index 7ddf00552d..181a20eb60 100644 --- a/docs/customize.html +++ b/docs/customize.html @@ -2,7 +2,7 @@ layout: default title: Customize and download slug: customize -lead: Customize Bootstrap's components, Less variables, and jQuery plugins to get your very own version. +lead: Customize Bootstrap's components, Less variables, and jQuery plugins to get your very own version. Requires using IE9+ or latest Safari, Chrome, or Firefox. --- @@ -374,7 +374,7 @@ lead: Customize Bootstrap's components, Less variables, and jQuery plugins to ge <p class="lead">Hooray! Your custom version of Bootstrap is now ready to be compiled. Just click the button below to finish the process.</p> <div class="bs-customize-download"> - <button type="submit" id="btn-compile" disabled class="btn btn-block btn-lg btn-outline" onclick="ga('send', 'event', 'Customize', 'Download', 'Customize and Download');">Compile and Download</button> + <button type="submit" id="btn-compile" class="btn btn-block btn-lg btn-outline" onclick="ga('send', 'event', 'Customize', 'Download', 'Customize and Download');">Compile and Download</button> </div> </div><!-- /download --> </form> |