A modern cross-platform JavaScript library & only 18 bytes
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
css
doc
img
js
test
.gitattributes
.gitignore
.htaccess
404.html
CHANGELOG.md
CNAME
CONTRIBUTING.md
LICENSE.md
README.md
apple-touch-icon-114x114.png
apple-touch-icon-120x120.png
apple-touch-icon-144x144.png
apple-touch-icon-152x152.png
apple-touch-icon-180x180.png
apple-touch-icon-57x57.png
apple-touch-icon-60x60.png
apple-touch-icon-72x72.png
apple-touch-icon-76x76.png
apple-touch-icon-precomposed.png
apple-touch-icon.png
bower.json
browserconfig.xml
crossdomain.xml
favicon-160x160.png
favicon-16x16.png
favicon-192x192.png
favicon-32x32.png
favicon-96x96.png
favicon.ico
humans.txt
index.html
mstile-144x144.png
mstile-150x150.png
mstile-310x150.png
mstile-310x310.png
mstile-70x70.png
robots.txt

README.md

diy.js

A modern cross-platform JavaScript library & only 18 bytes

Examples

Click event

  $.getElementById("demo1").addEventListener('click', function(){
    alert('click');
  });

Document width and height

  console.log("Height: "+$.body.clientHeight);
  console.log("Width: "+$.body.clientWidth);

More examples and documentation can be found here.

FAQ

Hey bro, are you serious?

Sure... I built diy.js because I wanted the flexibility to do anything I liked but without the expensive weight of other JavaScript libraries.

How long did diy.js take to develop?

I've been developing diy.js for three years, about nine months of this was ensuring that diy.js was fully browser tested.

Where can I get the source code for diy.js?

It's right here - have fun.

How can I contact you?

I'm on Twitter, Github or email me at adam@lab.io