Search
Results
Results
${ capture(/^/, {
0: (data, captures) => (
data.params.project !== undefined ?
include('#filter-navigation-close-project', data) :
data.params.collection !== undefined ?
include('#filter-navigation-close-collection', data) :
include('#filter-navigation-search', data)
),
catch: () => console.log('TODO: SHOULDNT GET HERE')
}, data.location, data.location.name) }
${data.collections.reduce(function (acc, col) {
return acc + col.content_count
}, 0)}
${
merge([{ type: 'resize' }], events('resize', window))
// To size
.map(() => (window.innerWidth >= px('70em') ? 'big' : 'small'))
// Deduplicate
.filter(((prev) => (value) => {
const result = prev !== value;
prev = value;
return result;
})(null))
// Include
.map((size) => (size === 'big' ? 'Living Archives' : capture(/^/, {
0: (data, captures) => (
data.identifier === 'filters' ? 'Search / Filter' :
data.params.project !== undefined ? 'Project' :
data.params.collection !== undefined ? 'Collection' :
'Results'
),
catch: () => console.log('TODO: SHOULDNT GET HERE')
}, data.location, data.location.name)))
}
${ data.id[0].toUpperCase() + data.id.slice(1) }
${ events('dom-activate', element)
.take(1)
.map(() =>
request('/cms/' + data.id + '/')
.then((html) => {
const template = document.createElement('template');
template.innerHTML = html;
return template.content.querySelector('.inline-content-block');
})
) }
Back to navigation
${ events({ type: 'mousedown', select: '[name="scrollLeft"], [name="scrollTop"]' }, element).each((e) => {
const button = e.target;
const target = element.querySelector('.layer');
let frame;
function scroll() {
frame = requestAnimationFrame(scroll);
target[button.name] += parseFloat(button.value);
}
scroll();
events('mouseup', document)
.take(1)
.each((e) => cancelAnimationFrame(frame));
}) }
${ this.done(
// Switch href when slide changes
merge([{target: element.children[0]}], events('slide-active', element))
.each((e) => assign(data, e.target.dataset, { pk: parseInt(e.target.dataset.pk, 10) }))
) }
${ this.done(
// Switch src when img clicked
events({ type: 'click', select: 'img, [name="zoom"]' }, element)
// Only react in fullscreen mode
.filter((e) => !!document.fullscreenElement || !!document.webkitFullscreenElement || !!document.boltFullscreenElement)
.each((e) => {
console.log('CLICK');
if (data.src) {
data.src = undefined;
data.alt = undefined;
}
else {
assign(data, {
src: element.active.dataset.itemUrl,
alt: element.active.querySelector('img').alt,
width: element.active.dataset.itemWidth,
height: element.active.dataset.itemHeight
});
}
})
) }
${ this.done(
events('fullscreenchange', element)
// Only react in fullscreen mode
//.filter((e) => getFullScreenElement() !== element)
.each((e) => {
data.src = undefined;
data.alt = undefined;
})
) }
${ data.src ? include('#img-viewer', data) : '' }
${ include('#zoom-icon-thumb', data) }
${ include('#collections-thumb', data) }
Intercantonal Space - A New Way for Virtual Work - PROJECT
Téo Pierre Golay / Grégory Kramer
project
2021
Image, Document, Link
Swiss Popular Initiative - Against Propaganda - PROJECT
Julien Alexandre Porret / Maria Sienko
project
2021
Image, Document, Link
VIRTUAL PARLIAMENT - Rethinking the Architecture of Democracy - PROJECT
LDM
project
2021
Image, Document, Link
Social Parliament - Connecting Every Swiss Citizen - PROJECT
Alexandre Maxime Bron / Alexandre Gameiro / Ricky Lee
project
2021
Image, Document, Link
A Citizen - Participation Program for Bern - PROJECT
Héloïse Laurie Merry Suzanne Lauret
project
2021
Image, Document, Link
Declamo Apparatus - Vox Populi in the Digital Age - PROJECT
Yonah Belaich / Lundrim Karameta
project
2021
Image, Document, Link
Digital Encounters - Strengthening Direct Democracy - PROJECT
Marilyn Brühlmann / Roberto Trivelli / Gaël Corentin Tuchschmid
project
2021
Image, Document, Link
Immersive Infotecture - Virtual Archive for Referendums - PROJECT
David Rida Perret
project
2021
Image, Document, Link
Architecture & Negotiation - Mobile Interface for Political Crisis Negotiation - PROJECT
Micky Gerardi / Kyra Lea Michel
project
2021
Image, Document, Link
Virtual Popular Initiative - The Platform of the Future for Initiatives - PROJECT
Andrea Calzolaro / Jacques Schmidt
project
2021
Image, Document, Link
Eavesdropping the Parliament - Bring Politics to Public Space - PROJECT
Abigaël Schaller
project
2021
Image, Document, Link
Open Lobbying - Equity and Transparency in the Influencing System - PROJECT
Mikail Gün
project
2021
Image, Video, Document, Link
PoliticalBar - Serving the People - PROJECT
Constantin Théodore Guichard
project
2021
Image, Document, Link
Vote in the City - A Collective Way of Voting - PROJECT
Anne Gabrielle Steullet / Alessandro Tiezzi
project
2021
Image, Video, Document, Link