diff --git a/assets/js/customize.min.js b/assets/js/customize.min.js index 9dabb0ab00..79f4e8ce82 100644 --- a/assets/js/customize.min.js +++ b/assets/js/customize.min.js @@ -42,4 +42,4 @@ var __js={"affix.js":"/* ======================================================= * Licensed under the Creative Commons Attribution 3.0 Unported License. For * details, see http://creativecommons.org/licenses/by/3.0/. */ -window.onload=function(){"use strict";function a(a,b){throw $('
×

'+a+"

"+(b.extract?'
'+b.extract.join("\n")+"
":"")+"
").appendTo("body").alert(),b}function b(a){$('
'+a+"
").insertAfter(".bs-customize-download")}function c(a,b){var c=$('

Attention!

'+a+"

");b?c.appendTo(".bs-docs-container"):c.insertAfter(".bs-customize-download")}function d(a){a=a.replace(/[*+?^$.\[\]{}()|\\\/]/g,"\\$&");var b=location.search.match(new RegExp("[?&]"+a+"=([^&]+)(&|$)"));return b&&decodeURIComponent(b[1].replace(/\+/g," "))}function e(c,d){var e={description:"Bootstrap Customizer Config","public":!0,files:{"config.json":{content:c}}};$.ajax({url:"https://api.github.com/gists",type:"POST",dataType:"json",data:JSON.stringify(e)}).success(function(a){var c=a.html_url,e=window.location.protocol+"//"+window.location.host,f=e+window.location.pathname+"?id="+a.id;b('Success! Your configuration has been saved to '+c+' and can be revisited here at '+f+" for further customization."),history.replaceState(!1,document.title,f),d(c,f)}).error(function(b){try{a("Ruh roh! Could not save gist file, configuration not saved.",b)}catch(c){}d("","")})}function f(){var a={};$("#less-variables-section input").each(function(){$(this).val()&&(a[$(this).prev().text()]=$(this).val())});var b={vars:a,css:$("#less-section input:checked").map(function(){return this.value}).toArray(),js:$("#plugin-section input:checked").map(function(){return this.value}).toArray()};if(!$.isEmptyObject(b.vars)||b.css.length||b.js.length)return b}function g(){var b=d("id");b&&$.ajax({url:"https://api.github.com/gists/"+b,type:"GET",dataType:"json"}).success(function(a){var b=JSON.parse(a.files["config.json"].content);if(b.js&&$("#plugin-section input").each(function(){$(this).prop("checked",~$.inArray(this.value,b.js))}),b.css&&$("#less-section input").each(function(){$(this).prop("checked",~$.inArray(this.value,b.css))}),b.vars)for(var c in b.vars)$('input[data-var="'+c+'"]').val(b.vars[c])}).error(function(b){a("Error fetching bootstrap config file",b)})}function h(b,c,d,e,f){if(!b&&!c)return a("Ruh roh! No Bootstrap files selected.",new Error("no Bootstrap"));var g=new JSZip;if(b){var h=g.folder("css");for(var i in b)h.file(i,b[i])}if(c){var j=g.folder("js");for(var k in c)j.file(k,c[k])}if(d){var l=g.folder("fonts");for(var m in d)l.file(m,d[m],{base64:!0})}e&&g.file("config.json",e);var n=g.generate({type:"blob"});f(n)}function i(a){var b="";for(var c in a)b+=c+": "+a[c]+";\n";return b+"\n\n"}function j(){var a=$('#less-section [value="glyphicons.less"]:checked');return a.length?__fonts:void 0}function k(a){var b=/^@import \"(.*?)\";$/,c=__less[a].split("\n"),d=[];return $.each(c,function(a,c){var e=b.exec(c);if(e){var f=e[1],g=k(f);$.each(g,function(a,b){-1===$.inArray(b,d)&&d.push(b)}),d.push(f)}}),d}function l(a,b,c){var d=__less[a],e=k(a);return $.each(e,function(a,e){var f=b[e];(f||null==f)&&(d+=__less[e]),"variables.less"===e&&c&&(d+=i(c))}),d=d.replace(/@import[^\n]*/gi,"")}function m(b,c,d){var e=new less.Parser({paths:["variables.less","mixins.less"],optimization:0,filename:c+".css"});e.parse(b,function(b,e){return b?a("Ruh roh! Could not parse less files.",b):(d[c+".css"]=q+e.toCSS(),void(d[c+".min.css"]=q+e.toCSS({compress:!0})))})}function n(b){var c=!1,d={};if($("#less-section input").each(function(){var a=$(this),b=a.is(":checked");d[a.val()]=b,c=c||b}),!c)return!1;var e={},f={};$("#less-variables-section input").each(function(){$(this).val()&&(f[$(this).prev().text()]=$(this).val())});var g=b+l("bootstrap.less",d,f),h=b+l("theme.less",d,f);try{m(g,"bootstrap",e),m(h,"bootstrap-theme",e)}catch(i){return a("Ruh roh! Could not parse less files.",i)}return e}function o(a){var b=UglifyJS.parse(a);b.figure_out_scope();var c=UglifyJS.Compressor(),d=b.transform(c);d.figure_out_scope(),d.compute_char_frequency(),d.mangle_names();var e=UglifyJS.OutputStream();return d.print(e),e.toString()}function p(a){var b=$("#plugin-section input:checked"),c='if (typeof jQuery === "undefined") { throw new Error("Bootstrap\'s JavaScript requires jQuery") }\n\n';if(!b.length)return!1;var d=b.map(function(){return __js[this.value]}).toArray().join("\n");return a=q+a,d=c+d,{"bootstrap.js":a+d,"bootstrap.min.js":a+o(d)}}var q="/*!\n * Bootstrap v3.2.0 (http://getbootstrap.com)\n * Copyright 2011-2014 Twitter, Inc.\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)\n */\n\n",r=$("#less-section input"),s=$("#plugin-section input"),t=$("#less-variables-section input");$("#less-section .toggle").on("click",function(a){a.preventDefault(),r.prop("checked",!r.is(":checked"))}),$("#plugin-section .toggle").on("click",function(a){a.preventDefault(),s.prop("checked",!s.is(":checked"))}),$("#less-variables-section .toggle").on("click",function(a){a.preventDefault(),t.val("")}),$("[data-dependencies]").on("click",function(){if($(this).is(":checked")){var a=this.getAttribute("data-dependencies");if(a){a=a.split(",");for(var b=0;bupgrade to a more modern browser (other than Safari).',!0)}var b=window.webkitURL||window.URL,d=new Blob([""],{type:"image/svg+xml;charset=utf-8"}),e=b.createObjectURL(d);null===/^blob:/.exec(e)?a():$("").on("load",function(){u.prop("disabled",!1)}).on("error",a).attr("src",e)}(),g()}; \ No newline at end of file +window.onload=function(){"use strict";function a(a,b){throw $('
×

'+a+"

"+(b.extract?'
'+b.extract.join("\n")+"
":"")+"
").appendTo("body").alert(),b}function b(a){$('
'+a+"
").insertAfter(".bs-customize-download")}function c(a,b){var c=$('

Attention!

'+a+"

");b?c.appendTo(".bs-docs-container"):c.insertAfter(".bs-customize-download")}function d(a){a=a.replace(/[*+?^$.\[\]{}()|\\\/]/g,"\\$&");var b=location.search.match(new RegExp("[?&]"+a+"=([^&]+)(&|$)"));return b&&decodeURIComponent(b[1].replace(/\+/g," "))}function e(c,d){var e={description:"Bootstrap Customizer Config","public":!0,files:{"config.json":{content:c}}};$.ajax({url:"https://api.github.com/gists",type:"POST",contentType:"application/json; charset=UTF-8",dataType:"json",data:JSON.stringify(e)}).success(function(a){var c=a.html_url,e=window.location.protocol+"//"+window.location.host,f=e+window.location.pathname+"?id="+a.id;b('Success! Your configuration has been saved to '+c+' and can be revisited here at '+f+" for further customization."),history.replaceState(!1,document.title,f),d(c,f)}).error(function(b){try{a("Ruh roh! Could not save gist file, configuration not saved.",b)}catch(c){}d("","")})}function f(){var a={};$("#less-variables-section input").each(function(){$(this).val()&&(a[$(this).prev().text()]=$(this).val())});var b={vars:a,css:$("#less-section input:checked").map(function(){return this.value}).toArray(),js:$("#plugin-section input:checked").map(function(){return this.value}).toArray()};if(!$.isEmptyObject(b.vars)||b.css.length||b.js.length)return b}function g(){var b=d("id");b&&$.ajax({url:"https://api.github.com/gists/"+b,type:"GET",dataType:"json"}).success(function(a){var b=JSON.parse(a.files["config.json"].content);if(b.js&&$("#plugin-section input").each(function(){$(this).prop("checked",~$.inArray(this.value,b.js))}),b.css&&$("#less-section input").each(function(){$(this).prop("checked",~$.inArray(this.value,b.css))}),b.vars)for(var c in b.vars)$('input[data-var="'+c+'"]').val(b.vars[c])}).error(function(b){a("Error fetching bootstrap config file",b)})}function h(b,c,d,e,f){if(!b&&!c)return a("Ruh roh! No Bootstrap files selected.",new Error("no Bootstrap"));var g=new JSZip;if(b){var h=g.folder("css");for(var i in b)h.file(i,b[i])}if(c){var j=g.folder("js");for(var k in c)j.file(k,c[k])}if(d){var l=g.folder("fonts");for(var m in d)l.file(m,d[m],{base64:!0})}e&&g.file("config.json",e);var n=g.generate({type:"blob"});f(n)}function i(a){var b="";for(var c in a)b+=c+": "+a[c]+";\n";return b+"\n\n"}function j(){var a=$('#less-section [value="glyphicons.less"]:checked');return a.length?__fonts:void 0}function k(a){var b=/^@import \"(.*?)\";$/,c=__less[a].split("\n"),d=[];return $.each(c,function(a,c){var e=b.exec(c);if(e){var f=e[1],g=k(f);$.each(g,function(a,b){-1===$.inArray(b,d)&&d.push(b)}),d.push(f)}}),d}function l(a,b,c){var d=__less[a],e=k(a);return $.each(e,function(a,e){var f=b[e];(f||null==f)&&(d+=__less[e]),"variables.less"===e&&c&&(d+=i(c))}),d=d.replace(/@import[^\n]*/gi,"")}function m(b,c,d){var e=new less.Parser({paths:["variables.less","mixins.less"],optimization:0,filename:c+".css"});e.parse(b,function(b,e){return b?a("Ruh roh! Could not parse less files.",b):(d[c+".css"]=q+e.toCSS(),void(d[c+".min.css"]=q+e.toCSS({compress:!0})))})}function n(b){var c=!1,d={};if($("#less-section input").each(function(){var a=$(this),b=a.is(":checked");d[a.val()]=b,c=c||b}),!c)return!1;var e={},f={};$("#less-variables-section input").each(function(){$(this).val()&&(f[$(this).prev().text()]=$(this).val())});var g=b+l("bootstrap.less",d,f),h=b+l("theme.less",d,f);try{m(g,"bootstrap",e),m(h,"bootstrap-theme",e)}catch(i){return a("Ruh roh! Could not parse less files.",i)}return e}function o(a){var b=UglifyJS.parse(a);b.figure_out_scope();var c=UglifyJS.Compressor(),d=b.transform(c);d.figure_out_scope(),d.compute_char_frequency(),d.mangle_names();var e=UglifyJS.OutputStream();return d.print(e),e.toString()}function p(a){var b=$("#plugin-section input:checked"),c='if (typeof jQuery === "undefined") { throw new Error("Bootstrap\'s JavaScript requires jQuery") }\n\n';if(!b.length)return!1;var d=b.map(function(){return __js[this.value]}).toArray().join("\n");return a=q+a,d=c+d,{"bootstrap.js":a+d,"bootstrap.min.js":a+o(d)}}var q="/*!\n * Bootstrap v3.2.0 (http://getbootstrap.com)\n * Copyright 2011-2014 Twitter, Inc.\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)\n */\n\n",r=$("#less-section input"),s=$("#plugin-section input"),t=$("#less-variables-section input");$("#less-section .toggle").on("click",function(a){a.preventDefault(),r.prop("checked",!r.is(":checked"))}),$("#plugin-section .toggle").on("click",function(a){a.preventDefault(),s.prop("checked",!s.is(":checked"))}),$("#less-variables-section .toggle").on("click",function(a){a.preventDefault(),t.val("")}),$("[data-dependencies]").on("click",function(){if($(this).is(":checked")){var a=this.getAttribute("data-dependencies");if(a){a=a.split(",");for(var b=0;bupgrade to a more modern browser (other than Safari).',!0)}var b=window.webkitURL||window.URL,d=new Blob([""],{type:"image/svg+xml;charset=utf-8"}),e=b.createObjectURL(d);null===/^blob:/.exec(e)?a():$("").on("load",function(){u.prop("disabled",!1)}).on("error",a).attr("src",e)}(),g()}; \ No newline at end of file