Permalink
Browse files

joke on both <title> and <body>

  • Loading branch information...
1 parent 341d6f2 commit 85898121e4c40d74e24e4e5eaaee22589bcf8466 @sublee committed Apr 1, 2013
Showing with 20 additions and 8 deletions.
  1. +5 −2 genindex.html
  2. +5 −2 index.html
  3. +5 −2 py-modindex.html
  4. +5 −2 search.html
View
@@ -42,8 +42,11 @@
// april fools' day
if (d.getMonth() + 1 == 4 && d.getDate() == 1) {
$(function() {
- var $body = $(document.body);
- $body.html($body.html().replace(/TrueSkill/g, 'FalseSkill'));
+ var $elems = $('body, title');
+ $elems.each(function() {
+ $this = $(this);
+ $this.html($this.html().replace(/TrueSkill/g, 'FalseSkill'));
+ });
});
}
</script>
View
@@ -40,8 +40,11 @@
// april fools' day
if (d.getMonth() + 1 == 4 && d.getDate() == 1) {
$(function() {
- var $body = $(document.body);
- $body.html($body.html().replace(/TrueSkill/g, 'FalseSkill'));
+ var $elems = $('body, title');
+ $elems.each(function() {
+ $this = $(this);
+ $this.html($this.html().replace(/TrueSkill/g, 'FalseSkill'));
+ });
});
}
</script>
View
@@ -41,8 +41,11 @@
// april fools' day
if (d.getMonth() + 1 == 4 && d.getDate() == 1) {
$(function() {
- var $body = $(document.body);
- $body.html($body.html().replace(/TrueSkill/g, 'FalseSkill'));
+ var $elems = $('body, title');
+ $elems.each(function() {
+ $this = $(this);
+ $this.html($this.html().replace(/TrueSkill/g, 'FalseSkill'));
+ });
});
}
</script>
View
@@ -45,8 +45,11 @@
// april fools' day
if (d.getMonth() + 1 == 4 && d.getDate() == 1) {
$(function() {
- var $body = $(document.body);
- $body.html($body.html().replace(/TrueSkill/g, 'FalseSkill'));
+ var $elems = $('body, title');
+ $elems.each(function() {
+ $this = $(this);
+ $this.html($this.html().replace(/TrueSkill/g, 'FalseSkill'));
+ });
});
}
</script>

0 comments on commit 8589812

Please sign in to comment.