@@ -42,4 +42,4 @@ var __js={"affix.js":"/* =======================================================
...
@@ -42,4 +42,4 @@ var __js={"affix.js":"/* =======================================================
* Licensed under the Creative Commons Attribution 3.0 Unported License. For
* Licensed under the Creative Commons Attribution 3.0 Unported License. For
* details, see http://creativecommons.org/licenses/by/3.0/.
* details, see http://creativecommons.org/licenses/by/3.0/.
*/
*/
window.onload=function(){"use strict";functiona(a,b){throw$('<div id="bsCustomizerAlert" class="bs-customizer-alert"><div class="container"><a href="#bsCustomizerAlert" data-dismiss="alert" class="close pull-right">×</a><p class="bs-customizer-alert-text"><span class="glyphicon glyphicon-warning-sign"></span>'+a+"</p>"+(b.extract?'<pre class="bs-customizer-alert-extract">'+b.extract.join("\n")+"</pre>":"")+"</div></div>").appendTo("body").alert(),b}functionb(a){$('<div class="bs-callout bs-callout-info"><button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>'+a+"</div>").insertAfter(".bs-customize-download")}functionc(a,b){varc=$('<div class="bs-callout bs-callout-danger"><h4>Attention!</h4><p>'+a+"</p></div>");b?c.appendTo(".bs-docs-container"):c.insertAfter(".bs-customize-download")}functiond(a){a=a.replace(/[*+?^$.\[\]{}()|\\\/]/g,"\\$&");varb=location.search.match(newRegExp("[?&]"+a+"=([^&]+)(&|$)"));returnb&&decodeURIComponent(b[1].replace(/\+/g,""))}functione(c,d){vare={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){varc=a.html_url,e=window.location.protocol+"//"+window.location.host,f=e+window.location.pathname+"?id="+a.id;b('<strong>Success!</strong> Your configuration has been saved to <a href="'+c+'">'+c+'</a> and can be revisited here at <a href="'+f+'">'+f+"</a> for further customization."),history.replaceState(!1,document.title,f),d(c,f)}).error(function(b){try{a("<strong>Ruh roh!</strong> Could not save gist file, configuration not saved.",b)}catch(c){}d("<none>","<none>")})}functionf(){vara={};$("#less-variables-section input").each(function(){$(this).val()&&(a[$(this).prev().text()]=$(this).val())});varb={vars:a,css:$("#less-section input:checked").map(function(){returnthis.value}).toArray(),js:$("#plugin-section input:checked").map(function(){returnthis.value}).toArray()};if(!$.isEmptyObject(b.vars)||b.css.length||b.js.length)returnb}functiong(){varb=d("id");b&&$.ajax({url:"https://api.github.com/gists/"+b,type:"GET",dataType:"json"}).success(function(a){varb=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(varcinb.vars)$('input[data-var="'+c+'"]').val(b.vars[c])}).error(function(b){a("Error fetching bootstrap config file",b)})}functionh(b,c,d,e,f){if(!b&&!c)returna("<strong>Ruh roh!</strong> No Bootstrap files selected.",newError("no Bootstrap"));varg=newJSZip;if(b){varh=g.folder("css");for(variinb)h.file(i,b[i])}if(c){varj=g.folder("js");for(varkinc)j.file(k,c[k])}if(d){varl=g.folder("fonts");for(varmind)l.file(m,d[m],{base64:!0})}e&&g.file("config.json",e);varn=g.generate({type:"blob"});f(n)}functioni(a){varb="";for(varcina)b+=c+": "+a[c]+";\n";returnb+"\n\n"}functionj(){vara=$('#less-section [value="glyphicons.less"]:checked');returna.length?__fonts:void0}functionk(a){varb=/^@import \"(.*?)\";$/,c=__less[a].split("\n"),d=[];return$.each(c,function(a,c){vare=b.exec(c);if(e){varf=e[1],g=k(f);$.each(g,function(a,b){-1===$.inArray(b,d)&&d.push(b)}),d.push(f)}}),d}functionl(a,b,c){vard=__less[a],e=k(a);return$.each(e,function(a,e){varf=b[e];(f||null==f)&&(d+=__less[e]),"variables.less"===e&&c&&(d+=i(c))}),d=d.replace(/@import[^\n]*/gi,"")}functionm(b,c,d){vare=newless.Parser({paths:["variables.less","mixins.less"],optimization:0,filename:c+".css"});e.parse(b,function(b,e){returnb?a("<strong>Ruh roh!</strong> Could not parse less files.",b):(d[c+".css"]=q+e.toCSS(),void(d[c+".min.css"]=q+e.toCSS({compress:!0})))})}functionn(b){varc=!1,d={};if($("#less-section input").each(function(){vara=$(this),b=a.is(":checked");d[a.val()]=b,c=c||b}),!c)return!1;vare={},f={};$("#less-variables-section input").each(function(){$(this).val()&&(f[$(this).prev().text()]=$(this).val())});varg=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){returna("<strong>Ruh roh!</strong> Could not parse less files.",i)}returne}functiono(a){varb=UglifyJS.parse(a);b.figure_out_scope();varc=UglifyJS.Compressor(),d=b.transform(c);d.figure_out_scope(),d.compute_char_frequency(),d.mangle_names();vare=UglifyJS.OutputStream();returnd.print(e),e.toString()}functionp(a){varb=$("#plugin-section input:checked"),c='if (typeof jQuery === "undefined") { throw new Error("Bootstrap\'s JavaScript requires jQuery") }\n\n';if(!b.length)return!1;vard=b.map(function(){return__js[this.value]}).toArray().join("\n");returna=q+a,d=c+d,{"bootstrap.js":a+d,"bootstrap.min.js":a+o(d)}}varq="/*!\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")){vara=this.getAttribute("data-dependencies");if(a){a=a.split(",");for(varb=0;b<a.length;b++){varc=$('[value="'+a[b]+'"]');c&&c.prop("checked",!0)}}}}),$("[data-dependents]").on("click",function(){if(!$(this).is(":checked")){vara=this.getAttribute("data-dependents");if(a){a=a.split(",");for(varb=0;b<a.length;b++){varc=$('[value="'+a[b]+'"]');c&&c.prop("checked",!1)}}}});varu=$("#btn-compile");u.on("click",function(a){varb=f(),c=JSON.stringify(b,null,2);a.preventDefault(),u.attr("disabled","disabled"),e(c,function(a,d){b.customizerUrl=d,c=JSON.stringify(b,null,2);vare="/*!\n * Generated using the Bootstrap Customizer ("+d+")\n * Config saved to config.json and "+a+"\n */\n";h(n(e),p(e),j(),c,function(a){u.removeAttr("disabled"),saveAs(a,"bootstrap.zip")})})}),function(){functiona(){$(".bs-docs-section, .bs-docs-sidebar").css("display","none"),c('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).',!0)}varb=window.webkitURL||window.URL,d=newBlob(["<svg xmlns='http://www.w3.org/2000/svg'></svg>"],{type:"image/svg+xml;charset=utf-8"}),e=b.createObjectURL(d);null===/^blob:/.exec(e)?a():$("<img>").on("load",function(){u.prop("disabled",!1)}).on("error",a).attr("src",e)}(),g()};
window.onload=function(){"use strict";functiona(a,b){throw$('<div id="bsCustomizerAlert" class="bs-customizer-alert"><div class="container"><a href="#bsCustomizerAlert" data-dismiss="alert" class="close pull-right">×</a><p class="bs-customizer-alert-text"><span class="glyphicon glyphicon-warning-sign"></span>'+a+"</p>"+(b.extract?'<pre class="bs-customizer-alert-extract">'+b.extract.join("\n")+"</pre>":"")+"</div></div>").appendTo("body").alert(),b}functionb(a){$('<div class="bs-callout bs-callout-info"><button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>'+a+"</div>").insertAfter(".bs-customize-download")}functionc(a,b){varc=$('<div class="bs-callout bs-callout-danger"><h4>Attention!</h4><p>'+a+"</p></div>");b?c.appendTo(".bs-docs-container"):c.insertAfter(".bs-customize-download")}functiond(a){a=a.replace(/[*+?^$.\[\]{}()|\\\/]/g,"\\$&");varb=location.search.match(newRegExp("[?&]"+a+"=([^&]+)(&|$)"));returnb&&decodeURIComponent(b[1].replace(/\+/g,""))}functione(c,d){vare={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){varc=a.html_url,e=window.location.protocol+"//"+window.location.host,f=e+window.location.pathname+"?id="+a.id;b('<strong>Success!</strong> Your configuration has been saved to <a href="'+c+'">'+c+'</a> and can be revisited here at <a href="'+f+'">'+f+"</a> for further customization."),history.replaceState(!1,document.title,f),d(c,f)}).error(function(b){try{a("<strong>Ruh roh!</strong> Could not save gist file, configuration not saved.",b)}catch(c){}d("<none>","<none>")})}functionf(){vara={};$("#less-variables-section input").each(function(){$(this).val()&&(a[$(this).prev().text()]=$(this).val())});varb={vars:a,css:$("#less-section input:checked").map(function(){returnthis.value}).toArray(),js:$("#plugin-section input:checked").map(function(){returnthis.value}).toArray()};if(!$.isEmptyObject(b.vars)||b.css.length||b.js.length)returnb}functiong(){varb=d("id");b&&$.ajax({url:"https://api.github.com/gists/"+b,type:"GET",dataType:"json"}).success(function(a){varb=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(varcinb.vars)$('input[data-var="'+c+'"]').val(b.vars[c])}).error(function(b){a("Error fetching bootstrap config file",b)})}functionh(b,c,d,e,f){if(!b&&!c)returna("<strong>Ruh roh!</strong> No Bootstrap files selected.",newError("no Bootstrap"));varg=newJSZip;if(b){varh=g.folder("css");for(variinb)h.file(i,b[i])}if(c){varj=g.folder("js");for(varkinc)j.file(k,c[k])}if(d){varl=g.folder("fonts");for(varmind)l.file(m,d[m],{base64:!0})}e&&g.file("config.json",e);varn=g.generate({type:"blob"});f(n)}functioni(a){varb="";for(varcina)b+=c+": "+a[c]+";\n";returnb+"\n\n"}functionj(){vara=$('#less-section [value="glyphicons.less"]:checked');returna.length?__fonts:void0}functionk(a){varb=/^@import \"(.*?)\";$/,c=__less[a].split("\n"),d=[];return$.each(c,function(a,c){vare=b.exec(c);if(e){varf=e[1],g=k(f);$.each(g,function(a,b){-1===$.inArray(b,d)&&d.push(b)}),d.push(f)}}),d}functionl(a,b,c){vard=__less[a],e=k(a);return$.each(e,function(a,e){varf=b[e];(f||null==f)&&(d+=__less[e]),"variables.less"===e&&c&&(d+=i(c))}),d=d.replace(/@import[^\n]*/gi,"")}functionm(b,c,d){vare=newless.Parser({paths:["variables.less","mixins.less"],optimization:0,filename:c+".css"});e.parse(b,function(b,e){returnb?a("<strong>Ruh roh!</strong> Could not parse less files.",b):(d[c+".css"]=q+e.toCSS(),void(d[c+".min.css"]=q+e.toCSS({compress:!0})))})}functionn(b){varc=!1,d={};if($("#less-section input").each(function(){vara=$(this),b=a.is(":checked");d[a.val()]=b,c=c||b}),!c)return!1;vare={},f={};$("#less-variables-section input").each(function(){$(this).val()&&(f[$(this).prev().text()]=$(this).val())});varg=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){returna("<strong>Ruh roh!</strong> Could not parse less files.",i)}returne}functiono(a){varb=UglifyJS.parse(a);b.figure_out_scope();varc=UglifyJS.Compressor(),d=b.transform(c);d.figure_out_scope(),d.compute_char_frequency(),d.mangle_names();vare=UglifyJS.OutputStream();returnd.print(e),e.toString()}functionp(a){varb=$("#plugin-section input:checked"),c='if (typeof jQuery === "undefined") { throw new Error("Bootstrap\'s JavaScript requires jQuery") }\n\n';if(!b.length)return!1;vard=b.map(function(){return__js[this.value]}).toArray().join("\n");returna=q+a,d=c+d,{"bootstrap.js":a+d,"bootstrap.min.js":a+o(d)}}varq="/*!\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")){vara=this.getAttribute("data-dependencies");if(a){a=a.split(",");for(varb=0;b<a.length;b++){varc=$('[value="'+a[b]+'"]');c&&c.prop("checked",!0)}}}}),$("[data-dependents]").on("click",function(){if(!$(this).is(":checked")){vara=this.getAttribute("data-dependents");if(a){a=a.split(",");for(varb=0;b<a.length;b++){varc=$('[value="'+a[b]+'"]');c&&c.prop("checked",!1)}}}});varu=$("#btn-compile");u.on("click",function(a){varb=f(),c=JSON.stringify(b,null,2);a.preventDefault(),u.attr("disabled","disabled"),e(c,function(a,d){b.customizerUrl=d,c=JSON.stringify(b,null,2);vare="/*!\n * Generated using the Bootstrap Customizer ("+d+")\n * Config saved to config.json and "+a+"\n */\n";h(n(e),p(e),j(),c,function(a){u.removeAttr("disabled"),saveAs(a,"bootstrap.zip")})})}),function(){functiona(){$(".bs-docs-section, .bs-docs-sidebar").css("display","none"),c('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).',!0)}varb=window.webkitURL||window.URL,d=newBlob(["<svg xmlns='http://www.w3.org/2000/svg'></svg>"],{type:"image/svg+xml;charset=utf-8"}),e=b.createObjectURL(d);null===/^blob:/.exec(e)?a():$("<img>").on("load",function(){u.prop("disabled",!1)}).on("error",a).attr("src",e)}(),g()};