Skip to content

Commit

Permalink
Random acronym every 10 secs
Browse files Browse the repository at this point in the history
  • Loading branch information
arranger1044 committed Apr 13, 2024
1 parent d706cd0 commit a405488
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion _includes/footer/custom.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,16 +39,28 @@


<script type="text/javascript">
var subtitles = [

var subtitles = [
"<hlgt>a</hlgt>utomating <hlgt>pr</hlgt>obabilistic <hlgt>i</hlgt>nference & <hlgt>l</hlgt>earning",
"<hlgt>a</hlgt>utonomous & <hlgt>p</hlgt>rovably <hlgt>r</hlgt>eliable <hlgt>i</hlgt>ntelligent <hlgt>l</hlgt>earners",
"<hlgt>a</hlgt>bout <hlgt>p</hlgt>robabilities, <hlgt>r</hlgt>easoning, <hlgt>i</hlgt>ntegrals & <hlgt>l</hlgt>ogic",
"<hlgt>a</hlgt>lone <hlgt>p</hlgt>attern <hlgt>r</hlgt>ecognition<br/><hlgt>i</hlgt>s<br/><hlgt>l</hlgt>imited",
"<hlgt>a</hlgt>pril is <hlgt>p</hlgt>robably a <hlgt>r</hlgt>ecursive <hlgt>i</hlgt>dentifier of a <hlgt>l</hlgt>ab"
];

var size = subtitles.length;
var x = Math.floor(size*Math.random());
$('#lab-acronym').html(subtitles[x]);

function changeAcronym(){
x += 1;
n = x % size;
$('#lab-acronym').html(subtitles[n]);
setTimeout(changeAcronym, 10000);
}

changeAcronym();

</script>

<!-- end custom footer snippets -->

0 comments on commit a405488

Please sign in to comment.