.builder/ $ npm install
.builder/ $ npm start
Lightweight JavaScript framework for manipulation dom elements
.builder/ $ npm install
.builder/ $ npm start
We should document code inside.
For example:
hata( "#id1", "#id2" ) // [Node #id2 inside #id1]
...should return empty hata object but it return #id1
.
We should describe main methods in README.
We should declare the license.
And we should write tests.
hata.each( undefined, iteration );
Add check:
Hata.each = function( obj, iterator ) {
if ( obj == null ) return;
if ( regExp.Id.test( selector ) ) {
return [ context.getElementById(selector.substr(1)) ];
}
We should check context
:
(context.getElementById ? context : document )
It should be work like:
var clicked = function(e) {};
hata(sel)
.bind('click', clicked)
.unbind('click');
Something like this:
hata.ajax({
url: 'url',
type: 'GET or POST',
data: 'object',
beforeSend: 'function',
complete: 'function',
success: 'function'
});
I need functions for altering content of tags. Example:
hata('.message').text('Hello world!');
hata('.message').html(tags);
hata('.message p').addClass('large');
Need to add tests.
Now if you want to get number of nodes in hata obj you should:
hataObj.get().length
I think, that should be:
hataObj.size()
If you want to work with childs of one element:
hata("#wrap")
.find("h1").html("This is child of #wrap").end()
.find("h2").html("This is child of #wrap").end()
.html("I'm #wrap");
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.