Skip to content

A small API for manipulation of elements, creation, removal and selection

License

Notifications You must be signed in to change notification settings

Krorenshima/pen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pen

Pen

Pen is a rather big API but not too big but only big enough for some ink, is an api used to manipulate elements and or create.

It is inspired by jQuery.js and follows something similar to umbrella.js.

The object may look something like this:

//I'll be using a p element for this example
pen: {
  attrs: (...),
  text: (...),
  el: 'p#moose', tag: 'p',
  Children:(...), parent: null,
  selector: 'p#moose',
  ops: (...)
}

Docs -- for documentation Examples -- for examples on how to create things for yourself or how pen can be used

..:Test:..

selector

There's a selector app that allows you to interact with the webpage itself.


Contribution

Use git if you have it and clone this repository

git clone https://github.com/James-Chub-Fox/pen.git

Adjust fixes if needed to add features you think need to be in it. Then make a pull request.

Note about using pen("<p id='someID'>")

When creating an element via: pen("<p id='someID'>");

It's much slower than: pen("<p>").attr('id', 'someID');


Raw, Production Development links

Raw | min

Production | min

*(if you're viewing this at https://krorenshima.github.io/pen-web then

highlight.js & markdown)*