X-Git-Url: https://git.ucc.asn.au/?p=sjy%2Faustlii.git;a=blobdiff_plain;f=austlii.js;h=1908d47e00b827cc11e68f42509f2ef3632bfe02;hp=e2ce166b9b1e75095ae2f8306e2280a518444bb3;hb=806d9100311c20ba414b05a893198f623c2d6c98;hpb=cf335ab9c1d1f3f1b37e0b13367559714f408b45;ds=sidebyside diff --git a/austlii.js b/austlii.js index e2ce166..1908d47 100644 --- a/austlii.js +++ b/austlii.js @@ -66,7 +66,8 @@ austlii.addMarkup = function() { $("center i").first().parent().addClass("citation"); // find and markup judges - var judgeExp = /([A-Zc]+)(\s[A-Zc,\s]+\sC?JJ?\.)/g; + // var judgeExp = /([A-Zc]+\s)([A-Zc,\s]+\sC?JJ?\.)/g; + var judgeExp = /([A-Z]{3})((?:[A-Z\s,]| )+C?J?J\.)/g var replacementText = document.body.innerHTML.replace(judgeExp, '$1$2'); document.body.innerHTML = replacementText; @@ -100,7 +101,7 @@ austlii.paintMenu = function() { }); }); - // update right menu on scroll + // update current judge on scroll $(window).scroll(function() { $("#menu ol li a").each(function(){ // if the relevant link appearsmore than half way down the page