@@ -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,b,c){$('<div class="alert alert-'+a+'">'+b+'<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button></div>').insertAfter(c)}functione(a){a=a.replace(/[*+?^$.\[\]{}()|\\\/]/g,"\\$&");varb=location.search.match(newRegExp("[?&]"+a+"=([^&]+)(&|$)"));returnb&&decodeURIComponent(b[1].replace(/\+/g,""))}functionf(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>")})}functiong(){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}functionh(a){if(a.js&&$("#plugin-section input").each(function(){$(this).prop("checked",~$.inArray(this.value,a.js))}),a.css&&$("#less-section input").each(function(){$(this).prop("checked",~$.inArray(this.value,a.css))}),a.vars)for(varbina.vars)$('input[data-var="'+b+'"]').val(a.vars[b])}functioni(){varb=e("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);h(b)}).error(function(b){a("Error fetching bootstrap config file",b)})}functionj(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)}functionk(a){varb="";for(varcina)b+=c+": "+a[c]+";\n";returnb+"\n\n"}functionl(){vara=$('#less-section [value="glyphicons.less"]:checked');returna.length?__fonts:void0}functionm(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=m(f);$.each(g,function(a,b){-1===$.inArray(b,d)&&d.push(b)}),d.push(f)}}),d}functionn(a,b,c){vard=__less[a],e=m(a);return$.each(e,function(a,e){varf=b[e];(f||null==f)&&(d+=__less[e]),"variables.less"===e&&c&&(d+=k(c))}),d=d.replace(/@import[^\n]*/gi,"")}functiono(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"]=v+e.toCSS(),void(d[c+".min.css"]=v+e.toCSS({compress:!0})))})}functionp(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+n("bootstrap.less",d,f),h=b+n("theme.less",d,f);try{o(g,"bootstrap",e),o(h,"bootstrap-theme",e)}catch(i){returna("<strong>Ruh roh!</strong> Could not parse less files.",i)}returne}functionq(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()}functionr(a){varb=$("#plugin-section input:checked"),c=["if (typeof jQuery === 'undefined') {"," throw new Error('Bootstrap\\'s JavaScript requires jQuery')","}\n"].join("\n"),d=["+function ($) {"," var version = $.fn.jquery.split(' ')[0].split('.')"," if ((version[0] < 2 && version[1] < 9) || (version[0] == 1 && version[1] == 9 && version[2] < 1)) {"," throw new Error('Bootstrap\\'s JavaScript requires jQuery version 1.9.1 or higher')"," }","}(jQuery);\n\n"].join("\n");if(!b.length)return!1;vare=b.map(function(){return__js[this.value]}).toArray().join("\n");returna=v+a,e=c+d+e,{"bootstrap.js":a+e,"bootstrap.min.js":a+q(e)}}functions(){x.nextAll(".alert").remove()}functiont(a){a.stopPropagation(),a.preventDefault();varb=a.originalEvent.hasOwnProperty("dataTransfer")?a.originalEvent.dataTransfer.files[0]:a.originalEvent.target.files[0],c=newFileReader;c.onload=function(a){varb=a.target.result;try{varc=JSON.parse(b);if(!$.isPlainObject(c))thrownewError("JSON data from config file is not an object.");h(c),d("success","<strong>Woohoo!</strong> Your configuration was successfully uploaded. Tweak your settings, then hit Download.",x)}catch(e){returnd("danger","<strong>Shucks.</strong> We can only read valid <code>.json</code> files. Please try again.",x)}},c.readAsText(b,"utf-8")}functionu(a){a.stopPropagation(),a.preventDefault(),a.originalEvent.dataTransfer.dropEffect="copy",s()}varv="/*!\n * Bootstrap v3.3.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",w=window.File&&window.FileReader&&window.FileList&&window.Blob,x=$("#import-drop-target");w&&x.on("dragover",u).on("drop",t),$("#import-file-select").on("select",t),$("#import-manual-trigger").on("click",s);vary=$("#less-section input"),z=$("#plugin-section input"),A=$("#less-variables-section input");$("#less-section .toggle").on("click",function(a){a.preventDefault(),y.prop("checked",!y.is(":checked"))}),$("#plugin-section .toggle").on("click",function(a){a.preventDefault(),z.prop("checked",!z.is(":checked"))}),$("#less-variables-section .toggle").on("click",function(a){a.preventDefault(),A.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)}}}});varB=$("#btn-compile");B.on("click",function(a){varb=g(),c=JSON.stringify(b,null,2);a.preventDefault(),B.attr("disabled","disabled"),f(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";j(p(e),r(e),l(),c,function(a){B.removeAttr("disabled"),setTimeout(function(){saveAs(a,"bootstrap.zip")},0)})})}),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)&&w?$("<img>").on("load",function(){B.prop("disabled",!1)}).on("error",a).attr("src",e):a()}(),i()};
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,b,c){$('<div class="alert alert-'+a+'">'+b+'<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button></div>').insertAfter(c)}functione(a){a=a.replace(/[*+?^$.\[\]{}()|\\\/]/g,"\\$&");varb=location.search.match(newRegExp("[?&]"+a+"=([^&]+)(&|$)"));returnb&&decodeURIComponent(b[1].replace(/\+/g,""))}functionf(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>")})}functiong(){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}functionh(a){if(a.js&&$("#plugin-section input").each(function(){$(this).prop("checked",~$.inArray(this.value,a.js))}),a.css&&$("#less-section input").each(function(){$(this).prop("checked",~$.inArray(this.value,a.css))}),a.vars)for(varbina.vars)$('input[data-var="'+b+'"]').val(a.vars[b])}functioni(){varb=e("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);h(b)}).error(function(b){a("Error fetching bootstrap config file",b)})}functionj(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)}functionk(a){varb="";for(varcina)b+=c+": "+a[c]+";\n";returnb+"\n\n"}functionl(){vara=$('#less-section [value="glyphicons.less"]:checked');returna.length?__fonts:void0}functionm(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=m(f);$.each(g,function(a,b){-1===$.inArray(b,d)&&d.push(b)}),d.push(f)}}),d}functionn(a,b,c){vard=__less[a],e=m(a);return$.each(e,function(a,e){varf=b[e];(f||null==f)&&(d+=__less[e]),"variables.less"===e&&c&&(d+=k(c))}),d=d.replace(/@import[^\n]*/gi,"")}functiono(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"]=v+e.toCSS(),void(d[c+".min.css"]=v+e.toCSS({compress:!0})))})}functionp(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+n("bootstrap.less",d,f),h=b+n("theme.less",d,f);try{o(g,"bootstrap",e),o(h,"bootstrap-theme",e)}catch(i){returna("<strong>Ruh roh!</strong> Could not parse less files.",i)}returne}functionq(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()}functionr(a){varb=$("#plugin-section input:checked"),c=["if (typeof jQuery === 'undefined') {"," throw new Error('Bootstrap\\'s JavaScript requires jQuery')","}\n"].join("\n"),d=["+function ($) {"," var version = $.fn.jquery.split(' ')[0].split('.')"," if ((version[0] < 2 && version[1] < 9) || (version[0] == 1 && version[1] == 9 && version[2] < 1)) {"," throw new Error('Bootstrap\\'s JavaScript requires jQuery version 1.9.1 or higher')"," }","}(jQuery);\n\n"].join("\n");if(!b.length)return!1;vare=b.map(function(){return__js[this.value]}).toArray().join("\n");returna=v+a,e=c+d+e,{"bootstrap.js":a+e,"bootstrap.min.js":a+q(e)}}functions(){x.nextAll(".alert").remove()}functiont(a){a.stopPropagation(),a.preventDefault();varb=a.originalEvent.hasOwnProperty("dataTransfer")?a.originalEvent.dataTransfer.files[0]:a.originalEvent.target.files[0],c=newFileReader;c.onload=function(a){varb=a.target.result;try{varc=JSON.parse(b);if(!$.isPlainObject(c))thrownewError("JSON data from config file is not an object.");h(c),d("success","<strong>Woohoo!</strong> Your configuration was successfully uploaded. Tweak your settings, then hit Download.",x)}catch(e){returnd("danger","<strong>Shucks.</strong> We can only read valid <code>.json</code> files. Please try again.",x)}},c.readAsText(b,"utf-8")}functionu(a){a.stopPropagation(),a.preventDefault(),a.originalEvent.dataTransfer.dropEffect="copy",s()}varv="/*!\n * Bootstrap v3.3.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",w=window.File&&window.FileReader&&window.FileList&&window.Blob,x=$("#import-drop-target");w&&x.on("dragover",u).on("drop",t),$("#import-file-select").on("change",t),$("#import-manual-trigger").on("click",s);vary=$("#less-section input"),z=$("#plugin-section input"),A=$("#less-variables-section input");$("#less-section .toggle").on("click",function(a){a.preventDefault(),y.prop("checked",!y.is(":checked"))}),$("#plugin-section .toggle").on("click",function(a){a.preventDefault(),z.prop("checked",!z.is(":checked"))}),$("#less-variables-section .toggle").on("click",function(a){a.preventDefault(),A.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)}}}});varB=$("#btn-compile");B.on("click",function(a){varb=g(),c=JSON.stringify(b,null,2);a.preventDefault(),B.attr("disabled","disabled"),f(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";j(p(e),r(e),l(),c,function(a){B.removeAttr("disabled"),setTimeout(function(){saveAs(a,"bootstrap.zip")},0)})})}),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)&&w?$("<img>").on("load",function(){B.prop("disabled",!1)}).on("error",a).attr("src",e):a()}(),i()};