JavaScript
Jump to navigation
Jump to search
PHP
date formats
j/n/y - 24/10/12 g:ia, j M - 11:41pm, 13 Feb
Systems
- http://philsturgeon.co.uk/blog/2012/03/packages-the-way-forward-for-php
- http://blog.ircmaxell.com/2012/03/handling-plugins-in-php.html
JS
- http://www.lullabot.com/articles/learning-javascript-php-comparison
- http://maxtaco.github.com/coffee-script/
PHP & JS
Node.js
Basics
- http://www.adequatelygood.com/2010/3/JavaScript-Module-Pattern-In-Depth
- http://javascript.crockford.com/survey.html
Drupal
- Drupal JavaScripting, drewish, Wed 2011-05-11
- JavaScript hygiene in Drupal 7 - Sep 12, 2011
- http://stackoverflow.com/questions/3941426/drupal-behaviours
- http://mydrupalblog.lhmdesign.com/drupal-theming-jquery-basics-inc-drupal-behaviors
- http://www.lhmdesign.com/drupal-jquery-demo
DOM
- MDN: DOM
- Gecko DOM Reference - MDN
- document
- window
- window.setTimeout - executes a code snippet or a function after specified delay.
- Gecko DOM Reference - MDN
jQuery
News
Plugins
- http://archive.plugins.jquery.com/ - new one is being rebuilt
Animation
Carousel
$("ul#roundabout").roundabout({ autoplay: true, autoplayInitialDelay: 2000 });
The above works only for the first instance. Use window.setTimeout to alter further IDs. [3]
Scroll to anchor
$('body').plusAnchor({ easing: 'swing', // The easing method, defaults are 'swing' and 'linear'. // Anything else requires the easing.js plugin speed: 1000 // The amount of time, in milisecons, it takes to complete a transition });
$("#someDiv").slideto({ highlight_color: 'blue', highlight_duration: 'slow', slide_duration: 500 });
- http://webdesignerwall.com/tutorials/scrollto-posts-with-jquery [4]
- https://github.com/litera/jquery-scrollintoview
$("some_selector").scrollintoview({ duration: 2500, direction: "vertical", complete: function() { // highlight the element so user's focus gets where it needs to be } });
$(...).scrollTo( 'li:eq(15)', 1000, {offset: {top:-5, left:-30} });
$('a').smoothScroll(); $('#container a').smoothScroll(); $('#container a').smoothScroll({excludeWithin: ['.container2']}); exclude links if they are within a containing element: $('a').smoothScroll({exclude: ['.rough','#chunky']}); exclude links if they match certain conditions $('.backtotop').smoothScroll({offset: -100}); adjust where the scrolling stops $('a').smoothScroll({afterScroll: function() { alert('we made it!'); }}); add a callback function that is triggered after the scroll is complete
{ offset: 0, direction: 'top', // one of 'top' or 'left' scrollTarget: null, // only use if you want to override default behavior afterScroll: null, // function to be called after scrolling occurs. "this" is the triggering element easing: 'swing', speed: 400 }
Scrolling and Parallax
- http://joelb.me/scrollpath/ - define custom scroll paths
- http://markdalgleish.com/projects/stellar.js - not so good in chrome?
Typography
- http://www.frequency-decoder.com/demo/slabText/ - scaling headline text
Waypoints
Actions on certain areas of the page.
Forms
- http://harvesthq.github.com/chosen/ - A library for making long, unwieldy select boxes more user friendly