I have been testing my site in vscode, but the section where the javascript should be displayed appears blank when running it. I even tried using a console.log message for testing purposes, but that is also not showing up.
This is where I am working on adding a progress bar:
<p class="infoBox">
<h3>Skills</h3>
<h4>Computer Languages</h4>
Java <div id="container"></div></br>
Python</br>
This is the javascript code I am using:
<script type="text/javascript" src="/require.js">
console.log("Hello World!"); // Testing js functionality - not appearing in chrome's console
var ProgressBar = require('progressbar.js');
var bar = new ProgressBar.Line(container, {
strokeWidth: 4,
easing: 'easeInOut',
duration: 1400,
color: '#FFEA82',
trailColor: '#eee',
trailWidth: 1,
svgStyle: {width: '100%', height: '100%'}
});
bar.animate(1.0);
</script>
Below is the CSS being used:
#container {
margin: 20px;
width: 400px;
height: 8px;
}