Giter Site home page Giter Site logo

Not working about elm-canvas HOT 3 CLOSED

joakin avatar joakin commented on July 21, 2024
Not working

from elm-canvas.

Comments (3)

joakin avatar joakin commented on July 21, 2024 1

elm-canvas requires a JS library like is mentioned everywhere, so if you want to compile things you will need to set things up to use a custom html file because neither the elm compiler html output nor the reactor support custom HTML.

I compile the library and examples using the makefile https://github.com/joakin/elm-canvas/blob/master/Makefile

When I make a new example I make an Elm file in examples/ and HTML file in public/ and then run make or make dist, and open the HTML file in the browser.

Also, the examples are self contained so feel free to use the sketch repo or the Ellie and copy paste the elm file of the example you want to try. See https://github.com/joakin/elm-canvas#usage

I’m closing this issue because the original poster didn’t provide any detail neither on the title or description of it. @auryn31 feel free to open any new issues if you have any problems :)

from elm-canvas.

joakin avatar joakin commented on July 21, 2024

from elm-canvas.

auryn31 avatar auryn31 commented on July 21, 2024

I had the same issue, until i included the js file. Totally missed that

<script src="<script src="https://unpkg.com/[email protected]/elm-canvas.js"></script>"></script>

from elm-canvas.

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.