Last active
December 2, 2016 11:16
-
-
Save JudeRosario/85f18c0ac5365e65af3b713fda78749f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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