Rob Loach

Rob Loach's picture

Code

  1.  
Rob Loach's picture

Clearfix

  1. /* Clear Floated Elements
  2. ----------------------------------------------------------------------------------------------------*/
  3.  
  4. /* http://sonspring.com/journal/clearing-floats */
  5.  
  6. .clear {
  7.         cl
Rob Loach's picture

Blahdsfasdvnv

  1.       $recommended_version .= '<div title="Major upgrade warning" class="update-major-version-warning" id="warning-' . $project['name'] . '">' .
Rob Loach's picture

Test

  1.  
Rob Loach's picture

jCarousel context

  1. Index: jcarousel.js
  2. ===================================================================
  3. RCS file: /cvs/drupal-contrib/contributions/modules/jcarousel/Attic/jcarousel.js,v
  4. retrieving revision 1.1.2.
Rob Loach's picture

jCarousel Wrap

  1. Index: jcarousel.js
  2. ===================================================================
  3. RCS file: /cvs/drupal-contrib/contributions/modules/jcarousel/Attic/jcarousel.js,v
  4. retrieving revision 1.1.2.
Rob Loach's picture

drupal_get_library

  1. function drupal_get_library($module, $name) {
  2.   $libraries = &drupal_static(__FUNCTION__, array());
  3.  
  4.   // Make sure we have the libraries available from the hosting module.
  5.   if (!isset($libraries
Rob Loach's picture

Code

  1.   // Add additional CSS and JavaScript files associated with this element.
  2.   foreach (array('css', 'js') as $kind) {
  3.     if (!empty($elements['#attached_' .
Rob Loach's picture

Foreach!

  1. /**
  2.  * Adds multiple JavaScript or CSS files at the same time.
  3.  *
  4.  * A library defines a set of JavaScript and/or CSS files, optionally using
  5.  * settings, and optionally requiring another librar
Rob Loach's picture

Code

  1. /**
  2.  * Themes are allowed to set Skinr styles in their .info files.
  3.  *
  4.  * @todo Use DB caching.
Rob Loach's picture

Whaat?

  1. rob@RobLoachDesktop ~ $ ab -c 200 -n 2000 http://www.litwol.com/
  2. This is ApacheBench, Version 2.3 <$Revision: 655654 $>
  3. Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
  4. Lice
Rob Loach's picture

OMGZ Regex

  1.   /**
  2.    * Test JavaScript ordering.
  3.    */
  4.   function testRenderOrder() {
  5.     // Add a bunch of JavaScript in strange ordering:
  6.     drupal_add_js('(function($){alert("Weight 25 #1");})(jQuery);',
Rob Loach's picture

JavaScript Library Context

  1. /**
  2.  * Implementation of hook_help().
  3.  */
  4. function jquery_ui_help($path, $arg) {
  5.   switch ($path) {
  6.     case 'admin/help#jquery_ui':
  7.       $output = '<p>' .
Rob Loach's picture

jQuery UI Behaviors

  1. /**
  2.  * Implementation of hook_help().
  3.  */
  4. function jquery_ui_help($path, $arg) {
  5.   switch ($path) {
  6.     case 'admin/help#jquery_ui':
  7.       $output = '<p>' .
Rob Loach's picture

Flowplayer RTMP

  1. $url = $node->field_url[0]['value'];      $config = array(
  2.         'clip' => array(
  3.          // 'autoPlay' => $autoplay,
  4.           'url' => 'Michael_Berg_Limud_Parashat_Korach_20090618_Hebrew.flv',
Rob Loach's picture

Drupal NYC Meet Attendees

  1. Christina Hall
  2. Charles Novick
  3. Al Schulmann
  4. Stephen Musgrave
  5. Andrew Levine
  6. Bob Phelps
  7. Benjamin Guhin
  8. Michael Eisenstein
  9. Charlie Gordon
  10. Suzi Arnold
  11. Nikki Henninger
  12. Bruce Gordon
  13. David Campbel
Rob Loach's picture

Fix for JS Weight documentation

  1. OMG TEST!
Rob Loach's picture

ShareThis jQuery Plugin

  1. Moved to http://plugins.jquery.com/project/sharethis .
Rob Loach's picture

Ahah.js jQuery 1.3 update

  1.   // Immediately hide the new content if we're using any effects.
  2.   if (this.showEffect != 'show') {
  3.     new_content.hide();
  4.   }
Rob Loach's picture

JS Weight documentation

  1. /**
  2.  * Add a JavaScript file, setting or inline code to the page.
  3.  *
  4.  * The behavior of this function depends on the parameters it is called with.
Syndicate content