Event $("button").on("click", " />

Javascript-Pure.js: A JavaScript UI Library with JQuery like syntax. (Beta)

Pure.js

  • Currently under Development

Get Started

<script src="https://sijey-praveen.github.io/Pure.js/pure.js"></script>

Event

$("button").on("click", () => {
    alert("Hello")
})

Randint

  • returns random integer
$().randint(10, (value) => {
    console.log(value)
})

Choice

  • returns a random string from provided array or list
var letters = ["a", "b", "c", "d"]

$().choice(letters, (value) => {
    console.log(value)
})

Get

$().get("https://google.com", (data) => {
    console.log(data)
})

SpeechRecognition

$().SpeechRecognition((data) => {
    console.log(data)
})

Scroll

$().scroll(100, 0 , 1000, "smooth")

Comments