Skip to content
SMRSAN edited this page Feb 15, 2017 · 10 revisions

SnakeJS Documentation

This is a library to use it as a JavaScript library like jQuery.

Sometimes it could be even better than jQuery ! and sometimes, no ...

It's better to use these libraries together.

Benefits Of SnakeJS To jQuery

  • Multifunctional selector
  • Command strings
  • Easy to develop
  • Understandable codes for everyone
  • Additional functions
  • Lighter and shorter than jQuery

Subjects | Contents

  • Introduciton

  • Requirements

  • Selector Continuum = Part_1

  • how to use selector function

  • commands

  • Basic Functions

  • removing Elements

  • appendChild

  • before

  • after

  • html

  • text

  • val

  • each

  • get

  • Styling

  • c$$

  • css

  • realStyle

  • Working with classes & attributes

  • attr

  • toggleAttr

  • addClass

  • removeClass

  • toggleClass

  • Events

  • Mouse Events

  • DOM Events

  • KeyBoard Events

  • how to use on() function

  • Siblings, Parents, And Childs

  • siblinger

  • prvSib

  • nxtSib

  • child

  • parent

  • Full Screening

  • fullS

  • Selecting Options

  • indexer

  • reset selector using S() property/function

  • pushElem

  • reversing selector array using rev()

  • indexOfThese

  • Scrolling Functions

  • scrlTop

  • scrlLeft

  • scrlWidth

  • scrlHeight

  • onScrollArrives

  • onScrollArrivesOnce

  • scrlToX

  • scrlToY

  • scrlToXY

  • Get And Set DOM Properties

  • property

  • Inner/Outer Box Sizes

  • outerWidth

  • outerHeight

  • innerWidth

  • innerHeight

  • offset

  • Selector Properties = Part_2

  • how to use this mode

  • addEvent

  • removeEvent

  • remove

  • arrCopy

  • realStyle

  • Summarized Functions/Objects

  • error

  • log

  • warning

  • newArr

  • newObj

  • write

  • writeLine

  • crtElem

  • alert

  • prompt

  • confirm

  • doc

  • win

  • gelId

  • gelClass

  • gelTag

  • gelTagNs

  • gelName

  • Cookies Management

  • setCookie

  • getCookie

  • remCookie

  • ( Scroll ) Functions

  • onScrollArrives

  • onScrollArrivesOnce

  • scrlToX

  • scrlToY

  • scrlToXY

  • scrlToX_elem

  • scrlToY_elem

  • scrlToXY_elem

  • Selector Manipulations

  • addProp

  • die

  • noConflict

  • access to last selected elements

  • Randomisation Tools

  • randomURLCode

  • randomCode

  • Marked onLoad Variables

  • vars property

  • onLoadReloadVars

  • onLoadUpdateVars

  • DOM Prototyped Functions = Part_3

  • c$$

  • css

  • Development = Part_4

  • styleToNum

  • styleToJs

  • jsToStyle

  • isNumUndefined

  • isBoolUndefined

  • isStrUndefined

  • how to develop functions/properties of S/javaSnake object

  • how to develop functions of selector

  • how to develop commands of selector

Clone this wiki locally