From dca84491652b28ec4e61385f22035d196a13acbe Mon Sep 17 00:00:00 2001 From: j Date: Thu, 7 Nov 2019 10:04:46 +0100 Subject: [PATCH 1/3] decolonial --- config.jsonc | 14 ++++++++++++-- static/js/infoView.collectivecinema.js | 2 +- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/config.jsonc b/config.jsonc index a8285f7..953796e 100644 --- a/config.jsonc +++ b/config.jsonc @@ -569,6 +569,16 @@ examples (config.SITENAME.jsonc) that are part of this pan.do/ra distribution. "find": true, "sort": true }, + { + "id": "place", + "title": "Place", + "type": "string", + "autocomplete": true, + "columnWidth": 180, + "filter": true, + "find": true, + "sort": true + }, { "id": "date", "title": "Date", @@ -998,11 +1008,11 @@ examples (config.SITENAME.jsonc) that are part of this pan.do/ra distribution. }, "https": true, "id": "collectivecinema", - "name": "Collective Cinema", + "name": "Collective Cinema (decolonial)", // Set to true to allow search engines to index the site "public": false, "sendReferrer": false, - "url": "collective-cinema.net" + "url": "decolonial.collective-cinema.net" }, /* "sitePages" defines the sections of the main site dialog. If "news" is diff --git a/static/js/infoView.collectivecinema.js b/static/js/infoView.collectivecinema.js index 363a0f5..b80ebe1 100644 --- a/static/js/infoView.collectivecinema.js +++ b/static/js/infoView.collectivecinema.js @@ -323,7 +323,7 @@ pandora.ui.infoView = function(data, isMixed) { // Groups ------------------------------------------------------------------ - renderGroup(['date', 'language']); + renderGroup(['place', 'date', 'language']); //renderGroup(['director', 'featuring']); if (isMultiple) { From ff634b5ccde8c9b150e970426b8c581f289ab994 Mon Sep 17 00:00:00 2001 From: j Date: Wed, 21 Oct 2020 17:21:51 +0200 Subject: [PATCH 2/3] links on home page --- static/css/home.collectivecinema.css | 17 +++++++++ static/js/home.collectivecinema.js | 55 ++++++++++++++++++++++------ 2 files changed, 61 insertions(+), 11 deletions(-) diff --git a/static/css/home.collectivecinema.css b/static/css/home.collectivecinema.css index 1532b2b..face38b 100644 --- a/static/css/home.collectivecinema.css +++ b/static/css/home.collectivecinema.css @@ -84,3 +84,20 @@ #home .text.es { text-align: right; } + + +#home .submenu { + overflow: hidden; + margin: 10px 0 5px; +} +#home .submenu .sub { + font-family: "helvetica-neue-bold", Helvetica, Arial, sans-serif; + font-size: 15px; + margin: 5px 0; + margin-bottom: 7px; + cursor: pointer; +} + +#home .submenu .sub:hover { + opacity: 0.5; +} diff --git a/static/js/home.collectivecinema.js b/static/js/home.collectivecinema.js index 7e0c8d7..f39d7a3 100644 --- a/static/js/home.collectivecinema.js +++ b/static/js/home.collectivecinema.js @@ -43,7 +43,7 @@ pandora.ui.home = function() { left: '32px', position: 'absolute', top: '32px', - width: '128px' + width: '148px' }, $menu = $('
') @@ -165,17 +165,12 @@ pandora.ui.home = function() { .html('
Enter the archive
Entra al archivo
') .bind({ click: function() { - var page = pandora.user.ui.page == 'home' ? '' : pandora.user.ui.page; - /* - if (pandora.user.level == 'guest') { - page = 'signup' + if ($siteSelection.css('height') == '0px') { + $siteSelection.animate({height: '125px'}, 800, function() { + }) + } else { + $siteSelection.animate({height: '0px'}, 800) } - */ - pandora.UI.set({ - page: page, - section: 'items' - }); - that.fadeOutScreen(); }, mouseenter: function() { $enterButton.css({opacity: 0.5}); @@ -186,6 +181,44 @@ pandora.ui.home = function() { }) .appendTo($menu), + $siteSelection = Ox.Element() + .addClass('submenu') + .html(` +
Capital
+
Orestiada/Oresteia
+
Sleepers
+
Decolonial
+ `) + .css({height: 0}) + .bind({ + click: function(event) { + var sub = event.target.innerText + var target + if (sub == 'Capital') { + target = 'https://collective-cinema.net/grid' + } else if (sub == 'Orestiada/Oresteia') { + target = 'https://orestiada.collective-cinema.net/grid' + } else if (sub == 'Sleepers') { + target = 'https://sleepers.collective-cinema.net/grid' + } else if (sub == 'Decolonial') { + target = 'https://decolonial.collective-cinema.net/grid' + } else { + target = 'https://collective-cinema.net/grid' + } + if (document.location.href.split('/')[2] == target.split('/')[2]) { + var page = pandora.user.ui.page == 'home' ? '' : pandora.user.ui.page; + pandora.UI.set({ + page: page, + section: 'items' + }); + that.fadeOutScreen(); + } else { + document.location.href = target + } + } + }) + .appendTo($menu), + $aboutButton = Ox.Element() .addClass('menu') .html('
About
Acerca de
') From 485e24ac081e97633921c67444ae66ca2c6a7078 Mon Sep 17 00:00:00 2001 From: j Date: Thu, 22 Oct 2020 14:31:57 +0200 Subject: [PATCH 3/3] hover --- static/css/home.collectivecinema.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/css/home.collectivecinema.css b/static/css/home.collectivecinema.css index face38b..9ccf139 100644 --- a/static/css/home.collectivecinema.css +++ b/static/css/home.collectivecinema.css @@ -99,5 +99,5 @@ } #home .submenu .sub:hover { - opacity: 0.5; + opacity: 0.5 !important; }