F#
HTML
Result
Hosted on
Try WebSharper
<
>
namespace Samples open WebSharper open WebSharper.JavaScript open WebSharper.UI.Next open WebSharper.UI.Next.Html open WebSharper.UI.Next.Client [<JavaScript>] module HelloWorld = let Main = let welcome = p [text "Welcome"] div [ welcome buttonAttr [ on.click (fun _ _ -> welcome.Text <- "Hello, world!") ] [ text "Click Me!" ] ] |> Doc.RunById "main"
<html> <head> <title></title> </head> <body> <div class="example shorter_path_finder"> <div class="options"> <label>Directed graph<input type="checkbox" id="opt-directed" /></label> <label> Edit mode<input type="checkbox" id="opt-edit" /> <p id="edit-mode-help"> Double-click a blank paper area to create new nodes. Drag the text of nodes to create new edges. </p> </label> </div> <pre id="path" style="position: absolute" ></pre> <div id="paper" style="margin-top:15px" class="paper"></div> </div><!--end example--> <!--[BODY]--> </body> </html>