diff --git a/.github/linters/.htmllintrc b/.github/linters/.htmllintrc new file mode 100644 index 0000000..f406576 --- /dev/null +++ b/.github/linters/.htmllintrc @@ -0,0 +1 @@ +head-script-disabled: false diff --git a/graph/ic_info.png b/graph/ic-info.png similarity index 100% rename from graph/ic_info.png rename to graph/ic-info.png diff --git a/index.html b/index.html index c72d22c..f9de4c9 100644 --- a/index.html +++ b/index.html @@ -49,9 +49,9 @@ Check_mobile(); if (old_isMobile != glb_isMobile) { ResetAll(); - $('.div_PageContent #div_Menu_Noxen').hide(); - $('.div_PageContent_mobile #div_Menu_Noxen').hide(); - $('#div_Menu_Sterblichkeit').hide(); + $('.div-pagecontent #div-menu-Noxen').hide(); + $('.div-pagecontent-mobile #div-menu-Noxen').hide(); + $('#div-menu-Sterblichkeit').hide(); $('#img_mensch_empty').attr("usemap", ""); } @@ -75,10 +75,10 @@ Set_Organ_Mouseover('Atemwege'); } else { // Tooltip closing for iPad - $('.div_PageContent').on('click', function () { + $('.div-pagecontent').on('click', function () { $('img[id^="i_"]').tooltip('close'); }); - $('.div_PageContent_mobile').on('click', function () { + $('.div-pagecontent-mobile').on('click', function () { $('img[id^="i_"]').tooltip('close'); }); } @@ -105,27 +105,27 @@ -
' + a_data[i].noxe + ' | ' + //'' + a_data[i].noxe_zeit + ' | ' + //'' + a_data[i].organ + ' | ' + - str += '' + Get_Effekt(a_data[i].effekt, glb_Lang) + ' | '; + str += '' + Get_Effekt(a_data[i].effekt, glb_Lang) + ' | '; //'' + a_data[i]["organ_"+glb_Lang] + ' | ' + //'' + a_data[i]["effekt_"+glb_Lang] + ' | ' if (glb_isMobile == false) { for (var j = 1; j < Get_Noxe_ID(a_noxe); j++) { - str += ''; + str += ' | '; } } - str += ' | '; + str += ' | '; if (glb_isMobile == false) { for (var j = Get_Noxe_ID(a_noxe); j < 5; j++) { - str += ' | '; + str += ' | '; } } @@ -189,13 +189,13 @@ function Draw_Results(a_data, a_noxe, a_noxe_zeit, a_organ) { //console.log('Draw_Results Organ: ' + a_organ); - $(glb_PCID + '#div_Results_' + a_organ).html(str); - $(glb_PCID + '#div_Results_' + a_organ).fadeIn(); - $(glb_PCID + '#div_Legend').fadeIn(); - $(glb_PCID + '#div_Menu_Headline').fadeIn(); + $(glb_PCID + '#div-results-' + a_organ).html(str); + $(glb_PCID + '#div-results-' + a_organ).fadeIn(); + $(glb_PCID + '#div-legend').fadeIn(); + $(glb_PCID + '#div-menu-Headline').fadeIn(); //if ((a_organ != "Sterblichkeit") && (a_organ != "Notfaelle")) { - $('#img_Organ_' + a_organ).fadeIn(); + $('#img-organ-' + a_organ).fadeIn(); //} $("#i_eff_" + a_organ).tooltip({content: Get_Tooltip(a_organ, glb_Lang)}); @@ -204,14 +204,14 @@ function Draw_Results(a_data, a_noxe, a_noxe_zeit, a_organ) { }// if (a_data.length > 0) - // mobile: div_Results unter Button schieben + // mobile: div-results unter Button schieben if (glb_isMobile == true) { - $(glb_PCID + ".div_Results").appendTo(glb_PCID + "#mnu_" + a_noxe); + $(glb_PCID + ".div-results").appendTo(glb_PCID + "#mnu_" + a_noxe); } // Button aktivieren - $('button[id^="btn_"]').removeClass(['bg_Feinstaub_invert', 'bg_Ozon_invert', 'bg_Stickstoffdioxid_invert', 'bg_Schwefeldioxid_invert', 'bg_Kohlenmonoxid_invert']); - $(glb_PCID + '#btn_' + a_noxe).addClass('bg_' + a_noxe + '_invert'); + $('button[id^="btn_"]').removeClass(['bg-Feinstaub-invert', 'bg-Ozon-invert', 'bg-Stickstoffdioxid-invert', 'bg-Schwefeldioxid-invert', 'bg-Kohlenmonoxid-invert']); + $(glb_PCID + '#btn_' + a_noxe).addClass('bg-' + a_noxe + '-invert'); } // Draw_Results @@ -230,7 +230,7 @@ function Draw_Results_Organ(a_data) { if (a_data.length > 0) { - str += ' |
' + Get_Effekt(a_data[i].effekt_de, glb_Lang) + ' | '; - str_row += ''; + str_row += ' | ' + Get_Effekt(a_data[i].effekt_de, glb_Lang) + ' | '; + str_row += ''; for (var j = 0; j < arrEffekte.length; j++) { objEffekt = Get_Organ_Effekt_Noxe_Zeit(a_data[i].organ, a_data[i].effekt_de, arrEffekte[j], glb_Zeit, glb_Lang); if (glb_isMobile == false) { - str_row += ' | '; + str_row += ' | '; } if (objEffekt.length > 0) { @@ -269,22 +269,22 @@ function Draw_Results_Organ(a_data) { } // for if (anzRows == 0) { - str += ' |
(' + Get_UI('txt_no_effects', glb_Lang) + ') | |||||
(' + Get_UI('txt_no_effects', glb_Lang) + ') |