background preloader

Javascript

Facebook Twitter

Spin.js. Example Features No images, no external CSS No dependencies (jQuery is supported, but not required) Highly configurable Resolution independent Uses VML as fallback in old IEs Uses @keyframe animations, falling back to setTimeout() Works in all major browsers, including IE6 MIT License Spin.js dynamically creates spinning activity indicators that can be used as resolution-independent replacement for AJAX loading GIFs. Usage The spin() method creates the necessary HTML elements and starts the animation. If a target element is passed as argument, the spinner is added as first child and horizontally and vertically centered. Manual insertion In order to manually insert the spinner into the DOM you can invoke the spin() method without any arguments and use the el property to access the HTML element: var spinner = new Spinner().spin(); target.appendChild(spinner.el); Positioning Since version 2.0.0 the spinner is absolutely positioned at 50% of its offset parent.

Hiding the spinner jQuery plugin Changes. What to Read to Get Up to Speed in JavaScript. There’s a discussion going on on the JSMentors JavaScript mailing list about books to read to get you to the next level . There’s been a lot of great feedback and suggestions thrown out and I wanted to offer up what I felt were good to carry you through the learning process. While I list a number of books in the Big List page that I created , narrowing it down into specific levels makes a lot of sense. Note that some resources will overlap between levels. That should be expected as some books cover a wide breadth of language features.

These are books that I’ve read over the years and found incredibly useful so I’m categorizing them to make it easier for you to get going. Introductory These are books that will give you the fundamentals of the JavaScript language and get you started: JavaScript: The Good Parts Professional JavaScript for Web Developers (Wrox Programmer to Programmer) ppk on JavaScript, 1/e Eloquent JavaScript (Online Resource) Intermediate JavaScript: The Definitive Guide Blogs. Isotope. Recreating the Nikebetterworld.com Parallax Effect. A couple of months ago, I created a jQuery Vertical Parallax Demo that manipulated CSS to make multiple backgrounds move at different speeds relative to the users movement of the scroll bar. This type of effect is slowly appearing across various websites on the web, achieved using many different techniques. Nikebetterworld took the idea to a new level. In today’s tutorial, we’re going to take the original jQuery Parallax script I wrote and recreate a webpage similar to Nikebetterworld.

If you’d like to see what we’ll be creating, go check out the demo or download the files. The HTML Our page will consist of 6 sections: header, footer and 4 articles. To start, at the top of the page, we’ll reference all of the JavaScript files we’ll use to make the effect work. We also need to initiate the localScroll function on the unordered list of article links that are fixed to the right of the page.

Inside of our body tag, we begin with the unordered list that provides a quick link to each section.

DOM

JS Glossaire. JS Tutorials. JS Editor. jQuery. Ajax. ReCAPTCHA: Stop Spam, Read Books. Style d'indentation. L'indentation se définit par la manière d'arranger les blocs de code, mais surtout par le nombre d'espaces utilisés à chaque niveau. Styles d'indentation en C[modifier | modifier le code] Style K&R[modifier | modifier le code] void a_function(void){ if (x == y) { something1(); something2(); } else { somethingelse1(); somethingelse2(); } finalthing();} Il existe de nombreuses variantes de ce style. Une variante relativement commune consiste à placer l'accolade ouvrante des fonctions sur la même ligne que la partie déclarative ; en dehors du C, c'est un des usages recommandés par Sun pour son langage Java, par exemple[1].

Une autre nuance couramment rencontrée peut venir du placement du mot-clé else. Style Allman[modifier | modifier le code] Nommé d'après Eric Allman, ce style respecte un alignement strict des accolades ouvrantes et fermantes, comme dans l'exemple ci-dessous : L'avantage principal de ce style est qu'on peut visuellement repérer très facilement tout oubli d'accolade. Table des caractères Unicode. Un article de Wikipédia, l'encyclopédie libre. Unicode est une norme informatique développée par le Consortium Unicode qui vise à donner à tout caractère de n'importe quel système d’écriture de langue un identifiant numérique unique, et ce de manière unifiée, quelle que soit la plate-forme informatique ou le logiciel.

Unicode et la norme ISO/CEI 10646 attribuent à chaque caractère un nom officiel au sein d’un répertoire commun unifié entre toutes les langues et tous les usages. Dès que le répertoire commun est approuvé, les caractères sont groupés en blocs en fonction de leur usage et des écritures supportées, et reçoivent une identification numérique unique appelée point de code, identifiée généralement sous la forme U+xxxx (où xxxx est un nombre hexadécimal de 4 à 6 chiffres, entre U+0000 et U+10FFFF). La plage définie permet d'attribuer jusqu'à 1 114 112 points de code. Localisation des caractères par plan et par bloc[modifier | modifier le code] Points de code U+0000 à U+FFFF.