
ScaleRaphaël ScaleRaphaël is a small piece of javascript code that will enable you to change the size of your Raphaël paper during runtime. Dependencies Raphaël Download scale.raphael.js Examples: Fill the window - no clipping Fill the window - with clipping Fill the window - with animation Usage ScaleRaphaël wraps the Raphaël constructor. var paper = new ScaleRaphael("container", 800, 600); To scale the entire paper by a percentage value you can use scaleAll() function. // scale everything 200% paper.scaleAll(2); The main purpose of ScaleRaphaël is to scale the paper up to the size of the browser window. paper.changeSize(windowWidth=number, windowHeight=number [,center=true, clipping=false]) The changeSize() function will always maintain the original aspect ratio defined in the constructor. function resizePaper(){ var win = $(this); paper.changeSize(win.width(), win.height(), true, false); } resizePaper(); $(window).resize(resizePaper); Please Note
Violin: Visualizing JavaScript This is an experiment in instrumenting JavaScript applications. On the right is the Object and Function graph for a simple Backbone app. The app's code has been instrumented to draw and animate the graph as the JavaScript runs without having to modify the app's original code at all (by hand anyway). Hit the button to start the backbone app and interact with it. Metaprogramming rocks :). This experiment is by Philip Roberts. Discussion This is a first attempt at instrumenting a JavaScript application. Instrumenting is performed by recursively iterating over the application's namespace to build the graph, and decorating any functions to trigger events when they are called. Currently the graph shows the Object heirarchy, rather than the prototype hierarchy or all the instantiations of the object, and function nodes on the graph will be triggered when any instantiation of that object calls the function. The code
jQuery: The Write Less, Do More, JavaScript Library SyntaxHighlighter - Feature Demo <title>SyntaxHighlighter Demo Page - <?= htmlspecialchars($title) ?></title> ** Multiline block comments $stringWithOutUrl = 'hello world'; ob_start("parseOutputBuffer"); // Start Code Buffering session_start(); function parseOutputBuffer($buf) { global $portal_small_code, $portal_gzcompress; global $PHP_SELF, $HTTP_ACCEPT_ENCODING; // cleaning out the code. if($portal_small_code && ! $buf = str_replace(" ", "", $buf); $buf = str_replace("\n", "", $buf); $buf = str_replace(chr(13), "", $buf); Raphaël—JavaScript Library Meteor on Windows jCanvaScript JavaScript UI Kit | Gumby Framework Installation The global Gumby object is where all the magic happens. It is defined in js/libs/gumby.js and is required by all UI modules (except jQuery plugins ). Gumby requires jQuery 2.0 or 1.9.1 and Modernizr so make sure Modernizr is included in the <head> of your document and jQuery before Gumby at the bottom of the <body> . Overview Gumby 2 JavaScript is designed to work in the background, bringing the UI kit to life automatically, without the need to write any extra JavaScript. To improve performance in Gumby 2, we removed the delegation of all UI events to the document. // initialize dynamic tabs Gumby . initialize ( 'tabs' ); // listen for the tabs onChange event $ ( '#my-tabs' ). on ( 'gumby.onChange' , function () { console . log ( 'My tabs changed' ); }); // programatically trigger toggle $ ( '#my-toggle' ). trigger ( 'gumby.trigger' ); Touch Events To improve performance on mobile devices we have a nifty little solution for handling click/tap events. Checkboxes Tabs Options
K3D - 3D rendering in HTML5 Canvas and JavaScript The K3D engine ("Kevs 3D", no relation to the k-3d library of similar name) written entirely in JavaScript and HTML5 canvas. All 3D maths is hand cranked and rendering performed using the nifty Canvas APIs - no plugins or extensions required. The code for the simple-but-fast 3D pipeline was originally written in C/C++ back in the coding dark-ages of 1996, converted to a very-nifty-for-the-time-thanks Java 1.0 Applet in 1998 (the first 3D in Java that I know of! and well before the Java3D APIs existed) and recently converted to modern JavaScript and HTML5 Canvas. Runs on Chome, Firefox, Safari, Opera and IE9 browsers. Chrome is the fastest! Objects can be displayed as points, wireframe, solid polygons, textured polygons and shaded using plain colour, depthcued (z-order) or light-sourced - things can be rotated around and moved about to make cool demos.
leak-finder-for-javascript - Tool for finding memory leaks in JavaScript programs. In JavaScript you cannot have "memory leaks" in the traditional sense, but you can have objects which are unintentionally kept alive and which in turn keep alive other objects, e.g., large parts of DOM. Leak Finder for JavaScript works against the Developer tools remote inspecting protocol of Chrome, retrieves heap snapshots, and detects objects which are "memory leaks" according to a given leak definition. The default configuration of the tool detects goog.Disposable objects which were not dispose()d. goog.EventTarget is a subclass of goog.Disposable, and if an EventTarget is not disposed, event listeners are not discarded properly, and event listeners in turn keep DOM objects alive. It's possible to configure the tool to detect other similar misuses. Resources: Getting the code: 1. 2. 3. gclient sync Running the code: Requirements: simplejson (For Ubuntu, the package is python-simplejson, for Mac see ) Prerequisites:
My DebugBar IETester - Browser Compatibility Check for Internet Explorer Versions from 5.5 to 10 IETester is free.To support the projectyou can make a donation : or you can translate it. IETester is a free (both for personal and professional usage) WebBrowser that allows you to have the rendering and javascript engines of IE11, IE10, IE9, IE8, IE7 IE 6 and IE5.5 on Windows 8 desktop, Windows 7, Vista and XP, as well as the installed IE in the same process. This is an alpha release, so feel free to post comments/bugs on the IETester forum. Requirement : Windows 8 desktop, Windows 7, Windows Vista or Windows XP with IE7 minimum (Windows XP/IE6 config has some problems and IE8 instance do not work under XP without IE7) Note for IE10 : IE10 is not available on IETester if it is not the default IE version installed on the system. So IE10 is only available on Windows 8 machines. (IETester v0.5.4 zipped installer for people unable to download .exe files due to proxy limitations)(You can download previous versions from the ChangeLog page) Known problems and limitations : External ressources :
Visual IDE in the Cloud - App development for Mobile and Desktop with Application Craft Initializr - Start an HTML5 Boilerplate project in 15 seconds! HTML5 Cross Browser Polyfills · Modernizr-Modernizr Wiki The No-Nonsense Guide to HTML5 Fallbacks So here we're collecting all the shims, fallbacks, and polyfills in order to implant HTML5 functionality in browsers that don't natively support them. The general idea is that: We, as developers, should be able to develop with the HTML5 APIs, and scripts can create the methods and objects that should exist. Developing in this future-proof way means as users upgrade, your code doesn't have to change but users will move to the better, native experience cleanly. Looking to conditionally load these scripts (client-side), based on feature detects? See Modernizr.Looking for a guide to write your own polyfills? svgweb by Brad Neuberg & others Fallback via FlashSnap.SVG from scratch by the author of Raphaël (Dmitry Baranovskiy) Abstracted API. FakeSmile by David Leunen Canvas Web Storage (LocalStorage and SessionStorage) Non HTML5 API Solutions Sectioning Elements Video VTT: Video Timed Track (subtitles) Audio Audio Data API IndexedDB Web SQL Database Web Forms Beacon