/
quote randomizer.js
12 lines (12 loc) 路 1.89 KB
/
quote randomizer.js
1
2
3
4
5
6
7
8
9
10
11
12
$(document).ready(function(){
var facts = [
"<h5>Create a Financial Calendar</h5><p>If you don鈥檛 trust yourself to remember to pay your quarterly taxes or periodically pull a credit report, think about setting appointment reminders for these important money to-dos in the same way that you would an annual doctor鈥檚 visit or car tune-up. A good place to start? Our ultimate financial calendar.</p>",
"<h5>Check Your Interest Rate</h5><p>Q: Which loan should you pay off first? A: The one with the highest interest rate. Q: Which savings account should you open? A: The one with the best interest rate. Q: Why does credit card debt give us such a headache? A: Blame it on the compound interest rate. Bottom line here: Paying attention to interest rates will help inform which debt or savings commitments you should focus on.</p>",
"<h5>Track Your Net Worth</h5><p>Your net worth鈥攖he difference between your assets and debt鈥攊s the big-picture number that can tell you where you stand financially. Keep an eye on it, and it can help keep you apprised of the progress you鈥檙e making toward your financial goals鈥攐r warn you if you鈥檙e backsliding.</p>",
"<h5>Take a Daily Money Minute</h5><p>This one comes straight from LearnVest Founder and CEO Alexa von Tobel, who swears by setting aside one minute each day to check on her financial transactions. This 60-second act helps identify problems immediately, keep track of goal progress鈥攁nd set your spending tone for the rest of the day!</p>",
"<h5>Allocate at Least 20% of Your Income Toward Financial Priorities</h5><p>By priorities, we mean building up emergency savings, paying off debt, and padding your retirement nest egg. </p>",
];
//document.body.innerHTML = cars[Math.random(0,cars.length())];
var random = facts[Math.floor(Math.random() * facts.length)];
document.getElementById('randomFact').innerHTML = random;
});