isola

1.2.2 • Public • Published

Isola.js

A three module JavaScript library made by Szymon Hyziak.

Read up on it here: https://isolajs.web.app

Module 1 (browser)

Tools for working with the browser on the frontend

setPageTitle()

Change title of the page visible on tab

setLocation()

Change the current page's URL

refresh()

Reload the page

scrollTop()

Scroll to the top of the page

goBack()

Go to the previous page in the browser's history

getSelection()

Get content of the clipboard

getCurrentPath()

Get the page's path

integrateTabIndex()

Make tabindex work on enter's click

getOffset()

Get HTML element's position on X and Y axes

getPrefferedTheme()

Get the theme preffered by the user

doesExist()

Check if an element is present in an HTML document

fadeIn()

Animate an HTML element in

fadeOut()

Animate an HTML element out

Module 2 (utilities)

Common programming issues have been adressed in this part of the package

generateRandomColor()

Create a random hexadecimal value representing a colour

shuffleArray()

Change the order of elements of any type in an array

sleep()

Not doing anything for the time given

generateRandomNumberInRange()

Making sure that the given name is a correct one

validateName()

Create a number in the given range

reverseString()

Invert the string

validatePassword()

Making sure the password is strong enough

validateEmail()

Making sure the email is correct

getRandomElement()

Choose a random item from an array

getTime()

Inspect the current time

Module 3 (easter-eggs)

Making use of some funny JavaScript snippets

getFloatingPointNumber()

Get the number 0.30000000000000004

getBanana()

Get the string "banana"

fail()

Get the string "fail"

Package Sidebar

Install

npm i isola

Weekly Downloads

1

Version

1.2.2

License

ISC

Unpacked Size

18.3 kB

Total Files

7

Last publish

Collaborators

  • hyziu