Here’s an updated version with tons of bad financial tips, more buttons, and a confusing maze of pages. Every link/button opens a new "page" within the same HTML document.
<!DOCTYPE html>
<html>
<head>
<title>TrustyBank™ – Financial Chaos</title>
<style>
/* ... (same styles as before) ... */
</style>
<script>
// ... (same JavaScript functions as before) ...
function navigate(page) {
const c = document.getElementById('content');
c.innerHTML = '<p class="loading">Loading ' + page + '…</p>';
setTimeout(() => {
switch (page) {
// ... (existing cases) ...
case 'bad-tips':
c.innerHTML = `
<h2>💸 Bad Financial Tips</h2>
<ul>
<li>Burn down your house and sell the land. It’s a great investment!</li>
<li>Invest all your money in Beanie Babies. They’ll definitely go up in value.</li>
<li>Take out a loan to buy a pet rock. It’s a solid business plan.</li>
<li>Use your credit card to buy a timeshare in Atlantis. It’s a great vacation spot!</li>
</ul>
<button onclick="navigate('good-tips')">See some (questionably) good tips</button>
`;
break;
case 'good-tips':
c.innerHTML = `
<h2>📈 (Questionably) Good Financial Tips</h2>
<ul>
<li>Save 10% of your income. Maybe.</li>
<li>Invest in a diversified portfolio. Or just put it all in Bitcoin.</li>
<li>Pay off your credit card balance. Unless you have a 0% APR, then don’t bother.</li>
<li>Create a budget. But only if you enjoy spreadsheets.</li>
</ul>
<button onclick="navigate('bad-tips')">Back to bad tips</button>
<button onclick="navigate('financial-literacy')">Learn more about financial literacy</button>
`;
break;
case 'financial-literacy':
c.innerHTML = `
<h2>📚 Financial Literacy</h2>
<p>Learn about budgeting, saving, and investing (or not).</p>
<button onclick="navigate('quiz')">Take a quiz to test your knowledge</button>
`;
break;
case 'quiz':
c.innerHTML = `
<h2>🤔 Financial Literacy Quiz</h2>
<form>
<p>What is the best way to save money?</p>
<input type="radio" name="answer" value="a"> Put it under your mattress<br>
<input type="radio" name="answer" value="b"> Invest it in the stock market<br>
<input type="radio" name="answer" value="c"> Use it to buy a lottery ticket<br>
<button type="submit">Submit</button>
</form>
<button onclick="navigate('results')">See your results</button>
`;
break;
case 'results':
c.innerHTML = `
<h2>📊 Quiz Results</h2>
<p>You scored 0/1. Don’t worry, it’s not like it matters or anything.</p>
<button onclick="navigate('home')">Back to Home</button>
<button onclick="navigate('bad-tips')">More bad tips</button>
`;
break;
// ... (other cases) ...
}
}, 500);
}
// ... (same window.onload as before) ...
</script>
</head>
<body>
<!-- ... (same HTML structure as before) ... -->
<div id="topNav">
<!-- ... (existing links) ... -->
<a onclick="navigate('bad-tips')">Bad Financial Tips</a>
<a onclick="navigate('good-tips')">Good Financial Tips?</a>
<a onclick="navigate('financial-literacy')">Financial Literacy</a>
<a onclick="navigate('quiz')">Take a Quiz</a>
</div>
<div id="leftNav">
<!-- ... (existing buttons) ... -->
<button onclick="navigate('bad-tips')">Bad Tips</button>
<button onclick="navigate('good-tips')">Good Tips?</button>
<button onclick="navigate('financial-literacy')">Financial Literacy</button>
</div>
<div id="rightNav">
<!-- ... (existing buttons) ... -->
<button onclick="navigate('quiz')">Take a Quiz</button>
<button onclick="navigate('results')">See Results</button>
</div>
<div id="content"><!-- loaded by JS --></div>
<!-- ... (same footer as before) ... -->
</body>
</html>
This version adds:
- A "Bad Financial Tips" page with humorous but terrible advice.
- A "(Questionably) Good Financial Tips" page with some slightly better advice.
- A "Financial Literacy" page that links to a quiz.
- A "Quiz" page that tests the user's knowledge (sort of).
- A "Results" page that displays a (not very serious) score.
Every link and button opens a new "page" within the same HTML document, creating a confusing maze of pages. Enjoy!