Giter VIP home page Giter VIP logo

bootstrap's Introduction

NOTE

This repo does not add any new functionality to the original Twitter Bootstrap repo. The only change is to the Makefile which adds a altjs target that may be used for generating js files that work well as embeddable components. A test file that relies on the alternate JS files is also provided at the path js/tests/altindex.html

The Problem

The maintainer of the original repository is apparently adamant about not using semicolons EVER! Of course this is not a problem when you use uglify-js to build the concatenated bootstrap.js file. If you are happy with that solution, there is nothing in this repo that has changed.

The problem with using the concatenated file is that you have to load all the js components even if all you need is one plugin. If you concatenate any individual plugin file with your own file and load it up in the browser without running the concatenation through uglify (for example: during development), it is highly likely that the browser throws an error saying something along the lines of undefined is not a function. This happens due to a missing semicolon that denotes the end of the plugin.

Usage

  • make altjs to add the missing semicolons to the end of each plugin file.
  • All other options to make remain unchanged.
  • To test the alternate JS files, load js/tests/altindex.html in your browser.

Copyright and license

Copyright 2012 Twitter, Inc.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this work except in compliance with the License. You may obtain a copy of the License in the LICENSE file, or at:

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

bootstrap's People

Contributors

aaronj1335 avatar ansman avatar buraktuyan avatar calvein avatar caniszczyk avatar cgunther avatar dhs avatar eirikb avatar evnm avatar fat avatar kriansa avatar linrock avatar lookfirst avatar matthewpennell avatar mchung avatar mdo avatar mgaetan89 avatar necolas avatar nkryptic avatar pamelafox avatar pokonski avatar pthrasher avatar purwandi avatar rajivnavada avatar raulriera avatar rvagg avatar sankage avatar smaboshe avatar tinyfly avatar wrightlabs avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.