io.scalajs.dom.html.browser.package.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of dom-html_sjs0.6_2.11 Show documentation
Show all versions of dom-html_sjs0.6_2.11 Show documentation
DOM/HTML bindings for Scala.js
package io.scalajs.dom.html
import io.scalajs.dom.{Document, Performance}
import scala.scalajs.js
import scala.scalajs.js.annotation.JSGlobal
/**
* browser package object
* @author [email protected]
*/
package object browser {
/////////////////////////////////////////////////////////////////////////////////
// Global Properties
/////////////////////////////////////////////////////////////////////////////////
@js.native
@JSGlobal("console")
object console extends Console
@js.native
@JSGlobal("document")
object document extends Document
@js.native
@JSGlobal("location")
object location extends Location
@js.native
@JSGlobal("performance")
object performance extends Performance
@js.native
@JSGlobal("window")
object window extends Window
/////////////////////////////////////////////////////////////////////////////////
// Global Functions
/////////////////////////////////////////////////////////////////////////////////
@js.native
@JSGlobal("decodeURI")
object decodeURI extends RawApplyFunction[String, String]
@js.native
@JSGlobal("encodeURI")
object encodeURI extends RawApplyFunction[String, String]
@js.native
@JSGlobal("decodeURIComponent")
object decodeURIComponent extends RawApplyFunction[String, String]
@js.native
@JSGlobal("encodeURIComponent")
object encodeURIComponent extends RawApplyFunction[String, String]
@js.native
@JSGlobal("eval")
object eval extends RawApplyFunction[String, js.Any]
@js.native
@JSGlobal("escape")
object escape extends RawApplyFunction[String, String]
@js.native
@JSGlobal("unescape")
object unescape extends RawApplyFunction[String, String]
}