This article has multiple issues. Please help improve it or discuss these issues on the talk page. (Learn how and when to remove these template messages)
|
Developer(s) | Aycan Gulez |
---|---|
Stable release | 2010.05
/ May 10, 2010 |
Written in | JavaScript |
Type | Web application framework |
License | MIT License |
Website | http://www.midorijs.com |
midori is an ultra-lightweight[1]JavaScript library that aims to make JavaScript web development easier. It was created by Aycan Gulez and hasn't been updated since June 2010.
midori consists of 10 modules and is available as a single JavaScript file. It can be included within any web page by using the following markup:
<script type="text/javascript" src="path/to/midori.js"></script>
midori allows the use of standard CSS syntax to access DOM elements, and supports most CSS2 and CSS3 selectors.[2] There are three ways to work on returned DOM elements.
apply()
method:// Sets the background color of all the cells in even rows to "yellow" in the "cities" table
midori.get('#cities tr:nth-child(even) td').apply('style.backgroundColor = "yellow"');
apply()
method:// Marks the cells whose values are 12 or bigger in the "cities" table
midori.get('#cities td').apply(function (o) {
if (parseInt(o.innerHTML) >= 12) o.style.backgroundColor = 'red';
});
midori.get()
is also possible.// Returns the first div element
var firstDiv = midori.get('div')[0];
By: Wikipedia.org
Edited: 2021-06-18 12:37:52
Source: Wikipedia.org