https://github.com/weprovide/magento2-module-twitterbootstrap-js
Add Twitter Bootstrap javascript from CDN as a require.js module shim. With fallback to local version.
https://github.com/weprovide/magento2-module-twitterbootstrap-js
Last synced: 8 months ago
JSON representation
Add Twitter Bootstrap javascript from CDN as a require.js module shim. With fallback to local version.
- Host: GitHub
- URL: https://github.com/weprovide/magento2-module-twitterbootstrap-js
- Owner: weprovide
- Archived: true
- Created: 2016-08-05T06:08:15.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2018-04-18T16:54:05.000Z (over 7 years ago)
- Last Synced: 2025-04-19T13:18:05.256Z (8 months ago)
- Language: JavaScript
- Size: 14.6 KB
- Stars: 2
- Watchers: 1
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Magento2 Twitter Bootstrap Javascript
Add Twitter Bootstrap javascript from CDN as a require.js module shim. With fallback to local version when CDN is offline.
## Installation
1. `composer require weprovide/magento2-module-twitterbootstrap-js`
will install the latest version. If you want a specific Twitter Bootstrap version you can use this:
`composer require timneutkens/magento2-module-twitterbootstrap-js:`
2. Run `bin/magento setup:upgrade`
3. Run `bin/magento setup:static-content:deploy`
### Available versions
- 3.3.7
## Usage
For usage examples see the [Twitter Bootstrap website](http://getbootstrap.com/javascript/)
```javascript
require(['jquery', 'jquery.bootstrap'], function ($) {
$('.element').carousel()
});
```