├── .gitignore ├── LICENSE ├── Makefile ├── README.md ├── bootstrap ├── .gitignore ├── .travis.yml ├── CHANGELOG.md ├── CONTRIBUTING.md ├── LICENSE ├── Makefile ├── README.md ├── component.json ├── composer.json ├── docs │ ├── assets │ │ ├── css │ │ │ ├── bootstrap-responsive.css │ │ │ ├── bootstrap.css │ │ │ └── docs.css │ │ ├── ico │ │ │ ├── apple-touch-icon-114-precomposed.png │ │ │ ├── apple-touch-icon-144-precomposed.png │ │ │ ├── apple-touch-icon-57-precomposed.png │ │ │ ├── apple-touch-icon-72-precomposed.png │ │ │ ├── favicon.ico │ │ │ └── favicon.png │ │ ├── img │ │ │ ├── bootstrap-docs-readme.png │ │ │ ├── bootstrap-mdo-sfmoma-01.jpg │ │ │ ├── bootstrap-mdo-sfmoma-02.jpg │ │ │ ├── bootstrap-mdo-sfmoma-03.jpg │ │ │ ├── bs-docs-bootstrap-features.png │ │ │ ├── bs-docs-masthead-pattern.png │ │ │ ├── bs-docs-responsive-illustrations.png │ │ │ ├── bs-docs-twitter-github.png │ │ │ ├── example-sites │ │ │ │ ├── 8020select.png │ │ │ │ ├── adoptahydrant.png │ │ │ │ ├── breakingnews.png │ │ │ │ ├── fleetio.png │ │ │ │ ├── gathercontent.png │ │ │ │ ├── jshint.png │ │ │ │ ├── kippt.png │ │ │ │ └── soundready.png │ │ │ ├── examples │ │ │ │ ├── bootstrap-example-carousel.png │ │ │ │ ├── bootstrap-example-fluid.png │ │ │ │ ├── bootstrap-example-justified-nav.png │ │ │ │ ├── bootstrap-example-marketing-narrow.png │ │ │ │ ├── bootstrap-example-marketing.png │ │ │ │ ├── bootstrap-example-signin.png │ │ │ │ ├── bootstrap-example-starter.png │ │ │ │ ├── bootstrap-example-sticky-footer.png │ │ │ │ ├── browser-icon-chrome.png │ │ │ │ ├── browser-icon-firefox.png │ │ │ │ ├── browser-icon-safari.png │ │ │ │ ├── slide-01.jpg │ │ │ │ ├── slide-02.jpg │ │ │ │ └── slide-03.jpg │ │ │ ├── glyphicons-halflings-white.png │ │ │ ├── glyphicons-halflings.png │ │ │ ├── grid-baseline-20px.png │ │ │ ├── less-logo-large.png │ │ │ └── responsive-illustrations.png │ │ └── js │ │ │ ├── README.md │ │ │ ├── application.js │ │ │ ├── bootstrap-affix.js │ │ │ ├── bootstrap-alert.js │ │ │ ├── bootstrap-button.js │ │ │ ├── bootstrap-carousel.js │ │ │ ├── bootstrap-collapse.js │ │ │ ├── bootstrap-dropdown.js │ │ │ ├── bootstrap-modal.js │ │ │ ├── bootstrap-popover.js │ │ │ ├── bootstrap-scrollspy.js │ │ │ ├── bootstrap-tab.js │ │ │ ├── bootstrap-tooltip.js │ │ │ ├── bootstrap-transition.js │ │ │ ├── bootstrap-typeahead.js │ │ │ ├── bootstrap.js │ │ │ ├── bootstrap.min.js │ │ │ ├── google-code-prettify │ │ │ ├── prettify.css │ │ │ └── prettify.js │ │ │ ├── holder │ │ │ └── holder.js │ │ │ ├── html5shiv.js │ │ │ └── jquery.js │ ├── base-css.html │ ├── build │ │ ├── index.js │ │ └── package.json │ ├── components.html │ ├── customize.html │ ├── examples │ │ ├── carousel.html │ │ ├── fluid.html │ │ ├── hero.html │ │ ├── justified-nav.html │ │ ├── marketing-narrow.html │ │ ├── signin.html │ │ ├── starter-template.html │ │ ├── sticky-footer-navbar.html │ │ └── sticky-footer.html │ ├── extend.html │ ├── getting-started.html │ ├── index.html │ ├── javascript.html │ ├── scaffolding.html │ └── templates │ │ ├── layout.mustache │ │ └── pages │ │ ├── base-css.mustache │ │ ├── components.mustache │ │ ├── customize.mustache │ │ ├── extend.mustache │ │ ├── getting-started.mustache │ │ ├── index.mustache │ │ ├── javascript.mustache │ │ └── scaffolding.mustache ├── img │ ├── glyphicons-halflings-white.png │ └── glyphicons-halflings.png ├── js │ ├── .jshintrc │ ├── bootstrap-affix.js │ ├── bootstrap-alert.js │ ├── bootstrap-button.js │ ├── bootstrap-carousel.js │ ├── bootstrap-collapse.js │ ├── bootstrap-dropdown.js │ ├── bootstrap-modal.js │ ├── bootstrap-popover.js │ ├── bootstrap-scrollspy.js │ ├── bootstrap-tab.js │ ├── bootstrap-tooltip.js │ ├── bootstrap-transition.js │ ├── bootstrap-typeahead.js │ └── tests │ │ ├── index.html │ │ ├── phantom.js │ │ ├── server.js │ │ ├── unit │ │ ├── bootstrap-affix.js │ │ ├── bootstrap-alert.js │ │ ├── bootstrap-button.js │ │ ├── bootstrap-carousel.js │ │ ├── bootstrap-collapse.js │ │ ├── bootstrap-dropdown.js │ │ ├── bootstrap-modal.js │ │ ├── bootstrap-phantom.js │ │ ├── bootstrap-popover.js │ │ ├── bootstrap-scrollspy.js │ │ ├── bootstrap-tab.js │ │ ├── bootstrap-tooltip.js │ │ ├── bootstrap-transition.js │ │ └── bootstrap-typeahead.js │ │ └── vendor │ │ ├── jquery.js │ │ ├── qunit.css │ │ └── qunit.js ├── less │ ├── accordion.less │ ├── alerts.less │ ├── bootstrap.less │ ├── breadcrumbs.less │ ├── button-groups.less │ ├── buttons.less │ ├── carousel.less │ ├── close.less │ ├── code.less │ ├── component-animations.less │ ├── dropdowns.less │ ├── forms.less │ ├── grid.less │ ├── hero-unit.less │ ├── labels-badges.less │ ├── layouts.less │ ├── media.less │ ├── mixins.less │ ├── modals.less │ ├── navbar.less │ ├── navs.less │ ├── pager.less │ ├── pagination.less │ ├── popovers.less │ ├── progress-bars.less │ ├── reset.less │ ├── responsive-1200px-min.less │ ├── responsive-767px-max.less │ ├── responsive-768px-979px.less │ ├── responsive-navbar.less │ ├── responsive-utilities.less │ ├── responsive.less │ ├── scaffolding.less │ ├── sprites.less │ ├── tables.less │ ├── tests │ │ ├── buttons.html │ │ ├── css-tests.css │ │ ├── css-tests.html │ │ ├── forms-responsive.html │ │ ├── forms.html │ │ ├── navbar-fixed-top.html │ │ ├── navbar-static-top.html │ │ └── navbar.html │ ├── thumbnails.less │ ├── tooltip.less │ ├── type.less │ ├── utilities.less │ ├── variables.less │ └── wells.less └── package.json ├── img ├── flames.gif ├── glyphicons-halflings-white.png ├── glyphicons-halflings.png ├── microfab.gif ├── progress.gif ├── rainbow.gif ├── stars.gif └── test │ ├── 7upspot.gif │ ├── americanflag.gif │ ├── community.gif │ ├── computer-01.gif │ ├── computer.gif │ ├── construction.gif │ ├── counter.gif │ ├── counter2.gif │ ├── divider.gif │ ├── divider1.gif │ ├── divider2.gif │ ├── divider3.gif │ ├── divider4.gif │ ├── drudgesiren.gif │ ├── emailme.gif │ ├── funky.gif │ ├── geocities.jpg │ ├── hacker.gif │ ├── heart.gif │ ├── hot.gif │ ├── ie_logo.gif │ ├── mailkitten.gif │ ├── mchammer.gif │ ├── new.gif │ ├── new2.gif │ ├── noframes.gif │ ├── notepad.gif │ ├── ns_logo.gif │ ├── sign-in.gif │ ├── spinningearth.gif │ ├── underconstruction.gif │ ├── wabwalk.gif │ ├── webtrips.gif │ └── yahooweek.gif ├── index.html ├── package.json ├── swatch ├── bootstrap-responsive.css ├── bootstrap-responsive.min.css ├── bootstrap.css ├── bootstrap.min.css ├── bootswatch.less └── variables.less ├── swatchmaker-responsive.less ├── swatchmaker.less ├── test ├── bootswatch.css ├── bootswatch.js ├── test-full.html └── test.html └── watcher.rb /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_STORE 2 | node_modules -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2015 Divshot, Inc. 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in 13 | all copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | THE SOFTWARE. -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # BUILD BOOTSWATCH SWATCH 3 | # 4 | 5 | OUTPUT_PATH = swatch 6 | 7 | bootswatch: 8 | recess --compile swatchmaker.less > ${OUTPUT_PATH}/bootstrap.css 9 | recess --compress swatchmaker.less > ${OUTPUT_PATH}/bootstrap.min.css 10 | recess --compile swatchmaker-responsive.less > ${OUTPUT_PATH}/bootstrap-responsive.css 11 | recess --compress swatchmaker-responsive.less > ${OUTPUT_PATH}/bootstrap-responsive.min.css 12 | 13 | bootstrap: 14 | -test -d bootstrap && rm -r bootstrap 15 | curl --location -o latest_bootstrap.tar.gz https://github.com/twitter/bootstrap/tarball/master 16 | tar -xvzf latest_bootstrap.tar.gz 17 | mv twitter-bootstrap* bootstrap 18 | rm latest_bootstrap.tar.gz 19 | 20 | default: 21 | -test -f ${OUTPUT_PATH}/variables.less && rm ${OUTPUT_PATH}/variables.less 22 | -test -f ${OUTPUT_PATH}/bootswatch.less && rm ${OUTPUT_PATH}/bootswatch.less 23 | curl --location -o ${OUTPUT_PATH}/variables.less https://raw.github.com/twitter/bootstrap/master/less/variables.less 24 | curl --location -o ${OUTPUT_PATH}/bootswatch.less https://raw.github.com/thomaspark/bootswatch/gh-pages/swatchmaker/swatch/bootswatch.less 25 | make bootswatch 26 | 27 | watcher: 28 | ruby watcher.rb 29 | 30 | server: 31 | open http://localhost:8000/test/test.html 32 | python -m SimpleHTTPServer 33 | 34 | .PHONY: bootswatch bootstrap default watcher server 35 | 36 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Geo 2 | 3 | **Geo** is a timeless [Twitter Bootstrap](http://twitter.github.com/bootstrap) theme built for the modern web. 4 | 5 | ## Usage 6 | 7 | Download `bootstrap.css` or `bootstrap.min.css` from `/swatch`. Replace the default Bootstrap stylesheet with one of these files. 8 | 9 | To use the image backgrounds download the graphics inside `/img`. Graphics used on our test page can be found inside `/img/test`. 10 | 11 | ## Customization 12 | 13 | Geo was built with [Bootswatch Swatchmaker](https://github.com/thomaspark/bootswatch/tree/gh-pages/swatchmaker). 14 | 15 | To customize Geo edit `/swatch/variables.less` and `/swatch/bootswatch.less`. Refer to the Swatchmaker [README](https://github.com/thomaspark/bootswatch/tree/gh-pages/swatchmaker) for instructions to regenerate the Bootstrap stylesheet. 16 | 17 | ## License 18 | 19 | Copyright (c) 2013 Divshot 20 | 21 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: 22 | 23 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 24 | 25 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -------------------------------------------------------------------------------- /bootstrap/.gitignore: -------------------------------------------------------------------------------- 1 | # Numerous always-ignore extensions 2 | *.diff 3 | *.err 4 | *.orig 5 | *.log 6 | *.rej 7 | *.swo 8 | *.swp 9 | *.zip 10 | *.vi 11 | *~ 12 | *.sass-cache 13 | 14 | # OS or Editor folders 15 | .DS_Store 16 | ._* 17 | Thumbs.db 18 | .cache 19 | .project 20 | .settings 21 | .tmproj 22 | *.esproj 23 | nbproject 24 | *.sublime-project 25 | *.sublime-workspace 26 | 27 | # Komodo 28 | *.komodoproject 29 | .komodotools 30 | 31 | # Folders to ignore 32 | .hg 33 | .svn 34 | .CVS 35 | .idea 36 | node_modules 37 | dist 38 | -------------------------------------------------------------------------------- /bootstrap/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - 0.6 -------------------------------------------------------------------------------- /bootstrap/CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | # Contributing to Bootstrap 2 | 3 | Looking to contribute something to Bootstrap? **Here's how you can help.** 4 | 5 | 6 | 7 | ## Reporting issues 8 | 9 | We only accept issues that are bug reports or feature requests. Bugs must be isolated and reproducible problems that we can fix within the Bootstrap core. Please read the following guidelines before opening any issue. 10 | 11 | 1. **Search for existing issues.** We get a lot of duplicate issues, and you'd help us out a lot by first checking if someone else has reported the same issue. Moreover, the issue may have already been resolved with a fix available. 12 | 2. **Create an isolated and reproducible test case.** Be sure the problem exists in Bootstrap's code with a [reduced test case](http://css-tricks.com/reduced-test-cases/) that should be included in each bug report. 13 | 3. **Include a live example.** Make use of jsFiddle or jsBin to share your isolated test cases. 14 | 4. **Share as much information as possible.** Include operating system and version, browser and version, version of Bootstrap, customized or vanilla build, etc. where appropriate. Also include steps to reproduce the bug. 15 | 16 | 17 | 18 | ## Key branches 19 | 20 | - `master` is the latest, deployed version. 21 | - `gh-pages` is the hosted docs (not to be used for pull requests). 22 | - `*-wip` is the official work in progress branch for the next release. 23 | 24 | 25 | 26 | ## Notes on the repo 27 | 28 | As of v2.0.0, Bootstrap's documentation is powered by Mustache templates and built via `make` before each commit and release. This was done to enable internationalization (translation) in a future release by uploading our strings to the [Twitter Translation Center](http://translate.twttr.com/). Any edits to the docs should be first done in the Mustache files and then recompiled into the HTML. 29 | 30 | 31 | 32 | ## Pull requests 33 | 34 | - Try to submit pull requests against the latest `*-wip` branch for easier merging 35 | - Any changes to the docs must be made to the Mustache templates, not just the compiled HTML pages 36 | - CSS changes must be done in .less files first, never just the compiled files 37 | - If modifying the .less files, always recompile and commit the compiled files bootstrap.css and bootstrap.min.css 38 | - Try not to pollute your pull request with unintended changes--keep them simple and small 39 | - Try to share which browsers your code has been tested in before submitting a pull request 40 | 41 | 42 | 43 | ## Coding standards: HTML 44 | 45 | - Two spaces for indentation, never tabs 46 | - Double quotes only, never single quotes 47 | - Always use proper indentation 48 | - Use tags and elements appropriate for an HTML5 doctype (e.g., self-closing tags) 49 | 50 | 51 | 52 | ## Coding standards: CSS 53 | 54 | - Adhere to the [Recess CSS property order](http://markdotto.com/2011/11/29/css-property-order/) 55 | - Multiple-line approach (one property and value per line) 56 | - Always a space after a property's colon (.e.g, `display: block;` and not `display:block;`) 57 | - End all lines with a semi-colon 58 | - For multiple, comma-separated selectors, place each selector on it's own line 59 | - Attribute selectors, like `input[type="text"]` should always wrap the attribute's value in double quotes, for consistency and safety (see this [blog post on unquoted attribute values](http://mathiasbynens.be/notes/unquoted-attribute-values) that can lead to XSS attacks). 60 | 61 | 62 | 63 | ## Coding standards: JS 64 | 65 | - No semicolons 66 | - Comma first 67 | - 2 spaces (no tabs) 68 | - strict mode 69 | - "Attractive" 70 | 71 | 72 | 73 | ## License 74 | 75 | By contributing your code, you agree to license your contribution under the terms of the APLv2: https://github.com/twitter/bootstrap/blob/master/LICENSE 76 | -------------------------------------------------------------------------------- /bootstrap/Makefile: -------------------------------------------------------------------------------- 1 | BOOTSTRAP = ./docs/assets/css/bootstrap.css 2 | BOOTSTRAP_LESS = ./less/bootstrap.less 3 | BOOTSTRAP_RESPONSIVE = ./docs/assets/css/bootstrap-responsive.css 4 | BOOTSTRAP_RESPONSIVE_LESS = ./less/responsive.less 5 | DATE=$(shell date +%I:%M%p) 6 | CHECK=\033[32m✔\033[39m 7 | HR=\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\# 8 | 9 | 10 | # 11 | # BUILD DOCS 12 | # 13 | 14 | build: 15 | @echo "\n${HR}" 16 | @echo "Building Bootstrap..." 17 | @echo "${HR}\n" 18 | @./node_modules/.bin/jshint js/*.js --config js/.jshintrc 19 | @./node_modules/.bin/jshint js/tests/unit/*.js --config js/.jshintrc 20 | @echo "Running JSHint on javascript... ${CHECK} Done" 21 | @./node_modules/.bin/recess --compile ${BOOTSTRAP_LESS} > ${BOOTSTRAP} 22 | @./node_modules/.bin/recess --compile ${BOOTSTRAP_RESPONSIVE_LESS} > ${BOOTSTRAP_RESPONSIVE} 23 | @echo "Compiling LESS with Recess... ${CHECK} Done" 24 | @node docs/build 25 | @cp img/* docs/assets/img/ 26 | @cp js/*.js docs/assets/js/ 27 | @cp js/tests/vendor/jquery.js docs/assets/js/ 28 | @echo "Compiling documentation... ${CHECK} Done" 29 | @cat js/bootstrap-transition.js js/bootstrap-alert.js js/bootstrap-button.js js/bootstrap-carousel.js js/bootstrap-collapse.js js/bootstrap-dropdown.js js/bootstrap-modal.js js/bootstrap-tooltip.js js/bootstrap-popover.js js/bootstrap-scrollspy.js js/bootstrap-tab.js js/bootstrap-typeahead.js js/bootstrap-affix.js > docs/assets/js/bootstrap.js 30 | @./node_modules/.bin/uglifyjs -nc docs/assets/js/bootstrap.js > docs/assets/js/bootstrap.min.tmp.js 31 | @echo "/**\n* Bootstrap.js v2.3.1 by @fat & @mdo\n* Copyright 2012 Twitter, Inc.\n* http://www.apache.org/licenses/LICENSE-2.0.txt\n*/" > docs/assets/js/copyright.js 32 | @cat docs/assets/js/copyright.js docs/assets/js/bootstrap.min.tmp.js > docs/assets/js/bootstrap.min.js 33 | @rm docs/assets/js/copyright.js docs/assets/js/bootstrap.min.tmp.js 34 | @echo "Compiling and minifying javascript... ${CHECK} Done" 35 | @echo "\n${HR}" 36 | @echo "Bootstrap successfully built at ${DATE}." 37 | @echo "${HR}\n" 38 | @echo "Thanks for using Bootstrap," 39 | @echo "<3 @mdo and @fat\n" 40 | 41 | # 42 | # RUN JSHINT & QUNIT TESTS IN PHANTOMJS 43 | # 44 | 45 | test: 46 | ./node_modules/.bin/jshint js/*.js --config js/.jshintrc 47 | ./node_modules/.bin/jshint js/tests/unit/*.js --config js/.jshintrc 48 | node js/tests/server.js & 49 | phantomjs js/tests/phantom.js "http://localhost:3000/js/tests" 50 | kill -9 `cat js/tests/pid.txt` 51 | rm js/tests/pid.txt 52 | 53 | # 54 | # CLEANS THE ROOT DIRECTORY OF PRIOR BUILDS 55 | # 56 | 57 | clean: 58 | rm -r bootstrap 59 | 60 | # 61 | # BUILD SIMPLE BOOTSTRAP DIRECTORY 62 | # recess & uglifyjs are required 63 | # 64 | 65 | bootstrap: bootstrap-img bootstrap-css bootstrap-js 66 | 67 | 68 | # 69 | # JS COMPILE 70 | # 71 | bootstrap-js: bootstrap/js/*.js 72 | 73 | bootstrap/js/*.js: js/*.js 74 | mkdir -p bootstrap/js 75 | cat js/bootstrap-transition.js js/bootstrap-alert.js js/bootstrap-button.js js/bootstrap-carousel.js js/bootstrap-collapse.js js/bootstrap-dropdown.js js/bootstrap-modal.js js/bootstrap-tooltip.js js/bootstrap-popover.js js/bootstrap-scrollspy.js js/bootstrap-tab.js js/bootstrap-typeahead.js js/bootstrap-affix.js > bootstrap/js/bootstrap.js 76 | ./node_modules/.bin/uglifyjs -nc bootstrap/js/bootstrap.js > bootstrap/js/bootstrap.min.tmp.js 77 | echo "/*!\n* Bootstrap.js by @fat & @mdo\n* Copyright 2012 Twitter, Inc.\n* http://www.apache.org/licenses/LICENSE-2.0.txt\n*/" > bootstrap/js/copyright.js 78 | cat bootstrap/js/copyright.js bootstrap/js/bootstrap.min.tmp.js > bootstrap/js/bootstrap.min.js 79 | rm bootstrap/js/copyright.js bootstrap/js/bootstrap.min.tmp.js 80 | 81 | # 82 | # CSS COMPLILE 83 | # 84 | 85 | bootstrap-css: bootstrap/css/*.css 86 | 87 | bootstrap/css/*.css: less/*.less 88 | mkdir -p bootstrap/css 89 | ./node_modules/.bin/recess --compile ${BOOTSTRAP_LESS} > bootstrap/css/bootstrap.css 90 | ./node_modules/.bin/recess --compress ${BOOTSTRAP_LESS} > bootstrap/css/bootstrap.min.css 91 | ./node_modules/.bin/recess --compile ${BOOTSTRAP_RESPONSIVE_LESS} > bootstrap/css/bootstrap-responsive.css 92 | ./node_modules/.bin/recess --compress ${BOOTSTRAP_RESPONSIVE_LESS} > bootstrap/css/bootstrap-responsive.min.css 93 | 94 | # 95 | # IMAGES 96 | # 97 | 98 | bootstrap-img: bootstrap/img/* 99 | 100 | bootstrap/img/*: img/* 101 | mkdir -p bootstrap/img 102 | cp img/* bootstrap/img/ 103 | 104 | 105 | # 106 | # MAKE FOR GH-PAGES 4 FAT & MDO ONLY (O_O ) 107 | # 108 | 109 | gh-pages: bootstrap docs 110 | rm -f docs/assets/bootstrap.zip 111 | zip -r docs/assets/bootstrap.zip bootstrap 112 | rm -r bootstrap 113 | rm -f ../bootstrap-gh-pages/assets/bootstrap.zip 114 | node docs/build production 115 | cp -r docs/* ../bootstrap-gh-pages 116 | 117 | # 118 | # WATCH LESS FILES 119 | # 120 | 121 | watch: 122 | echo "Watching less files..."; \ 123 | watchr -e "watch('less/.*\.less') { system 'make' }" 124 | 125 | 126 | .PHONY: docs watch gh-pages bootstrap-img bootstrap-css bootstrap-js -------------------------------------------------------------------------------- /bootstrap/README.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | # [Bootstrap v2.3.1](http://twitter.github.com/bootstrap) [![Build Status](https://secure.travis-ci.org/twitter/bootstrap.png)](http://travis-ci.org/twitter/bootstrap) 6 | 7 | Bootstrap is a sleek, intuitive, and powerful front-end framework for faster and easier web development, created and maintained by [Mark Otto](http://twitter.com/mdo) and [Jacob Thornton](http://twitter.com/fat). 8 | 9 | To get started, checkout [http://getbootstrap.com](http://getbootstrap.com)! 10 | 11 | 12 | 13 | ## Quick start 14 | 15 | Three quick start options are available: 16 | 17 | * [Download the latest release](https://github.com/twitter/bootstrap/zipball/master). 18 | * Clone the repo: `git clone git://github.com/twitter/bootstrap.git`. 19 | * Install with Twitter's [Bower](http://twitter.github.com/bower): `bower install bootstrap`. 20 | 21 | 22 | 23 | ## Versioning 24 | 25 | For transparency and insight into our release cycle, and for striving to maintain backward compatibility, Bootstrap will be maintained under the Semantic Versioning guidelines as much as possible. 26 | 27 | Releases will be numbered with the following format: 28 | 29 | `..` 30 | 31 | And constructed with the following guidelines: 32 | 33 | * Breaking backward compatibility bumps the major (and resets the minor and patch) 34 | * New additions without breaking backward compatibility bumps the minor (and resets the patch) 35 | * Bug fixes and misc changes bumps the patch 36 | 37 | For more information on SemVer, please visit [http://semver.org/](http://semver.org/). 38 | 39 | 40 | 41 | ## Bug tracker 42 | 43 | Have a bug or a feature request? [Please open a new issue](https://github.com/twitter/bootstrap/issues). Before opening any issue, please search for existing issues and read the [Issue Guidelines](https://github.com/necolas/issue-guidelines), written by [Nicolas Gallagher](https://github.com/necolas/). 44 | 45 | 46 | 47 | ## Community 48 | 49 | Keep track of development and community news. 50 | 51 | * Follow [@twbootstrap on Twitter](http://twitter.com/twbootstrap). 52 | * Read and subscribe to the [The Official Twitter Bootstrap Blog](http://blog.getbootstrap.com). 53 | * Have a question that's not a feature request or bug report? [Ask on the mailing list.](http://groups.google.com/group/twitter-bootstrap) 54 | * Chat with fellow Bootstrappers in IRC. On the `irc.freenode.net` server, in the `##twitter-bootstrap` channel. 55 | 56 | 57 | 58 | ## Compiling CSS and JavaScript 59 | 60 | Bootstrap includes a [makefile](Makefile) with convenient methods for working with the framework. Before getting started, be sure to install [the necessary local dependencies](package.json): 61 | 62 | ``` 63 | $ npm install 64 | ``` 65 | 66 | When completed, you'll be able to run the various make commands provided: 67 | 68 | #### build - `make` 69 | Runs the recess compiler to rebuild the `/less` files and compiles the docs. Requires recess and uglify-js. 70 | 71 | #### test - `make test` 72 | Runs jshint and qunit tests headlessly in [phantomjs](http://code.google.com/p/phantomjs/) (used for ci). Depends on having phantomjs installed. 73 | 74 | #### watch - `make watch` 75 | This is a convenience method for watching just Less files and automatically building them whenever you save. Requires the Watchr gem. 76 | 77 | Should you encounter problems with installing dependencies or running the makefile commands, be sure to first uninstall any previous versions (global and local) you may have installed, and then rerun `npm install`. 78 | 79 | 80 | 81 | ## Contributing 82 | 83 | Please submit all pull requests against *-wip branches. If your pull request contains JavaScript patches or features, you must include relevant unit tests. All HTML and CSS should conform to the [Code Guide](http://github.com/mdo/code-guide), maintained by [Mark Otto](http://github.com/mdo). 84 | 85 | Thanks! 86 | 87 | 88 | 89 | ## Authors 90 | 91 | **Mark Otto** 92 | 93 | + [http://twitter.com/mdo](http://twitter.com/mdo) 94 | + [http://github.com/mdo](http://github.com/mdo) 95 | 96 | **Jacob Thornton** 97 | 98 | + [http://twitter.com/fat](http://twitter.com/fat) 99 | + [http://github.com/fat](http://github.com/fat) 100 | 101 | 102 | 103 | ## Copyright and license 104 | 105 | Copyright 2012 Twitter, Inc. 106 | 107 | Licensed under the Apache License, Version 2.0 (the "License"); 108 | you may not use this work except in compliance with the License. 109 | You may obtain a copy of the License in the LICENSE file, or at: 110 | 111 | [http://www.apache.org/licenses/LICENSE-2.0](http://www.apache.org/licenses/LICENSE-2.0) 112 | 113 | Unless required by applicable law or agreed to in writing, software 114 | distributed under the License is distributed on an "AS IS" BASIS, 115 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 116 | See the License for the specific language governing permissions and 117 | limitations under the License. 118 | -------------------------------------------------------------------------------- /bootstrap/component.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "bootstrap", 3 | "version": "2.3.1", 4 | "main": ["./docs/assets/js/bootstrap.js", "./docs/assets/css/bootstrap.css"], 5 | "dependencies": { 6 | "jquery": "~1.8.0" 7 | } 8 | } -------------------------------------------------------------------------------- /bootstrap/composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "twitter/bootstrap" 3 | , "description": "Sleek, intuitive, and powerful front-end framework for faster and easier web development." 4 | , "keywords": ["bootstrap", "css"] 5 | , "homepage": "http://twitter.github.com/bootstrap/" 6 | , "author": "Twitter Inc." 7 | , "license": "Apache-2.0" 8 | 9 | } 10 | -------------------------------------------------------------------------------- /bootstrap/docs/assets/ico/apple-touch-icon-114-precomposed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/divshot/geo-bootstrap/404022ff187b34bc11d5c100ef2493324b48a304/bootstrap/docs/assets/ico/apple-touch-icon-114-precomposed.png -------------------------------------------------------------------------------- /bootstrap/docs/assets/ico/apple-touch-icon-144-precomposed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/divshot/geo-bootstrap/404022ff187b34bc11d5c100ef2493324b48a304/bootstrap/docs/assets/ico/apple-touch-icon-144-precomposed.png -------------------------------------------------------------------------------- /bootstrap/docs/assets/ico/apple-touch-icon-57-precomposed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/divshot/geo-bootstrap/404022ff187b34bc11d5c100ef2493324b48a304/bootstrap/docs/assets/ico/apple-touch-icon-57-precomposed.png -------------------------------------------------------------------------------- /bootstrap/docs/assets/ico/apple-touch-icon-72-precomposed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/divshot/geo-bootstrap/404022ff187b34bc11d5c100ef2493324b48a304/bootstrap/docs/assets/ico/apple-touch-icon-72-precomposed.png -------------------------------------------------------------------------------- /bootstrap/docs/assets/ico/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/divshot/geo-bootstrap/404022ff187b34bc11d5c100ef2493324b48a304/bootstrap/docs/assets/ico/favicon.ico -------------------------------------------------------------------------------- /bootstrap/docs/assets/ico/favicon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/divshot/geo-bootstrap/404022ff187b34bc11d5c100ef2493324b48a304/bootstrap/docs/assets/ico/favicon.png -------------------------------------------------------------------------------- /bootstrap/docs/assets/img/bootstrap-docs-readme.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/divshot/geo-bootstrap/404022ff187b34bc11d5c100ef2493324b48a304/bootstrap/docs/assets/img/bootstrap-docs-readme.png -------------------------------------------------------------------------------- /bootstrap/docs/assets/img/bootstrap-mdo-sfmoma-01.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/divshot/geo-bootstrap/404022ff187b34bc11d5c100ef2493324b48a304/bootstrap/docs/assets/img/bootstrap-mdo-sfmoma-01.jpg -------------------------------------------------------------------------------- /bootstrap/docs/assets/img/bootstrap-mdo-sfmoma-02.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/divshot/geo-bootstrap/404022ff187b34bc11d5c100ef2493324b48a304/bootstrap/docs/assets/img/bootstrap-mdo-sfmoma-02.jpg -------------------------------------------------------------------------------- /bootstrap/docs/assets/img/bootstrap-mdo-sfmoma-03.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/divshot/geo-bootstrap/404022ff187b34bc11d5c100ef2493324b48a304/bootstrap/docs/assets/img/bootstrap-mdo-sfmoma-03.jpg -------------------------------------------------------------------------------- /bootstrap/docs/assets/img/bs-docs-bootstrap-features.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/divshot/geo-bootstrap/404022ff187b34bc11d5c100ef2493324b48a304/bootstrap/docs/assets/img/bs-docs-bootstrap-features.png -------------------------------------------------------------------------------- /bootstrap/docs/assets/img/bs-docs-masthead-pattern.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/divshot/geo-bootstrap/404022ff187b34bc11d5c100ef2493324b48a304/bootstrap/docs/assets/img/bs-docs-masthead-pattern.png -------------------------------------------------------------------------------- /bootstrap/docs/assets/img/bs-docs-responsive-illustrations.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/divshot/geo-bootstrap/404022ff187b34bc11d5c100ef2493324b48a304/bootstrap/docs/assets/img/bs-docs-responsive-illustrations.png -------------------------------------------------------------------------------- /bootstrap/docs/assets/img/bs-docs-twitter-github.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/divshot/geo-bootstrap/404022ff187b34bc11d5c100ef2493324b48a304/bootstrap/docs/assets/img/bs-docs-twitter-github.png -------------------------------------------------------------------------------- /bootstrap/docs/assets/img/example-sites/8020select.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/divshot/geo-bootstrap/404022ff187b34bc11d5c100ef2493324b48a304/bootstrap/docs/assets/img/example-sites/8020select.png -------------------------------------------------------------------------------- /bootstrap/docs/assets/img/example-sites/adoptahydrant.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/divshot/geo-bootstrap/404022ff187b34bc11d5c100ef2493324b48a304/bootstrap/docs/assets/img/example-sites/adoptahydrant.png -------------------------------------------------------------------------------- /bootstrap/docs/assets/img/example-sites/breakingnews.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/divshot/geo-bootstrap/404022ff187b34bc11d5c100ef2493324b48a304/bootstrap/docs/assets/img/example-sites/breakingnews.png -------------------------------------------------------------------------------- /bootstrap/docs/assets/img/example-sites/fleetio.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/divshot/geo-bootstrap/404022ff187b34bc11d5c100ef2493324b48a304/bootstrap/docs/assets/img/example-sites/fleetio.png -------------------------------------------------------------------------------- /bootstrap/docs/assets/img/example-sites/gathercontent.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/divshot/geo-bootstrap/404022ff187b34bc11d5c100ef2493324b48a304/bootstrap/docs/assets/img/example-sites/gathercontent.png -------------------------------------------------------------------------------- /bootstrap/docs/assets/img/example-sites/jshint.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/divshot/geo-bootstrap/404022ff187b34bc11d5c100ef2493324b48a304/bootstrap/docs/assets/img/example-sites/jshint.png -------------------------------------------------------------------------------- /bootstrap/docs/assets/img/example-sites/kippt.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/divshot/geo-bootstrap/404022ff187b34bc11d5c100ef2493324b48a304/bootstrap/docs/assets/img/example-sites/kippt.png -------------------------------------------------------------------------------- /bootstrap/docs/assets/img/example-sites/soundready.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/divshot/geo-bootstrap/404022ff187b34bc11d5c100ef2493324b48a304/bootstrap/docs/assets/img/example-sites/soundready.png -------------------------------------------------------------------------------- /bootstrap/docs/assets/img/examples/bootstrap-example-carousel.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/divshot/geo-bootstrap/404022ff187b34bc11d5c100ef2493324b48a304/bootstrap/docs/assets/img/examples/bootstrap-example-carousel.png -------------------------------------------------------------------------------- /bootstrap/docs/assets/img/examples/bootstrap-example-fluid.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/divshot/geo-bootstrap/404022ff187b34bc11d5c100ef2493324b48a304/bootstrap/docs/assets/img/examples/bootstrap-example-fluid.png -------------------------------------------------------------------------------- /bootstrap/docs/assets/img/examples/bootstrap-example-justified-nav.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/divshot/geo-bootstrap/404022ff187b34bc11d5c100ef2493324b48a304/bootstrap/docs/assets/img/examples/bootstrap-example-justified-nav.png -------------------------------------------------------------------------------- /bootstrap/docs/assets/img/examples/bootstrap-example-marketing-narrow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/divshot/geo-bootstrap/404022ff187b34bc11d5c100ef2493324b48a304/bootstrap/docs/assets/img/examples/bootstrap-example-marketing-narrow.png -------------------------------------------------------------------------------- /bootstrap/docs/assets/img/examples/bootstrap-example-marketing.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/divshot/geo-bootstrap/404022ff187b34bc11d5c100ef2493324b48a304/bootstrap/docs/assets/img/examples/bootstrap-example-marketing.png -------------------------------------------------------------------------------- /bootstrap/docs/assets/img/examples/bootstrap-example-signin.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/divshot/geo-bootstrap/404022ff187b34bc11d5c100ef2493324b48a304/bootstrap/docs/assets/img/examples/bootstrap-example-signin.png -------------------------------------------------------------------------------- /bootstrap/docs/assets/img/examples/bootstrap-example-starter.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/divshot/geo-bootstrap/404022ff187b34bc11d5c100ef2493324b48a304/bootstrap/docs/assets/img/examples/bootstrap-example-starter.png -------------------------------------------------------------------------------- /bootstrap/docs/assets/img/examples/bootstrap-example-sticky-footer.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/divshot/geo-bootstrap/404022ff187b34bc11d5c100ef2493324b48a304/bootstrap/docs/assets/img/examples/bootstrap-example-sticky-footer.png -------------------------------------------------------------------------------- /bootstrap/docs/assets/img/examples/browser-icon-chrome.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/divshot/geo-bootstrap/404022ff187b34bc11d5c100ef2493324b48a304/bootstrap/docs/assets/img/examples/browser-icon-chrome.png -------------------------------------------------------------------------------- /bootstrap/docs/assets/img/examples/browser-icon-firefox.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/divshot/geo-bootstrap/404022ff187b34bc11d5c100ef2493324b48a304/bootstrap/docs/assets/img/examples/browser-icon-firefox.png -------------------------------------------------------------------------------- /bootstrap/docs/assets/img/examples/browser-icon-safari.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/divshot/geo-bootstrap/404022ff187b34bc11d5c100ef2493324b48a304/bootstrap/docs/assets/img/examples/browser-icon-safari.png -------------------------------------------------------------------------------- /bootstrap/docs/assets/img/examples/slide-01.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/divshot/geo-bootstrap/404022ff187b34bc11d5c100ef2493324b48a304/bootstrap/docs/assets/img/examples/slide-01.jpg -------------------------------------------------------------------------------- /bootstrap/docs/assets/img/examples/slide-02.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/divshot/geo-bootstrap/404022ff187b34bc11d5c100ef2493324b48a304/bootstrap/docs/assets/img/examples/slide-02.jpg -------------------------------------------------------------------------------- /bootstrap/docs/assets/img/examples/slide-03.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/divshot/geo-bootstrap/404022ff187b34bc11d5c100ef2493324b48a304/bootstrap/docs/assets/img/examples/slide-03.jpg -------------------------------------------------------------------------------- /bootstrap/docs/assets/img/glyphicons-halflings-white.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/divshot/geo-bootstrap/404022ff187b34bc11d5c100ef2493324b48a304/bootstrap/docs/assets/img/glyphicons-halflings-white.png -------------------------------------------------------------------------------- /bootstrap/docs/assets/img/glyphicons-halflings.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/divshot/geo-bootstrap/404022ff187b34bc11d5c100ef2493324b48a304/bootstrap/docs/assets/img/glyphicons-halflings.png -------------------------------------------------------------------------------- /bootstrap/docs/assets/img/grid-baseline-20px.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/divshot/geo-bootstrap/404022ff187b34bc11d5c100ef2493324b48a304/bootstrap/docs/assets/img/grid-baseline-20px.png -------------------------------------------------------------------------------- /bootstrap/docs/assets/img/less-logo-large.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/divshot/geo-bootstrap/404022ff187b34bc11d5c100ef2493324b48a304/bootstrap/docs/assets/img/less-logo-large.png -------------------------------------------------------------------------------- /bootstrap/docs/assets/img/responsive-illustrations.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/divshot/geo-bootstrap/404022ff187b34bc11d5c100ef2493324b48a304/bootstrap/docs/assets/img/responsive-illustrations.png -------------------------------------------------------------------------------- /bootstrap/docs/assets/js/README.md: -------------------------------------------------------------------------------- 1 | ## 2.0 BOOTSTRAP JS PHILOSOPHY 2 | These are the high-level design rules which guide the development of Bootstrap's plugin apis. 3 | 4 | --- 5 | 6 | ### DATA-ATTRIBUTE API 7 | 8 | We believe you should be able to use all plugins provided by Bootstrap purely through the markup API without writing a single line of javascript. 9 | 10 | We acknowledge that this isn't always the most performant and sometimes it may be desirable to turn this functionality off altogether. Therefore, as of 2.0 we provide the ability to disable the data attribute API by unbinding all events on the body namespaced with `'data-api'`. This looks like this: 11 | 12 | $('body').off('.data-api') 13 | 14 | To target a specific plugin, just include the plugins name as a namespace along with the data-api namespace like this: 15 | 16 | $('body').off('.alert.data-api') 17 | 18 | --- 19 | 20 | ### PROGRAMMATIC API 21 | 22 | We also believe you should be able to use all plugins provided by Bootstrap purely through the JS API. 23 | 24 | All public APIs should be single, chainable methods, and return the collection acted upon. 25 | 26 | $(".btn.danger").button("toggle").addClass("fat") 27 | 28 | All methods should accept an optional options object, a string which targets a particular method, or null which initiates the default behavior: 29 | 30 | $("#myModal").modal() // initialized with defaults 31 | $("#myModal").modal({ keyboard: false }) // initialized with now keyboard 32 | $("#myModal").modal('show') // initializes and invokes show immediately afterqwe2 33 | 34 | --- 35 | 36 | ### OPTIONS 37 | 38 | Options should be sparse and add universal value. We should pick the right defaults. 39 | 40 | All plugins should have a default object which can be modified to effect all instance's default options. The defaults object should be available via `$.fn.plugin.defaults`. 41 | 42 | $.fn.modal.defaults = { … } 43 | 44 | An options definition should take the following form: 45 | 46 | *noun*: *adjective* - describes or modifies a quality of an instance 47 | 48 | examples: 49 | 50 | backdrop: true 51 | keyboard: false 52 | placement: 'top' 53 | 54 | --- 55 | 56 | ### EVENTS 57 | 58 | All events should have an infinitive and past participle form. The infinitive is fired just before an action takes place, the past participle on completion of the action. 59 | 60 | show | shown 61 | hide | hidden 62 | 63 | --- 64 | 65 | ### CONSTRUCTORS 66 | 67 | Each plugin should expose it's raw constructor on a `Constructor` property -- accessed in the following way: 68 | 69 | 70 | $.fn.popover.Constructor 71 | 72 | --- 73 | 74 | ### DATA ACCESSOR 75 | 76 | Each plugin stores a copy of the invoked class on an object. This class instance can be accessed directly through jQuery's data API like this: 77 | 78 | $('[rel=popover]').data('popover') instanceof $.fn.popover.Constructor 79 | 80 | --- 81 | 82 | ### DATA ATTRIBUTES 83 | 84 | Data attributes should take the following form: 85 | 86 | - data-{{verb}}={{plugin}} - defines main interaction 87 | - data-target || href^=# - defined on "control" element (if element controls an element other than self) 88 | - data-{{noun}} - defines class instance options 89 | 90 | examples: 91 | 92 | // control other targets 93 | data-toggle="modal" data-target="#foo" 94 | data-toggle="collapse" data-target="#foo" data-parent="#bar" 95 | 96 | // defined on element they control 97 | data-spy="scroll" 98 | 99 | data-dismiss="modal" 100 | data-dismiss="alert" 101 | 102 | data-toggle="dropdown" 103 | 104 | data-toggle="button" 105 | data-toggle="buttons-checkbox" 106 | data-toggle="buttons-radio" -------------------------------------------------------------------------------- /bootstrap/docs/assets/js/application.js: -------------------------------------------------------------------------------- 1 | // NOTICE!! DO NOT USE ANY OF THIS JAVASCRIPT 2 | // IT'S ALL JUST JUNK FOR OUR DOCS! 3 | // ++++++++++++++++++++++++++++++++++++++++++ 4 | 5 | !function ($) { 6 | 7 | $(function(){ 8 | 9 | var $window = $(window) 10 | 11 | // Disable certain links in docs 12 | $('section [href^=#]').click(function (e) { 13 | e.preventDefault() 14 | }) 15 | 16 | // side bar 17 | setTimeout(function () { 18 | $('.bs-docs-sidenav').affix({ 19 | offset: { 20 | top: function () { return $window.width() <= 980 ? 290 : 210 } 21 | , bottom: 270 22 | } 23 | }) 24 | }, 100) 25 | 26 | // make code pretty 27 | window.prettyPrint && prettyPrint() 28 | 29 | // add-ons 30 | $('.add-on :checkbox').on('click', function () { 31 | var $this = $(this) 32 | , method = $this.attr('checked') ? 'addClass' : 'removeClass' 33 | $(this).parents('.add-on')[method]('active') 34 | }) 35 | 36 | // add tipsies to grid for scaffolding 37 | if ($('#gridSystem').length) { 38 | $('#gridSystem').tooltip({ 39 | selector: '.show-grid > [class*="span"]' 40 | , title: function () { return $(this).width() + 'px' } 41 | }) 42 | } 43 | 44 | // tooltip demo 45 | $('.tooltip-demo').tooltip({ 46 | selector: "a[data-toggle=tooltip]" 47 | }) 48 | 49 | $('.tooltip-test').tooltip() 50 | $('.popover-test').popover() 51 | 52 | // popover demo 53 | $("a[data-toggle=popover]") 54 | .popover() 55 | .click(function(e) { 56 | e.preventDefault() 57 | }) 58 | 59 | // button state demo 60 | $('#fat-btn') 61 | .click(function () { 62 | var btn = $(this) 63 | btn.button('loading') 64 | setTimeout(function () { 65 | btn.button('reset') 66 | }, 3000) 67 | }) 68 | 69 | // carousel demo 70 | $('#myCarousel').carousel() 71 | 72 | // javascript build logic 73 | var inputsComponent = $("#components.download input") 74 | , inputsPlugin = $("#plugins.download input") 75 | , inputsVariables = $("#variables.download input") 76 | 77 | // toggle all plugin checkboxes 78 | $('#components.download .toggle-all').on('click', function (e) { 79 | e.preventDefault() 80 | inputsComponent.attr('checked', !inputsComponent.is(':checked')) 81 | }) 82 | 83 | $('#plugins.download .toggle-all').on('click', function (e) { 84 | e.preventDefault() 85 | inputsPlugin.attr('checked', !inputsPlugin.is(':checked')) 86 | }) 87 | 88 | $('#variables.download .toggle-all').on('click', function (e) { 89 | e.preventDefault() 90 | inputsVariables.val('') 91 | }) 92 | 93 | // request built javascript 94 | $('.download-btn .btn').on('click', function () { 95 | 96 | var css = $("#components.download input:checked") 97 | .map(function () { return this.value }) 98 | .toArray() 99 | , js = $("#plugins.download input:checked") 100 | .map(function () { return this.value }) 101 | .toArray() 102 | , vars = {} 103 | , img = ['glyphicons-halflings.png', 'glyphicons-halflings-white.png'] 104 | 105 | $("#variables.download input") 106 | .each(function () { 107 | $(this).val() && (vars[ $(this).prev().text() ] = $(this).val()) 108 | }) 109 | 110 | $.ajax({ 111 | type: 'POST' 112 | , url: /\?dev/.test(window.location) ? 'http://localhost:3000' : 'http://bootstrap.herokuapp.com' 113 | , dataType: 'jsonpi' 114 | , params: { 115 | js: js 116 | , css: css 117 | , vars: vars 118 | , img: img 119 | } 120 | }) 121 | }) 122 | }) 123 | 124 | // Modified from the original jsonpi https://github.com/benvinegar/jquery-jsonpi 125 | $.ajaxTransport('jsonpi', function(opts, originalOptions, jqXHR) { 126 | var url = opts.url; 127 | 128 | return { 129 | send: function(_, completeCallback) { 130 | var name = 'jQuery_iframe_' + jQuery.now() 131 | , iframe, form 132 | 133 | iframe = $('