diff --git a/.github/linters/.htmlhintrc b/.github/linters/.htmlhintrc new file mode 100644 index 0000000..f406576 --- /dev/null +++ b/.github/linters/.htmlhintrc @@ -0,0 +1 @@ +head-script-disabled: false diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.yml new file mode 100644 index 0000000..3c14361 --- /dev/null +++ b/.github/workflows/linter.yml @@ -0,0 +1,34 @@ +name: Lint Code Base + +on: [push, pull_request] + +jobs: + build: + name: Lint + runs-on: ubuntu-latest + + permissions: + contents: read + packages: read + statuses: write + + steps: + + - name: Checkout Code + uses: actions/checkout@v4 + with: + # entire history needed + fetch-depth: 0 + + - name: Lint Code Base + uses: super-linter/super-linter@v5.7.2 + env: + DEFAULT_BRANCH: main + VALIDATE_ALL_CODEBASE: true + VALIDATE_CSS: true + VALIDATE_HTML: true + VALIDATE_JAVASCRIPT_ES: true + VALIDATE_JSON: true + FILTER_REGEX_EXCLUDE: jquery/* + # For reporting status + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/README.adoc b/README.adoc index fb38e6a..30d75ff 100644 --- a/README.adoc +++ b/README.adoc @@ -1,4 +1,7 @@ +image:https://github.com/SwissTPH/AP-Health-Effects/actions/workflows/linter.yml/badge.svg?branch=main&event=push[Super-Linter, link=https://github.com/marketplace/actions/super-linter] + [[ap-health-effects]] + = AP-Health-Effects == Interactive figure of air pollutants and health effects diff --git a/graph/_image-map.fim b/graph/_image-map.fim index a30bd92..6edf052 100644 --- a/graph/_image-map.fim +++ b/graph/_image-map.fim @@ -1,10 +1,10 @@ "fim200","","" - - - - - - + + + + + + diff --git a/graph/_mensch_1000.png b/graph/_mensch-1000.png similarity index 100% rename from graph/_mensch_1000.png rename to graph/_mensch-1000.png diff --git a/graph/ic_C_Feinstaub.png b/graph/ic-c-feinstaub.png similarity index 100% rename from graph/ic_C_Feinstaub.png rename to graph/ic-c-feinstaub.png diff --git a/graph/ic_C_Kohlenmonoxid.png b/graph/ic-c-kohlenmonoxid.png similarity index 100% rename from graph/ic_C_Kohlenmonoxid.png rename to graph/ic-c-kohlenmonoxid.png diff --git a/graph/ic_C_Ozon.png b/graph/ic-c-ozon.png similarity index 100% rename from graph/ic_C_Ozon.png rename to graph/ic-c-ozon.png diff --git a/graph/ic_C_Schwefeldioxid.png b/graph/ic-c-schwefeldioxid.png similarity index 100% rename from graph/ic_C_Schwefeldioxid.png rename to graph/ic-c-schwefeldioxid.png diff --git a/graph/ic_C_Stickstoffdioxid.png b/graph/ic-c-stickstoffdioxid.png similarity index 100% rename from graph/ic_C_Stickstoffdioxid.png rename to graph/ic-c-stickstoffdioxid.png diff --git a/graph/ic_C.png b/graph/ic-c.png similarity index 100% rename from graph/ic_C.png rename to graph/ic-c.png 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/graph/ic_L_Feinstaub.png b/graph/ic-l-feinstaub.png similarity index 100% rename from graph/ic_L_Feinstaub.png rename to graph/ic-l-feinstaub.png diff --git a/graph/ic_L_Kohlenmonoxid.png b/graph/ic-l-kohlenmonoxid.png similarity index 100% rename from graph/ic_L_Kohlenmonoxid.png rename to graph/ic-l-kohlenmonoxid.png diff --git a/graph/ic_L_Ozon.png b/graph/ic-l-ozon.png similarity index 100% rename from graph/ic_L_Ozon.png rename to graph/ic-l-ozon.png diff --git a/graph/ic_L_Schwefeldioxid.png b/graph/ic-l-schwefeldioxid.png similarity index 100% rename from graph/ic_L_Schwefeldioxid.png rename to graph/ic-l-schwefeldioxid.png diff --git a/graph/ic_L_Stickstoffdioxid.png b/graph/ic-l-stickstoffdioxid.png similarity index 100% rename from graph/ic_L_Stickstoffdioxid.png rename to graph/ic-l-stickstoffdioxid.png diff --git a/graph/ic_L.png b/graph/ic-l.png similarity index 100% rename from graph/ic_L.png rename to graph/ic-l.png diff --git a/graph/ic_tph.png b/graph/ic-tph.png similarity index 100% rename from graph/ic_tph.png rename to graph/ic-tph.png diff --git a/graph/mensch_Atemwege.png b/graph/mensch-atemwege.png similarity index 100% rename from graph/mensch_Atemwege.png rename to graph/mensch-atemwege.png diff --git a/graph/mensch_bg.png b/graph/mensch-bg.png similarity index 100% rename from graph/mensch_bg.png rename to graph/mensch-bg.png diff --git a/graph/mensch_empty.png b/graph/mensch-empty.png similarity index 100% rename from graph/mensch_empty.png rename to graph/mensch-empty.png diff --git a/graph/mensch_Feinstaub_K.png b/graph/mensch-feinstaub-k.png similarity index 100% rename from graph/mensch_Feinstaub_K.png rename to graph/mensch-feinstaub-k.png diff --git a/graph/mensch_Feinstaub_L.png b/graph/mensch-feinstaub-l.png similarity index 100% rename from graph/mensch_Feinstaub_L.png rename to graph/mensch-feinstaub-l.png diff --git a/graph/mensch_Herz.png b/graph/mensch-herz.png similarity index 100% rename from graph/mensch_Herz.png rename to graph/mensch-herz.png diff --git a/graph/mensch_Kohlenmonoxid_K.png b/graph/mensch-kohlenmonoxid-k.png similarity index 100% rename from graph/mensch_Kohlenmonoxid_K.png rename to graph/mensch-kohlenmonoxid-k.png diff --git a/graph/mensch_Nervensystem.png b/graph/mensch-nervensystem.png similarity index 100% rename from graph/mensch_Nervensystem.png rename to graph/mensch-nervensystem.png diff --git a/graph/mensch_Notfaelle.png b/graph/mensch-notfaelle.png similarity index 100% rename from graph/mensch_Notfaelle.png rename to graph/mensch-notfaelle.png diff --git a/graph/mensch_Ozon_K.png b/graph/mensch-ozon-k.png similarity index 100% rename from graph/mensch_Ozon_K.png rename to graph/mensch-ozon-k.png diff --git a/graph/mensch_Ozon_L.png b/graph/mensch-ozon-l.png similarity index 100% rename from graph/mensch_Ozon_L.png rename to graph/mensch-ozon-l.png diff --git a/graph/mensch_Schwefeldioxid_K.png b/graph/mensch-schwefeldioxid-k.png similarity index 100% rename from graph/mensch_Schwefeldioxid_K.png rename to graph/mensch-schwefeldioxid-k.png diff --git a/graph/mensch_Sterblichkeit.png b/graph/mensch-sterblichkeit.png similarity index 100% rename from graph/mensch_Sterblichkeit.png rename to graph/mensch-sterblichkeit.png diff --git a/graph/mensch_Stickstoffdioxid_K.png b/graph/mensch-stickstoffdioxid-k.png similarity index 100% rename from graph/mensch_Stickstoffdioxid_K.png rename to graph/mensch-stickstoffdioxid-k.png diff --git a/graph/mensch_Stickstoffdioxid_L.png b/graph/mensch-stickstoffdioxid-l.png similarity index 100% rename from graph/mensch_Stickstoffdioxid_L.png rename to graph/mensch-stickstoffdioxid-l.png diff --git a/graph/mensch_Stoffwechsel.png b/graph/mensch-stoffwechsel.png similarity index 100% rename from graph/mensch_Stoffwechsel.png rename to graph/mensch-stoffwechsel.png diff --git a/iframe.html b/iframe.html index 3f42be5..3fd931d 100644 --- a/iframe.html +++ b/iframe.html @@ -7,7 +7,7 @@ LUDOK iFrame - + + @@ -49,10 +49,10 @@ 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(); - $('#img_mensch_empty').attr("usemap", ""); + $('.div-pagecontent #div-menu-noxen-pc').hide(); + $('.div-pagecontent-mobile #div-menu-noxen-pcm').hide(); + $('#div-menu-sterblichkeit').hide(); + $('#img-mensch-empty').attr("usemap", ""); } }); // $(window).resize @@ -69,17 +69,19 @@ // Sonderbehandlung fürs geliebte iPad if (navigator.userAgent.indexOf('iPad') == -1) { // NOT an iPad // Mouseover für Organe - Set_Organ_Mouseover('Stoffwechsel'); - Set_Organ_Mouseover('Herz'); - Set_Organ_Mouseover('Nervensystem'); - Set_Organ_Mouseover('Atemwege'); + Set_Organ_Mouseover('stoffwechsel', 'stoffwechsel'); + Set_Organ_Mouseover('herz1', 'herz'); + Set_Organ_Mouseover('herz2', 'herz'); + Set_Organ_Mouseover('nervensystem1', 'nervensystem'); + Set_Organ_Mouseover('nervensystem2', 'nervensystem'); + Set_Organ_Mouseover('atemwege', 'atemwege'); } else { // Tooltip closing for iPad - $('.div_PageContent').on('click', function () { - $('img[id^="i_"]').tooltip('close'); + $('.div-pagecontent').on('click', function () { + $('img[id^="i-"]').tooltip('close'); }); - $('.div_PageContent_mobile').on('click', function () { - $('img[id^="i_"]').tooltip('close'); + $('.div-pagecontent-mobile').on('click', function () { + $('img[id^="i-"]').tooltip('close'); }); } @@ -106,108 +108,108 @@ -
+
-
+
-
+
- +
- + -
+
- - + + - - + + - - + + - - + + - + - - + - - + - - + + - +
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+


-
+


-
+
-
+
- +

-
+

- +
-
+
-