After downloading bootstrap 3.3.7, I extracted all the files including css, fonts, and js folders. These were then copied to the respective directories under www/css, www/js, and www/css/fonts in index.html as shown below:
<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="css/bootstrap.min.css" rel="stylesheet">
<script src="js/bootstrap.min.js"></script>
To use icons on buttons, the code was as follows:
`<button type="button"><span class="glyphicon glyphicon-ok"></span>Yeah</button>
<button type="button"><span class="glyphicon glyphicon-remove"></span>Nope</button>
`
However, there was an issue where the icons were not displaying properly for Chinese characters on Android platform, some fancy icons showed up on iOS platform, and no icons were visible on Windows platform.
I attempted to resolve this problem by using npm install bootstrap
, but it only added the folders to node_modules without any success in resolving the issue. This is why I avoided using the external link
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css">
as the application needed to work offline with all necessary files within the project structure.
If anyone could offer assistance in troubleshooting and fixing this problem, I would greatly appreciate it.