This work is marked CC0 1.0
_hyperscript is a scripting language for HTML, designed for DOM manipulation and event handling. It uses English-like syntax embedded in HTML attributes: _="..." or data-script="...".
This work is marked CC0 1.0
_hyperscript is a scripting language for HTML, designed for DOM manipulation and event handling. It uses English-like syntax embedded in HTML attributes: _="..." or data-script="...".
| Title: ///_hyperscript | |
| URL Source: https://hyperscript.org/docs/ | |
| Markdown Content: | |
| Introduction | |
| ------------ | |
| Hyperscript is a scripting language for doing front end web development. It is designed to make it very easy to respond to events and do simple DOM manipulation in code that is directly embedded on elements on a web page. |
Disclaimer: I'm in the Top 1% of StackOverflow contributors with 23,315 rep points.
I asked 1 high-quality question in 2024, and it was closed almost immediately, and I haven't engaged with the site since.
If someone with 20,000+ karma has their nicely-formatted questions closed so quickly, what must the newbies and rank-in-file encounter? This is probably a big reason why it's declining.
| package main | |
| import ( | |
| "html/template" | |
| "net/http" | |
| "strconv" | |
| ) | |
| /*********************** | |
| This is a simple demonstration of how to use the built-in template package in Go to implement |
| export async function wrapErr<T>(p: Promise<T>): Promise<[any, T | undefined]> { | |
| try { | |
| return [undefined, await p]; | |
| } catch (err) { | |
| return [err, undefined]; | |
| } | |
| } | |
| let [err, value] = await wrapErr(somePromiseFunc()); | |
| if (err) { |
| <link href="http://fonts.googleapis.com/css?family=Raleway:200,100,400" rel="stylesheet" type="text/css" /> | |
| <h1>Build your own | |
| <span | |
| class="txt-rotate" | |
| data-period="2000" | |
| data-rotate='[ "eCommerce Site.", "Web Application.", "IoT Device.", "Blog." ]'></span> | |
| </h1> | |
| <h2>Create Your Awesome Website with Synoval.</h2> |
| /* | |
| ##Device = Desktops | |
| ##Screen = 1281px to higher resolution desktops | |
| */ | |
| @media (min-width: 1281px) { | |
| /* CSS */ | |
| package main | |
| import ( | |
| "database/sql" | |
| "fmt" | |
| _ "github.com/lib/pq" | |
| ) | |
| const ( | |
| DB_USER = "ramesh" |