background preloader



kamens/jQuery-menu-aim The Essentials of Writing High Quality JavaScript Twice a month, we revisit some of our readers’ favorite posts from throughout the history of Nettuts+. This tutorial was first published in October, 2010. The brilliant Stoyan Stefanov, in promotion of his book, "JavaScript Patterns," was kind enough to contribute an excerpt of the book for our readers, which details the essentials of writing high quality JavaScript, such as avoiding globals, using single var declarations, pre-caching length in loops, following coding conventions, and more. This excerpt also includes some habits not necessarily related to the code itself, but more about the overall code creation process, including writing API documentation, conducting peer reviews, and running JSLint. These habits and best practices can help you write better, more understandable, and maintainable code—code to be proud of (and be able to figure out) when revisiting it months and years down the road. Software bugs are costly to fix. Maintainable code means code that:

Isotope Search, sort, filters, flexibility to tables, list and more! - List.js Using a filter Jquery function to filter images - Design Help - Webflow Forums Well, I hope I will be able to explain correct Biggest "pain in ass" is creating classes of pics for filtering. It has to be NOT NESTED classes. Because nested classes do not appear in the interactions. So I created few images with all classes that I need. 1- img-gallery ( later will be used for all images),2 - plum,3 - cherry,4 - apple,5 - rose,6 - tulips,7 -fruits,8 - flowers Then we are adding to our gallery, images, which there has to be and which we will filtering. Next step is creating buttons (links) for filtering gallery. For every button (link) we have to create interaction on CLICK trigger, affecting different elements. Show All imgs: Will be 2 steps: 1 step: Scale to minimum (there is 0,01x) and make it transparant: 2 step: Scale to original and make it visible: For filtering other classes we will have to make 2 triggers on click, few steps every trigger. Same interactions we make for every other class-filter (button or link) It can look complicated, but it is really not.

Tooltipster - The jQuery Tooltip Plugin Styling your tooltips with a custom look ⇑ Tooltipster makes it very easy to go from one of the packaged themes and customize a few properties of your choice. To do so, we recommend that you create a so-called "secondary theme" which will override some properties of a packaged theme. Create a new css file and include it in your page. For your secondary theme to be applied, provide an array of themes instead of just one. Changing the size of the arrow might be the only challenging customization but it's doable! Updating a tooltip's content ⇑ It's easy as pie to update a tooltip's content - whether it's open or closed. $('#myelement').tooltipster('content', 'My new content'); // or when you have the instance of the tooltip: instance.content('My new content'); Tooltipster plays a subtle animation when the content changes. Using AJAX to generate your tooltip content ⇑ One great use for this is to grab dynamic content for your tooltips via AJAX. Forcing or disabling sides ⇑ Predefined behaviors

10 Tips for Writing JavaScript without jQuery Danny Markov jQuery is a great library. It came to be around the time when IE6 was the number one browser. Today, however, web browsers have advanced a great deal from those days. Don’t get me wrong – jQuery is still a wonderful library and most often than not you will be better off using it. 1. The first thing you do when writing jQuery, is wrapping your code in a $(document).ready() call, so that you know when the DOM is ready for manipulation. // Add an event listener of DOMContentLoaded to the whole document and call an anonymous function. // You can then wrap your code in that function's brackets // and it will execute once loading is complete. document.addEventListener('DOMContentLoaded', function () { // Our hawaiian greeting is displayed as soon as the page loads, console.log('Aloha'); }); Run 2. Once upon a time, we could only select elements by id, class and tag name, and jQuery was a life-saver with its smart css-like selectors. 3. 4. 5. 6. 7. 8. 9. Conclusion Learn more

How to put a breakpoint in a dynamically loaded javascript | Red Crackle Using Firebug or Chrome DevTools, It's very easy to put a breakpoint in a JS that is loaded during page load. But if you are loading a JS dynamically after the page load, it's not that simple. Today I learned a nice trick to make it easier to put a breakpoint in such a javascript using Chrome DevTools. Here are the steps: 1) At the bottom of the JS file that is being loaded dynamically, add the following line: formEditor.js is the name of the JS file I am adding to the page dynamically. 2) Reload the web page in Chrome and open DevTools.

Hover.css - A collection of CSS3 powered hover effects All Hover.css effects make use of a single element (with the help of some pseudo-elements where necessary), are self contained so you can easily copy and paste them, and come in CSS, Sass, and LESS flavours. Many effects use CSS3 features such as transitions, transforms and animations. Old browsers that don't support these features may need some extra attention to be certain a fallback hover effect is still in place. Licenses Hover.css is made available under a free personal/open source or paid commercial licenses depending on your requirements. To compare licenses please visit the Ian Lunn Design Limited Store and purchase a commercial license. Personal/Open Source For personal/open source use, Hover.css is made available under a MIT license: Use in unlimited personal applications Your application can't be sold Your modifications remain open-source Free updates Read full license Commercial Commercial License Purchase | Read full license Extended Commercial License Purchase | Read full license

Need help creating a portfolio gallery area with sorting function - Design Help - Webflow Forums Hi thesergie, Thank you for your reply. I spend some time trying to make it work however I had no success.. I don't know what is the right way to add the custom code I think.. Here is what I have done: I created a container and the target elements by adding in webflow a container element with the class "container" and some div elements inside it with the classes "mix category-1", "mix category-2", "mix category-3" and these attributes data-myorder="1", data-myorder="2", data-myorder="3". I also added a list element with 3 list items which have the class "filter". But unfortunately it didn't work.. Please if you can let me know what I have done wrong.