Skip to content

Commit

Permalink
minor cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
MattTJung committed Mar 14, 2024
1 parent 051b45b commit a044e66
Showing 1 changed file with 6 additions and 13 deletions.
19 changes: 6 additions & 13 deletions .github/workflows/oops_report/show_oops_response.js
Original file line number Diff line number Diff line change
@@ -1,23 +1,16 @@
$(document).ready(function () {

$("#headerTitle").hide(300).show(1500);
// calling show food menu function
showFoodMenu();

// If you want to fetch data from the file
// call fetch data function instead of showFoodMenu
// fetchData()
showOOPSresult();
});

function fetchData() {
/*function fetchData() {
setTimeout(function () {
showFoodMenu();
showOOPSresult();
// recursive call
fetchData();
}, 3000);
}
}*/

function showFoodMenu() {
function showOOPSresult() {
$.ajax({
url: "./oops_response.xml",
type: "GET",
Expand All @@ -37,7 +30,7 @@ function showFoodMenu() {
var _code = $(this).find("oops\\:Code").text();
console.log(_code)

var _name = 'Name: ' + $(this).find("oops\\:Name").text();
var _name = $(this).find("oops\\:Name").text();
var _description = $(this).find("oops\\:Description").text();
var _importance = $(this).find("oops\\:Importance").text();
var _numberAffectedElements = $(this).find("oops\\:NumberAffectedElements").text();
Expand Down

0 comments on commit a044e66

Please sign in to comment.