Go to file
Timothy Warren 517fe203e7 Remove legacy feature checks and server sent events 2013-12-11 21:37:51 -05:00
docs Remove legacy feature checks and server sent events 2013-12-11 21:37:51 -05:00
src Remove legacy feature checks and server sent events 2013-12-11 21:37:51 -05:00
tests Remove legacy feature checks and server sent events 2013-12-11 21:37:51 -05:00
.gitignore Removed console.log statement from util module 2012-05-24 09:56:39 -04:00
README.md Slim down library by removing IE 8 support 2012-10-04 17:25:09 +00:00
combine.php Added divider variable 2011-11-19 17:18:57 -07:00
kis-all.js Remove legacy feature checks and server sent events 2013-12-11 21:37:51 -05:00
kis-lite-dom-min.js Remove legacy feature checks and server sent events 2013-12-11 21:37:51 -05:00
kis-lite-dom.js Remove legacy feature checks and server sent events 2013-12-11 21:37:51 -05:00
kis-lite-min.js Remove legacy feature checks and server sent events 2013-12-11 21:37:51 -05:00
kis-lite.js Remove legacy feature checks and server sent events 2013-12-11 21:37:51 -05:00
kis-min.js Remove legacy feature checks and server sent events 2013-12-11 21:37:51 -05:00

README.md

Keep It Simple JS Library

A Minimal, Modular Javascript library for Modern browsers.

Aims to be fast, small, and easily split into individual modules.

You can create your own library by adding and removing modules from the src directory, and running the "combine.php" script. This will output a "kis-custom.js" file. (Be careful, as the script will overwrite any "kis-custom.js" file that already exists).

Browser support: IE9+, Latest versions of Firefox, Chrome, Safari, Opera

Basic Use:

  • Function: $_(selector).module.function(params);

Core Methods

properties:

  • el: The html object returned by the selector function.

functions:

  • each: For applying changes to every item matched by a selector

       $_(selector).each(callback);
    

    Example :

      $_(".foo").each(function(e){
      	$_(e).dom.text(value);
      }):
    
  • ext: For extending the library, adds this.el to the object or function supplied

      $_.ext("name", functionOrObject);
    

    Example:

      $_.ext("zip", function(){ //function });
      Adds 'zip' function to $_.
    
  • type: For getting the type of a variable

      $_.type(var);
    

Have a look at the /docs folder included with the library for documentation on the included modules. The development version of the documentation is avaliable at

http://github.timshomepage.net/kis-js/docs/

Lite Versions

There are two lite versions:

1. Lite - Includes only the ajax and events modules
2. Lite-dom - Includes ajax, events, and dom modules