diff --git a/README.md b/README.md index 09b19f3..42ada19 100644 --- a/README.md +++ b/README.md @@ -20,9 +20,9 @@ Tools used: * [Chart.js](https://www.chartjs.org/) Fonts used: -* Rubik -* Commissioner -* Hot August Night +* [Rubik](https://github.com/googlefonts/Rubik) +* [Commissioner](https://github.com/kosbarts/Commissioner) +* [Hot August Night](https://www.1001fonts.com/hot-august-night-font.html) ### Export Excel spreadsheet to JSON diff --git a/explorer.html b/explorer.html index 746f5d5..55e33c3 100644 --- a/explorer.html +++ b/explorer.html @@ -44,9 +44,9 @@ -
+
-
+

État photo 

@@ -63,7 +63,7 @@
-
+

Années 

@@ -134,8 +134,7 @@
- - + ※ 
@@ -143,8 +142,7 @@
- - + ※ 
diff --git a/exposition.html b/exposition.html index a7fdb16..7d24e36 100644 --- a/exposition.html +++ b/exposition.html @@ -35,7 +35,7 @@

Exposition

-

Cliquez sur une image pour la voir en grand avec ses détails.

+

Cliquez sur un tableau pour le voir en grand avec ses détails.

diff --git a/scripts/explorer.js b/scripts/explorer.js index 58c11e5..d0b2227 100644 --- a/scripts/explorer.js +++ b/scripts/explorer.js @@ -1,3 +1,17 @@ +// remove place and tag from url when unnecessary +function onSubmit() { + $("select[name=place]").each(function() { + if ($(this).val() == "") + $(this).remove(); + }); + + $("select[name=tag]").each(function() { + if ($(this).val() == "") + $(this).remove(); + }); + return true; +} + jQuery(document).ready(function($) { // get URL parameters @@ -19,7 +33,6 @@ jQuery(document).ready(function($) /** MENU **/ /**********/ - //var dimensions = []; var genres = []; var themes = []; var places = []; @@ -29,8 +42,6 @@ jQuery(document).ready(function($) { for (i of data) { - /*if (dimensions.indexOf(i.dimension) === -1 && i.dimension != "" && i.dimension != "—") - dimensions.push(i.dimension);*/ if (genres.indexOf(i.genre) === -1 && i.genre != "" && i.genre != "—") genres.push(i.genre); if (themes.indexOf(i.theme) === -1 && i.theme != "" && i.theme != "—") @@ -49,278 +60,335 @@ jQuery(document).ready(function($) } } - //dimensions.sort(); genres.sort(); themes.sort(); places.sort(Intl.Collator().compare); tags.sort(Intl.Collator().compare); - /*for (dimension of dimensions) - { - html = '\n'; - html += ''; - $(".box.dimensions .item-cont").append(html); - }*/ for (genre of genres) { html = '\n'; html += ''; $(".box.genres .item-cont").append(html); } + for (theme of themes) { html = '\n'; html += ''; $(".box.themes .item-cont").append(html); } - //$(".box.places select").append('