Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
Signed-off-by: Kenneth Reitz <[email protected]>
  • Loading branch information
kennethreitz committed Feb 28, 2018
1 parent b047b22 commit ad6d8d7
Showing 1 changed file with 0 additions and 29 deletions.
29 changes: 0 additions & 29 deletions docs/source/_templates/hacks.html
Original file line number Diff line number Diff line change
@@ -1,33 +1,4 @@
<!-- Alabaster (krTheme++) Hacks -->
<aside id="python27">
Python 3, the new best practice, is here to stay.
Python 2 will retire in only <time></time> months!
</aside>

<!-- Python 2 Death Clock™ -->
<style type="text/css">
body { margin-top: 4em; }
#python27 {
position: fixed;
top: 0;
left: 0; right: 0;
height: auto;
text-align: center;
color: white;
background-color: black;
font-size: larger;
line-height: 3;
}

</style>
<script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.18.1/moment.min.js"></script>
<script>
var death = new Date('2020-04-12');

var diff = moment.duration(death - moment());

document.querySelector('#python27 time').innerText = (diff.years() * 12) + diff.months();
</script>


<!-- CSS Adjustments (I'm very picky.) -->
Expand Down

0 comments on commit ad6d8d7

Please sign in to comment.