html

package
v1.9.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 8, 2024 License: MIT Imports: 2 Imported by: 7

Documentation

Index

Constants

View Source
const (
	FAVICON        = "favicon"
	Mozilla        = "Mozilla"
	Firefox        = "Firefox"
	Safari         = "Safari"
	Chrome         = "Chrome"
	Edg            = "Edg"
	Mobile         = "Mobile"
	Alipay         = "Alipay"
	MicroMessenger = "MicroMessenger"
	Android        = "Android"
	IPhone         = "iPhone"
	Mac            = "Mac"
	Linux          = "Linux"
	Windows        = "Windows"

	UserAgent       = "User-Agent"
	XForwardedFor   = "X-Forwarded-For"
	XHost           = "X-Host"
	Referer         = "Referer"
	Authorization   = "Authorization"
	Bearer          = "Bearer"
	Basic           = "Basic"
	Accept          = "Accept"
	AcceptLanguage  = "Accept-Language"
	ContentEncoding = "Content-Encoding"
	ContentLength   = "Content-Length"
	ContentType     = "Content-Type"

	ApplicationForm  = "application/x-www-form-urlencoded"
	ApplicationOctet = "application/octet-stream"
	ApplicationJSON  = "application/json"
	TEXT_PLAIN       = "text/plain"
)
View Source
const (
	H1       = "h1"
	H2       = "h2"
	H3       = "h3"
	SPAN     = "span"
	TEXT     = "text"
	PLUG     = "plug"
	TEXTAREA = "textarea"
	PASSWORD = "password"
	CHECKBOX = "checkbox"
	SELECT   = "select"
	BUTTON   = "button"
	CHROME   = "chrome"

	STYLE  = "style"
	FLOAT  = "float"
	WIDTH  = "width"
	HEIGHT = "height"

	BG_COLOR = "background-color"
	FG_COLOR = "color"
)
View Source
const (
	DARK   = "dark"
	LIGHT  = "light"
	WHITE  = "white"
	BLACK  = "black"
	SILVER = "silver"
	DANGER = "danger"
	NOTICE = "notice"

	PROJECT = "project"
	CONTENT = "content"
	PROFILE = "profile"
	DISPLAY = "display"

	VIEW    = "view"
	VALUE   = "value"
	INPUT   = "input"
	ICON    = "icon"
	ICONS   = "icons"
	OUTPUT  = "output"
	LAYOUT  = "layout"
	RESIZE  = "resize"
	FILTER  = "filter"
	REFRESH = "refresh"
	CONFIRM = "confirm"

	PLUGIN_JSON    = "/plugin/story/json.js"
	PLUGIN_INNER   = "/plugin/local/code/inner.js"
	PLUGIN_XTERM   = "/plugin/local/code/xterm.js"
	ICONS_SSH      = "usr/icons/ssh.png"
	ICONS_MAIL     = "usr/icons/Mail.png"
	ICONS_DREAM    = "usr/icons/Launchpad.png"
	ICONS_SETTINGS = "usr/icons/System Settings.png"

	GetLocation      = "getLocation"
	ConnectWifi      = "ConnectWifi"
	GetClipboardData = "getClipboardData"
	ScanQRCode       = "scanQRCode"
	ChooseImage      = "chooseImage"
	Record1          = "record1"
	Record2          = "record2"
)

Variables

View Source
var AgentList = []string{
	MicroMessenger,
	Alipay,
	Edg,
	Chrome,
	Safari,
	Firefox,
	"Go-http-client",
}
View Source
var SystemList = []string{
	Android,
	IPhone,
	Mac,
	Linux,
	Windows,
}

Functions

func Format added in v1.8.1

func Format(tag string, inner string, arg ...string) string

func FormatA added in v1.8.3

func FormatA(inner string, arg ...string) string

func FormatDanger added in v1.8.1

func FormatDanger(value string) string

func IsAudio added in v1.6.1

func IsAudio(name, mime string) bool

func IsImage added in v1.6.1

func IsImage(name, mime string) bool

func IsVideo added in v1.6.1

func IsVideo(name, mime string) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL