/
fader-text-script.js
25 lines (16 loc) · 1.05 KB
/
fader-text-script.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
$(document).ready(function () {
var words = new Array();
words[0] = "“Your deepest presence is in your every small contracting and expanding. The two as beautifully balanced and coordinated as birdwings.” -Rumi";
words[1] = "“What is this precious love and laughter budding in our hearts? It is the glorious sound of a soul waking up.” ~Hafiz";
words[2] = "“No matter where you go... there you are!” -Buckaroo Banzai";
words[3] = "“Zaphod's... just this guy, you know?” -Douglas Adams' The Hitchhiker's Guide To The Galaxy";
words[4] = "“Monicka is just the bestest licensed massage therapist, ever!” — a very smart, satisfied customer";
function changeRecommendQuote() {
var rand = Math.floor(Math.random() * words.length);
var recommendElement = document.getElementById("recommendation");
recommendElement.innerHTML = words[rand];
$('#recommendation').fadeIn(1500).delay(4000).fadeOut(1500);
}
changeRecommendQuote()
setInterval(changeRecommendQuote,7250)
});