<!DOCTYPE html>
<html lang="nl">
<head>
  <meta charset="utf-8">
  <title>Bloklocaties in Vlaanderen</title>
  <meta name="apple-itunes-app" content="app-id=602640924">
  <meta name="google-play-app" content="app-id=be.ugent.zeus.hydra">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">

  <meta property="og:site_name" content="Zeus WPI">
  <meta property="og:type" content="article">
  <meta property="og:title" content="Bloklocaties in Vlaanderen">
  <meta property="og:description" content="Heb je nood aan een plek om te blokken? Zeus en de Gentse Studentenraad maakten een overzicht van alle beschikbare bloklocaties op één kaart.">
  <meta property="og:url" content="https://blok.ugent.be">
  <meta property="og:image" content="https://blok.ugent.be/img/share_square.png">

  <meta name="twitter:card" content="summary">
  <meta name="twitter:url" content="//blok.ugent.be">
  <meta name="twitter:title" content="Bloklocaties in Vlaanderen">
  <meta name="twitter:description" content="Heb je nood aan een plek om te blokken? Zeus en de Gentse Studentenraad maakten een overzicht van alle beschikbare bloklocaties op één kaart.">
  <meta name="twitter:image" content="https://blok.ugent.be/img/share_square.png">

  <link rel="stylesheet" href="css/leaflet-1.0.0.css">
  <link rel="stylesheet" href="css/map.css">

  <script type="text/javascript" src="js/leaflet-1.0.0.js"></script>
  <script type="text/javascript" src="js/jquery-1.11.0.js"></script>
  <script type="text/javascript" src="js/handlebars-2.0.0.js"></script>
  <script type="text/javascript" src="js/map.js"></script>
</head>
<body>
  <div id="map"></div>

  <script id="popup-template" type="text/x-handlebars-template">
    <div id="resto-popup">
      <h3>{{name}} ({{capacity}} pl.)</h3>
      <img src="img/{{type}}.png" class="type">
      <div class="location">Locatie: {{address}}</div>
      <div class="period">{{#if period.start}}
          Periode: {{date period.start}} tot {{date period.end}}
        {{else}}
          Open gedurende het hele jaar.
        {{/if}}
      </div>
      <h4>Openingsuren</h4>
      <table class="desktop">
        <tr>
          <td>Maandag</td>
          <td>Dinsdag</td>
          <td>Woensdag</td>
          <td>Donderdag</td>
          <td>Vrijdag</td>
          <td>Zaterdag</td>
          <td>Zondag</td>
        </tr><tr>
          <td>{{#if hours.monday}}{{hours.monday}}{{else}}Gesloten{{/if}}</td>
          <td>{{#if hours.tuesday}}{{hours.tuesday}}{{else}}Gesloten{{/if}}</td>
          <td>{{#if hours.wednesday}}{{hours.wednesday}}{{else}}Gesloten{{/if}}</td>
          <td>{{#if hours.thursday}}{{hours.thursday}}{{else}}Gesloten{{/if}}</td>
          <td>{{#if hours.friday}}{{hours.friday}}{{else}}Gesloten{{/if}}</td>
          <td>{{#if hours.saturday}}{{hours.saturday}}{{else}}Gesloten{{/if}}</td>
          <td>{{#if hours.sunday}}{{hours.sunday}}{{else}}Gesloten{{/if}}</td>
        </tr>
      </table>
      <table class="mobile">
        <tr>
          <td>Maandag</td>
          <td>{{#if hours.monday}}{{hours.monday}}{{else}}Gesloten{{/if}}</td>
        </tr><tr>
          <td>Dinsdag</td>
          <td>{{#if hours.tuesday}}{{hours.tuesday}}{{else}}Gesloten{{/if}}</td>
        </tr><tr>
          <td>Woensdag</td>
          <td>{{#if hours.wednesday}}{{hours.wednesday}}{{else}}Gesloten{{/if}}</td>
        </tr><tr>
          <td>Donderdag</td>
          <td>{{#if hours.thursday}}{{hours.thursday}}{{else}}Gesloten{{/if}}</td>
        </tr><tr>
          <td>Vrijdag</td>
          <td>{{#if hours.friday}}{{hours.friday}}{{else}}Gesloten{{/if}}</td>
        </tr><tr>
          <td>Zaterdag</td>
          <td>{{#if hours.saturday}}{{hours.saturday}}{{else}}Gesloten{{/if}}</td>
        </tr><tr>
          <td>Zondag</td>
          <td>{{#if hours.sunday}}{{hours.sunday}}{{else}}Gesloten{{/if}}</td>
        </tr>
      </table>
      {{#if extra}}{{{extra}}}{{/if}}
    </div>
  </script>

  <script id="info-template" type="text/x-handlebars-template">
    <a href="https://zeus.gent/" class="author-icon"><img src="img/zeus.png" alt="Zeus WPI"></a>
    <a href="https://gentsestudentenraad.be/" class="author-icon"><img src="img/GSR.png" alt="Gentse Studentenraad"></a>
  </script>

  <script id="share-template" type="text/x-handlebars-template">
    <div class="share">
      <a href="https://www.facebook.com/Blokmap-Vlaanderen-105861927804347/" class="img-and-text-link"><img src="img/facebook.svg" alt=""> <span>Facebookpagina</span></a> |
      <a href="https://forms.gle/H67tFQp54udB9cyR7">Locatie melden</a>
    </div>
  </script>

  <script id="legend-template" type="text/x-handlebars-template">
    <div style="padding-top: 5px;">
      <div style="width: 125px; height: 18px; padding-top: 5px; padding-left: 5px;">
        <div style="height: 10px; width: 10px; background: rgb(209,39,35); margin-top: -1px; margin-left: 5px;"></div>
        <span style="position: absolute; left: 25px; top: 5px;">Week en weekend</span>
      </div>
      <div style="width: 125px; height: 18px; padding-top: 5px; padding-left: 5px;">
        <div style="height: 10px; width: 10px; background: rgb(36, 126, 202); margin-top: 1px; margin-left: 5px;"></div>
        <span style="position: absolute; left: 25px; top: 30px;">Enkel week</span>
      </div>
      <div style="width: 140px; height: 18px; padding-top: 5px; padding-left: 5px;" class="holiday">
        <div style="height: 10px; width: 10px; background: rgb(121, 230, 121); margin-top: 0px; margin-left: 5px;"></div>
        <span style="position: absolute; left: 25px; top: 53px;">Tijdens kerstvakantie</span>
      </div>
    </div>
  </script>

  <!-- Google Analytics SDK -->
  <script>
    (function(i,s,o,g,r,a,m){i["GoogleAnalyticsObject"]=r;i[r]=i[r]||function(){
      (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
      m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
    })(window,document,"script","//www.google-analytics.com/analytics.js","ga");

    ga("create", "UA-25444917-8", "auto");
    ga('set', 'anonymizeIp', true);
    ga("send", "pageview");
  </script>
</body>
</html>
