I am currently in the process of developing an app using Cordova with an HTML file. However, after building the app, I encountered issues where it is not incorporating CSS and does not seem to be utilizing JavaScript.
<!doctype html>
<html lang="en">
<head>
<script>
function displayContent() {
document.getElementById('welcomeDiv').style.display = "block";
}
</script>
<meta charset="utf-8">
<title>MyApp</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" integrity="sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpLegxhjVME1fgjWPGmkzs7" crossorigin="anonymous">
<link rel="stylesheet" href="./main.css">
</head>
<body>
<input type="button" name="answer" value="Show Content" onclick="displayContent()" />
<div id="contentArea" style="display:none;" class="response_section" > WELCOME</div>
<div class="jumbotron" id="abc">
<h1 id="def">Wednesday 20/4 Week 16:</h1>
<h1 id="ghi">
<small>Math GymNorwegian</small>
</h1>
</div>
<div class="jumbotron" id="abc">
<h1 id="ghi"><small>Homework for Thursday:</small></h1>
</div>
<div class="jumbotron" id="xyz">
<h1 id="def">No homework today!</h1>
</div>
</body>
</html>
The CSS files I am using are located within the WWW folder, along with the index.html file. Additionally, some CSS styles are being imported from bootstrap as well. I am uncertain if this could be causing the issue. Furthermore, the JavaScript code placed in the header section does not execute as expected, resulting in the div not displaying properly. Could this be due to a problem with CSS compatibility, especially given the use of style.display method?
Thank you!