Skip to content

Instantly share code, notes, and snippets.

@JudeRosario
Last active December 2, 2016 11:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JudeRosario/85f18c0ac5365e65af3b713fda78749f to your computer and use it in GitHub Desktop.
Save JudeRosario/85f18c0ac5365e65af3b713fda78749f to your computer and use it in GitHub Desktop.
jQuery(document).ready(function($) {
var setText = function() {
$('.app_timetable:visible div.app_timetable_cell:nth(0)').contents().filter(function() {
return this.nodeType == 3;
})
.replaceWith("Morning") ;
$('.app_timetable:visible div.app_timetable_cell:nth(1)').contents().filter(function() {
return this.nodeType == 3;
})
.replaceWith("Noon") ;
$('.app_timetable:visible div.app_timetable_cell:nth(2)').contents().filter(function() {
return this.nodeType == 3;
})
.replaceWith("Evening") ;
}
setText() ;
$('body').bind('click', setText ) ;
}) ;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment