// Wait for document to be ready
$.ready().then(function(){
// Insert your code here
});
// Selectors (CSS-like syntax)
$('yourElement') // Single selector
$$('yourElements') // Multiple selector
// Set multiple traits of an element
$.set($('yourElement'), {
style: {
property: value
},
events: {
click: function(evt) {
console.log('Your element has just been clicked.');
}
}
});
Essential snippets for Bliss.JS by Lea Verou. Please visit the website of this wonderful library for more information http://blissfuljs.com.
Be the first to comment
You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.