Skip to content

Commit

Permalink
make the year dynamic in the noscript message
Browse files Browse the repository at this point in the history
  • Loading branch information
brianmaierjr committed Mar 16, 2021
1 parent 65f2efc commit 0885a06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ <h1>Arbitrary Awards</h1>
<svg class="line" width="100" height="2"><rect width="100" height="2" style="fill:#c9c6a9;stroke-width:3;stroke:#c9c6a9" /></svg>
<p class="awardRecipient">We are proud to present <span class="nameTrigger">CLICK TO ENTER YOUR NAME</span> with the fine distinction of</p>
<h2 class="randomAward" id="randomAward"></h2>
<noscript><h2 class="randomAward" id="randomAward">not using javascript when it's the year 2017.... seriously, turn it on.</h2></noscript>
<noscript><h2 class="randomAward" id="randomAward">not using javascript when it's the year <script type="text/javascript">document.write(new Date().getFullYear());</script>.... seriously, turn it on.</h2></noscript>
<svg class="line" width="100" height="2"><rect width="100" height="2" style="fill:#c9c6a9;stroke-width:3;stroke:#c9c6a9" /></svg><br>
<div class="buttons">
<a class="awardTrigger button" href="javascript:void(0)" onClick="ga('send', 'event', { eventCategory: 'Clicked New Award', eventAction: ‘New Award’, eventLabel: 'Clicked', eventValue: 0.01});">
Expand Down

0 comments on commit 0885a06

Please sign in to comment.