Skip to content

shaan1974/js-toolbox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Js-Toolbox

Function :

"isScrolledIntoView" : Allow you to know if the element is visible on screen.

"isInside" : If an element is inside an other one.

"isCollide" : If 2 elements are colliding.

"field_sorter" : Sort object with defined key.

"debounce" : Debounce.

"set_fullscreen" : Set element in fullscreen.

"base64_to_array_buffer" : Transform base64 into array buffer

"__fadeOut" , "__fadeIn" : Fade in, Fade out, need animate.css to run.

Object :

"Base64" : "encode", "decode", "_utf8_encode", "_utf8_decode".

"Event" : "on", "off" , "once" , "trigger".

"private_object".

Prototypes :

Array, Element, Nodelist, Number, Object, String. ( take a look inside to get all methods.)

Jquery :

"outerHtml" , "wait" , "hasHorizontalScrollBar", "hasVerticalScrollBar" , "disable" , "enable", "hasAttr" , "toggleAttrVal". "scroll_lock" ( usefull to lock scroll when a modal is visible on screen)

1.6

Vanilla js version of "isScrolledIntoView". 1.5

Fade in, Fade Out.

1.4

Add alias

1.3

  • Add a Jquery folder.
  • Object "private_object".

1.2

  • Add "set_fullscreen", "base64_to_array_buffer".

1.1

  • Add "field_sorter", "debounce", "event".

1.0

  • First release.

About

Usefull javascript functions

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published