mirror of
https://github.com/kennethreitz/requests.git
synced 2026-06-05 14:50:16 +00:00
572d2f4534
Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
86 lines
2.3 KiB
HTML
86 lines
2.3 KiB
HTML
<!-- 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.) -->
|
|
<style type="text/css">
|
|
|
|
/* Rezzy requires precise alignment. */
|
|
img.logo {margin-left: -20px!important;}
|
|
|
|
/* "Quick Search" should be capitalized. */
|
|
div#searchbox h3 {text-transform: capitalize;}
|
|
|
|
/* Make the document a little wider, less code is cut-off. */
|
|
div.document {width: 1008px;}
|
|
|
|
/* Much-improved spacing around code blocks. */
|
|
div.highlight pre {padding: 11px 14px;}
|
|
|
|
/* Remain Responsive! */
|
|
@media screen and (max-width: 1008px) {
|
|
div.sphinxsidebar {display: none;}
|
|
div.document {width: 100%!important;}
|
|
|
|
/* Have code blocks escape the document right-margin. */
|
|
div.highlight pre {margin-right: -30px;}
|
|
}
|
|
|
|
</style>
|
|
|
|
|
|
<!-- Analytics tracking for Kenneth. -->
|
|
<script type="text/javascript">
|
|
var _gauges = _gauges || [];
|
|
(function() {
|
|
var t = document.createElement('script');
|
|
t.type = 'text/javascript';
|
|
t.async = true;
|
|
t.id = 'gauges-tracker';
|
|
t.setAttribute('data-site-id', '56ca7a57c88d9011080024dd');
|
|
t.setAttribute('data-track-path', 'https://track.gaug.es/track.gif');
|
|
t.src = 'https://d36ee2fcip1434.cloudfront.net/track.js';
|
|
var s = document.getElementsByTagName('script')[0];
|
|
s.parentNode.insertBefore(t, s);
|
|
})();
|
|
</script>
|
|
|
|
|
|
<!-- There are no more hacks. -->
|
|
<!-- இڿڰۣ-ڰۣ— -->
|
|
<!-- Love, Kenneth Reitz -->
|
|
|
|
<script src="{{ pathto('_static/', 1) }}/konami.js"></script>
|
|
<script>
|
|
var easter_egg = new Konami('http://fortunes.herokuapp.com/random/raw');
|
|
</script>
|
|
|
|
<!-- That was not a hack. That was art. --> |