Last active
November 3, 2020 06:19
-
-
Save psqq/5c9b1d4bf6b5cc3469fde370d73fafb8 to your computer and use it in GitHub Desktop.
Revisions
-
psqq revised this gist
Nov 3, 2020 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -2,5 +2,5 @@ # Running ``` deno run -A --unstable https://gist.github.com/psqq/5c9b1d4bf6b5cc3469fde370d73fafb8/raw/29bbb3f19e9ba2f8b8e630ef1224d360281b8c9a/main.ts ``` -
psqq revised this gist
Nov 3, 2020 . 1 changed file with 15 additions and 5 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -2,12 +2,21 @@ import { WebView } from "https://deno.land/x/webview/mod.ts"; // Creating an HTML page let html = ` <html> <body> <input type="text"/> Result: "<span></span>". <script> document.querySelector('input').addEventListener('keyup', function(e) { var s = e.target.value; var res = s.toLowerCase().split(' ').join('-'); document.querySelector('span').innerText = res; }); </script> </body> </html> `; // Creating and configuring the webview const webview = new WebView({ title: "Deno Webview Example", @@ -18,5 +27,6 @@ const webview = new WebView({ debug: true, frameless: false }); // Running the webview webview.run(); -
psqq revised this gist
Nov 3, 2020 . 1 changed file with 6 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,6 @@ # Running ``` deno run -A --unstable https://gist.github.com/psqq/5c9b1d4bf6b5cc3469fde370d73fafb8/raw/1c340cffe64e3b39c17cd2f2b9611f7a00fb766f/main.ts ``` -
psqq created this gist
Nov 3, 2020 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,22 @@ // Importing the webview library import { WebView } from "https://deno.land/x/webview/mod.ts"; // Creating an HTML page let html = ` <html> <body> <h1>Hello World!</h1> </body> </html> `; // Creating and configuring the webview const webview = new WebView({ title: "Deno Webview Example", url: "data:text/html," + html, width: 800, height: 600, resizable: true, debug: true, frameless: false }); // Running the webview webview.run();