Difference between revisions of "Team:UCLA/core/journaljs"

(Created page with "jQuery(document).ready(function($){ console.log("jQuery ready"); });")
 
Line 1: Line 1:
 
jQuery(document).ready(function($){
 
jQuery(document).ready(function($){
   console.log("jQuery ready");
+
   jQuery('.week-header').on('click', function(e){
 +
  var values = this.id.split('-');
 +
  var target = '#' + value[0] + '-week-' + value[2] + '-content';
 +
  jQuery(target).slideToggle();
 +
  });
 
});
 
});

Revision as of 23:19, 26 July 2016

jQuery(document).ready(function($){

 jQuery('.week-header').on('click', function(e){
 	var values = this.id.split('-');
 	var target = '#' + value[0] + '-week-' + value[2] + '-content';
 	jQuery(target).slideToggle();
 });

});