Web Hosting
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

WordPress How can I add my javascript file

Discussion in 'Misc WordPress Requests' started by pierrot10, Oct 30, 2017.

  1. pierrot10

    Guest

    How can I add my javascript file, by pierrot10

    Hello

    I have created a map with Leaflet here
    http://smart-idea.io/measures/map_node1.php

    I would like to add the map into a page.

    I have to add into my skeleton this

    <script src="js/map1.js"></script>
    </script>

    The think, I also would like to do is to add something likw this

    [leaflet-io mapid=node1 from="2017-10-29 10:00:00" to="2017-10-29 15:00:00"]

    In resumé, this will call the following javascript fonction of map1.js
    app.getTraces(mapid,from,to);

    Could tell me how I can make this? How can I easyl create a extension, whill oad map1.js and when I add

    [leaflet-io mapid=node1 from="2017-10-29 10:00:00" to="2017-10-29 15:00:00"]

    into a page content, it will call app.getTrace with the 3 parameter?

    Is it easy to do without a lot of knowledge?
    Thanks

    How can I add my javascript file
     
    #1

Share This Page

Web Hosting