From dc2deb9a1b1995bbabee91bfd579d9b466fe78f2 Mon Sep 17 00:00:00 2001 From: Jacob Thornton Date: Thu, 26 Jan 2012 21:48:46 -0800 Subject: moving structure around + more work on builder... --- .../img/glyphicons-halflings-sprite-white.png | Bin 13566 -> 0 bytes docs/assets/img/glyphicons-halflings-sprite.png | Bin 14152 -> 0 bytes docs/assets/js/application.js | 16 +++-- docs/download.html | 74 ++++++++++----------- docs/scaffolding.html | 1 + docs/templates/pages/download.mustache | 74 ++++++++++----------- 6 files changed, 87 insertions(+), 78 deletions(-) delete mode 100644 docs/assets/img/glyphicons-halflings-sprite-white.png delete mode 100644 docs/assets/img/glyphicons-halflings-sprite.png (limited to 'docs') diff --git a/docs/assets/img/glyphicons-halflings-sprite-white.png b/docs/assets/img/glyphicons-halflings-sprite-white.png deleted file mode 100644 index a92b1913a..000000000 Binary files a/docs/assets/img/glyphicons-halflings-sprite-white.png and /dev/null differ diff --git a/docs/assets/img/glyphicons-halflings-sprite.png b/docs/assets/img/glyphicons-halflings-sprite.png deleted file mode 100644 index b4e0acfbc..000000000 Binary files a/docs/assets/img/glyphicons-halflings-sprite.png and /dev/null differ diff --git a/docs/assets/js/application.js b/docs/assets/js/application.js index 2315cdaa8..8c86ff028 100644 --- a/docs/assets/js/application.js +++ b/docs/assets/js/application.js @@ -171,6 +171,7 @@ $(function () { var inputsComponent = $("#components.download input") , inputsPlugin = $("#plugins.download input") + , inputsVariables = $("#variables.download input") // toggle all plugin checkboxes $('#components.download .toggle-all').on('click', function (e) { @@ -183,6 +184,11 @@ $(function () { inputsPlugin.attr('checked', !inputsPlugin.is(':checked')) }) + $('#variables.download .toggle-all').on('click', function (e) { + e.preventDefault() + inputsVariables.val('') + }) + // request built javascript $('.download-btn').on('click', function () { @@ -193,11 +199,12 @@ $(function () { .map(function () { return this.value }) .toArray() , vars = {} + , img = ['glyphicons-halflings-sprite.png', 'glyphicons-halflings-sprite-white.png'] - $("#variables.download input") - .each(function () { - return vars[ $(this).prev().text() ] = $(this).val() - }) + $("#variables.download input") + .each(function () { + $(this).val() && (vars[ $(this).prev().text() ] = $(this).val()) + }) // , url: "http://bootstrap.herokuapp.com" $.ajax({ @@ -209,6 +216,7 @@ $(function () { , js: js , css: css , vars: vars + , img: img } }) }) diff --git a/docs/download.html b/docs/download.html index 5b2b716d7..99564576f 100644 --- a/docs/download.html +++ b/docs/download.html @@ -108,24 +108,24 @@

Components

- + - + - +

JS Components

- - + + - - + +
@@ -135,9 +135,9 @@

Responsive

- - - + + +
@@ -154,68 +154,68 @@

Links

- + - +

Grid system

- + - + - + - + - +

Typography

- + - + - +

Forms

- + - +

Navbar

- + - + - +

Form states & alerts

- + - + - + - + - + - + - + - + - + - + - + - +
diff --git a/docs/scaffolding.html b/docs/scaffolding.html index df6ea9f00..02b9721d3 100644 --- a/docs/scaffolding.html +++ b/docs/scaffolding.html @@ -381,6 +381,7 @@ +