Offline bootstrap

Viewed 57227

How can I make this work in offline? This is in my index.html:

<link href='https://maxcdn.bootstrapcdn.com/bootswatch/3.3.5/paper/bootstrap.min.css' rel='stylesheet'>

Update:

There's a line in the css that contains http call to get the font css, do I need to download it offline as well?

@import url("https://fonts.googleapis.com/css?family=Roboto:300,400,500,700");/*!
7 Answers

If you want to use bootstrap files below in offline then just download these file on you PC.

  1. Then remove text from https till just before the main file
  2. Remove integrity & crossorigin attribute contents
  3. Wolla! now you can see bootstrap files without CDN links.
  4. The reference links & sheets wont work till you Remove integrity & crossorigin attribute contents.

Go ahead with this tip & tell me if it worked for you. i.e

<link rel="stylesheet" href="bootstrap.min.css" >

<script src="jquery-3.4.1.slim.min.js" ></script>
<script src="popper.min.js"></script>
<script src="bootstrap.min.js" ></script>

Place the bootstarp files in the same folder with html files as you are giving the relative path. If you have saved bootstrap files in a folder the give src="foldername/filename" path.

In addition to gavgrif's answer you will also need the file at this:

https://code.jquery.com/jquery-3.4.1.min.js

and this command to be pasted in section:

<script src="jquery-3.4.1.min.js"></script>
Related