
Responsive Carousel Project: Now Open Source Posted by Scott on 08/09/2012 Topics: javascript jQuery mobile progressive enhancement In our responsive client work, we frequently find ourselves in need of a carousel component that is lightweight, fluid in layout, usable with different input modes (mouse, keyboard, touch), and extensible to the particulars of each implementation. The Responsive Carousel project is available on Github. How-to To use the responsive carousel, just reference the following required CSS and JS files, and add a class of carousel to any element in your page that contains a series of sibling elements: With the default build, slides switch immediately with "Prev" and "Next" buttons. Extensions & Demos If you’d like to create a build that includes certain extensions, your can add them to the JS files listed under concat in the /grunt.js file, and run grunt from a command line (you’ll need Grunt and Node.js installed on your machine for this to work). Additional information Issues, Ideas, and Contributions
Getting Started Installation Later is available through both npm and bower for easy installation. The installation includes all of the files that you will need to use the library. Node.js is required for building, testing, and benchmarking the library. Using npm: $ npm install later Using bower: $ bower install later If you would prefer, you can also download the source along with compiled versions of the library in a single zip file. Download Example usage Later works in both the browser (IE7+, FireFox, Chrome, Safari) and Node.js environments. Node Example var later = require('later'); var sched = later.parse.text('every 5 mins'), occurrences = later.schedule(sched).next(10); for(var i = 0, i < 10; i++) { console.log(occurrences[i]); } Browser Example <script src="later.min.js" type="text/javascript"></script><script type="text/javascript"> var sched = later.parse.text('every 5 minutes'), occurrences = later.schedule(sched).next(10); for(var i = 0, i < 10; i++) { console.log(occurrences[i]); } </script> License
Backbone-relational Tutorial - Nested Models With Backbone.js Introduction Backbone.js Backbone.js allows to implement the whole MVC pattern on the client, leaving the server to do what he knows best: exposing a set of well-defined REST interfaces, which the client queries when he needs to fetch or update some information. It's not only cleaner, it's also an excellent architecture to make responsive applications. No full page reload - the server sends a static HTML file upon the first request, then the JS client handles the interaction with the user, only remodeling the portions of the DOM that changes between pages. Backbone-relational However, when I recently started to learn about Backbone, I realized it doesn't help to handle relationships between models. If you're reading this, you've probably found out about backbone-relational after reading a few threads. Scope of the tutorial Another great source of information is the source code of Backbone.js itself, which is short, readable and extensively annotated. The Application Fig 1 - Threads list View
CLNDR.js How does it work? CLNDR takes your template and injects some data into it. The data contains everything you need to create a calendar. Here's what you get: Most notable is the days array, which contains an entire grid. We can loop through it in our template to make all of the markup: <% _.each(days, function(day) { %><div class="<%= day.classes %>"><%= day.day %></div><% }); %> Automatic Mouse Events CLNDR looks for next and previous buttons in your template. <div class="clndr-controls"><div class="clndr-previous-button">‹</div><div class="month"><%= month %></div><div class="clndr-next-button">›</div></div><% _.each(days, function(day) { %><div class="<%= day.classes %>"><%= day.day %></div><% }); %> Event Sorting CLNDR takes an array of event objects and weaves them into the days array in your template. If you're looking to get all the events for the month in one array, you've got eventsThisMonth as well.
35 Great jQuery Calendar and Date Pickers Plugins With jQuery Calendar and Date Pickers it is quite simple to add cool calendar features to nearly any website. jQuery is a cross-browser JavaScript library designed to simplify the client-side scripting of HTML. It was released in January 2006 at BarCamp NYC by John Resig. Used by over 41% of the 10,000 most visited websites, jQuery is the most popular JavaScript library in use today. I believe that jQuery is the best JavaScript library because it’s easy to use, flexible and has a lot of tutorials and plugins allowing you to integrate nearly any front end function into your site. Disclosure: Please note that some of the links below are affiliate links and I will earn a commission if you purchase through those links (at no extra cost to you). Advertisement 1. This item represents an events calendar, offered as a jQuery plugin. MORE INFO / DEMO by CodeCanyon (premium plugin) 2. jQuery Week Calendar is a plugin which will include a weekly calendar in the web application. 3. 4. 5. 7. 8. 10.
ECMAScript 5 compatibility script for older browsers Stellar.js - Documentation Getting Started Stellar.js is a jQuery plugin that provides parallax scrolling effects to any scrolling element. The first step is to run .stellar() against the element: // For example: $(window).stellar();// or: $('#main').stellar(); If you're running Stellar.js on 'window', you can use the shorthand: $.stellar(); This will look for any parallax backgrounds or elements within the specified element and reposition them when the element scrolls. Mobile Support Support in Mobile WebKit browsers requires a touch scrolling library, and a slightly tweaked configuration. Please note that parallax backgrounds are not recommended in Mobile WebKit, only parallax elements. Parallax Elements If you want elements to scroll at a different speed, add the following attribute to any element with a CSS position of absolute, relative or fixed: If a ratio lower than 1 is causing the element to appear jittery, try setting its CSS position to fixed. Parallax Backgrounds Configuring Offsets Confused? Confused?
20 JavaScript Frameworks Worth Checking Out | Nettuts+ The number of web applications being created and used has grown rapidly since the new millenium. And importantly, so has the sheer complexity of them -- specially on the front end. No more static pages, no sir! You have a ton of sections each interacting with each other and the server and yes, it's as complicated as it sounds and just as hard to pull off. Today, I'd like to talk about a few choice JavaScript frameworks that aim to simplify front-end application development. If you think jQuery is the answer, you lose a cookie and get an F grade! Creating responsive, fluid, and maintainable interfaces for web apps isn't as easy as one would imagine -- there is data to be sent back to the server and the results parsed, data stores to be updated, views to be re-rendered and so much else that needs to be done in the background. Sure, a few of these may be a little old but their code bases have lots of lessons to teach. Related links: Introduction to Sammy.js Github Repo Google Code
QuoJS - Micro JavaScript Library