Skip to content

Instantly share code, notes, and snippets.

@Chion82
Last active June 12, 2017 04:02
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Chion82/d8af24cfe6a7ec381b60da672183d697 to your computer and use it in GitHub Desktop.
Save Chion82/d8af24cfe6a7ec381b60da672183d697 to your computer and use it in GitHub Desktop.
选课高亮提示
electCourseTable.config.time=500;
window.confirm=function(){
return true;
};
function updateCountHint(){
$('.stdCount').each(function(){
var numArray = $(this).html().split('/');
if (numArray[2] >= 1) {
$(this).css({'background-color':'red'});
if ($(this).parent().find('a[title="点击查看教学任务信息"]').html().indexOf('日语') !== -1) {
$(this).parent().find('a[operator="ELECTION"]').click();
}
}
});
}
setInterval(updateCountHint, 200)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment