-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add instructions for people who fail to make the sample code work
- Loading branch information
Showing
3 changed files
with
4 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ import common from "./common.ts" | |
import { HTMLDocument } from "https://deno.land/x/[email protected]/deno-dom-wasm.ts" | ||
|
||
export default (doc: HTMLDocument) => { | ||
const {tags: {div, p}} = van.vanWithDoc(doc) | ||
const {tags: {div, i, p}} = van.vanWithDoc(doc) | ||
const {Demo, Download, H1, H2, H3, Html, InlineHtml, Js, Link, Shell, SymLink, Symbol, Ts, VanJS} = common(doc) | ||
|
||
const version = Deno.readTextFileSync("code/van.version") | ||
|
@@ -62,6 +62,7 @@ van.add(document.body, Hello()) | |
p(Demo()), | ||
p({id: "demo-hello-fun"}), | ||
p({id: "jsfiddle-hello-fun"}), | ||
p(i("If you encounter problems after pasting the code above to your HTML file, be mindful of where to place your script. See ", Link("#9", "https://github.com/vanjs-org/vanjs-org.github.io/pull/9"), " for a detailed discussion.")), | ||
H2({id: "download-table"}, "Download Table"), | ||
div({id: "download-table-div"}), | ||
) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters