From 5dd47f11967f25aa8f5fe4ad25db807c5b33ccca Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Mon, 11 Jun 2012 20:33:00 -0700 Subject: keep tables at 13px in docs for now, clean up some modals js docs stuff --- docs/templates/pages/javascript.mustache | 50 +++++++++++++++++++++++++------- 1 file changed, 39 insertions(+), 11 deletions(-) (limited to 'docs/templates/pages/javascript.mustache') diff --git a/docs/templates/pages/javascript.mustache b/docs/templates/pages/javascript.mustache index d90184c7b..38e38a9e4 100644 --- a/docs/templates/pages/javascript.mustache +++ b/docs/templates/pages/javascript.mustache @@ -29,10 +29,13 @@ +

{{_i}}Individual or compiled{{/i}}

{{_i}}If you have downloaded the latest version of Bootstrap, both bootstrap.js and bootstrap.min.js contain all of these plugins.{{/i}}

-

{{_i}}Data attributea{{/i}}

+ +

{{_i}}Data attributes{{/i}}

{{_i}}...{{/i}}

+

{{_i}}Programmatic API{{/i}}

{{_i}}...{{/i}}

@@ -50,8 +53,17 @@

{{_i}}Transitions{{/i}} bootstrap-transition.js

{{_i}}About transitions{{/i}}

-

{{_i}}For simple transition effects, include bootstrap-transition.js once to slide in modals or fade out alerts.{{/i}}

-

* {{_i}}Required for animation in plugins{{/i}}

+

{{_i}}For simple transition effects, include bootstrap-transition.js once alongside the other JS files. If you're using the compiled (or minified) bootstrap.js, there is no need to include this—it's already there.{{/i}}

+

{{_i}}Use cases{{/i}}

+

{{_i}}A few examples of the transition plugin:{{/i}}

+ + + {{! Ideas: include docs for .fade.in, .slide.in, etc }} @@ -63,11 +75,11 @@

{{_i}}Modals{{/i}} bootstrap-modal.js

-

{{_i}}About modals{{/i}}

+ +

{{_i}}About modals{{/i}}

{{_i}}A streamlined, but flexible, take on the traditional javascript modal plugin with only the minimum required functionality and smart defaults.{{/i}}

-

{{_i}}Static example{{/i}}

-

{{_i}}Below is a statically rendered modal.{{/i}}

+

{{_i}}Static example{{/i}}

{{! /example }} +
+<div class="modal hide fade">
+  <div class="modal-header">
+    <button type="button" class="close" data-dismiss="modal">&times;</button>
+    <h3>{{_i}}Modal header{{/i}}</h3>
+  </div>
+  <div class="modal-body">
+    <p>{{_i}}One fine body…{{/i}}</p>
+  </div>
+  <div class="modal-footer">
+    <a href="#" class="btn">{{_i}}Close{{/i}}</a>
+    <a href="#" class="btn btn-primary">{{_i}}Save changes{{/i}}</a>
+  </div>
+</div>
+
-

{{_i}}Live demo{{/i}}

+

{{_i}}Live demo{{/i}}

{{_i}}Toggle a modal via javascript by clicking the button below. It will slide down and fade in from the top of the page.{{/i}}

- -
{{_i}}Launch demo modal{{/i}}
{{! /example }} -
-

{{_i}}Using bootstrap-modal{{/i}}

+
+ + +

{{_i}}Usage{{/i}}

{{_i}}Call the modal via javascript:{{/i}}

$('#myModal').modal(options)
+

{{_i}}Options{{/i}}

-- cgit v1.2.3