Sha256: 0074d6fa755437a53c1951000d512d8fe4204edef91a24bf91cab69fa9b30d10

Contents?: true

Size: 794 Bytes

Versions: 38

Compression:

Stored size: 794 Bytes

Contents

{% comment %}Page stub.{% endcomment %}

<div id="diagramContainer" style="height: 400px"></div>

<style>
  .leaflet-container {
    background-color: transparent;
  }
  .documentation.with-expandable-toc > article {
    max-width: none;
  }
</style>

<script>
  (function () {
    var map = L.map('diagramContainer', {
      crs: L.CRS.Simple,
      attributionControl: false,
      scrollWheelZoom: false,
      zoomControl: false,
      minZoom: -10,
    }).
    setView([{{ page.image_height }}/2, {{ page.image_width }}/2]);

    map.addControl(L.control.zoom({ position: 'bottomleft' }));

    var bounds = [[0,0], [{{ page.image_height }}, {{ page.image_width }}]];
    var image = L.imageOverlay('{{ page.image_path }}', bounds).addTo(map);
    map.fitBounds(bounds);
  }());
</script>

Version data entries

38 entries across 38 versions & 1 rubygems

Version Path
jekyll-theme-open-project-helpers-2.1.9 lib/jekyll-theme-open-project-helpers/spec_builders/png_diagram.html
jekyll-theme-open-project-helpers-2.1.8 lib/jekyll-theme-open-project-helpers/spec_builders/png_diagram.html
jekyll-theme-open-project-helpers-2.1.7 lib/jekyll-theme-open-project-helpers/spec_builders/png_diagram.html
jekyll-theme-open-project-helpers-2.1.6 lib/jekyll-theme-open-project-helpers/spec_builders/png_diagram.html
jekyll-theme-open-project-helpers-2.1.5 lib/jekyll-theme-open-project-helpers/spec_builders/png_diagram.html
jekyll-theme-open-project-helpers-2.1.4 lib/jekyll-theme-open-project-helpers/spec_builders/png_diagram.html
jekyll-theme-open-project-helpers-2.1.3 lib/jekyll-theme-open-project-helpers/spec_builders/png_diagram.html
jekyll-theme-open-project-helpers-2.1.2 lib/jekyll-theme-open-project-helpers/spec_builders/png_diagram.html
jekyll-theme-open-project-helpers-2.1.1 lib/jekyll-theme-open-project-helpers/spec_builders/png_diagram.html
jekyll-theme-open-project-helpers-2.1.0 lib/jekyll-theme-open-project-helpers/spec_builders/png_diagram.html
jekyll-theme-open-project-helpers-2.0.21 lib/jekyll-theme-open-project-helpers/spec_builders/png_diagram.html
jekyll-theme-open-project-helpers-2.0.20 lib/jekyll-theme-open-project-helpers/spec_builders/png_diagram.html
jekyll-theme-open-project-helpers-2.0.19 lib/jekyll-theme-open-project-helpers/spec_builders/png_diagram.html
jekyll-theme-open-project-helpers-2.0.18 lib/jekyll-theme-open-project-helpers/spec_builders/png_diagram.html
jekyll-theme-open-project-helpers-2.0.17 lib/jekyll-theme-open-project-helpers/spec_builders/png_diagram.html
jekyll-theme-open-project-helpers-2.0.16 lib/jekyll-theme-open-project-helpers/spec_builders/png_diagram.html
jekyll-theme-open-project-helpers-2.0.15 lib/jekyll-theme-open-project-helpers/spec_builders/png_diagram.html
jekyll-theme-open-project-helpers-2.0.14 lib/jekyll-theme-open-project-helpers/spec_builders/png_diagram.html
jekyll-theme-open-project-helpers-2.0.13 lib/jekyll-theme-open-project-helpers/spec_builders/png_diagram.html
jekyll-theme-open-project-helpers-2.0.12 lib/jekyll-theme-open-project-helpers/spec_builders/png_diagram.html