background preloader

Javascript

Facebook Twitter

Tutorials

jQ.Mobi. A JavaScript Toolkit For Interactive & Real-Time Graphs – Rickshaw. Rickshaw is a JavaScript toolkit, created by the developers of the stock photo service Shutterstock, for generating interactive and real-time graphs. It is built on top of the D3.js visualization library and can render stack or line graphs. The graphs are interactive, respond to hovering them or their legends, items in the stack can be re-ordered with drag 'n' drops and more.

There is a good margin for customization: colors, sizes, interpolation and functionality in general with the modular/extendable structure of the toolkit.

Plugins

List.js - Add search, sort and flexibility to plain HTML lists with cross-browser native JavaScript by @javve. PanoJS3 - JavaScript viewer for huge images. Add Change Tracking to Online Text Editing with Ice.js. If you're looking to add change tracking to a Web app, you might want to take a look at Ice from the CMS group at the New York Times. Ice (or Ice.js) is an implementation of change tracking for any content-editable element on the Web. It can track changes (inserts, deletes) from multiple users, and has some optional plugins for converting "smart" quotes and creating em-dashes. Hands-on experience is probably the best way to get an idea what Ice.js can do. The current demo shows a plain content-editable element with Ice.js as well as a TinyMCE instance using Ice.js as a plugin.

The TinyMCE demo includes buttons for accept, accept all, reject and reject all. Ice.js also has an API, so you could use it as the basis for your own custom editor or integrate it into an editor like TinyMCE. At some point, Ice.js should include code to integrate it with WordPress. Change tracking is something that I'd like to see integrated in just about everything, so I'm hoping this takes off. Curtain.js – Create a page with multiple fixed panels that unroll with an amusing effect. CanJS – JavaScript framework that makes building web applications easy. Loop waveform visualizer. Analog or digital. You may have noticed that we’re fond of a bit of retro, so it was hard to resist this pixelated music video from Wildlife Control… from their blog: We were tinkering around with the SoundCloud API late one night several weeks ago and realized we could use the timing events and track comments to make something cool.

At the time, we were thinking it would be a quick little animated ASCII thing. After digging in a little more, we decided to go way bigger. Each jumbo pixel in the grid is a plain old <div> with a coloured background, while scenes are broken down into reusable sprites to keep things snappy. Cute 8-bit dinosaurs, robots & zombie dogs all make an appearance, with SoundCloud comments embedded at the correct time-index – a nice touch. I strongly suspect there’s some nice tooling behind this, if the large arrays of data in the source are anything to go by.

The song isn’t half bad, either Analog or digital – Wildlife control. Web-Drawing Throwdown: Paper.js Vs. Processing.js Vs. Raphael. Advertisement Before drawing anything in a browser, ask yourself three questions: Do you need to support older browsers? If the answer is yes, then your only choice is Raphaël. It handles browsers all the way back to IE 7 and Firefox 3. Raphaël even has some support for IE 6, although some of its underlying technology cannot be implemented there.Do you need to support Android? Android doesn’t support SVG, so you’ll have to use Paper.js or Processing.js. Paper.js, Processing.js and Raphaël are the leading libraries for drawing on the Web right now. Choosing the right framework will determine the success of your project. All of the code in this article is open source and can be run on the demo page that accompanies this article. Overview It’s all JavaScript once the page runs, but the frameworks take different paths to get there.

PaperScript is a JavaScript extension that makes it possible to write scripts that don’t pollute the global namespace. Getting Started Setting Up Paper.js Paper.js: (al) Braaains! I’m letting out my inner zombie, and I think you should, too! This brilliant little demo by Steve Wittens uses a pair of large sprite sheets (one for colour, one for opacity) which contain the cross sections of a human head taken by an MRI scanner. Each slice is drawn into its own canvas using the colour and opacity information from the sprite sheets. CSS 3D is used to position all the slices and line them up next to each other in 3D space, effectively reconstituting the head.

JavaScript is then used to update the location and rotation of the slices, as well as switch them on and off. CSS 3D is something of an unsung hero, I feel. Despite having been implemented in Chrome, Safari, Firefox (and the incoming Internet Explorer 10) as well as iOS and Android devices there are surprisingly few demos out there showcasing its abilities. When combined with JavaScript it can be an extremely simple yet powerful renderer.

All together now: “Brrrraaaaaains!” This is Your Brain on CSS by Steve Wittens. "Lathe Machine" by Einar Öberg. Multiplayer music making with Plink! Trigger Rally – online edition. Trigger Rally is a fast-paced open source racing game for Linux, maintained by a small but dedicated team of developers. The game itself adheres to the same open principals as the operating system it was originally built for, using creatively licensed art, audio and 3D assets. And it’s now available to play online through this WebGL port by jareiko. WebGL and Three.JS power the graphics. A 1024×1024 sky box surrounds the scene and the level and car model data is pulled in using the Three.JS json format. Level maps are interesting, using a combination of a height map to generate the level geometry, a color map combined with an external texture to paint the land, and foliage and checkpoint maps for details.

The car engine noises are generated using the Web Audio API. Driving physics routines have been converted to JavaScript from the original C code but the author has stated a desire to port it over to the bullet / ammo.js physics engine. "Input/Output" by Instrument. From the Author: Launch the particle from the input to the output in this HTML5 game developed for Google I/O 2012. Drop in parts and customize them to create a colorful, working machine. Build multiple machines, tweak the code to your liking and share your creation with the world on Google+. Technology: * Canvas (with requestAnimationFrame) for game components and gameplay * CSS3 for the User Interface and Animations * Animated Sprites in both Canvas and CSS3 * Flash controlled by Javascript for Music and Sound Effects Tags: Games Not WebGL. SearchMeme – A jQuery plugin for on-demand search.

Heatmap.js – A HTML5 canvas heatmap library. jQuery Menu: Dropdown, iPod Drilldown, and Flyout styles with ARIA Support and ThemeRoller Ready. Posted by Maggie on 04/02/2009 Topics: css jQuery jQuery UI ThemeRoller ui design Update: We contributed this menu plugin to the jQuery UI library. We got lots of fantastic feedback on our earlier iPod-style menu, and decided to upgrade it for jQuery 1.3. As noted in our original post, the iPod-style menu provides easy navigation of complex nested structures with any number of levels. Much of the functionality that controls the iPod style menu, like positioning and option selection, is shared by dropdown and flyout menus which are better suited for smaller data sets, so we extended the script to include support for these additional menu types.

We also built in the ability to customize a menu's appearance, including active and hover states, by passing in classes as options. By default, the menu script will transform an unordered list of links into a simple dropdown menu: Demo Page When the menu content contains nested lists, by default it creates an iPod-style menu: Demo Page Demo Page How it works. SlabText – a jQuery plugin for creating big, bold & responsive headlines. I’ve been wanting to attempt a port of Erik Loyer’s slabtype algorithm for quite some time now and seeing Paravel’s fittext jQuery plugin, in combination with a gloriously hassle-free lunch hour gave me the impetus to attempt it. This is the result – resize the browser viewport to see the effect in action. So what does the script do again?

Put simply, the script splits headlines into rows before resizing each row to fill the available horizontal space. The ideal number of characters to set on each row is calculated by dividing the available width by the pixel font-size – the script then uses this ideal character count to split the headline into word combinations that are displayed as separate rows of text. Many, many more examples can be viewed further down the page. Calculated and preset word combinations This can be achieved by presetting the word combinations (using <span class="slabtext"> wrappers) within the markup [1] . The following word combinations are calculated by the script. Remybach/jQuery.superLabels - GitHub. Smoke.js – A framework-agnostic styled alert system for Javascript.

HTML5 & CSS3

Blur Any Web Element Easily – Blur.js. Blur.js is a flexible jQuery plugin for implementing blur effect to any web element. It actually works by creating and placing psuedo-transparent blurred elements over the targeted ones and makes use of the StackBlur algorithm. The source of the blurred item (it can use the background of body or other HTML elements), radius of the effect and it is positioning can be defined with ease. There is built-in caching for re-using the blurred image and there is support for making the item where the effect is applied to be draggable (requreis jQuery UI). JS1K Speech Synthesizer. When you think of your computer talking to you it’s usually space aged computers and robots, or maybe Siri if you’re less imaginative. You probably don’t think of it happening in your browser, and especially not something made for JS1K. Showing up the other sound generating entries, Mathieu Henri created this JS1K Speech Synthesizer for the contest.

It’s a super simple speech synthesizer that “says” what you’re typing as you type, and then the whole line once you hit enter. While it’s pretty amazing to see this done in your browser and at such a small file size, you’re not going to be able to use this for your next round of prank calls: To go under 1K, I had to limit the synthesizer to two format filters using either a sawtooth or noise and discard plosive sounds. In other words I had to sacrifice quality a bit. Either way, it’s very impressive! JS1K Speech Sythesizer by Mathieu Henri.