Giter Club home page Giter Club logo

Comments (3)

LRydin avatar LRydin commented on June 11, 2024

The idea is to embed a map (with leafletjs) on the index page, so we can pin the different locations where we have the recordings. According to the documentation of leaflet (quick-start), this should just be:

  • Include Leaflet CSS file in the head section of your document:
 <link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/leaflet.css"
   integrity="sha512-xwE/Az9zrjBIphAcBb3F6JVqxf46+CDLwfLMHloNu6KEQCAWi6HcDUbeOfBIptF7tcCzusKFjFw2yuvEpDL9wQ=="
   crossorigin=""/>
  • Include Leaflet JavaScript file after Leaflet’s CSS:
 <!-- Make sure you put this AFTER Leaflet's CSS -->
 <script src="https://unpkg.com/[email protected]/dist/leaflet.js"
   integrity="sha512-gZwIG9x3wUXg2hdXF6+rVkLF/0Vi9U8D2Ntg4Ga5I5BZpVkVxlJWbSQtXPSiUTtC0TjtGOmxa1AJPuV0CPthew=="
   crossorigin=""></script>

Put a div element with a certain id where you want your map to be:

<div id="mapid"></div>
  • Make sure the map container has a defined height, for example by setting it in CSS:
#mapid { height: 180px; }

from power-grid-frequency.

LRydin avatar LRydin commented on June 11, 2024

I've finally succeeded in embedding the js and css straight in the (index.md)[index.md]. I think we can keep the index.md fixed, and add the rest of the webpage in separate .md and .html files. See last commit 4d01a68 in the website branch.

from power-grid-frequency.

LRydin avatar LRydin commented on June 11, 2024

I'll close this, as we are clearly using jekyll and things seem to be going okay.

from power-grid-frequency.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.