<script src="js/requests.js"></script><!-- imports an external JavaScript file named "requests.js" from the "js" directory relative to the current HTML file -->
<metaname="viewport"content="width=device-width, initial-scale=1, shrink-to-fit=no"><!-- It tells the browser to set the width of the viewport to the width of the device, set the initial zoom level to 1, and disable the shrinking of the viewport to fit the screen. -->
integrity="sha384-xOolHFLEh07PJGoPkLv1IbcEPTNtaed2xpHsD9ESMhqIYd0nLMwNLD69Npy4HI+N"crossorigin="anonymous"><!-- import the Bootstrap CSS framework version 4.6.2 -->
<linkrel="icon"type="image/x-icon"href="/pokemon/favicon.ico"><!--mall icon that appears next to the website's title in the browser tab or bookmark bar -->
</head>
<body>
...
...
@@ -21,8 +21,8 @@
fetch('/pokemon/api/trainers')
.then(res=>res.json())
.then(data=>{
pokemonTypes=data;
createPokemonTypesTable();
trainers=data;
createTrainersTable();
})
.catch(err=>{
console.error(`Unable to fetch Pokemon Types: ${err.status}`);