Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 21 additions & 16 deletions taxes-and-the-ultra-wealthy/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="msapplication-TileImage" content="https://static.moveon.org/giraffe/images/favicons/favicon512.png" />
<meta name="facebook-domain-verification" content="ilj31syg7vrca80yfqbcts67g1vw1g" />
<link rel="icon" type="image/png" href="https://static.moveon.org/giraffe/images/favicons/favicon32.png" sizes="32x32" />
<link rel="apple-touch-icon-precomposed" sizes="57x57" href="https://static.moveon.org/giraffe/images/favicons/favicon57.png" />
<link rel="apple-touch-icon-precomposed" sizes="114x114" href="https://static.moveon.org/giraffe/images/favicons/favicon114.png" />
<link href='styles.css' rel='stylesheet' />
<link href="https://fonts.googleapis.com/css2?family=Roboto+Condensed:wght@400;700&family=Roboto:wght@300;400;500;700&display=swap" rel="stylesheet">
<script>
Expand Down Expand Up @@ -32,7 +37,7 @@ <h1>The Tax Dodge</h1>

<main>
<section id='image-nav'>
<button class='help'><span>help <span class='hint' tabindex="0">?</span></span><img src = "help-icon.png" alt = 'help button' /></button>
<button class='help' id='help-button'><span>help <span class='hint' tabindex="0">?</span></span><img src = "help-icon.png" alt = 'help button' /></button>

<div id='main-games-nav'>
<div class='nav-div' playable="1" game='earn' current="1" role='button' tabindex='2'>
Expand All @@ -42,7 +47,7 @@ <h1>The Tax Dodge</h1>
<section>
<h3>Earn</h3>
<p>How to make money</p>
<button class='btn-primary'>start</button>
<button class='btn-primary' id='start-game'>start</button>
</section>
</div>
<div class = 'nav-arrow' game='spend'>
Expand All @@ -55,7 +60,7 @@ <h3>Earn</h3>
<section>
<h3>Spend</h3>
<p>How to buy things</p>
<button class='btn-primary'>start</button>
<button class='btn-primary' id='start-spend'>start</button>
</section>

</div>
Expand All @@ -69,11 +74,11 @@ <h3>Spend</h3>
<section>
<h3>File Taxes</h3>
<p>What to tell the IRS</p>
<button class='btn-primary'>start</button>
<button class='btn-primary' id='start-file'>start</button>
</section>
</div>
</div>
<div id='break-the-cycle'><button class='btn-primary'><img src="happy-nurse.png" alt="penguin nurse having hope">Break the <br />cycle</button></div>
<div id='break-the-cycle'><button class='btn-primary' id='break-the-cycle-button'><img src="happy-nurse.png" alt="penguin nurse having hope">Break the <br />cycle</button></div>
</section>
<div id='overlay-background'></div>
<section class = 'overlay' id ='intro'>
Expand All @@ -91,7 +96,7 @@ <h3>Try your hand at gaming the GOP-rigged tax system to see how they do it!</h3
<p>If you get stuck, you can unlock all challenges here: </p>
<div class='btn-group'>
<button id='unlock-all-challenges' class='btn-primary' type='button' tabindex='2'>Unlock All</button>
<button id='get-started' class='btn-primary' type='button' tabindex='3'>Close</button>
<button id='overlay-close' class='btn-primary' type='button' tabindex='3'>Close</button>
</div>
</section>
<section class = 'overlay' id ='share'>
Expand Down Expand Up @@ -195,8 +200,8 @@ <h2>Share this page to spread the word!</h2>
</div>
</form>
<div class='btn-group'>
<a href='sign.html'><button class='btn-primary'>Sign the Petition</button></a>
<button class='btn-primary close'>Close</button></a>
<a href='sign.html'><button class='btn-primary' id='share-sign-petition'>Sign the Petition</button></a>
<button id='share-close' class='btn-primary close'>Close</button></a>
</div>

</div>
Expand Down Expand Up @@ -242,7 +247,7 @@ <h3>Amount you owe in taxes <span class='hint' role="tooltip" tabindex="0" id='f
<h2>Nice Move!</h2>
<div class='interaction-content'>
<p>You've joined Elon Musk, Larry Ellison, and many others who have at times chosen to take a salary of $1 or less as they find less-taxing ways to add to their billions.</p>
<button class='btn-primary'>Play as nurse</button>
<button class='btn-primary' id='play-as-nurse'>Play as nurse</button>
</div>
</div>
</section>
Expand Down Expand Up @@ -281,11 +286,11 @@ <h2>OOF!!</h2>
<section class='game' game='spend'>
<section class='game-wrapper'>
<section class='player-tabs'>
<button active = '1' playable= "1" game='spend' player='ceo' >
<button active = '1' playable= "1" game='spend' player='ceo' id='spend-ceo-tab'>
<span></span>
<div><p>A billionaire</p><h2>CEO</h2></div>
</button>
<button game='spend' player='nurse'>
<button game='spend' player='nurse' id='spend-nurse-tab'>
<span></span>
<div><p>A hardworking</p><h2>Nurse</h2></div>
</button>
Expand All @@ -311,7 +316,7 @@ <h3>Amount you owe in taxes</h3>
<h2>You got it!</h2>
<div class='interaction-content'>
<p>Billionaire Carl Icahn has had over $1.2 billion in low-interest loans, which he uses to pay for his extravagant lifestyle and to make more investments, all without owing taxes on his gains. </p>
<button class='btn-primary'>Try as nurse</button>
<button class='btn-primary' id='spend-try-as-nurse'>Try as nurse</button>
</div>
</div>
</div>
Expand Down Expand Up @@ -361,11 +366,11 @@ <h2>Not so fast!</h2>
<section class='game' game='file-taxes'>
<section class='game-wrapper'>
<section class='player-tabs'>
<button active = '1' playable= "1" game='file-taxes' player='ceo' >
<button active = '1' playable= "1" game='file-taxes' player='ceo' id='file-ceo-tab'>
<span></span>
<div><p>A billionaire</p><h2>CEO</h2></div>
</button>
<button game='file-taxes' player='nurse'>
<button game='file-taxes' player='nurse' id='file-nurse-tab'>
<span></span>
<div><p>A hardworking</p><h2>Nurse</h2></div>
</button>
Expand Down Expand Up @@ -408,7 +413,7 @@ <h2 id = 'file-taxes-ceo-header'>Good start!</h2>
<div class='interaction-content'>
<p id='file-taxes-ceo-income-p'>Loopholes let corporations shift American-made profits to offshore havens that charge little or no tax.</p>
<p id='file-taxes-ceo-expense-p'>Loopholes let corporations claim expenses they haven’t really incurred–and that they don’t report to investors.</p>
<button class='btn-primary'>Try as nurse</button>
<button class='btn-primary' id='file-try-as-nurse'>Try as nurse</button>
</div>
</div>
</div>
Expand Down Expand Up @@ -496,7 +501,7 @@ <h3>... but the Billionaires Income Tax would change that.</h3>
<h3 id='cta'>You can help!</h3>
<div class='btn-group'>
<button id='share-page' class='btn-primary'>Share this Page</button>
<a href='sign.html'><button class='btn-primary'>Sign the Petition</button></a>
<a href='sign.html'><button class='btn-primary' id='break-cycle-sign-petition'>Sign the Petition</button></a>
</div>
<h3 >Learn more</h3>
<ul class='no-bullets'>
Expand Down
19 changes: 16 additions & 3 deletions taxes-and-the-ultra-wealthy/script.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
// to test any rounds d3.selectAll('.nav-div').attr('playable',1)



const tooltipTexts = {
propublicaSource: "Based on ProPublica's report on wealth and taxes of the 25 richest Americans (2014-2018). Click the \"get started\" button below to learn more.",
salaryGameHint: "A large salary is taxed at a pretty high rate, but investment gains may never be taxed. <strong>Slide the slider all the way to the other end to see what happens</strong>.",
Expand Down Expand Up @@ -463,4 +461,19 @@ d3.select('#future-taxes-hint').call(showTooltip, tooltipTexts.futureTaxes)
d3.select('button[player="nurse"][game="earn"]').call(showTooltip, tooltipTexts.nurseTab)
d3.select('#spend-game-hint').call(showTooltip, tooltipTexts.spendGameHint)
d3.select('#file-taxes-game-hint').call(showTooltip, tooltipTexts.fileTaxesGameHint)
d3.select('svg[game="file-taxes"]').call(showTooltip, tooltipTexts.fileTaxesSvgGameHint)
d3.select('svg[game="file-taxes"]').call(showTooltip, tooltipTexts.fileTaxesSvgGameHint)


/*******************/
/*** GA Tracking ***/
/*******************/
d3.selectAll('button').on('click.track', function(event) {
let id = d3.select(this).attr('id');
gaTrack(id);
console.log(`${id} clicked`);
});


function gaTrack(id) {
//google analytics code goes here
}
2 changes: 1 addition & 1 deletion taxes-and-the-ultra-wealthy/sign.html
Original file line number Diff line number Diff line change
Expand Up @@ -616,7 +616,7 @@ <h3>Welcome, <span id="known_user_name"></span>!</h3>

<div class="form-section--submit buttons mt-5">
<div class="text-align-center">
<button type="submit" class="btn-primary">Sign</button>
<button type="submit" class="btn-primary" id='sign'>Sign</button>

<!-- Skipping survey is the same as submitting it -->

Expand Down
2 changes: 1 addition & 1 deletion taxes-and-the-ultra-wealthy/thanks.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<div class='attribution'><span>presented by</span><img class='moveon-logo' src = "https://s26030.pcdn.co/wp-content/uploads/2017/06/moveon-logo-suprt-rev-rgb-e1518202117808.png" alt = 'moveon logo' />
</div>
<div class='main-title'>
<a href='index.html'><img class='faceoff' src = "faceoff2.png" role='button' tabindex="1" alt = 'page icon, return to nav pge' /> </a>
<a href='index.html'><img class='faceoff' id='return-to-index' src = "faceoff2.png" role='button' tabindex="1" alt = 'page icon, return to nav page' /> </a>
<div>
<h1>The Tax Dodge</h1>
<p>So you want to be a tax-avoiding billionaire?</p>
Expand Down