templates/area/map_preview.html.twig line 1

Open in your IDE?
  1. {% block css %}
  2.     <link rel="stylesheet" type="text/css" media="screen" href="{{ asset('assets/game/styles/map.css') }}"/>
  3.     <link rel="stylesheet" type="text/css" media="screen" href="{{ asset('assets/game/scripts/stickytooltip.css') }}"/>
  4.     <link rel="stylesheet" type="text/css" media="screen" href="{{ asset('assets/game/style.css') }}"/>
  5. {% endblock %}
  6. {% block body %}
  7.     <div id="container"><br>
  8.         <center>
  9.             <h1>MAP PREVIEW {{ area.description }}</h1>
  10.             <font color=white>The preview only shows <a href="{{ path('guide_subpage', {'subpage': 'acre'}) }}">acres</a> and <a href="{{ path('guide_subpage', {'subpage': 'government'}) }}">government locations</a>, other info remains hidden. <a href="{{ path('site_index') }}">(www.the-outbreak.com)</a>
  11.             <br><br> Total active towns: ? | Total active raider camps: ?</font></center>
  12.         <div class="mapholder">
  13.             {% for acre in acres %}
  14.                 <div style="position:absolute;left:{{ (acre.x * 30) + 20 }}px;top:{{ (acre.y * 30) + 5 }}px;width:23px;height:23px;">
  15.                     <p><img src="{{ asset('assets/game/contentimages/map/icons/' ~ acre.type ~ '.png') }}" data-tooltip="acre{{ acre.id }}"></p>
  16.                 </div>
  17.             {% endfor %}
  18.             {% for location in govLocations %}
  19.                 <div style="position:absolute;left:{{ (location.x * 30) + 20 }}px;top:{{ (location.y * 30) + 5 }}px;width:23px;height:23px;">
  20.                     <p><img src="{{ asset('assets/game/contentimages/map/icons/' ~ location.name ~ '.png') }}" data-tooltip="gov{{ location.id }}"></p>
  21.                 </div>
  22.             {% endfor %}
  23.         </div>
  24.     </div>
  25. {% endblock %}
  26. {% block js %}
  27.     <script type="text/javascript" src="{{ asset('assets/game/scripts/jquery.min_new.js') }}"></script>
  28.     <script type="text/javascript" src="{{ asset('assets/game/scripts/stickytooltip.js') }}"></script>
  29. {% endblock %}