Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
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