Compare commits

...

4 commits

Author SHA1 Message Date
j
485e24ac08 hover 2020-10-22 14:33:11 +02:00
j
ff634b5ccd links on home page 2020-10-21 17:22:15 +02:00
j
79324b3616 Merge branch 'master' into decolonial 2019-11-07 17:07:28 +01:00
j
dca8449165 decolonial 2019-11-07 11:03:05 +01:00
4 changed files with 74 additions and 14 deletions

View file

@ -569,6 +569,16 @@ examples (config.SITENAME.jsonc) that are part of this pan.do/ra distribution.
"find": true, "find": true,
"sort": true "sort": true
}, },
{
"id": "place",
"title": "Place",
"type": "string",
"autocomplete": true,
"columnWidth": 180,
"filter": true,
"find": true,
"sort": true
},
{ {
"id": "date", "id": "date",
"title": "Date", "title": "Date",
@ -998,11 +1008,11 @@ examples (config.SITENAME.jsonc) that are part of this pan.do/ra distribution.
}, },
"https": true, "https": true,
"id": "collectivecinema", "id": "collectivecinema",
"name": "Collective Cinema", "name": "Collective Cinema (decolonial)",
// Set to true to allow search engines to index the site // Set to true to allow search engines to index the site
"public": false, "public": false,
"sendReferrer": false, "sendReferrer": false,
"url": "collective-cinema.net" "url": "decolonial.collective-cinema.net"
}, },
/* /*
"sitePages" defines the sections of the main site dialog. If "news" is "sitePages" defines the sections of the main site dialog. If "news" is

View file

@ -84,3 +84,20 @@
#home .text.es { #home .text.es {
text-align: right; 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 !important;
}

View file

@ -43,7 +43,7 @@ pandora.ui.home = function() {
left: '32px', left: '32px',
position: 'absolute', position: 'absolute',
top: '32px', top: '32px',
width: '128px' width: '148px'
}, },
$menu = $('<div>') $menu = $('<div>')
@ -165,17 +165,12 @@ pandora.ui.home = function() {
.html('<div class="en">Enter the archive</div><div class="es">Entra al archivo</div>') .html('<div class="en">Enter the archive</div><div class="es">Entra al archivo</div>')
.bind({ .bind({
click: function() { click: function() {
var page = pandora.user.ui.page == 'home' ? '' : pandora.user.ui.page; if ($siteSelection.css('height') == '0px') {
/* $siteSelection.animate({height: '125px'}, 800, function() {
if (pandora.user.level == 'guest') { })
page = 'signup' } else {
$siteSelection.animate({height: '0px'}, 800)
} }
*/
pandora.UI.set({
page: page,
section: 'items'
});
that.fadeOutScreen();
}, },
mouseenter: function() { mouseenter: function() {
$enterButton.css({opacity: 0.5}); $enterButton.css({opacity: 0.5});
@ -186,6 +181,44 @@ pandora.ui.home = function() {
}) })
.appendTo($menu), .appendTo($menu),
$siteSelection = Ox.Element()
.addClass('submenu')
.html(`
<div class="sub">Capital</div>
<div class="sub">Orestiada/Oresteia</div>
<div class="sub">Sleepers</div>
<div class="sub">Decolonial</div>
`)
.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() $aboutButton = Ox.Element()
.addClass('menu') .addClass('menu')
.html('<div class="en">About</div><div class="es">Acerca de</div>') .html('<div class="en">About</div><div class="es">Acerca de</div>')

View file

@ -323,7 +323,7 @@ pandora.ui.infoView = function(data, isMixed) {
// Groups ------------------------------------------------------------------ // Groups ------------------------------------------------------------------
renderGroup(['date', 'language']); renderGroup(['place', 'date', 'language']);
//renderGroup(['director', 'featuring']); //renderGroup(['director', 'featuring']);
if (isMultiple) { if (isMultiple) {