├── .gitignore ├── LICENSE ├── Makefile ├── README.md ├── TODO.md ├── bootstrap.css ├── bootstrap.min.css ├── docs ├── assets │ ├── css │ │ └── docs.css │ ├── ico │ │ ├── bootstrap-apple-114x114.png │ │ ├── bootstrap-apple-57x57.png │ │ ├── bootstrap-apple-72x72.png │ │ └── favicon.ico │ ├── img │ │ ├── bird.png │ │ ├── browsers.png │ │ ├── example-diagram-01.png │ │ ├── example-diagram-02.png │ │ ├── example-diagram-03.png │ │ ├── grid-18px.png │ │ └── twitter-logo-no-bird.png │ └── js │ │ ├── application.js │ │ ├── google-code-prettify │ │ ├── prettify.css │ │ └── prettify.js │ │ └── jquery-1.7.min.js ├── index.html └── javascript.html ├── examples ├── container-app.html ├── fb-app.html ├── fb-canvas.html ├── fluid.html └── hero.html ├── js ├── bootstrap-alerts.js ├── bootstrap-buttons.js ├── bootstrap-dropdown.js ├── bootstrap-modal.js ├── bootstrap-popover.js ├── bootstrap-scrollspy.js ├── bootstrap-tabs.js ├── bootstrap-twipsy.js ├── jquery-1.7.min.js ├── less-1.1.5.min.js └── tests │ ├── index.html │ ├── unit │ ├── bootstrap-alerts.js │ ├── bootstrap-buttons.js │ ├── bootstrap-dropdown.js │ ├── bootstrap-modal.js │ ├── bootstrap-popover.js │ ├── bootstrap-scrollspy.js │ ├── bootstrap-tabs.js │ └── bootstrap-twipsy.js │ └── vendor │ ├── qunit.css │ └── qunit.js └── lib ├── bootstrap.less ├── bootstrap.min.less ├── forms.less ├── grid-canvas.less ├── mixins.less ├── patterns.less ├── reset.less ├── scaffolding.less ├── tables.less ├── type.less └── variables.less /.gitignore: -------------------------------------------------------------------------------- 1 | *~ 2 | .DS_Store 3 | thumbs.db 4 | js/min -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Apache License 2 | Version 2.0, January 2004 3 | http://www.apache.org/licenses/ 4 | 5 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 6 | 7 | 1. Definitions. 8 | 9 | "License" shall mean the terms and conditions for use, reproduction, 10 | and distribution as defined by Sections 1 through 9 of this document. 11 | 12 | "Licensor" shall mean the copyright owner or entity authorized by 13 | the copyright owner that is granting the License. 14 | 15 | "Legal Entity" shall mean the union of the acting entity and all 16 | other entities that control, are controlled by, or are under common 17 | control with that entity. For the purposes of this definition, 18 | "control" means (i) the power, direct or indirect, to cause the 19 | direction or management of such entity, whether by contract or 20 | otherwise, or (ii) ownership of fifty percent (50%) or more of the 21 | outstanding shares, or (iii) beneficial ownership of such entity. 22 | 23 | "You" (or "Your") shall mean an individual or Legal Entity 24 | exercising permissions granted by this License. 25 | 26 | "Source" form shall mean the preferred form for making modifications, 27 | including but not limited to software source code, documentation 28 | source, and configuration files. 29 | 30 | "Object" form shall mean any form resulting from mechanical 31 | transformation or translation of a Source form, including but 32 | not limited to compiled object code, generated documentation, 33 | and conversions to other media types. 34 | 35 | "Work" shall mean the work of authorship, whether in Source or 36 | Object form, made available under the License, as indicated by a 37 | copyright notice that is included in or attached to the work 38 | (an example is provided in the Appendix below). 39 | 40 | "Derivative Works" shall mean any work, whether in Source or Object 41 | form, that is based on (or derived from) the Work and for which the 42 | editorial revisions, annotations, elaborations, or other modifications 43 | represent, as a whole, an original work of authorship. For the purposes 44 | of this License, Derivative Works shall not include works that remain 45 | separable from, or merely link (or bind by name) to the interfaces of, 46 | the Work and Derivative Works thereof. 47 | 48 | "Contribution" shall mean any work of authorship, including 49 | the original version of the Work and any modifications or additions 50 | to that Work or Derivative Works thereof, that is intentionally 51 | submitted to Licensor for inclusion in the Work by the copyright owner 52 | or by an individual or Legal Entity authorized to submit on behalf of 53 | the copyright owner. For the purposes of this definition, "submitted" 54 | means any form of electronic, verbal, or written communication sent 55 | to the Licensor or its representatives, including but not limited to 56 | communication on electronic mailing lists, source code control systems, 57 | and issue tracking systems that are managed by, or on behalf of, the 58 | Licensor for the purpose of discussing and improving the Work, but 59 | excluding communication that is conspicuously marked or otherwise 60 | designated in writing by the copyright owner as "Not a Contribution." 61 | 62 | "Contributor" shall mean Licensor and any individual or Legal Entity 63 | on behalf of whom a Contribution has been received by Licensor and 64 | subsequently incorporated within the Work. 65 | 66 | 2. Grant of Copyright License. Subject to the terms and conditions of 67 | this License, each Contributor hereby grants to You a perpetual, 68 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 69 | copyright license to reproduce, prepare Derivative Works of, 70 | publicly display, publicly perform, sublicense, and distribute the 71 | Work and such Derivative Works in Source or Object form. 72 | 73 | 3. Grant of Patent License. Subject to the terms and conditions of 74 | this License, each Contributor hereby grants to You a perpetual, 75 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 76 | (except as stated in this section) patent license to make, have made, 77 | use, offer to sell, sell, import, and otherwise transfer the Work, 78 | where such license applies only to those patent claims licensable 79 | by such Contributor that are necessarily infringed by their 80 | Contribution(s) alone or by combination of their Contribution(s) 81 | with the Work to which such Contribution(s) was submitted. If You 82 | institute patent litigation against any entity (including a 83 | cross-claim or counterclaim in a lawsuit) alleging that the Work 84 | or a Contribution incorporated within the Work constitutes direct 85 | or contributory patent infringement, then any patent licenses 86 | granted to You under this License for that Work shall terminate 87 | as of the date such litigation is filed. 88 | 89 | 4. Redistribution. You may reproduce and distribute copies of the 90 | Work or Derivative Works thereof in any medium, with or without 91 | modifications, and in Source or Object form, provided that You 92 | meet the following conditions: 93 | 94 | (a) You must give any other recipients of the Work or 95 | Derivative Works a copy of this License; and 96 | 97 | (b) You must cause any modified files to carry prominent notices 98 | stating that You changed the files; and 99 | 100 | (c) You must retain, in the Source form of any Derivative Works 101 | that You distribute, all copyright, patent, trademark, and 102 | attribution notices from the Source form of the Work, 103 | excluding those notices that do not pertain to any part of 104 | the Derivative Works; and 105 | 106 | (d) If the Work includes a "NOTICE" text file as part of its 107 | distribution, then any Derivative Works that You distribute must 108 | include a readable copy of the attribution notices contained 109 | within such NOTICE file, excluding those notices that do not 110 | pertain to any part of the Derivative Works, in at least one 111 | of the following places: within a NOTICE text file distributed 112 | as part of the Derivative Works; within the Source form or 113 | documentation, if provided along with the Derivative Works; or, 114 | within a display generated by the Derivative Works, if and 115 | wherever such third-party notices normally appear. The contents 116 | of the NOTICE file are for informational purposes only and 117 | do not modify the License. You may add Your own attribution 118 | notices within Derivative Works that You distribute, alongside 119 | or as an addendum to the NOTICE text from the Work, provided 120 | that such additional attribution notices cannot be construed 121 | as modifying the License. 122 | 123 | You may add Your own copyright statement to Your modifications and 124 | may provide additional or different license terms and conditions 125 | for use, reproduction, or distribution of Your modifications, or 126 | for any such Derivative Works as a whole, provided Your use, 127 | reproduction, and distribution of the Work otherwise complies with 128 | the conditions stated in this License. 129 | 130 | 5. Submission of Contributions. Unless You explicitly state otherwise, 131 | any Contribution intentionally submitted for inclusion in the Work 132 | by You to the Licensor shall be under the terms and conditions of 133 | this License, without any additional terms or conditions. 134 | Notwithstanding the above, nothing herein shall supersede or modify 135 | the terms of any separate license agreement you may have executed 136 | with Licensor regarding such Contributions. 137 | 138 | 6. Trademarks. This License does not grant permission to use the trade 139 | names, trademarks, service marks, or product names of the Licensor, 140 | except as required for reasonable and customary use in describing the 141 | origin of the Work and reproducing the content of the NOTICE file. 142 | 143 | 7. Disclaimer of Warranty. Unless required by applicable law or 144 | agreed to in writing, Licensor provides the Work (and each 145 | Contributor provides its Contributions) on an "AS IS" BASIS, 146 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 147 | implied, including, without limitation, any warranties or conditions 148 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 149 | PARTICULAR PURPOSE. You are solely responsible for determining the 150 | appropriateness of using or redistributing the Work and assume any 151 | risks associated with Your exercise of permissions under this License. 152 | 153 | 8. Limitation of Liability. In no event and under no legal theory, 154 | whether in tort (including negligence), contract, or otherwise, 155 | unless required by applicable law (such as deliberate and grossly 156 | negligent acts) or agreed to in writing, shall any Contributor be 157 | liable to You for damages, including any direct, indirect, special, 158 | incidental, or consequential damages of any character arising as a 159 | result of this License or out of the use or inability to use the 160 | Work (including but not limited to damages for loss of goodwill, 161 | work stoppage, computer failure or malfunction, or any and all 162 | other commercial damages or losses), even if such Contributor 163 | has been advised of the possibility of such damages. 164 | 165 | 9. Accepting Warranty or Additional Liability. While redistributing 166 | the Work or Derivative Works thereof, You may choose to offer, 167 | and charge a fee for, acceptance of support, warranty, indemnity, 168 | or other liability obligations and/or rights consistent with this 169 | License. However, in accepting such obligations, You may act only 170 | on Your own behalf and on Your sole responsibility, not on behalf 171 | of any other Contributor, and only if You agree to indemnify, 172 | defend, and hold each Contributor harmless for any liability 173 | incurred by, or claims asserted against, such Contributor by reason 174 | of your accepting any such warranty or additional liability. 175 | 176 | END OF TERMS AND CONDITIONS -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- 1 | VERSION=1.4.0 2 | DATE=$(shell DATE) 3 | BOOTSTRAP = ./bootstrap.css 4 | BOOTSTRAP_MIN = ./bootstrap.min.css 5 | BOOTSTRAP_LESS = ./lib/bootstrap.less 6 | LESS_COMPRESSOR ?= `which lessc` 7 | UGLIFY_JS ?= `which uglifyjs` 8 | WATCHR ?= `which watchr` 9 | 10 | build: 11 | @@if test ! -z ${LESS_COMPRESSOR}; then \ 12 | sed -e 's/@VERSION/'"v${VERSION}"'/' -e 's/@DATE/'"${DATE}"'/' <${BOOTSTRAP_LESS} >${BOOTSTRAP_LESS}.tmp; \ 13 | lessc ${BOOTSTRAP_LESS}.tmp > ${BOOTSTRAP}; \ 14 | lessc ${BOOTSTRAP_LESS}.tmp > ${BOOTSTRAP_MIN} --compress; \ 15 | rm -f ${BOOTSTRAP_LESS}.tmp; \ 16 | echo "Bootstrap successfully built! - `date`"; \ 17 | else \ 18 | echo "You must have the LESS compiler installed in order to build Bootstrap."; \ 19 | echo "You can install it by running: npm install less -g"; \ 20 | fi 21 | 22 | js/min: 23 | @@if test ! -z ${UGLIFY_JS}; then \ 24 | mkdir -p js/min; \ 25 | uglifyjs -o js/min/bootstrap-alerts.min.js js/bootstrap-alerts.js;\ 26 | uglifyjs -o js/min/bootstrap-buttons.min.js js/bootstrap-buttons.js;\ 27 | uglifyjs -o js/min/bootstrap-dropdown.min.js js/bootstrap-dropdown.js;\ 28 | uglifyjs -o js/min/bootstrap-modal.min.js js/bootstrap-modal.js;\ 29 | uglifyjs -o js/min/bootstrap-popover.min.js js/bootstrap-popover.js;\ 30 | uglifyjs -o js/min/bootstrap-scrollspy.min.js js/bootstrap-scrollspy.js;\ 31 | uglifyjs -o js/min/bootstrap-tabs.min.js js/bootstrap-tabs.js;\ 32 | uglifyjs -o js/min/bootstrap-twipsy.min.js js/bootstrap-twipsy.js;\ 33 | else \ 34 | echo "You must have the UGLIFYJS minifier installed in order to minify Bootstrap's js."; \ 35 | echo "You can install it by running: npm install uglify-js -g"; \ 36 | fi 37 | 38 | watch: 39 | @@if test ! -z ${WATCHR}; then \ 40 | echo "Watching less files..."; \ 41 | watchr -e "watch('lib/.*\.less') { system 'make' }"; \ 42 | else \ 43 | echo "You must have the watchr installed in order to watch Bootstrap less files."; \ 44 | echo "You can install it by running: gem install watchr"; \ 45 | fi 46 | 47 | .PHONY: build watch -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | FBOOTSTRAPP 2 | ================= 3 | 4 | Fbootstrapp is a toolkit for kickstarting the development of facebook iframe apps. 5 | 6 | It is based on Twitter's excellent Bootstrap. 7 | Just as that, it includes base CSS styles for typography, forms, buttons, tables, grids, navigation, alerts, and more. 8 | 9 | However, these are all styled in colors reminiscing facebook's UI. 10 | 11 | There are two 12-column grids included, one for 520px (fan-page), the other one for 760px (standalone app). 12 | Put your content in a ```
``` or a ```
``` 13 | 14 | 15 | Usage 16 | ----- 17 | 18 | You can use Fbootstrapp in one of two ways: just drop the compiled CSS into any new project and start cranking, or run LESS on your site and compile on the fly like a boss. 19 | 20 | Here's what the LESS version looks like: 21 | 22 | ``` html 23 | 24 | 25 | ``` 26 | 27 | Or if you prefer, the standard css way: 28 | 29 | ``` html 30 | 31 | ``` 32 | 33 | For more info, refer to the bootstrap docs @ http://twitter.github.com/bootstrap 34 | The usage is identical. 35 | 36 | 37 | Bug tracker 38 | ----------- 39 | 40 | Have a bug? Please create an issue here on GitHub! 41 | 42 | https://github.com/ckrack/fbootstrapp/issues 43 | 44 | 45 | Authors 46 | ------- 47 | 48 | **Clemens Krack (Fbootstrapp)** 49 | 50 | + http://twitter.com/clmnsk 51 | + http://github.com/ckrack 52 | 53 | **Mark Otto (Bootstrap)** 54 | 55 | + http://twitter.com/mdo 56 | + http://github.com/markdotto 57 | 58 | **Jacob Thornton (Bootstrap)** 59 | 60 | + http://twitter.com/fat 61 | + http://github.com/fat 62 | 63 | 64 | License 65 | --------------------- 66 | 67 | Copyright 2011 Twitter, Inc. 68 | Copyright 2011 C. Krack 69 | 70 | Licensed under the Apache License, Version 2.0: http://www.apache.org/licenses/LICENSE-2.0 -------------------------------------------------------------------------------- /TODO.md: -------------------------------------------------------------------------------- 1 | # FORMS - add styles for a condensed form no labels, just inputs and the actions bar (like commenting, status update) - update the actions bar to resemble facebook's a bit more # H5BP - include parts of h5bp, that are not in the mixins yet. (not the reset) - use h5bp .htaccess, html # FB Specific - add javascript sdk -------------------------------------------------------------------------------- /docs/assets/css/docs.css: -------------------------------------------------------------------------------- 1 | /* Add additional stylesheets below 2 | -------------------------------------------------- */ 3 | /* 4 | Bootstrap's documentation styles 5 | Special styles for presenting Bootstrap's documentation and examples 6 | */ 7 | 8 | /* Body and structure 9 | -------------------------------------------------- */ 10 | body { 11 | background-color: #fff; 12 | position: relative; 13 | } 14 | section { 15 | padding-top: 60px; 16 | } 17 | section > .row { 18 | margin-bottom: 10px; 19 | } 20 | 21 | 22 | /* Jumbotrons 23 | -------------------------------------------------- */ 24 | .jumbotron { 25 | min-width: 940px; 26 | padding-top: 40px; 27 | } 28 | .jumbotron .inner { 29 | background: transparent url(../img/grid-18px.png) top center; 30 | padding: 45px 0; 31 | -webkit-box-shadow: inset 0 10px 30px rgba(0,0,0,.3); 32 | -moz-box-shadow: inset 0 10px 30px rgba(0,0,0,.3); 33 | /* box-shadow: inset 0 10px 30px rgba(0,0,0,.3); 34 | */} 35 | .jumbotron h1, 36 | .jumbotron p { 37 | margin-bottom: 9px; 38 | color: #fff; 39 | text-align: center; 40 | text-shadow: 0 1px 1px rgba(0,0,0,.3); 41 | } 42 | .jumbotron h1 { 43 | font-size: 54px; 44 | line-height: 1; 45 | text-shadow: 0 1px 2px rgba(0,0,0,.5); 46 | } 47 | .jumbotron p { 48 | font-weight: 300; 49 | } 50 | .jumbotron .lead { 51 | font-size: 20px; 52 | line-height: 27px; 53 | } 54 | .jumbotron p a { 55 | color: #fff; 56 | font-weight: bold; 57 | } 58 | 59 | /* Specific jumbotrons 60 | ------------------------- */ 61 | /* main docs page */ 62 | .masthead { 63 | background-color: #049cd9; 64 | background-repeat: no-repeat; 65 | background-image: -webkit-gradient(linear, left top, left bottom, from(#004D9F), to(#049cd9)); 66 | background-image: -webkit-linear-gradient(#004D9F, #049cd9); 67 | background-image: -moz-linear-gradient(#004D9F, #049cd9); 68 | background-image: -o-linear-gradient(top, #004D9F, #049cd9); 69 | background-image: -khtml-gradient(linear, left top, left bottom, from(#004D9F), to(#049cd9)); 70 | filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#004D9F', endColorstr='#049cd9', GradientType=0); /* IE8 and down */ 71 | } 72 | /* supporting docs pages */ 73 | .subhead { 74 | background-color: #767d80; 75 | background-repeat: no-repeat; 76 | background-image: -webkit-gradient(linear, left top, left bottom, from(#565d60), to(#767d80)); 77 | background-image: -webkit-linear-gradient(#565d60, #767d80); 78 | background-image: -moz-linear-gradient(#565d60, #767d80); 79 | background-image: -o-linear-gradient(top, #565d60, #767d80); 80 | background-image: -khtml-gradient(linear, left top, left bottom, from(#565d60), to(#767d80)); 81 | filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#565d60', endColorstr='#767d80', GradientType=0); /* IE8 and down */ 82 | } 83 | .subhead .inner { 84 | padding: 36px 0 27px; 85 | } 86 | .subhead h1, 87 | .subhead p { 88 | text-align: left; 89 | } 90 | .subhead h1 { 91 | font-size: 40px; 92 | } 93 | .subhead p a { 94 | font-weight: normal; 95 | } 96 | 97 | 98 | /* Footer 99 | -------------------------------------------------- */ 100 | .footer { 101 | background-color: #eee; 102 | min-width: 940px; 103 | padding: 30px 0; 104 | text-shadow: 0 1px 0 #fff; 105 | border-top: 1px solid #e5e5e5; 106 | -webkit-box-shadow: inset 0 5px 15px rgba(0,0,0,.025); 107 | -moz-box-shadow: inset 0 5px 15px rgba(0,0,0,.025); 108 | /* box-shadow: inset 0 5px 15px rgba(0,0,0,.025); 109 | */} 110 | .footer p { 111 | color: #555; 112 | } 113 | 114 | 115 | /* Quickstart section for getting le code 116 | -------------------------------------------------- */ 117 | .quickstart { 118 | background-color: #f5f5f5; 119 | background-repeat: repeat-x; 120 | background-image: -khtml-gradient(linear, left top, left bottom, from(#f9f9f9), to(#f5f5f5)); 121 | background-image: -moz-linear-gradient(#f9f9f9, #f5f5f5); 122 | background-image: -ms-linear-gradient(#f9f9f9, #f5f5f5); 123 | background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #f9f9f9), color-stop(100%, #f5f5f5)); 124 | background-image: -webkit-linear-gradient(#f9f9f9, #f5f5f5); 125 | background-image: -o-linear-gradient(#f9f9f9, #f5f5f5); 126 | -ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr='#f9f9f9', endColorstr='#f5f5f5', GradientType=0)"; 127 | filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#f9f9f9', endColorstr='#f5f5f5', GradientType=0); 128 | background-image: linear-gradient(#f9f9f9, #f5f5f5); 129 | border-top: 1px solid #fff; 130 | border-bottom: 1px solid #eee; 131 | } 132 | .quickstart .container { 133 | margin-bottom: 0; 134 | } 135 | .quickstart .row { 136 | margin: 0 -20px; 137 | -webkit-box-shadow: 1px 0 0 #f9f9f9; 138 | -moz-box-shadow: 1px 0 0 #f9f9f9; 139 | box-shadow: 1px 0 0 #f9f9f9; 140 | } 141 | .quickstart [class*="span"] { 142 | width: 285px; 143 | height: 117px; 144 | margin-left: 0; 145 | padding: 17px 20px 26px; 146 | border-left: 1px solid #eee; 147 | -webkit-box-shadow: inset 1px 0 0 #f9f9f9; 148 | -moz-box-shadow: inset 1px 0 0 #f9f9f9; 149 | box-shadow: inset 1px 0 0 #f9f9f9; 150 | } 151 | .quickstart [class*="span"]:last-child { 152 | border-right: 1px solid #eee; 153 | width: 286px; 154 | } 155 | .quickstart h6, 156 | .quickstart p { 157 | line-height: 18px; 158 | text-align: center; 159 | margin-bottom: 9px; 160 | color: #333; 161 | } 162 | .quickstart .current-version, 163 | .quickstart .current-version a { 164 | color: #999; 165 | } 166 | .quickstart h6 { 167 | color: #999; 168 | } 169 | .quickstart textarea { 170 | display: block; 171 | width: 275px; 172 | height: auto; 173 | margin: 0 0 9px; 174 | line-height: 21px; 175 | white-space: nowrap; 176 | overflow: hidden; 177 | } 178 | 179 | 180 | /* Special grid styles 181 | -------------------------------------------------- */ 182 | .show-grid { 183 | margin-top: 10px; 184 | margin-bottom: 10px; 185 | } 186 | .show-grid [class*="span"] { 187 | background: #eee; 188 | text-align: center; 189 | -webkit-border-radius: 3px; 190 | -moz-border-radius: 3px; 191 | border-radius: 3px; 192 | min-height: 30px; 193 | line-height: 30px; 194 | } 195 | .show-grid:hover [class*="span"] { 196 | background: #ddd; 197 | } 198 | .show-grid .show-grid { 199 | margin-top: 0; 200 | margin-bottom: 0; 201 | } 202 | .show-grid .show-grid [class*="span"] { 203 | background-color: #ccc; 204 | } 205 | 206 | 207 | /* Render mini layout previews 208 | -------------------------------------------------- */ 209 | .mini-layout { 210 | border: 1px solid #ddd; 211 | -webkit-border-radius: 6px; 212 | -moz-border-radius: 6px; 213 | border-radius: 6px; 214 | -webkit-box-shadow: 0 1px 2px rgba(0,0,0,.075); 215 | -moz-box-shadow: 0 1px 2px rgba(0,0,0,.075); 216 | box-shadow: 0 1px 2px rgba(0,0,0,.075); 217 | } 218 | .mini-layout { 219 | height: 240px; 220 | margin-bottom: 20px; 221 | padding: 9px; 222 | } 223 | .mini-layout div { 224 | -webkit-border-radius: 3px; 225 | -moz-border-radius: 3px; 226 | border-radius: 3px; 227 | } 228 | .mini-layout .mini-layout-body { 229 | background-color: #dceaf4; 230 | margin: 0 auto; 231 | width: 240px; 232 | height: 240px; 233 | } 234 | .mini-layout.fluid .mini-layout-sidebar, 235 | .mini-layout.fluid .mini-layout-header, 236 | .mini-layout.fluid .mini-layout-body { 237 | float: left; 238 | } 239 | .mini-layout.fluid .mini-layout-sidebar { 240 | background-color: #bbd8e9; 241 | width: 90px; 242 | height: 240px; 243 | } 244 | .mini-layout.fluid .mini-layout-body { 245 | width: 300px; 246 | margin-left: 10px; 247 | } 248 | 249 | 250 | /* Topbar special styles 251 | -------------------------------------------------- */ 252 | .topbar-wrapper { 253 | position: relative; 254 | height: 40px; 255 | margin: 5px 0 15px; 256 | } 257 | .topbar-wrapper .topbar { 258 | position: absolute; 259 | margin: 0 -20px; 260 | } 261 | .topbar-wrapper .topbar .topbar-inner { 262 | padding-left: 20px; 263 | padding-right: 20px; 264 | -webkit-border-radius: 4px; 265 | -moz-border-radius: 4px; 266 | border-radius: 4px; 267 | } 268 | 269 | /* Topbar in js docs 270 | ------------------------- */ 271 | #bootstrap-js .topbar-wrapper { 272 | z-index: 1; 273 | } 274 | #bootstrap-js .topbar-wrapper .topbar { 275 | position: absolute; 276 | margin: 0 -20px; 277 | } 278 | #bootstrap-js .topbar-wrapper .topbar .topbar-inner { 279 | padding-left: 20px; 280 | padding-right: 20px; 281 | -webkit-border-radius: 4px; 282 | -moz-border-radius: 4px; 283 | border-radius: 4px; 284 | } 285 | #bootstrap-js .topbar-wrapper .container { 286 | width: auto; 287 | } 288 | 289 | 290 | /* Popover docs 291 | -------------------------------------------------- */ 292 | .popover-well { 293 | min-height: 160px; 294 | } 295 | .popover-well .popover { 296 | display: block; 297 | } 298 | .popover-well .popover-wrapper { 299 | width: 50%; 300 | height: 160px; 301 | float: left; 302 | margin-left: 55px; 303 | position: relative; 304 | } 305 | .popover-well .popover-menu-wrapper { 306 | height: 80px; 307 | } 308 | img.large-bird { 309 | margin: 5px 0 0 310px; 310 | opacity: .1; 311 | } 312 | 313 | /* Pretty Print 314 | -------------------------------------------------- */ 315 | pre.prettyprint { 316 | overflow: hidden; 317 | } -------------------------------------------------------------------------------- /docs/assets/ico/bootstrap-apple-114x114.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ckrack/fbootstrapp/468b7599961931a65f18b6dc95433b1bfb670b82/docs/assets/ico/bootstrap-apple-114x114.png -------------------------------------------------------------------------------- /docs/assets/ico/bootstrap-apple-57x57.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ckrack/fbootstrapp/468b7599961931a65f18b6dc95433b1bfb670b82/docs/assets/ico/bootstrap-apple-57x57.png -------------------------------------------------------------------------------- /docs/assets/ico/bootstrap-apple-72x72.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ckrack/fbootstrapp/468b7599961931a65f18b6dc95433b1bfb670b82/docs/assets/ico/bootstrap-apple-72x72.png -------------------------------------------------------------------------------- /docs/assets/ico/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ckrack/fbootstrapp/468b7599961931a65f18b6dc95433b1bfb670b82/docs/assets/ico/favicon.ico -------------------------------------------------------------------------------- /docs/assets/img/bird.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ckrack/fbootstrapp/468b7599961931a65f18b6dc95433b1bfb670b82/docs/assets/img/bird.png -------------------------------------------------------------------------------- /docs/assets/img/browsers.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ckrack/fbootstrapp/468b7599961931a65f18b6dc95433b1bfb670b82/docs/assets/img/browsers.png -------------------------------------------------------------------------------- /docs/assets/img/example-diagram-01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ckrack/fbootstrapp/468b7599961931a65f18b6dc95433b1bfb670b82/docs/assets/img/example-diagram-01.png -------------------------------------------------------------------------------- /docs/assets/img/example-diagram-02.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ckrack/fbootstrapp/468b7599961931a65f18b6dc95433b1bfb670b82/docs/assets/img/example-diagram-02.png -------------------------------------------------------------------------------- /docs/assets/img/example-diagram-03.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ckrack/fbootstrapp/468b7599961931a65f18b6dc95433b1bfb670b82/docs/assets/img/example-diagram-03.png -------------------------------------------------------------------------------- /docs/assets/img/grid-18px.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ckrack/fbootstrapp/468b7599961931a65f18b6dc95433b1bfb670b82/docs/assets/img/grid-18px.png -------------------------------------------------------------------------------- /docs/assets/img/twitter-logo-no-bird.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ckrack/fbootstrapp/468b7599961931a65f18b6dc95433b1bfb670b82/docs/assets/img/twitter-logo-no-bird.png -------------------------------------------------------------------------------- /docs/assets/js/application.js: -------------------------------------------------------------------------------- 1 | $(document).ready(function(){ 2 | 3 | // table sort example 4 | // ================== 5 | 6 | $("#sortTableExample").tablesorter( { sortList: [[ 1, 0 ]] } ) 7 | 8 | 9 | // add on logic 10 | // ============ 11 | 12 | $('.add-on :checkbox').click(function () { 13 | if ($(this).attr('checked')) { 14 | $(this).parents('.add-on').addClass('active') 15 | } else { 16 | $(this).parents('.add-on').removeClass('active') 17 | } 18 | }) 19 | 20 | 21 | // Disable certain links in docs 22 | // ============================= 23 | // Please do not carry these styles over to your projects, it's merely here to prevent button clicks form taking you away from your spot on page 24 | 25 | $('ul.tabs a, ul.pills a, .pagination a, .well .btn, .actions .btn, .alert-message .btn, a.close').click(function (e) { 26 | e.preventDefault() 27 | }) 28 | 29 | // Copy code blocks in docs 30 | $(".copy-code").focus(function () { 31 | var el = this; 32 | // push select to event loop for chrome :{o 33 | setTimeout(function () { $(el).select(); }, 0); 34 | }); 35 | 36 | 37 | // POSITION STATIC TWIPSIES 38 | // ======================== 39 | 40 | $(window).bind( 'load resize', function () { 41 | $(".twipsies a").each(function () { 42 | $(this) 43 | .twipsy({ 44 | live: false 45 | , placement: $(this).attr('title') 46 | , trigger: 'manual' 47 | , offset: 2 48 | }) 49 | .twipsy('show') 50 | }) 51 | }) 52 | }); 53 | -------------------------------------------------------------------------------- /docs/assets/js/google-code-prettify/prettify.css: -------------------------------------------------------------------------------- 1 | .com { color: #93a1a1; } 2 | .lit { color: #195f91; } 3 | .pun, .opn, .clo { color: #93a1a1; } 4 | .fun { color: #dc322f; } 5 | .str, .atv { color: #268bd2; } 6 | .kwd, .tag { color: #195f91; } 7 | .typ, .atn, .dec, .var { color: #CB4B16; } 8 | .pln { color: #93a1a1; } 9 | .prettyprint { 10 | background-color: #fefbf3; 11 | padding: 9px; 12 | border: 1px solid rgba(0,0,0,.2); 13 | -webkit-box-shadow: 0 1px 2px rgba(0,0,0,.1); 14 | -moz-box-shadow: 0 1px 2px rgba(0,0,0,.1); 15 | box-shadow: 0 1px 2px rgba(0,0,0,.1); 16 | } 17 | 18 | /* Specify class=linenums on a pre to get line numbering */ 19 | ol.linenums { 20 | margin: 0 0 0 40px; 21 | } 22 | /* IE indents via margin-left */ 23 | ol.linenums li { 24 | padding: 0 5px; 25 | color: rgba(0,0,0,.15); 26 | line-height: 20px; 27 | -webkit-border-radius: 2px; 28 | -moz-border-radius: 2px; 29 | border-radius: 2px; 30 | } 31 | /* Alternate shading for lines */ 32 | li.L1, li.L3, li.L5, li.L7, li.L9 { } 33 | 34 | /* 35 | $base03: #002b36; 36 | $base02: #073642; 37 | $base01: #586e75; 38 | $base00: #657b83; 39 | $base0: #839496; 40 | $base1: #93a1a1; 41 | $base2: #eee8d5; 42 | $base3: #fdf6e3; 43 | $yellow: #b58900; 44 | $orange: #cb4b16; 45 | $red: #dc322f; 46 | $magenta: #d33682; 47 | $violet: #6c71c4; 48 | $blue: #268bd2; 49 | $cyan: #2aa198; 50 | $green: #859900; 51 | */ 52 | 53 | 54 | /* 55 | #1d1f21 Background 56 | #282a2e Current Line 57 | #373b41 Selection 58 | #c5c8c6 Foreground 59 | #969896 Comment 60 | #cc6666 Red 61 | #de935f Orange 62 | #f0c674 Yellow 63 | #b5bd68 Green 64 | #8abeb7 Aqua 65 | #81a2be Blue 66 | #b294bb Purple 67 | */ 68 | 69 | 70 | /* DARK THEME */ 71 | /* ---------- */ 72 | 73 | .prettyprint-dark { 74 | background-color: #1d1f21; 75 | border: 0; 76 | padding: 10px; 77 | } 78 | .prettyprint-dark .linenums li { 79 | color: #444; 80 | } 81 | .prettyprint-dark .linenums li:hover { 82 | background-color: #282a2e; 83 | } 84 | /* tags in html */ 85 | .prettyprint-dark .kwd, 86 | .prettyprint-dark .tag { color: #cc6666; } 87 | /* html attr */ 88 | .prettyprint-dark .typ, 89 | .prettyprint-dark .atn, 90 | .prettyprint-dark .dec, 91 | .prettyprint-dark .var { color: #de935f; } 92 | /* html attr values */ 93 | .prettyprint-dark .str, 94 | .prettyprint-dark .atv { color: #b5bd68; } 95 | -------------------------------------------------------------------------------- /docs/assets/js/google-code-prettify/prettify.js: -------------------------------------------------------------------------------- 1 | var q=null;window.PR_SHOULD_USE_CONTINUATION=!0; 2 | (function(){function L(a){function m(a){var f=a.charCodeAt(0);if(f!==92)return f;var b=a.charAt(1);return(f=r[b])?f:"0"<=b&&b<="7"?parseInt(a.substring(1),8):b==="u"||b==="x"?parseInt(a.substring(2),16):a.charCodeAt(1)}function e(a){if(a<32)return(a<16?"\\x0":"\\x")+a.toString(16);a=String.fromCharCode(a);if(a==="\\"||a==="-"||a==="["||a==="]")a="\\"+a;return a}function h(a){for(var f=a.substring(1,a.length-1).match(/\\u[\dA-Fa-f]{4}|\\x[\dA-Fa-f]{2}|\\[0-3][0-7]{0,2}|\\[0-7]{1,2}|\\[\S\s]|[^\\]/g),a= 3 | [],b=[],o=f[0]==="^",c=o?1:0,i=f.length;c122||(d<65||j>90||b.push([Math.max(65,j)|32,Math.min(d,90)|32]),d<97||j>122||b.push([Math.max(97,j)&-33,Math.min(d,122)&-33]))}}b.sort(function(a,f){return a[0]-f[0]||f[1]-a[1]});f=[];j=[NaN,NaN];for(c=0;ci[0]&&(i[1]+1>i[0]&&b.push("-"),b.push(e(i[1])));b.push("]");return b.join("")}function y(a){for(var f=a.source.match(/\[(?:[^\\\]]|\\[\S\s])*]|\\u[\dA-Fa-f]{4}|\\x[\dA-Fa-f]{2}|\\\d+|\\[^\dux]|\(\?[!:=]|[()^]|[^()[\\^]+/g),b=f.length,d=[],c=0,i=0;c=2&&a==="["?f[c]=h(j):a!=="\\"&&(f[c]=j.replace(/[A-Za-z]/g,function(a){a=a.charCodeAt(0);return"["+String.fromCharCode(a&-33,a|32)+"]"}));return f.join("")}for(var t=0,s=!1,l=!1,p=0,d=a.length;p=5&&"lang-"===b.substring(0,5))&&!(o&&typeof o[1]==="string"))c=!1,b="src";c||(r[f]=b)}i=d;d+=f.length;if(c){c=o[1];var j=f.indexOf(c),k=j+c.length;o[2]&&(k=f.length-o[2].length,j=k-c.length);b=b.substring(5);B(l+i,f.substring(0,j),e,p);B(l+i+j,c,C(b,c),p);B(l+i+k,f.substring(k),e,p)}else p.push(l+i,b)}a.e=p}var h={},y;(function(){for(var e=a.concat(m), 9 | l=[],p={},d=0,g=e.length;d=0;)h[n.charAt(k)]=r;r=r[1];n=""+r;p.hasOwnProperty(n)||(l.push(r),p[n]=q)}l.push(/[\S\s]/);y=L(l)})();var t=m.length;return e}function u(a){var m=[],e=[];a.tripleQuotedStrings?m.push(["str",/^(?:'''(?:[^'\\]|\\[\S\s]|''?(?=[^']))*(?:'''|$)|"""(?:[^"\\]|\\[\S\s]|""?(?=[^"]))*(?:"""|$)|'(?:[^'\\]|\\[\S\s])*(?:'|$)|"(?:[^"\\]|\\[\S\s])*(?:"|$))/,q,"'\""]):a.multiLineStrings?m.push(["str",/^(?:'(?:[^'\\]|\\[\S\s])*(?:'|$)|"(?:[^"\\]|\\[\S\s])*(?:"|$)|`(?:[^\\`]|\\[\S\s])*(?:`|$))/, 10 | q,"'\"`"]):m.push(["str",/^(?:'(?:[^\n\r'\\]|\\.)*(?:'|$)|"(?:[^\n\r"\\]|\\.)*(?:"|$))/,q,"\"'"]);a.verbatimStrings&&e.push(["str",/^@"(?:[^"]|"")*(?:"|$)/,q]);var h=a.hashComments;h&&(a.cStyleComments?(h>1?m.push(["com",/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,q,"#"]):m.push(["com",/^#(?:(?:define|elif|else|endif|error|ifdef|include|ifndef|line|pragma|undef|warning)\b|[^\n\r]*)/,q,"#"]),e.push(["str",/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h|[a-z]\w*)>/,q])):m.push(["com",/^#[^\n\r]*/, 11 | q,"#"]));a.cStyleComments&&(e.push(["com",/^\/\/[^\n\r]*/,q]),e.push(["com",/^\/\*[\S\s]*?(?:\*\/|$)/,q]));a.regexLiterals&&e.push(["lang-regex",/^(?:^^\.?|[!+-]|!=|!==|#|%|%=|&|&&|&&=|&=|\(|\*|\*=|\+=|,|-=|->|\/|\/=|:|::|;|<|<<|<<=|<=|=|==|===|>|>=|>>|>>=|>>>|>>>=|[?@[^]|\^=|\^\^|\^\^=|{|\||\|=|\|\||\|\|=|~|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\s*(\/(?=[^*/])(?:[^/[\\]|\\[\S\s]|\[(?:[^\\\]]|\\[\S\s])*(?:]|$))+\/)/]);(h=a.types)&&e.push(["typ",h]);a=(""+a.keywords).replace(/^ | $/g, 12 | "");a.length&&e.push(["kwd",RegExp("^(?:"+a.replace(/[\s,]+/g,"|")+")\\b"),q]);m.push(["pln",/^\s+/,q," \r\n\t\xa0"]);e.push(["lit",/^@[$_a-z][\w$@]*/i,q],["typ",/^(?:[@_]?[A-Z]+[a-z][\w$@]*|\w+_t\b)/,q],["pln",/^[$_a-z][\w$@]*/i,q],["lit",/^(?:0x[\da-f]+|(?:\d(?:_\d+)*\d*(?:\.\d*)?|\.\d\+)(?:e[+-]?\d+)?)[a-z]*/i,q,"0123456789"],["pln",/^\\[\S\s]?/,q],["pun",/^.[^\s\w"-$'./@\\`]*/,q]);return x(m,e)}function D(a,m){function e(a){switch(a.nodeType){case 1:if(k.test(a.className))break;if("BR"===a.nodeName)h(a), 13 | a.parentNode&&a.parentNode.removeChild(a);else for(a=a.firstChild;a;a=a.nextSibling)e(a);break;case 3:case 4:if(p){var b=a.nodeValue,d=b.match(t);if(d){var c=b.substring(0,d.index);a.nodeValue=c;(b=b.substring(d.index+d[0].length))&&a.parentNode.insertBefore(s.createTextNode(b),a.nextSibling);h(a);c||a.parentNode.removeChild(a)}}}}function h(a){function b(a,d){var e=d?a.cloneNode(!1):a,f=a.parentNode;if(f){var f=b(f,1),g=a.nextSibling;f.appendChild(e);for(var h=g;h;h=g)g=h.nextSibling,f.appendChild(h)}return e} 14 | for(;!a.nextSibling;)if(a=a.parentNode,!a)return;for(var a=b(a.nextSibling,0),e;(e=a.parentNode)&&e.nodeType===1;)a=e;d.push(a)}var k=/(?:^|\s)nocode(?:\s|$)/,t=/\r\n?|\n/,s=a.ownerDocument,l;a.currentStyle?l=a.currentStyle.whiteSpace:window.getComputedStyle&&(l=s.defaultView.getComputedStyle(a,q).getPropertyValue("white-space"));var p=l&&"pre"===l.substring(0,3);for(l=s.createElement("LI");a.firstChild;)l.appendChild(a.firstChild);for(var d=[l],g=0;g=0;){var h=m[e];A.hasOwnProperty(h)?window.console&&console.warn("cannot override language handler %s",h):A[h]=a}}function C(a,m){if(!a||!A.hasOwnProperty(a))a=/^\s*=o&&(h+=2);e>=c&&(a+=2)}}catch(w){"console"in window&&console.log(w&&w.stack?w.stack:w)}}var v=["break,continue,do,else,for,if,return,while"],w=[[v,"auto,case,char,const,default,double,enum,extern,float,goto,int,long,register,short,signed,sizeof,static,struct,switch,typedef,union,unsigned,void,volatile"], 18 | "catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"],F=[w,"alignof,align_union,asm,axiom,bool,concept,concept_map,const_cast,constexpr,decltype,dynamic_cast,explicit,export,friend,inline,late_check,mutable,namespace,nullptr,reinterpret_cast,static_assert,static_cast,template,typeid,typename,using,virtual,where"],G=[w,"abstract,boolean,byte,extends,final,finally,implements,import,instanceof,null,native,package,strictfp,super,synchronized,throws,transient"], 19 | H=[G,"as,base,by,checked,decimal,delegate,descending,dynamic,event,fixed,foreach,from,group,implicit,in,interface,internal,into,is,lock,object,out,override,orderby,params,partial,readonly,ref,sbyte,sealed,stackalloc,string,select,uint,ulong,unchecked,unsafe,ushort,var"],w=[w,"debugger,eval,export,function,get,null,set,undefined,var,with,Infinity,NaN"],I=[v,"and,as,assert,class,def,del,elif,except,exec,finally,from,global,import,in,is,lambda,nonlocal,not,or,pass,print,raise,try,with,yield,False,True,None"], 20 | J=[v,"alias,and,begin,case,class,def,defined,elsif,end,ensure,false,in,module,next,nil,not,or,redo,rescue,retry,self,super,then,true,undef,unless,until,when,yield,BEGIN,END"],v=[v,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"],K=/^(DIR|FILE|vector|(de|priority_)?queue|list|stack|(const_)?iterator|(multi)?(set|map)|bitset|u?(int|float)\d*)/,N=/\S/,O=u({keywords:[F,H,w,"caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END"+ 21 | I,J,v],hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0}),A={};k(O,["default-code"]);k(x([],[["pln",/^[^]*(?:>|$)/],["com",/^<\!--[\S\s]*?(?:--\>|$)/],["lang-",/^<\?([\S\s]+?)(?:\?>|$)/],["lang-",/^<%([\S\s]+?)(?:%>|$)/],["pun",/^(?:<[%?]|[%?]>)/],["lang-",/^]*>([\S\s]+?)<\/xmp\b[^>]*>/i],["lang-js",/^]*>([\S\s]*?)(<\/script\b[^>]*>)/i],["lang-css",/^]*>([\S\s]*?)(<\/style\b[^>]*>)/i],["lang-in.tag",/^(<\/?[a-z][^<>]*>)/i]]), 22 | ["default-markup","htm","html","mxml","xhtml","xml","xsl"]);k(x([["pln",/^\s+/,q," \t\r\n"],["atv",/^(?:"[^"]*"?|'[^']*'?)/,q,"\"'"]],[["tag",/^^<\/?[a-z](?:[\w-.:]*\w)?|\/?>$/i],["atn",/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^\s"'>]*(?:[^\s"'/>]|\/(?=\s)))/],["pun",/^[/<->]+/],["lang-js",/^on\w+\s*=\s*"([^"]+)"/i],["lang-js",/^on\w+\s*=\s*'([^']+)'/i],["lang-js",/^on\w+\s*=\s*([^\s"'>]+)/i],["lang-css",/^style\s*=\s*"([^"]+)"/i],["lang-css",/^style\s*=\s*'([^']+)'/i],["lang-css", 23 | /^style\s*=\s*([^\s"'>]+)/i]]),["in.tag"]);k(x([],[["atv",/^[\S\s]+/]]),["uq.val"]);k(u({keywords:F,hashComments:!0,cStyleComments:!0,types:K}),["c","cc","cpp","cxx","cyc","m"]);k(u({keywords:"null,true,false"}),["json"]);k(u({keywords:H,hashComments:!0,cStyleComments:!0,verbatimStrings:!0,types:K}),["cs"]);k(u({keywords:G,cStyleComments:!0}),["java"]);k(u({keywords:v,hashComments:!0,multiLineStrings:!0}),["bsh","csh","sh"]);k(u({keywords:I,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}), 24 | ["cv","py"]);k(u({keywords:"caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END",hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["perl","pl","pm"]);k(u({keywords:J,hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["rb"]);k(u({keywords:w,cStyleComments:!0,regexLiterals:!0}),["js"]);k(u({keywords:"all,and,by,catch,class,else,extends,false,finally,for,if,in,is,isnt,loop,new,no,not,null,of,off,on,or,return,super,then,true,try,unless,until,when,while,yes", 25 | hashComments:3,cStyleComments:!0,multilineStrings:!0,tripleQuotedStrings:!0,regexLiterals:!0}),["coffee"]);k(x([],[["str",/^[\S\s]+/]]),["regex"]);window.prettyPrintOne=function(a,m,e){var h=document.createElement("PRE");h.innerHTML=a;e&&D(h,e);E({g:m,i:e,h:h});return h.innerHTML};window.prettyPrint=function(a){function m(){for(var e=window.PR_SHOULD_USE_CONTINUATION?l.now()+250:Infinity;p=0){var k=k.match(g),f,b;if(b= 26 | !k){b=n;for(var o=void 0,c=b.firstChild;c;c=c.nextSibling)var i=c.nodeType,o=i===1?o?b:c:i===3?N.test(c.nodeValue)?b:o:o;b=(f=o===b?void 0:o)&&"CODE"===f.tagName}b&&(k=f.className.match(g));k&&(k=k[1]);b=!1;for(o=n.parentNode;o;o=o.parentNode)if((o.tagName==="pre"||o.tagName==="code"||o.tagName==="xmp")&&o.className&&o.className.indexOf("prettyprint")>=0){b=!0;break}b||((b=(b=n.className.match(/\blinenums\b(?::(\d+))?/))?b[1]&&b[1].length?+b[1]:!0:!1)&&D(n,b),d={g:k,h:n,i:b},E(d))}}p 2 | 3 | 4 | 5 | Bootstrap, from Twitter 6 | 7 | 8 | 9 | 10 | 13 | 14 | 15 | 16 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 |
79 |
80 |
81 | Project name 82 | 87 |
88 | 89 | 90 | 91 |
92 |
93 |
94 |
95 | 96 |
97 | 98 |
99 | 102 |
103 |
104 |

Main content

105 |
106 |
107 |

Secondary content

108 |
109 |
110 |
111 | 112 |
113 |

© Company 2011

114 |
115 | 116 |
117 | 118 | 119 | 120 | -------------------------------------------------------------------------------- /examples/fb-app.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | App / Fbootstrapp by Clemens Krack, based on Bootstrap, from Twitter 6 | 7 | 8 | 9 | 10 | 13 | 14 | 18 | 19 | 20 | 21 | 22 | 23 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 |
37 | 38 | 40 |
41 | 42 |
43 |

Hello, world!

44 |

Vestibulum id ligula porta felis euismod semper. Integer posuere erat a ante venenatis dapibus posuere velit aliquet. Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit.

45 |

Learn more »

46 |
47 | 48 | 49 |
50 |
51 |

Heading

52 |

Etiam porta sem malesuada magna mollis euismod. Integer posuere erat a ante venenatis dapibus posuere velit aliquet. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum. Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit.

53 |

View details »

54 |
55 |
56 |

Heading

57 |

Donec id elit non mi porta gravida at eget metus. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. Etiam porta sem malesuada magna mollis euismod. Donec sed odio dui.

58 |

View details »

59 |
60 |
61 |

Heading

62 |

Donec sed odio dui. Cras justo odio, dapibus ac facilisis in, egestas eget quam. Vestibulum id ligula porta felis euismod semper. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus.

63 |

View details »

64 |
65 |
66 |
67 | 68 | 70 |
71 | 74 |

Big

75 | 87 |

Medium

88 | 105 |

Small

106 | 128 |
129 | 130 | 131 | 132 | 134 |
135 | 138 | 139 |

Example: Default table styles

140 | 141 | 142 | 143 | 144 | 145 | 146 | 147 | 148 | 149 | 150 | 151 | 152 | 153 | 154 | 155 | 156 | 157 | 158 | 159 | 160 | 161 | 162 | 163 | 164 | 165 | 166 | 167 | 168 | 169 |
#First NameLast NameLanguage
1SomeOneEnglish
2JoeSixpackEnglish
3StuDentCode
170 | 171 |

Example: Zebra-striped

172 | 173 | 174 | 175 | 176 | 177 | 178 | 179 | 180 | 181 | 182 | 183 | 184 | 185 | 186 | 187 | 188 | 189 | 190 | 191 | 192 | 193 | 194 | 195 | 196 | 197 | 198 | 199 | 200 | 201 | 204 | 205 | 206 | 209 | 212 | 213 | 214 |
#First NameLast NameLanguage
1SomeOneEnglish
2JoeSixpackEnglish
3StuDentCode
202 | span 4 columns 203 |
207 | span 2 columns 208 | 210 | span 2 columns 211 |
215 | 216 |
217 | 218 | 219 | 220 | 222 |
223 | 226 | 227 |
228 |
229 | Example form legend 230 |
231 | 232 |
233 | 234 |
235 |
236 |
237 | 238 |
239 | 246 |
247 |
248 |
249 | 250 |
251 | 252 | Small snippet of help text 253 |
254 |
255 |
256 | 257 |
258 | 259 | Success! 260 |
261 |
262 |
263 | 264 |
265 | 266 | Ruh roh! 267 |
268 |
269 |
270 | 271 |
272 | Example form legend 273 |
274 | 275 |
276 |
    277 |
  • 278 | 282 |
  • 283 |
  • 284 | 288 |
  • 289 |
  • 290 | 294 |
  • 295 |
  • 296 | 300 |
  • 301 |
302 | 303 | Note: Labels surround all the options for much larger click areas and a more usable form. 304 | 305 |
306 |
307 |
308 | 309 |
310 | 311 | 312 | Block of help text to describe the field above if need be. 313 | 314 |
315 |
316 |
317 | 318 |
319 |
    320 |
  • 321 | 325 |
  • 326 |
  • 327 | 331 |
  • 332 |
333 |
334 |
335 |
336 |   337 |   338 |   339 | 340 |
341 |
342 |
343 | 344 |
345 | 346 | 347 | 348 | 350 | 400 | 401 | 402 | 403 | 405 |
406 | 407 |
408 | × 409 |

Holy guacamole! Best check yo self, you’re not looking too good.

410 |
411 |
412 | × 413 |

Oh snap! Change this and that and try again.

414 |
415 |
416 | × 417 |

Well done! You successfully read this alert message.

418 |
419 |
420 | × 421 |

Heads up! This is an alert that needs your attention, but it’s not a huge priority just yet.

422 |
423 | 424 |
425 | × 426 |

Holy guacamole! This is a warning! Best check yo self, you’re not looking too good. Nulla vitae elit libero, a pharetra augue. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

427 | 430 |
431 |
432 | × 433 |

Oh snap! You got an error! Change this and that and try again.

434 |
    435 |
  • Duis mollis est non commodo luctus
  • 436 |
  • Nisi erat porttitor ligula
  • 437 |
  • Eget lacinia odio sem nec elit
  • 438 |
439 | 442 |
443 |
444 | × 445 |

Well done! You successfully read this alert message. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Maecenas faucibus mollis interdum.

446 | 449 |
450 |
451 | × 452 |

Heads up! This is an alert that needs your attention, but it’s not a huge priority just yet.

453 | 456 |
457 | 458 |
459 | 460 | 461 |
462 |

© Company 2011

463 |
464 | 465 |
466 | 467 | 468 | 469 | -------------------------------------------------------------------------------- /examples/fb-canvas.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Canvas / Fbootstrapp by Clemens Krack, based on Bootstrap, from Twitter 6 | 7 | 8 | 9 | 10 | 13 | 14 | 18 | 19 | 20 | 21 | 22 | 23 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 |
37 | 38 | 40 |
41 | 42 |
43 |

Hello, world!

44 |

Vestibulum id ligula porta felis euismod semper. Integer posuere erat a ante venenatis dapibus posuere velit aliquet. Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit.

45 |

Learn more »

46 |
47 | 48 | 49 |
50 |
51 |

Heading

52 |

Etiam porta sem malesuada magna mollis euismod. Integer posuere erat a ante venenatis dapibus posuere velit aliquet. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum. Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit.

53 |

View details »

54 |
55 |
56 |

Heading

57 |

Donec id elit non mi porta gravida at eget metus. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. Etiam porta sem malesuada magna mollis euismod. Donec sed odio dui.

58 |

View details »

59 |
60 |
61 |

Heading

62 |

Donec sed odio dui. Cras justo odio, dapibus ac facilisis in, egestas eget quam. Vestibulum id ligula porta felis euismod semper. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus.

63 |

View details »

64 |
65 |
66 |
67 | 68 | 70 |
71 | 74 | 75 | 87 | 109 | 141 | 142 |
143 | 144 | 145 | 147 |
148 | 151 | 152 |

Example: Default table styles

153 | 154 | 155 | 156 | 157 | 158 | 159 | 160 | 161 | 162 | 163 | 164 | 165 | 166 | 167 | 168 | 169 | 170 | 171 | 172 | 173 | 174 | 175 | 176 | 177 | 178 | 179 | 180 | 181 | 182 |
#First NameLast NameLanguage
1SomeOneEnglish
2JoeSixpackEnglish
3StuDentCode
183 | 184 |

Example: Zebra-striped

185 | 186 | 187 | 188 | 189 | 190 | 191 | 192 | 193 | 194 | 195 | 196 | 197 | 198 | 199 | 200 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 209 | 210 | 211 | 212 | 213 | 214 | 217 | 218 | 219 | 222 | 225 | 226 | 227 |
#First NameLast NameLanguage
1SomeOneEnglish
2JoeSixpackEnglish
3StuDentCode
215 | span 4 columns 216 |
220 | span 2 columns 221 | 223 | span 2 columns 224 |
228 | 229 |
230 | 231 | 232 | 233 | 235 |
236 | 239 | 240 |
241 |
242 | Example form legend 243 |
244 | 245 |
246 | 247 |
248 |
249 |
250 | 251 |
252 | 259 |
260 |
261 |
262 | 263 |
264 | Example form legend 265 |
266 | 267 |
268 |
    269 |
  • 270 | 274 |
  • 275 |
  • 276 | 280 |
  • 281 |
  • 282 | 286 |
  • 287 |
  • 288 | 292 |
  • 293 |
294 | 295 | Note: Labels surround all the options for much larger click areas and a more usable form. 296 | 297 |
298 |
299 |
300 | 301 |
302 | 303 | 304 | Block of help text to describe the field above if need be. 305 | 306 |
307 |
308 |
309 | 310 |
311 |
    312 |
  • 313 | 317 |
  • 318 |
  • 319 | 323 |
  • 324 |
325 |
326 |
327 |
328 |   329 |   330 |   331 | 332 |
333 |
334 |
335 | 336 |
337 | 338 | 339 | 340 | 342 | 392 | 393 | 394 | 395 | 397 |
398 | 399 |
400 | × 401 |

Holy guacamole! Best check yo self, you’re not looking too good.

402 |
403 |
404 | × 405 |

Oh snap! Change this and that and try again.

406 |
407 |
408 | × 409 |

Well done! You successfully read this alert message.

410 |
411 |
412 | × 413 |

Heads up! This is an alert that needs your attention, but it’s not a huge priority just yet.

414 |
415 | 416 |
417 | × 418 |

Holy guacamole! This is a warning! Best check yo self, you’re not looking too good. Nulla vitae elit libero, a pharetra augue. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

419 | 422 |
423 |
424 | × 425 |

Oh snap! You got an error! Change this and that and try again.

426 |
    427 |
  • Duis mollis est non commodo luctus
  • 428 |
  • Nisi erat porttitor ligula
  • 429 |
  • Eget lacinia odio sem nec elit
  • 430 |
431 | 434 |
435 |
436 | × 437 |

Well done! You successfully read this alert message. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Maecenas faucibus mollis interdum.

438 | 441 |
442 |
443 | × 444 |

Heads up! This is an alert that needs your attention, but it’s not a huge priority just yet.

445 | 448 |
449 | 450 |
451 | 452 |
453 |

© Company 2011

454 |
455 | 456 |
457 | 458 | 459 | 460 | -------------------------------------------------------------------------------- /examples/fluid.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Bootstrap, from Twitter 6 | 7 | 8 | 9 | 10 | 13 | 14 | 15 | 16 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 |
32 |
33 |
34 | Project name 35 | 40 |

Logged in as username

41 |
42 |
43 |
44 | 45 |
46 | 71 |
72 | 73 |
74 |

Hello, world!

75 |

Vestibulum id ligula porta felis euismod semper. Integer posuere erat a ante venenatis dapibus posuere velit aliquet. Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit.

76 |

Learn more »

77 |
78 | 79 |
80 |
81 |

Heading

82 |

Etiam porta sem malesuada magna mollis euismod. Integer posuere erat a ante venenatis dapibus posuere velit aliquet. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum. Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit.

83 |

View details »

84 |
85 |
86 |

Heading

87 |

Donec id elit non mi porta gravida at eget metus. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. Etiam porta sem malesuada magna mollis euismod. Donec sed odio dui.

88 |

View details »

89 |
90 |
91 |

Heading

92 |

Donec sed odio dui. Cras justo odio, dapibus ac facilisis in, egestas eget quam. Vestibulum id ligula porta felis euismod semper. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus.

93 |

View details »

94 |
95 |
96 |
97 | 98 |
99 |
100 |

Heading

101 |

Etiam porta sem malesuada magna mollis euismod. Integer posuere erat a ante venenatis dapibus posuere velit aliquet. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum. Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit.

102 |

View details »

103 |
104 |
105 |

Heading

106 |

Donec id elit non mi porta gravida at eget metus. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. Etiam porta sem malesuada magna mollis euismod. Donec sed odio dui.

107 |

View details »

108 |
109 |
110 |

Heading

111 |

Donec sed odio dui. Cras justo odio, dapibus ac facilisis in, egestas eget quam. Vestibulum id ligula porta felis euismod semper. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus.

112 |

View details »

113 |
114 |
115 |
116 |

© Company 2011

117 |
118 |
119 |
120 | 121 | 122 | -------------------------------------------------------------------------------- /examples/hero.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Bootstrap, from Twitter 6 | 7 | 8 | 9 | 10 | 13 | 14 | 15 | 16 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 |
32 |
33 |
34 | Project name 35 | 40 |
41 |
42 |
43 | 44 |
45 | 46 | 47 |
48 |

Hello, world!

49 |

Vestibulum id ligula porta felis euismod semper. Integer posuere erat a ante venenatis dapibus posuere velit aliquet. Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit.

50 |

Learn more »

51 |
52 | 53 | 54 |
55 |
56 |

Heading

57 |

Etiam porta sem malesuada magna mollis euismod. Integer posuere erat a ante venenatis dapibus posuere velit aliquet. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum. Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit.

58 |

View details »

59 |
60 |
61 |

Heading

62 |

Donec id elit non mi porta gravida at eget metus. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. Etiam porta sem malesuada magna mollis euismod. Donec sed odio dui.

63 |

View details »

64 |
65 |
66 |

Heading

67 |

Donec sed odio dui. Cras justo odio, dapibus ac facilisis in, egestas eget quam. Vestibulum id ligula porta felis euismod semper. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus.

68 |

View details »

69 |
70 |
71 | 72 |
73 |

© Company 2011

74 |
75 | 76 |
77 | 78 | 79 | 80 | -------------------------------------------------------------------------------- /js/bootstrap-alerts.js: -------------------------------------------------------------------------------- 1 | /* ========================================================== 2 | * bootstrap-alerts.js v1.4.0 3 | * http://twitter.github.com/bootstrap/javascript.html#alerts 4 | * ========================================================== 5 | * Copyright 2011 Twitter, Inc. 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * 11 | * http://www.apache.org/licenses/LICENSE-2.0 12 | * 13 | * Unless required by applicable law or agreed to in writing, software 14 | * distributed under the License is distributed on an "AS IS" BASIS, 15 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | * See the License for the specific language governing permissions and 17 | * limitations under the License. 18 | * ========================================================== */ 19 | 20 | 21 | !function( $ ){ 22 | 23 | "use strict" 24 | 25 | /* CSS TRANSITION SUPPORT (https://gist.github.com/373874) 26 | * ======================================================= */ 27 | 28 | var transitionEnd 29 | 30 | $(document).ready(function () { 31 | 32 | $.support.transition = (function () { 33 | var thisBody = document.body || document.documentElement 34 | , thisStyle = thisBody.style 35 | , support = thisStyle.transition !== undefined || thisStyle.WebkitTransition !== undefined || thisStyle.MozTransition !== undefined || thisStyle.MsTransition !== undefined || thisStyle.OTransition !== undefined 36 | return support 37 | })() 38 | 39 | // set CSS transition event type 40 | if ( $.support.transition ) { 41 | transitionEnd = "TransitionEnd" 42 | if ( $.browser.webkit ) { 43 | transitionEnd = "webkitTransitionEnd" 44 | } else if ( $.browser.mozilla ) { 45 | transitionEnd = "transitionend" 46 | } else if ( $.browser.opera ) { 47 | transitionEnd = "oTransitionEnd" 48 | } 49 | } 50 | 51 | }) 52 | 53 | /* ALERT CLASS DEFINITION 54 | * ====================== */ 55 | 56 | var Alert = function ( content, options ) { 57 | if (options == 'close') return this.close.call(content) 58 | this.settings = $.extend({}, $.fn.alert.defaults, options) 59 | this.$element = $(content) 60 | .delegate(this.settings.selector, 'click', this.close) 61 | } 62 | 63 | Alert.prototype = { 64 | 65 | close: function (e) { 66 | var $element = $(this) 67 | , className = 'alert-message' 68 | 69 | $element = $element.hasClass(className) ? $element : $element.parent() 70 | 71 | e && e.preventDefault() 72 | $element.removeClass('in') 73 | 74 | function removeElement () { 75 | $element.remove() 76 | } 77 | 78 | $.support.transition && $element.hasClass('fade') ? 79 | $element.bind(transitionEnd, removeElement) : 80 | removeElement() 81 | } 82 | 83 | } 84 | 85 | 86 | /* ALERT PLUGIN DEFINITION 87 | * ======================= */ 88 | 89 | $.fn.alert = function ( options ) { 90 | 91 | if ( options === true ) { 92 | return this.data('alert') 93 | } 94 | 95 | return this.each(function () { 96 | var $this = $(this) 97 | , data 98 | 99 | if ( typeof options == 'string' ) { 100 | 101 | data = $this.data('alert') 102 | 103 | if (typeof data == 'object') { 104 | return data[options].call( $this ) 105 | } 106 | 107 | } 108 | 109 | $(this).data('alert', new Alert( this, options )) 110 | 111 | }) 112 | } 113 | 114 | $.fn.alert.defaults = { 115 | selector: '.close' 116 | } 117 | 118 | $(document).ready(function () { 119 | new Alert($('body'), { 120 | selector: '.alert-message[data-alert] .close' 121 | }) 122 | }) 123 | 124 | }( window.jQuery || window.ender ); -------------------------------------------------------------------------------- /js/bootstrap-buttons.js: -------------------------------------------------------------------------------- 1 | /* ============================================================ 2 | * bootstrap-buttons.js v1.4.0 3 | * http://twitter.github.com/bootstrap/javascript.html#buttons 4 | * ============================================================ 5 | * Copyright 2011 Twitter, Inc. 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * 11 | * http://www.apache.org/licenses/LICENSE-2.0 12 | * 13 | * Unless required by applicable law or agreed to in writing, software 14 | * distributed under the License is distributed on an "AS IS" BASIS, 15 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | * See the License for the specific language governing permissions and 17 | * limitations under the License. 18 | * ============================================================ */ 19 | 20 | !function( $ ){ 21 | 22 | "use strict" 23 | 24 | function setState(el, state) { 25 | var d = 'disabled' 26 | , $el = $(el) 27 | , data = $el.data() 28 | 29 | state = state + 'Text' 30 | data.resetText || $el.data('resetText', $el.html()) 31 | 32 | $el.html( data[state] || $.fn.button.defaults[state] ) 33 | 34 | setTimeout(function () { 35 | state == 'loadingText' ? 36 | $el.addClass(d).attr(d, d) : 37 | $el.removeClass(d).removeAttr(d) 38 | }, 0) 39 | } 40 | 41 | function toggle(el) { 42 | $(el).toggleClass('active') 43 | } 44 | 45 | $.fn.button = function(options) { 46 | return this.each(function () { 47 | if (options == 'toggle') { 48 | return toggle(this) 49 | } 50 | options && setState(this, options) 51 | }) 52 | } 53 | 54 | $.fn.button.defaults = { 55 | loadingText: 'loading...' 56 | } 57 | 58 | $(function () { 59 | $('body').delegate('.btn[data-toggle]', 'click', function () { 60 | $(this).button('toggle') 61 | }) 62 | }) 63 | 64 | }( window.jQuery || window.ender ); -------------------------------------------------------------------------------- /js/bootstrap-dropdown.js: -------------------------------------------------------------------------------- 1 | /* ============================================================ 2 | * bootstrap-dropdown.js v1.4.0 3 | * http://twitter.github.com/bootstrap/javascript.html#dropdown 4 | * ============================================================ 5 | * Copyright 2011 Twitter, Inc. 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * 11 | * http://www.apache.org/licenses/LICENSE-2.0 12 | * 13 | * Unless required by applicable law or agreed to in writing, software 14 | * distributed under the License is distributed on an "AS IS" BASIS, 15 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | * See the License for the specific language governing permissions and 17 | * limitations under the License. 18 | * ============================================================ */ 19 | 20 | 21 | !function( $ ){ 22 | 23 | "use strict" 24 | 25 | /* DROPDOWN PLUGIN DEFINITION 26 | * ========================== */ 27 | 28 | $.fn.dropdown = function ( selector ) { 29 | return this.each(function () { 30 | $(this).delegate(selector || d, 'click', function (e) { 31 | var li = $(this).parent('li') 32 | , isActive = li.hasClass('open') 33 | 34 | clearMenus() 35 | !isActive && li.toggleClass('open') 36 | return false 37 | }) 38 | }) 39 | } 40 | 41 | /* APPLY TO STANDARD DROPDOWN ELEMENTS 42 | * =================================== */ 43 | 44 | var d = 'a.menu, .dropdown-toggle' 45 | 46 | function clearMenus() { 47 | $(d).parent('li').removeClass('open') 48 | } 49 | 50 | $(function () { 51 | $('html').bind("click", clearMenus) 52 | $('body').dropdown( '[data-dropdown] a.menu, [data-dropdown] .dropdown-toggle' ) 53 | }) 54 | 55 | }( window.jQuery || window.ender ); 56 | -------------------------------------------------------------------------------- /js/bootstrap-modal.js: -------------------------------------------------------------------------------- 1 | /* ========================================================= 2 | * bootstrap-modal.js v1.4.0 3 | * http://twitter.github.com/bootstrap/javascript.html#modal 4 | * ========================================================= 5 | * Copyright 2011 Twitter, Inc. 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * 11 | * http://www.apache.org/licenses/LICENSE-2.0 12 | * 13 | * Unless required by applicable law or agreed to in writing, software 14 | * distributed under the License is distributed on an "AS IS" BASIS, 15 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | * See the License for the specific language governing permissions and 17 | * limitations under the License. 18 | * ========================================================= */ 19 | 20 | 21 | !function( $ ){ 22 | 23 | "use strict" 24 | 25 | /* CSS TRANSITION SUPPORT (https://gist.github.com/373874) 26 | * ======================================================= */ 27 | 28 | var transitionEnd 29 | 30 | $(document).ready(function () { 31 | 32 | $.support.transition = (function () { 33 | var thisBody = document.body || document.documentElement 34 | , thisStyle = thisBody.style 35 | , support = thisStyle.transition !== undefined || thisStyle.WebkitTransition !== undefined || thisStyle.MozTransition !== undefined || thisStyle.MsTransition !== undefined || thisStyle.OTransition !== undefined 36 | return support 37 | })() 38 | 39 | // set CSS transition event type 40 | if ( $.support.transition ) { 41 | transitionEnd = "TransitionEnd" 42 | if ( $.browser.webkit ) { 43 | transitionEnd = "webkitTransitionEnd" 44 | } else if ( $.browser.mozilla ) { 45 | transitionEnd = "transitionend" 46 | } else if ( $.browser.opera ) { 47 | transitionEnd = "oTransitionEnd" 48 | } 49 | } 50 | 51 | }) 52 | 53 | 54 | /* MODAL PUBLIC CLASS DEFINITION 55 | * ============================= */ 56 | 57 | var Modal = function ( content, options ) { 58 | this.settings = $.extend({}, $.fn.modal.defaults, options) 59 | this.$element = $(content) 60 | .delegate('.close', 'click.modal', $.proxy(this.hide, this)) 61 | 62 | if ( this.settings.show ) { 63 | this.show() 64 | } 65 | 66 | return this 67 | } 68 | 69 | Modal.prototype = { 70 | 71 | toggle: function () { 72 | return this[!this.isShown ? 'show' : 'hide']() 73 | } 74 | 75 | , show: function () { 76 | var that = this 77 | this.isShown = true 78 | this.$element.trigger('show') 79 | 80 | escape.call(this) 81 | backdrop.call(this, function () { 82 | var transition = $.support.transition && that.$element.hasClass('fade') 83 | 84 | that.$element 85 | .appendTo(document.body) 86 | .show() 87 | 88 | if (transition) { 89 | that.$element[0].offsetWidth // force reflow 90 | } 91 | 92 | that.$element.addClass('in') 93 | 94 | transition ? 95 | that.$element.one(transitionEnd, function () { that.$element.trigger('shown') }) : 96 | that.$element.trigger('shown') 97 | 98 | }) 99 | 100 | return this 101 | } 102 | 103 | , hide: function (e) { 104 | e && e.preventDefault() 105 | 106 | if ( !this.isShown ) { 107 | return this 108 | } 109 | 110 | var that = this 111 | this.isShown = false 112 | 113 | escape.call(this) 114 | 115 | this.$element 116 | .trigger('hide') 117 | .removeClass('in') 118 | 119 | $.support.transition && this.$element.hasClass('fade') ? 120 | hideWithTransition.call(this) : 121 | hideModal.call(this) 122 | 123 | return this 124 | } 125 | 126 | } 127 | 128 | 129 | /* MODAL PRIVATE METHODS 130 | * ===================== */ 131 | 132 | function hideWithTransition() { 133 | // firefox drops transitionEnd events :{o 134 | var that = this 135 | , timeout = setTimeout(function () { 136 | that.$element.unbind(transitionEnd) 137 | hideModal.call(that) 138 | }, 500) 139 | 140 | this.$element.one(transitionEnd, function () { 141 | clearTimeout(timeout) 142 | hideModal.call(that) 143 | }) 144 | } 145 | 146 | function hideModal (that) { 147 | this.$element 148 | .hide() 149 | .trigger('hidden') 150 | 151 | backdrop.call(this) 152 | } 153 | 154 | function backdrop ( callback ) { 155 | var that = this 156 | , animate = this.$element.hasClass('fade') ? 'fade' : '' 157 | if ( this.isShown && this.settings.backdrop ) { 158 | var doAnimate = $.support.transition && animate 159 | 160 | this.$backdrop = $('