Documentation
¶
Overview ¶
Package assets contains the embedded client assets and helpers used by JaWS setup code.
Index ¶
Constants ¶
const ISO8601 = "2006-01-02"
ISO8601 is the date format used by date input widgets (YYYY-MM-DD).
Variables ¶
var DefaultCookieName string
DefaultCookieName holds the default JaWS cookie name. It will be generated from the executable name, or "jaws" if that fails.
var JavascriptText []byte
JavascriptText is the source code for the client-side JaWS JavaScript library.
var JawsCSS []byte
JawsCSS is the source code for the client-side JaWS stylesheet.
Functions ¶
func JawsKeyAppend ¶
JawsKeyAppend appends the JaWS key as a string to the buffer.
func JawsKeyString ¶
JawsKeyString returns the string to be used for the given JaWS key.
func JawsKeyValue ¶
JawsKeyValue parses a key string, as returned by JawsKeyString, into a uint64.
func MakeCookieName ¶
MakeCookieName creates a cookie-safe name from an executable path.
func PreloadHTML ¶
PreloadHTML returns HTML code to load the given resources efficiently.
JavaScript and CSS files are emitted as script and stylesheet tags. Other recognized resources are emitted as preload tags. Favicon image URLs are returned separately.
Types ¶
This section is empty.