index.html 7.22 KB
Newer Older
gijs's avatar
gijs committed
1
2
{% load generator_utils %}
<html>
gijs's avatar
gijs committed
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22

<head>
  <meta charset="utf-8">
  <link rel="stylesheet" type="text/css" media="all" href="static/styles.css" />
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <style>
    body {
      margin: 10px;
      overflow-x: hidden;
      position: relative;
    }
  </style>
  <title>caveat</title>
</head>

<body>
  <div id="container">
    <main>
      <aside class="left">
        <nav id="menu">
gijs's avatar
gijs committed
23
          <p class="logo"><a href="{{ SITE_URL }}index.html"><img class="logo" src="{{ SITE_URL }}static/images/logos/caveat.png" /></span></a></p>
gijs's avatar
gijs committed
24
25

          <ul>
gijs's avatar
gijs committed
26
27
28
              {% for label, url in MENU_ITEMS %}
                <li><a href="{{ SITE_URL}}{{ url }}">{{ label }}</a></li>
              {% endfor %}
gijs's avatar
gijs committed
29
30
31
32
33
34
35
36
37
            <!-- <li><a href="" class="artist"><span>Activities</span></a></li>
                  <li><a href="" class="artist"><span>Documents</span></a></li> -->
          </ul>
        </nav>
        <div id="prolog">
          <!--<span><a href="caveat-agenda-detail.html">&nbsp;</a></span>-->
          <!-- <p class= "question-quote">Giving the situation the power to make things</p> -->
        </div>
        <div class="about">
38
39
40
41
42
43
44
          <p class="intro">
            <em>Caveat</em> is a  a collective research into the ecology of artistic practice.
            It is initatiated by Jubilee, in partnership with Open Source Publishing, No New Enemies and Été 78.
            <em>Caveat</em> tries to find more sustainable, balanced ways of operating within the existing legal frameworks.
            And when the limits of the existing system are reached, it tries to come up with possible new narratives that
            open up space for reflection.
          </p>
gijs's avatar
gijs committed
45
46
47
48
49
        </div>
      </aside>
      <aside class="right">
        <div class="agenda">
          {% for event in events %}
50
            <div id="{{ event.key }}" class="event presentation" data-image="{{ event.image }}">
gijs's avatar
gijs committed
51
52
                <div class="event-detail-header">
                  <p class="event-date"><time datetime="2019-05-24">{{ event.date }}</time></p>
53
                  <h2 class="event-title">{{ event }}</h2>
gijs's avatar
gijs committed
54
                  <section class="event-summary">
gijs's avatar
?    
gijs committed
55
                    {% if event.programmeItems %}
56
                      <p><a href="{{ event.link }}">See programme</a></p>
gijs's avatar
?    
gijs committed
57
                    {% endif %}
gijs's avatar
gijs committed
58
59
                    {{ event.summary }}
                  </section>
gijs's avatar
gijs committed
60

gijs's avatar
gijs committed
61
                  <section class="event-detail">
gijs's avatar
gijs committed
62
                    <p class="event-infos">{{ event.location }}</p>
gijs's avatar
gijs committed
63
                    {% for line in event.address.value %}
gijs's avatar
gijs committed
64
65
                      <p class="event-infos">{{ line }}</p>
                    {% endfor %}
gijs's avatar
gijs committed
66
                    <p class="event-infos">
gijs's avatar
gijs committed
67
                      {% for link, source, produser in event.produser|link_iterator %}
gijs's avatar
gijs committed
68
69
70
                      <a href="{{ produser.link }}">{{ produser }}</a>
                      {% endfor %}
                    </p>
71
                    {% if event.programmeItems %}
72
                      <p><a href="{{ event.link }}">See programme</a></p>
73
                    {% endif %}
gijs's avatar
gijs committed
74
                    {{ event.content }}
gijs's avatar
gijs committed
75
76
77
                    {% if event.notes %}
                    <h4>Related documents</h4>
                    <ul class="simplelist">
78
                      {% for note in event.notes.targets %}
gijs's avatar
gijs committed
79
80
81
82
                      <li><a href="{{ note.link }}" class="note">{{ note }}</a></li>
                      {% endfor %}
                    </ul>
                    {% endif %}
83
                    {% if event.programmeItems %}
84
                      <p><a href="{{ event.link }}">See programme</a></p>
85
                    {% endif %}
gijs's avatar
gijs committed
86
                  </section>
gijs's avatar
gijs committed
87
88
89
90
91
92
93
94
95
96
97
98
              </div>
            </div>
          {% endfor %}

        </div>
        <div id="detail-container">
          <div class="chrome"><span class="close-button">x</span></div>
          <div class="content"></div>
        </div>
      </aside>
    </main>
    <aside class="partners">
gijs's avatar
gijs committed
99
      <p class=""><img class="logo-partners" src="{{ SITE_URL }}static/images/logos/innoviris.svg" /><strong>Caveat</strong> is a
gijs's avatar
gijs committed
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
        co-create research project convened by the Brussels-based artists’ initiative Jubilee, in partnership with Open
        Source Publishing, No New Enemies and Été 78 and supported by Innoviris, Brussels Institute for Research and
        Innovation.</p>
    </aside>
  </div>
</body>

<script>
  function setHash(hash) {
    if (hash) {
      hash = '#' + hash;
    }
    else {
      hash = '/';
    }

    if (history.pushState) {
      history.pushState(null, null, hash);
    }
    else {
      location.hash = hash;
    }
  }

  var entries = document.querySelectorAll('.event');
  var first = entries[0];
  var eventCloseButton = document.querySelector('#detail-container .close-button');
  eventCloseButton.addEventListener('click', function () {
    setHash(null);
    document.body.className = document.body.className.replace(/\s*event-active-through-click/, '');
  });
131
132
133
134
135
136
137
138
139
  
  function showImage(path) {
    var holder = document.getElementById('prolog');
    if (path && path != 'None') {
      holder.style.backgroundImage = 'url(' + path + ')';
    } else {
      holder.style.removeProperty('background-image');
    }
  }
gijs's avatar
gijs committed
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159

  function activate(entry, entries) {
    for (var e = 0; e < entries.length; e++) {
      entries[e].classList.remove('active');
    }

    entry.classList.add('active');
    var clone = entry.cloneNode(true);
    var container = document.querySelector('#detail-container .content');

    container.classList.add('active');
    while (container.hasChildNodes()) {
      container.removeChild(container.lastChild);
    }

    container.appendChild(clone);
    var question = document.getElementById('prolog');
    if (question) {
      question.classList.add('blink');
    }
160
161
162
163
164
    
    if (entry.dataset.image) {
      var image = entry.dataset.image;
      showImage(image);
    }
gijs's avatar
gijs committed
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
  }

  function show(entry, entries) {
    document.body.className += ' event-active-through-click';
    activate(entry, entries);
  }

  for (var i = 0; i < entries.length; i++) {
    (function (entry, entries) {
      entry.addEventListener('click', function () {
        setHash(entry.id);
        show(entry, entries)
      });
    })(entries[i], entries);
  }

  function getEntryByHash(hash) {
    var id = window.location.hash.substr(1);
    var entry = document.getElementById(id);

    if (entry && entry.className.indexOf('event') > -1) {
      return entry;
    }

    return false
  }

  if (window.location.hash) {
    var entry = getEntryByHash(window.location.hash);

    if (entry) {
      show(entry, entries);
    } else {
      activate(first, entries);
    }
  }
  else {
    activate(first, entries);
  }

  window.onhashchange = function () {
    var entry = getEntryByHash(window.location.hash);

    if (entry) {
      show(entry, entries);
    } else {
      document.body.className = document.body.className.replace(/\s*event-active-through-click/, '');
    }
  };

  document.getElementById('prolog').addEventListener('click', function () {
    var body = document.body;

    if (body.className.indexOf('prolog-expanded') == -1) {
      body.className += ' prolog-expanded';
    } else {
      body.className = body.className.replace(/\s*prolog-expanded/, '');
    }
  });

</script>