diff --git a/src/main/resources/static/index.html b/src/main/resources/static/index.html
index c352bdc..2e60495 100644
--- a/src/main/resources/static/index.html
+++ b/src/main/resources/static/index.html
@@ -206,8 +206,12 @@
{{airportInfo.name}}
-
Weather Information
-
+
+
+ Weather Information
+
+
+
@@ -268,6 +272,30 @@
Weather Information
+
+
+
+
+
+
+ Frequencies
+
+
+
+
diff --git a/src/main/resources/static/script.js b/src/main/resources/static/script.js
index f98bcb3..2aa6c93 100644
--- a/src/main/resources/static/script.js
+++ b/src/main/resources/static/script.js
@@ -791,6 +791,7 @@ app.controller('ChecklistController', ['$scope', '$sce', '$timeout', '$http', '$
$scope.runways = $scope.airportData.runways;
$scope.frequencies = $scope.airportData.freqs;
console.log($scope.airportData);
+ console.log($scope.airportData.freqs);
$scope.parseMetar($scope.airportInfo.metar);
diff --git a/src/main/resources/static/vanilla-js.js b/src/main/resources/static/vanilla-js.js
index f07fb93..c672e80 100644
--- a/src/main/resources/static/vanilla-js.js
+++ b/src/main/resources/static/vanilla-js.js
@@ -23,4 +23,34 @@ fetch('/support')
.then(response => response.text())
.then(content => {
document.getElementById('support').innerHTML = content;
+ });
+
+ document.addEventListener('DOMContentLoaded', function() {
+ const weatherSection = document.getElementById('weatherSection');
+ const frequenciesSection = document.getElementById('frequenciesSection');
+
+ const weatherCaret = document.getElementById('weatherCaret');
+ const frequenciesCaret = document.getElementById('frequenciesCaret');
+
+ // Event listener for Weather section
+ weatherSection.addEventListener('show.bs.collapse', function () {
+ weatherCaret.classList.remove('fa-caret-right');
+ weatherCaret.classList.add('fa-caret-down');
+ });
+
+ weatherSection.addEventListener('hide.bs.collapse', function () {
+ weatherCaret.classList.remove('fa-caret-down');
+ weatherCaret.classList.add('fa-caret-right');
+ });
+
+ // Event listener for Frequencies section
+ frequenciesSection.addEventListener('show.bs.collapse', function () {
+ frequenciesCaret.classList.remove('fa-caret-right');
+ frequenciesCaret.classList.add('fa-caret-down');
+ });
+
+ frequenciesSection.addEventListener('hide.bs.collapse', function () {
+ frequenciesCaret.classList.remove('fa-caret-down');
+ frequenciesCaret.classList.add('fa-caret-right');
+ });
});
\ No newline at end of file