• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

bootstrap.min.js vs bootstrap.js

 
Ranch Hand
Posts: 115
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi, I have downloaded Bootstrap with the following link.
https://github.com/twbs/bootstrap/archive/v3.1.1.zip

I then loaded up the Carousel example under the following path. It works out of the box as expected.
bootstrap-3.1.1\docs\examples\carousel\index.html

Within this file towards the bottom, I noticed the following.


Now when I tried to change to reference "bootstrap.js" rather than "bootstrap.min.js", it doesn't work. The page would still load but when I click on either the left or right button, the image won't slide. Any idea why this is the case?
 
author
Posts: 297
5
Android Firefox Browser Fedora
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
There is no file boostrap.js in the dists/js folder. Why are you expecting it to work?
 
Mike Cheung
Ranch Hand
Posts: 115
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Rob Crowther wrote:There is no file boostrap.js in the dists/js folder. Why are you expecting it to work?


It's there. Download the one with the source from the following link.
https://github.com/twbs/bootstrap/archive/v3.1.1.zip
 
Rob Crowther
author
Posts: 297
5
Android Firefox Browser Fedora
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I've downloaded it, it's not there.
 
Ranch Hand
Posts: 15304
6
Mac OS X IntelliJ IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Rob, you're looking in the wrong folder. Not docs/dist, just dist/js. The min and non-min files are both there.

https://github.com/twbs/bootstrap/tree/master/dist/js
 
Rob Crowther
author
Posts: 297
5
Android Firefox Browser Fedora
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The folder Mike is running the example from is:

Mike Cheung wrote:
bootstrap-3.1.1\docs\examples\carousel\index.html

 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Mac OS X IntelliJ IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Rob Crowther wrote:The folder Mike is running the example from is:

Mike Cheung wrote:
bootstrap-3.1.1\docs\examples\carousel\index.html



Well, I think Mike needs to respond to this. My brain is not working out the ../../ correctly right now to know if this is correct or not. But Rob is correct in that Mike is running from the docs path.
 
author
Posts: 7
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If you are connected to the Internet you can simply use BootstrapCDN - its bootstrap on the Internet, so you get the web address (URL) instead of having to worry about your folder structure

See http://www.bootstrapcdn.com/ for details:

Basically you use the following code in your html file:

<link href="//netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css" rel="stylesheet">
<script src="//netdna.bootstrapcdn.com/bootstrap/3.1.1/js/bootstrap.min.js"></script>

If you dont intent changing anything in bootstrap, then its a nice approach.

Thanks
John.
reply
    Bookmark Topic Watch Topic
  • New Topic