cynthia_websites_mini_client/dom

Values

pub fn get_color_scheme() -> String

Get the color scheme of the user’s system (media query)

pub fn get_inner_html(element: element.Element) -> String

Get innerhtml of an element

pub fn jsonify_string(str: String) -> Result(String, Nil)

jsonify_string Convert a string to a JSON safe string

pub fn push_title(title: String) -> Result(Nil, String)
pub fn set_data(
  element: element.Element,
  key: String,
  value: String,
) -> Nil

Set the data attribute of an element

pub fn set_hash(hash: String) -> Nil

Set the hash of the window

Search Document