namespace Stylesheet
Description
A namespace with utility functions regarding to stylesheets.
Class methods
-
findLink #
Stylesheet.findLink(path) ⇒ Element
-
path
(String
) – A path to a stylesheet
-
-
link #
Stylesheet.link(path) ⇒ undefined
-
path
(String
) – A path to a stylesheet
Creates a
link
tag with path and appends it to the documents head unless it has already been linked. -
-
linkTo #
Stylesheet.linkTo(path[, media = 'screen']) ⇒ Element
-
linked #
Stylesheet.linked(path) ⇒ Boolean
-
path
(String
) – A path to a stylesheet
Returns true if there exists a
link
tag with path in the document, false otherwise. -