Labs/Jetpack/Reboot/JEP/107: Difference between revisions

Jump to navigation Jump to search
Line 28: Line 28:
   'matches': ['*.google.com', 'jetpack.mozillalabs.com'],
   'matches': ['*.google.com', 'jetpack.mozillalabs.com'],
   'includes': {
   'includes': {
      'script': ['http://ajax.googleapis.com/ajax/libs/mootools/1.2.4/mootools.js'],
    'script': ['http://ajax.googleapis.com/ajax/libs/mootools/1.2.4/mootools.js'],
      'styles': ['http://yui.yahooapis.com/3.0.0/build/cssbase/base-min.css']
    'styles': ['http://yui.yahooapis.com/3.0.0/build/cssbase/base-min.css']
   },
   },
   'styles': {
   'styles': {
      'body': {
    'body': {
          'background': '#ffffff',
      'background': '#ffffff',
          'font-family': 'Trebuchet MS'
      'font-family': 'Trebuchet MS'
      }
    }
   },
   },
   'script': function(){
   'script': function(){
      $('container').addEvents({
    $('container').addEvents({
          'click:relay(ul li)': function(){ this.setStyles('background','#000') },
      'click:relay(ul li)': function(){ this.setStyles('background','#000') },
          'mousenter:relay(ul li)': function(){ this.tween('background','#000'); },
      'mousenter:relay(ul li)': function(){ this.tween('background','#000') },
          'mouseleave:relay(ul li)': function(){ this.tween('background','#fff') }
      'mouseleave:relay(ul li)': function(){ this.tween('background','#fff') }
      });
    });
   }
   }
});
});
1,273

edits

Navigation menu