Last active
October 2, 2020 21:56
-
-
Save meooow25/d13dad76256045d4786dd012c7763c31 to your computer and use it in GitHub Desktop.
Codeforces login page source on 2020.10.03
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"> | |
<html lang="en"> | |
<head> | |
<meta http-equiv="content-type" content="text/html; charset=UTF-8"> | |
<meta name="X-Csrf-Token" content="29a92b8221e77eed6b9ccc6291788d75"/> | |
<meta id="viewport" name="viewport" content="width=device-width, initial-scale=0.01"/> | |
<script type="text/javascript" src="//sta.codeforces.com/s/81126/js/jquery-1.8.3.js"></script> | |
<script type="application/javascript"> | |
window.standaloneContest = false; | |
function adjustViewport() { | |
var screenWidthPx = Math.min($(window).width(), window.screen.width); | |
var siteWidthPx = 1100; // min width of site | |
var ratio = Math.min(screenWidthPx / siteWidthPx, 1.0); | |
var viewport = "width=device-width, initial-scale=" + ratio; | |
$('#viewport').attr('content', viewport); | |
var style = $('<style>html * { max-height: 1000000px; }</style>'); | |
$('html > head').append(style); | |
} | |
if ( /Android|webOS|iPhone|iPad|iPod|BlackBerry/i.test(navigator.userAgent) ) { | |
adjustViewport(); | |
} | |
/* Protection against trailing dot in domain. */ | |
let hostLength = window.location.host.length; | |
if (hostLength > 1 && window.location.host[hostLength - 1] === '.') { | |
window.location = window.location.protocol + "//" + window.location.host.substring(0, hostLength - 1); | |
} | |
</script> | |
<meta http-equiv="pragma" content="no-cache"> | |
<meta http-equiv="expires" content="-1"> | |
<meta http-equiv="profileName" content="g1"> | |
<meta name="google-site-verification" content="OTd2dN5x4nS4OPknPI9JFg36fKxjqY0i1PSfFPv_J90"/> | |
<meta property="fb:admins" content="100001352546622" /> | |
<meta property="og:image" content="//sta.codeforces.com/s/81126/images/codeforces-telegram-square.png" /> | |
<link rel="image_src" href="//sta.codeforces.com/s/81126/images/codeforces-telegram-square.png" /> | |
<meta property="og:title" content="Login - Codeforces"/> | |
<meta property="og:description" content=""/> | |
<meta property="og:site_name" content="Codeforces"/> | |
<meta name="utc_offset" content="+03:00"/> | |
<meta name="verify-reformal" content="f56f99fd7e087fb6ccb48ef2" /> | |
<title>Login - Codeforces</title> | |
<meta name="description" content="Codeforces. Programming competitions and contests, programming community" /> | |
<meta name="keywords" content="programming algorithm contest competition informatics olympiads c++ java graphs vkcup" /> | |
<meta name="robots" content="index, follow" /> | |
<link rel="stylesheet" href="//sta.codeforces.com/s/81126/css/font-awesome.min.css" type="text/css" charset="utf-8" /> | |
<link href='//fonts.googleapis.com/css?family=PT+Sans+Narrow:400,700&subset=latin,cyrillic' rel='stylesheet' type='text/css'> | |
<link href='//fonts.googleapis.com/css?family=Cuprum&subset=latin,cyrillic' rel='stylesheet' type='text/css'> | |
<link rel="apple-touch-icon" sizes="57x57" href="//sta.codeforces.com/s/81126/apple-icon-57x57.png"> | |
<link rel="apple-touch-icon" sizes="60x60" href="//sta.codeforces.com/s/81126/apple-icon-60x60.png"> | |
<link rel="apple-touch-icon" sizes="72x72" href="//sta.codeforces.com/s/81126/apple-icon-72x72.png"> | |
<link rel="apple-touch-icon" sizes="76x76" href="//sta.codeforces.com/s/81126/apple-icon-76x76.png"> | |
<link rel="apple-touch-icon" sizes="114x114" href="//sta.codeforces.com/s/81126/apple-icon-114x114.png"> | |
<link rel="apple-touch-icon" sizes="120x120" href="//sta.codeforces.com/s/81126/apple-icon-120x120.png"> | |
<link rel="apple-touch-icon" sizes="144x144" href="//sta.codeforces.com/s/81126/apple-icon-144x144.png"> | |
<link rel="apple-touch-icon" sizes="152x152" href="//sta.codeforces.com/s/81126/apple-icon-152x152.png"> | |
<link rel="apple-touch-icon" sizes="180x180" href="//sta.codeforces.com/s/81126/apple-icon-180x180.png"> | |
<link rel="icon" type="image/png" sizes="192x192" href="//sta.codeforces.com/s/81126/android-icon-192x192.png"> | |
<link rel="icon" type="image/png" sizes="32x32" href="//sta.codeforces.com/s/81126/favicon-32x32.png"> | |
<link rel="icon" type="image/png" sizes="96x96" href="//sta.codeforces.com/s/81126/favicon-96x96.png"> | |
<link rel="icon" type="image/png" sizes="16x16" href="//sta.codeforces.com/s/81126/favicon-16x16.png"> | |
<link rel="manifest" href="//sta.codeforces.com/s/81126/manifest.json"> | |
<meta name="msapplication-TileColor" content="#ffffff"> | |
<meta name="msapplication-TileImage" content="//sta.codeforces.com/s/81126/ms-icon-144x144.png"> | |
<meta name="theme-color" content="#ffffff"> | |
<!--CombineResourcesFilter--> | |
<link rel="stylesheet" href="//sta.codeforces.com/s/81126/css/prettify.css" type="text/css" charset="utf-8" /> | |
<link rel="stylesheet" href="//sta.codeforces.com/s/81126/css/clear.css" type="text/css" charset="utf-8" /> | |
<link rel="stylesheet" href="//sta.codeforces.com/s/81126/css/style.css" type="text/css" charset="utf-8" /> | |
<link rel="stylesheet" href="//sta.codeforces.com/s/81126/css/ttypography.css" type="text/css" charset="utf-8" /> | |
<link rel="stylesheet" href="//sta.codeforces.com/s/81126/css/problem-statement.css" type="text/css" charset="utf-8" /> | |
<link rel="stylesheet" href="//sta.codeforces.com/s/81126/css/second-level-menu.css" type="text/css" charset="utf-8" /> | |
<link rel="stylesheet" href="//sta.codeforces.com/s/81126/css/roundbox.css" type="text/css" charset="utf-8" /> | |
<link rel="stylesheet" href="//sta.codeforces.com/s/81126/css/datatable.css" type="text/css" charset="utf-8" /> | |
<link rel="stylesheet" href="//sta.codeforces.com/s/81126/css/table-form.css" type="text/css" charset="utf-8" /> | |
<link rel="stylesheet" href="//sta.codeforces.com/s/81126/css/topic.css" type="text/css" charset="utf-8" /> | |
<link rel="stylesheet" href="//sta.codeforces.com/s/81126/css/jquery.jgrowl.css" type="text/css" charset="utf-8" /> | |
<link rel="stylesheet" href="//sta.codeforces.com/s/81126/css/facebox.css" type="text/css" charset="utf-8" /> | |
<link rel="stylesheet" href="//sta.codeforces.com/s/81126/css/jquery.wysiwyg.css" type="text/css" charset="utf-8" /> | |
<link rel="stylesheet" href="//sta.codeforces.com/s/81126/css/jquery.autocomplete.css" type="text/css" charset="utf-8" /> | |
<link rel="stylesheet" href="//sta.codeforces.com/s/81126/css/codeforces.datepick.css" type="text/css" charset="utf-8" /> | |
<link rel="stylesheet" href="//sta.codeforces.com/s/81126/css/colorbox.css" type="text/css" charset="utf-8" /> | |
<link rel="stylesheet" href="//sta.codeforces.com/s/81126/css/jquery.drafts.css" type="text/css" charset="utf-8" /> | |
<link rel="stylesheet" href="//sta.codeforces.com/s/81126/css/community.css" type="text/css" charset="utf-8" /> | |
<!-- MathJax --> | |
<script type="text/x-mathjax-config"> | |
MathJax.Hub.Config({ | |
tex2jax: {inlineMath: [['$$$','$$$']], displayMath: [['$$$$$$','$$$$$$']]} | |
}); | |
MathJax.Hub.Register.StartupHook("End", function () { | |
Codeforces.runMathJaxListeners(); | |
}); | |
</script> | |
<script type="text/javascript" async | |
src="https://assets.codeforces.com/mathjax/MathJax.js?config=TeX-AMS_HTML-full" | |
> | |
</script> | |
<!-- /MathJax --> | |
<script type="text/javascript" src="//sta.codeforces.com/s/81126/js/prettify/prettify.js"></script> | |
<script type="text/javascript" src="//sta.codeforces.com/s/81126/js/moment-with-locales.min.js"></script> | |
<script type="text/javascript" src="//sta.codeforces.com/s/81126/js/pushstream.js"></script> | |
<script type="text/javascript" src="//sta.codeforces.com/s/81126/js/jquery.easing.min.js"></script> | |
<script type="text/javascript" src="//sta.codeforces.com/s/81126/js/jquery.lavalamp.min.js"></script> | |
<script type="text/javascript" src="//sta.codeforces.com/s/81126/js/jquery.jgrowl.js"></script> | |
<script type="text/javascript" src="//sta.codeforces.com/s/81126/js/jquery.swipe.js"></script> | |
<script type="text/javascript" src="//sta.codeforces.com/s/81126/js/jquery.hotkeys.js"></script> | |
<script type="text/javascript" src="//sta.codeforces.com/s/81126/js/facebox.js"></script> | |
<script type="text/javascript" src="//sta.codeforces.com/s/81126/js/jquery.wysiwyg.js"></script> | |
<script type="text/javascript" src="//sta.codeforces.com/s/81126/js/controls/wysiwyg.colorpicker.js"></script> | |
<script type="text/javascript" src="//sta.codeforces.com/s/81126/js/controls/wysiwyg.table.js"></script> | |
<script type="text/javascript" src="//sta.codeforces.com/s/81126/js/controls/wysiwyg.image.js"></script> | |
<script type="text/javascript" src="//sta.codeforces.com/s/81126/js/controls/wysiwyg.link.js"></script> | |
<script type="text/javascript" src="//sta.codeforces.com/s/81126/js/jquery.autocomplete.js"></script> | |
<script type="text/javascript" src="//sta.codeforces.com/s/81126/js/ua-parser.js"></script> | |
<script type="text/javascript" src="//sta.codeforces.com/s/81126/js/jquery.datepick.js"></script> | |
<script type="text/javascript" src="//sta.codeforces.com/s/81126/js/jquery.ie6blocker.js"></script> | |
<script type="text/javascript" src="//sta.codeforces.com/s/81126/js/jquery.colorbox-min.js"></script> | |
<script type="text/javascript" src="//sta.codeforces.com/s/81126/js/jquery.ba-bbq.js"></script> | |
<script type="text/javascript" src="//sta.codeforces.com/s/81126/js/jquery.drafts.js"></script> | |
<script type="text/javascript" src="//sta.codeforces.com/s/81126/js/clipboard.min.js"></script> | |
<script type="text/javascript" src="//sta.codeforces.com/s/81126/js/autosize.min.js"></script> | |
<script type="text/javascript" src="//sta.codeforces.com/s/81126/js/sjcl.js"></script> | |
<script type="text/javascript" src="/scripts/e52c0fa075ef467ea6af3c16c27e1e1c/en/codeforces-options.js"></script> | |
<script type="text/javascript" src="//sta.codeforces.com/s/81126/js/codeforces.js?v=20160131"></script> | |
<script type="text/javascript" src="//sta.codeforces.com/s/81126/js/EventCatcher.js?v=20160131"></script> | |
<script type="text/javascript" src="//sta.codeforces.com/s/81126/js/preparedVerdictFormats-en.js"></script> | |
<!--/CombineResourcesFilter--> | |
<link rel="stylesheet" href="//sta.codeforces.com/s/81126/markitup/skins/markitup/style.css" type="text/css" charset="utf-8" /> | |
<link rel="stylesheet" href="//sta.codeforces.com/s/81126/markitup/sets/markdown/style.css" type="text/css" charset="utf-8" /> | |
<script type="text/javascript" src="//sta.codeforces.com/s/81126/markitup/jquery.markitup.js"></script> | |
<script type="text/javascript" src="//sta.codeforces.com/s/81126/markitup/sets/markdown/set.js"></script> | |
<!--[if IE]> | |
<style> | |
#sidebar { | |
padding-left: 1em; | |
margin: 1em 1em 1em 0; | |
} | |
</style> | |
<![endif]--> | |
</head> | |
<body class=" "><span style='display:none;' class='csrf-token' data-csrf='29a92b8221e77eed6b9ccc6291788d75'> </span> | |
<!-- .notificationTextCleaner used in Codeforces.showAnnouncements() --> | |
<div class="notificationTextCleaner" style="font-size: 0px"></div> | |
<div class="button-up" style="display: none; opacity: 0.7; width: 50px; height:100%; position: fixed; left: 0; top: 0; cursor: pointer; text-align: center; line-height: 35px; color: #d3dbe4; font-weight: bold; font-size: 3.0rem;"><i class="icon-circle-arrow-up"></i></div> | |
<div class="verdictPrototypeDiv" style="display: none;"></div> | |
<!-- Codeforces JavaScripts. --> | |
<script type="text/javascript"> | |
String.prototype.hashCode = function() { | |
var hash = 0, i, chr; | |
if (this.length === 0) return hash; | |
for (i = 0; i < this.length; i++) { | |
chr = this.charCodeAt(i); | |
hash = ((hash << 5) - hash) + chr; | |
hash |= 0; // Convert to 32bit integer | |
} | |
return hash; | |
}; | |
var queryMobile = Codeforces.queryString.mobile; | |
if (queryMobile === "true" || queryMobile === "false") { | |
Codeforces.putToStorage("useMobile", queryMobile == "true"); | |
} else { | |
var useMobile = Codeforces.getFromStorage("useMobile"); | |
if (useMobile === true || useMobile === false) { | |
if (useMobile != false) { | |
Codeforces.redirect(Codeforces.updateUrlParameter(document.location.href, "mobile", useMobile)); | |
} | |
} | |
} | |
</script> | |
<script type="text/javascript"> | |
if (window.parent.frames.length > 0) { | |
window.stop(); | |
} | |
</script> | |
<script type="text/javascript"> | |
window.fbAsyncInit = function() { | |
FB.init({ | |
appId : '554666954583323', | |
xfbml : true, | |
version : 'v2.8' | |
}); | |
FB.AppEvents.logPageView(); | |
}; | |
(function(d, s, id){ | |
var js, fjs = d.getElementsByTagName(s)[0]; | |
if (d.getElementById(id)) {return;} | |
js = d.createElement(s); js.id = id; | |
js.src = "//connect.facebook.net/en_US/sdk.js"; | |
fjs.parentNode.insertBefore(js, fjs); | |
}(document, 'script', 'facebook-jssdk')); | |
</script> | |
<script type="text/javascript"> | |
$(document).ready(function () { | |
(function () { | |
jQuery.expr[':'].containsCI = function(elem, index, match) { | |
return !match || !match.length || match.length < 4 || !match[3] || ( | |
elem.textContent || elem.innerText || jQuery(elem).text() || '' | |
).toLowerCase().indexOf(match[3].toLowerCase()) >= 0; | |
} | |
}(jQuery)); | |
$.ajaxPrefilter(function(options, originalOptions, xhr) { | |
var csrf = Codeforces.getCsrfToken(); | |
if (csrf) { | |
var data = originalOptions.data; | |
if (originalOptions.data !== undefined) { | |
if (Object.prototype.toString.call(originalOptions.data) === '[object String]') { | |
data = $.deparam(originalOptions.data); | |
} | |
} else { | |
data = {}; | |
} | |
options.data = $.param($.extend(data, { csrf_token: csrf })); | |
} | |
}); | |
window.getCodeforcesServerTime = function(callback) { | |
$.post("/data/time", {}, callback, "json"); | |
} | |
window.updateTypography = function () { | |
$("div.ttypography code").addClass("tt"); | |
$("div.ttypography pre>code").addClass("prettyprint").removeClass("tt"); | |
$("div.ttypography table").addClass("bordertable"); | |
prettyPrint(); | |
} | |
$.ajaxSetup({ scriptCharset: "utf-8" ,contentType: "application/x-www-form-urlencoded; charset=UTF-8", headers: { | |
'X-Csrf-Token': Codeforces.getCsrfToken() | |
}}); | |
window.updateTypography(); | |
Codeforces.signForms(); | |
setTimeout(function() { | |
$(".second-level-menu-list").lavaLamp({ | |
fx: "backout", | |
speed: 700 | |
}); | |
}, 100); | |
Codeforces.countdown(); | |
$("a[rel='photobox']").colorbox(); | |
function showAnnouncements(json) { | |
//info("j=" + JSON.stringify(json)); | |
if (json.t != "a") { | |
return; | |
} | |
setTimeout(function() { | |
Codeforces.showAnnouncements(json.d, "en"); | |
}, Math.random() * 500); | |
} | |
function showEventCatcherUserMessage(json) { | |
if (json.t == "s") { | |
var points = json.d[5]; | |
var passedTestCount = json.d[7]; | |
var judgedTestCount = json.d[8]; | |
var verdict = preparedVerdictFormats[json.d[12]]; | |
var verdictPrototypeDiv = $(".verdictPrototypeDiv"); | |
verdictPrototypeDiv.html(verdict); | |
if (judgedTestCount != null && judgedTestCount != undefined) { | |
verdictPrototypeDiv.find(".verdict-format-judged").text(judgedTestCount); | |
} | |
if (passedTestCount != null && passedTestCount != undefined) { | |
verdictPrototypeDiv.find(".verdict-format-passed").text(passedTestCount); | |
} | |
if (points != null && points != undefined) { | |
verdictPrototypeDiv.find(".verdict-format-points").text(points); | |
} | |
Codeforces.showMessage(verdictPrototypeDiv.text()); | |
} | |
} | |
$(".clickable-title").each(function() { | |
var title = $(this).attr("data-title"); | |
if (title) { | |
var tmp = document.createElement("DIV"); | |
tmp.innerHTML = title; | |
$(this).attr("title", tmp.textContent || tmp.innerText || ""); | |
} | |
}); | |
$(".clickable-title").click(function() { | |
var title = $(this).attr("data-title"); | |
if (title) { | |
Codeforces.alert(title); | |
} else { | |
Codeforces.alert($(this).attr("title")); | |
} | |
}).css("position", "relative").css("bottom", "3px"); | |
Codeforces.showDelayedMessage(); | |
Codeforces.reformatTimes(); | |
//Codeforces.initializePubSub(); | |
if (window.codeforcesOptions.subscribeServerUrl) { | |
window.eventCatcher = new EventCatcher( | |
window.codeforcesOptions.subscribeServerUrl, | |
[ | |
Codeforces.getGlobalChannel(), | |
Codeforces.getUserChannel(), | |
Codeforces.getUserShowMessageChannel(), | |
Codeforces.getContestChannel(), | |
Codeforces.getParticipantChannel(), | |
Codeforces.getTalkChannel() | |
] | |
); | |
if (Codeforces.getParticipantChannel()) { | |
window.eventCatcher.subscribe(Codeforces.getParticipantChannel(), function(json) { | |
showAnnouncements(json); | |
}); | |
} | |
if (Codeforces.getContestChannel()) { | |
window.eventCatcher.subscribe(Codeforces.getContestChannel(), function(json) { | |
showAnnouncements(json); | |
}); | |
} | |
if (Codeforces.getGlobalChannel()) { | |
window.eventCatcher.subscribe(Codeforces.getGlobalChannel(), function(json) { | |
showAnnouncements(json); | |
}); | |
} | |
if (Codeforces.getUserChannel()) { | |
window.eventCatcher.subscribe(Codeforces.getUserChannel(), function(json) { | |
showAnnouncements(json); | |
}); | |
} | |
if (Codeforces.getUserShowMessageChannel()) { | |
window.eventCatcher.subscribe(Codeforces.getUserShowMessageChannel(), function(json) { | |
showEventCatcherUserMessage(json); | |
}); | |
} | |
} | |
Codeforces.setupContestTimes("/data/contests"); | |
Codeforces.setupSpoilers(); | |
Codeforces.setupTutorials("/data/problemTutorial"); | |
}); | |
</script> | |
<script type="text/javascript"> | |
var _gaq = _gaq || []; | |
_gaq.push(['_setAccount', 'UA-743380-5']); | |
_gaq.push(['_trackPageview']); | |
(function () { | |
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; | |
ga.src = (document.location.protocol == 'https:' ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; | |
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); | |
})(); | |
</script> | |
<div id="body"> | |
<div class="side-bell" style="visibility: hidden; display: none; opacity: 0.7; width: 40px; position: fixed; right: 0; top: 0; cursor: pointer; text-align: center; line-height: 35px; color: #d3dbe4; font-weight: bold; font-size: 1.5rem;"> | |
<span class="icon-stack" style="width: 100%;"> | |
<i class="icon-circle icon-stack-base"></i> | |
<i class="icon-bell-alt icon-light"></i> | |
</span> | |
<br/> | |
<span class="side-bell__count" style="position: relative; top: -10px;"></span> | |
</div> | |
<div id="header" style="position: relative;"> | |
<div style="float:left;"> | |
<a href="/"><img style="height: 50px; margin-top: 10px;" title="Make Codeforces, not Coronaforces" alt="Make Codeforces not Coronaforces" src="//sta.codeforces.com/s/81126/images/codeforces-vs-coronavirus-65.png"/></a> | |
</div> | |
<div class="lang-chooser"> | |
<div style="text-align: right;"> | |
<a href="?back=%2F&locale=en"><img src="//sta.codeforces.com/s/81126/images/flags/24/gb.png" title="In English" alt="In English"/></a> | |
<a href="?back=%2F&locale=ru"><img src="//sta.codeforces.com/s/81126/images/flags/24/ru.png" title="По-русски" alt="По-русски"/></a> | |
</div> | |
<div > | |
<a href="/enter?back=%2Fenter%3Fback%3D%252F">Enter</a> | |
| | |
<a href="/register">Register</a> | |
</div> | |
</div> | |
<br style="clear: both;"/> | |
</div> | |
<div class="roundbox menu-box" style=""> | |
<div class="roundbox-lt"> </div> | |
<div class="roundbox-rt"> </div> | |
<div class="roundbox-lb"> </div> | |
<div class="roundbox-rb"> </div> | |
<div class="menu-list-container"> | |
<ul class="menu-list main-menu-list"> | |
<li class=""><a href="/">Home</a></li> | |
<li class=""><a href="/top">Top</a></li> | |
<li class=""><a href="/contests">Contests</a></li> | |
<li class=""><a href="/gyms">Gym</a></li> | |
<li class=""><a href="/problemset">Problemset</a></li> | |
<li class=""><a href="/groups">Groups</a></li> | |
<li class=""><a href="/ratings">Rating</a></li> | |
<li class=""><a href="/edu/courses"><span class="edu-menu-item">Edu</span></a></li> | |
<li class=""><a href="/apiHelp">API</a></li> | |
<li class=""><a href="/calendar">Calendar</a></li> | |
<li class=""><a href="/help">Help</a></li> | |
<li class=""><a href="/graknforces">Grakn Forces <img class="icon" src="//st.codeforces.com/images/icons/cup.png"/></a></li> | |
<li class=""><a href="/10years"><span style="color:#ce2a2a;font-weight:bold;">10 years! <i style="font-size:100%" class="icon-gift"></i></span></a></li> | |
</ul> | |
<form method="post" action="/search"><input type='hidden' name='csrf_token' value='29a92b8221e77eed6b9ccc6291788d75'/> | |
<input class="search" name="query" data-isPlaceholder="true" value=""/> | |
</form> | |
<br style="clear: both;"/> | |
</div> | |
</div> | |
<script type="text/javascript"> | |
$(document).ready(function () { | |
$("input.search").focus(function () { | |
if ($(this).attr("data-isPlaceholder") === "true") { | |
$(this).val(""); | |
$(this).removeAttr("data-isPlaceholder"); | |
} | |
}); | |
}); | |
</script> | |
<br style="height: 3em; clear: both;"/> | |
<div style="position: relative;"> | |
<div id="pageContent"> | |
<div class="enterPage"> | |
<h5>Fill in the form to login into Codeforces.</h5> | |
You can use <a href="enter/Gmail">Gmail</a>, <a href="#" class="useFacebookLink">Facebook</a> or <a href="enter/ICPC">ICPC</a> as an alternative way to enter. | |
<div class="roundbox " style="width: 30em;margin: 2em auto;"> | |
<div class="roundbox-lt"> </div> | |
<div class="roundbox-rt"> </div> | |
<div class="caption titled"> Login into Codeforces | |
<div class="top-links"> | |
</div> | |
</div> | |
<form method="post" action="" id="enterForm"><input type='hidden' name='csrf_token' value='29a92b8221e77eed6b9ccc6291788d75'/> | |
<table class="table-form"> | |
<input type="hidden" name="action" value="enter"/> | |
<input type="hidden" name="ftaa" value=""/> | |
<input type="hidden" name="bfaa" value=""/> | |
<tr> | |
<td class="field-name"><label for="handleOrEmail">Handle/Email</label></td> | |
<td><input id="handleOrEmail" style="width: 15em;" name="handleOrEmail" value="" | |
/></td> | |
</tr> | |
<tr> | |
<td class="field-name"><label for="password">Password</label></td> | |
<td><input id="password" style="width: 15em;" name="password" type="password" value=""/></td> | |
</tr> | |
<tr> | |
<td> </td> | |
<td valign="middle"> | |
<label style="font-size:1.1rem;" for="remember"> | |
<input id="remember" style="position:relative;top:0.25em;" type="checkbox" | |
name="remember"/> | |
Remember me for a month | |
</label> | |
</td> | |
</tr> | |
<tr> | |
<td colspan="2"> | |
<div style="text-align: center;"><input class="submit" type="submit" value="Login"/> | |
</div> | |
<div style="text-align:right;font-size:1.1rem;"> | |
<a href="/passwordRecovery">Forgot your password?</a> | |
</div> | |
</td> | |
</tr> | |
</table> | |
</form> | |
<div class="bottom-links"> | |
<table style="width:100%;"> | |
<tbody> | |
<tr> | |
<td style="text-align:left;"> | |
</td> | |
<td style="text-align:right;"> | |
<a href="/enter/Gmail" class="useGmailLink">Use Gmail</a> | | |
<a href="#" class="useFacebookLink">Use Facebook</a> | | |
<a href="/enter/ICPC">Use ICPC</a> | |
</td> | |
</tr> | |
</tbody> | |
</table> | |
</div> | |
</div> | |
<form id="linkEnterForm" method="post" action=""><input type='hidden' name='csrf_token' value='29a92b8221e77eed6b9ccc6291788d75'/> | |
<input type="hidden" name="ftaa" value=""> | |
<input type="hidden" name="bfaa" value=""> | |
</form> | |
</div> | |
<script src="//sta.codeforces.com/s/81126/js/swfobject-2.2.min.js" type="text/javascript"></script> | |
<script src="//sta.codeforces.com/s/81126/js/ftaa.js" type="text/javascript"></script> | |
<script type="text/javascript"> | |
$(function() { | |
if (window.evercookie) { | |
var ec = new evercookie({ | |
history: false, | |
silverlight: false, | |
baseurl: '', | |
asseturi: '/assets', | |
phpuri: '/2fdcd78', | |
pngPath: '/eps', | |
etagPath: '/ees', | |
cachePath: '/ecs' | |
}); | |
var randomNumber = function () { | |
return Math.random().toString(36).substr(2); | |
}; | |
var randomToken = function () { | |
return (randomNumber() + randomNumber()).substring(0, 18); | |
}; | |
window._ftaa = ""; | |
ec.get("70a7c28f3de", function (value) { | |
window._ftaa = value; | |
if (!window._ftaa) { | |
window._ftaa = randomToken(); | |
ec.set("70a7c28f3de", window._ftaa); | |
} | |
$.post("/data/empty", {bfaa: window._bfaa, ftaa: window._ftaa}); | |
}); | |
} else { | |
window._ftaa = "n/a"; | |
$.post("/data/empty", {bfaa: window._bfaa, ftaa: window._ftaa}); | |
} | |
}); | |
</script> | |
<script src="//sta.codeforces.com/s/81126/js/bfaa.js" type="text/javascript"></script> | |
<script type="text/javascript"> | |
$(function() { | |
var fpCallback = function() { | |
Fingerprint2.get({}, function(components) { | |
window._bfaa = Fingerprint2.x64hash128(components.map(function (pair) { return pair.value }).join(), 31); | |
$.post("/data/empty", {bfaa: window._bfaa, ftaa: window._ftaa}); | |
}); | |
}; | |
if (typeof Fingerprint2 !== 'undefined') { | |
if (window.requestIdleCallback) { | |
requestIdleCallback(fpCallback) | |
} else { | |
setTimeout(fpCallback, 500) | |
} | |
} else { | |
window._bfaa = "n/a"; | |
$.post("/data/empty", {bfaa: window._bfaa, ftaa: window._ftaa}); | |
} | |
}); | |
</script> | |
<script> | |
$(function () { | |
$("#enterForm").submit(function () { | |
var $ftaa = $(this).find("input[name='ftaa']"); | |
var $bfaa = $(this).find("input[name='bfaa']"); | |
var ftaa = $(this).find("input[name='ftaa']").val(); | |
var bfaa = $(this).find("input[name='bfaa']").val(); | |
if (ftaa && bfaa) { | |
return true; | |
} else { | |
var intervalId = setInterval(function () { | |
if (window._ftaa && window._bfaa) { | |
$ftaa.val(window._ftaa); | |
$bfaa.val(window._bfaa); | |
clearInterval(intervalId); | |
$("#enterForm").submit(); | |
} | |
}, 100); | |
return false; | |
} | |
}); | |
$('.enterPage a:not([href=#])').click(function (e) { | |
var anchor = $(this), h; | |
h = anchor.attr('href'); | |
e.preventDefault(); | |
var intervalId = setInterval(function () { | |
if (window._ftaa && window._bfaa) { | |
clearInterval(intervalId); | |
var $linkEnterForm = $("#linkEnterForm"); | |
$linkEnterForm.find("input[name='ftaa']").val(window._ftaa); | |
$linkEnterForm.find("input[name='bfaa']").val(window._bfaa); | |
$linkEnterForm.attr("action", h); | |
$linkEnterForm.submit(); | |
} | |
}, 100); | |
return false; | |
}); | |
}); | |
</script> | |
<script type="text/javascript"> | |
function appendParameter(url, name, value) { | |
return url + (url.indexOf("?") < 0 ? "?" : "&") + name + "=" + encodeURI(value); | |
} | |
$(".useFacebookLink").click(function () { | |
FB.login(function (response) { | |
if (response.status === 'connected') { | |
var loginUrl = "/enter/Facebook"; | |
loginUrl = appendParameter(loginUrl, "accessToken", response.authResponse.accessToken); | |
document.location = loginUrl; | |
} | |
}); | |
return false; | |
}); | |
</script> | |
</div> | |
</div> | |
<br style="clear: both;"/> | |
<div id="footer"> | |
<div><a href="https://codeforces.com/">Codeforces</a> (c) Copyright 2010-2020 Mike Mirzayanov</div> | |
<div>The only programming contests Web 2.0 platform</div> | |
<div>Server time: <span class="format-timewithseconds" data-locale="en">Oct/03/2020 00:47:37</span> (g1).</div> | |
<div>Desktop version, switch to <a rel="nofollow" class="switchToMobile" href="?mobile=true">mobile version</a>.</div> | |
<div class="smaller"><a href="/privacy">Privacy Policy</a></div> | |
<div style="margin-top: 25px;"> | |
Supported by | |
</div> | |
<div style="margin-top: 8px; padding-bottom: 20px; position: relative; left: 10px;"> | |
<a href="https://telegram.org/"><img style="margin-right: 2em; width: 60px;" src="//sta.codeforces.com/s/81126/images/telegram-100x100.png" alt="Telegram" title="Telegram"/></a> | |
<a href="http://ifmo.ru/en/"><img style="width: 120px;" src="//sta.codeforces.com/s/81126/images/itmo_small_en-logo.png" alt="ИТМО" title="ИТМО"/></a> | |
</div> | |
</div> | |
<script type="text/javascript"> | |
$(function() { | |
$(".switchToMobile").click(function() { | |
Codeforces.redirect(Codeforces.updateUrlParameter(document.location.href, "mobile", "true")); | |
return false; | |
}); | |
$(".switchToDesktop").click(function() { | |
Codeforces.redirect(Codeforces.updateUrlParameter(document.location.href, "mobile", "false")); | |
return false; | |
}); | |
}); | |
</script> | |
<script type="text/javascript"> | |
$(document).ready(function () { | |
if ($(window).width() < 1600) { | |
$('.button-up').css('width', '30px').css('line-height', '30px').css('font-size', '20px'); | |
} | |
if ($(window).width() >= 1200) { | |
$ (window).scroll (function () { | |
if ($ (this).scrollTop () > 100) { | |
$ ('.button-up').fadeIn(); | |
} else { | |
$ ('.button-up').fadeOut(); | |
} | |
}); | |
$('.button-up').click(function () { | |
$('body,html').animate({ | |
scrollTop: 0 | |
}, 500); | |
return false; | |
}); | |
$('.button-up').hover(function () { | |
$(this).animate({ | |
'opacity':'1' | |
}).css({'background-color':'#e7ebf0','color':'#6a86a4'}); | |
}, function () { | |
$(this).animate({ | |
'opacity':'0.7' | |
}).css({'background':'none','color':'#d3dbe4'});; | |
}); | |
} | |
Codeforces.focusOnError(); | |
}); | |
</script> | |
<div class="userListsFacebox" style="display:none;"> | |
<div style="padding: 0.5em; width: 600px; max-height: 200px; overflow-y: auto"> | |
<div class="datatable" | |
style="background-color: #E1E1E1; padding-bottom: 3px;"> | |
<div class="lt"> </div> | |
<div class="rt"> </div> | |
<div class="lb"> </div> | |
<div class="rb"> </div> | |
<div style="padding: 4px 0 0 6px;font-size:1.4rem;position:relative;"> | |
User lists | |
<div style="position:absolute;right:0.25em;top:0.35em;"> | |
<span style="padding:0;position:relative;bottom:2px;" class="rowCount"></span> | |
<img class="closed" src="//sta.codeforces.com/s/81126/images/icons/control.png"/> | |
<span class="filter" style="display:none;"> | |
<img class="opened" src="//sta.codeforces.com/s/81126/images/icons/control-270.png"/> | |
<input style="padding:0 0 0 20px;position:relative;bottom:2px;border:1px solid #aaa;height:17px;font-size:1.3rem;"/> | |
</span> | |
</div> | |
</div> | |
<div style="background-color: white;margin:0.3em 3px 0 3px;position:relative;"> | |
<div class="ilt"> </div> | |
<div class="irt"> </div> | |
<table class=""> | |
<thead> | |
<tr> | |
<th>Name</th> | |
</tr> | |
</thead> | |
<tbody> | |
</tbody> | |
</table> | |
</div> | |
</div> | |
<script type="text/javascript"> | |
$(document).ready(function () { | |
// Create new ':containsIgnoreCase' selector for search | |
jQuery.expr[':'].containsIgnoreCase = function(a, i, m) { | |
return jQuery(a).text().toUpperCase() | |
.indexOf(m[3].toUpperCase()) >= 0; | |
}; | |
if (window.updateDatatableFilter == undefined) { | |
window.updateDatatableFilter = function(i) { | |
var parent = $(i).parent().parent().parent().parent(); | |
$("tr.no-items", parent).remove(); | |
$("tr", parent).hide().removeClass('visible'); | |
var text = $(i).val(); | |
if (text) { | |
$("tr" + ":containsIgnoreCase('" + text + "')", parent).show().addClass('visible'); | |
} else { | |
parent.find(".rowCount").text(""); | |
$("tr", parent).show().addClass('visible'); | |
} | |
var found = false; | |
var visibleRowCount = 0; | |
$("tr", parent).each(function () { | |
if (!found) { | |
if ($(this).find("th").size() > 0) { | |
$(this).show().addClass('visible'); | |
found = true; | |
} | |
} | |
if ($(this).hasClass('visible')) { | |
visibleRowCount++; | |
} | |
}); | |
if (text) { | |
parent.find(".rowCount").text("Matches: " + (visibleRowCount - (found ? 1 : 0))); | |
} | |
if (visibleRowCount == (found ? 1 : 0)) { | |
$("<tr class='no-items visible'><td style=\"text-align:left;\"colspan=\"32\">No items<\/td><\/tr>").appendTo($(parent).find('table')); | |
} | |
$(parent).find("tr td").removeClass("dark"); | |
$(parent).find("tr.visible:odd td").addClass("dark"); | |
} | |
$(".datatable .closed").click(function () { | |
var parent = $(this).parent(); | |
$(this).hide(); | |
$(".filter", parent).fadeIn(function () { | |
$("input", parent).val("").focus().css("border", "1px solid #aaa"); | |
}); | |
}); | |
$(".datatable .opened").click(function () { | |
var parent = $(this).parent().parent(); | |
$(".filter", parent).fadeOut(function () { | |
$(".closed", parent).show(); | |
$("input", parent).val("").each(function () { | |
window.updateDatatableFilter(this); | |
}); | |
}); | |
}); | |
$(".datatable .filter input").keyup(function(e) { | |
window.updateDatatableFilter(this); | |
e.preventDefault(); | |
e.stopPropagation(); | |
}); | |
$(".datatable table").each(function () { | |
var found = false; | |
$("tr", this).each(function () { | |
if (!found && $(this).find("th").size() == 0) { | |
found = true; | |
} | |
}); | |
if (!found) { | |
$("<tr class='no-items visible'><td style=\"text-align:left;\"colspan=\"32\">No items<\/td><\/tr>").appendTo(this); | |
} | |
}); | |
// Applies styles to datatables. | |
$(".datatable").each(function () { | |
$(this).find("tr:first th").addClass("top"); | |
$(this).find("tr:last td").addClass("bottom"); | |
$(this).find("tr:odd td").addClass("dark"); | |
$(this).find("tr td:first-child, tr th:first-child").addClass("left"); | |
$(this).find("tr td:last-child, tr th:last-child").addClass("right"); | |
}); | |
$(".datatable table.tablesorter").each(function () { | |
$(this).bind("sortEnd", function () { | |
$(".datatable").each(function () { | |
$(this).find("th, td") | |
.removeClass("top").removeClass("bottom") | |
.removeClass("left").removeClass("right") | |
.removeClass("dark"); | |
$(this).find("tr:first th").addClass("top"); | |
$(this).find("tr:last td").addClass("bottom"); | |
$(this).find("tr:odd td").addClass("dark"); | |
$(this).find("tr td:first-child, tr th:first-child").addClass("left"); | |
$(this).find("tr td:last-child, tr th:last-child").addClass("right"); | |
}); | |
}); | |
}); | |
} | |
}); | |
</script> | |
</div> | |
</div> | |
<script type="application/javascript"> | |
$(function() { | |
$(".userListMarker").click(function() { | |
$.post("/data/lists", {action: "findTouched"}, function(json) { | |
Codeforces.facebox(".userListsFacebox"); | |
var tbody = $("#facebox tbody"); | |
tbody.empty(); | |
for (var i in json) { | |
tbody.append( | |
$("<tr></tr>").append( | |
$("<td></td>").attr("data-readKey", json[i].readKey).text(json[i].name) | |
) | |
); | |
} | |
Codeforces.updateDatatables(); | |
tbody.find("td").css("cursor", "pointer").click(function() { | |
document.location = Codeforces.updateUrlParameter(document.location.href, "list", $(this).attr("data-readKey")); | |
}); | |
}, "json"); | |
}); | |
}); | |
</script> | |
</div> | |
<script type="application/javascript"> | |
if ('serviceWorker' in navigator && 'fetch' in window && 'caches' in window) { | |
var parser = new UAParser(); | |
var browserName = parser.getBrowser().name; | |
var browserVersion = parser.getBrowser().version; | |
var supportedBrowser = false; | |
var supportedBrowsers = { | |
"Chrome": "76", | |
"Firefox": "68", | |
// "Edge": "18", | |
"Safari": "12.1", | |
"Opera": "63", | |
"Yandex": "19.9" | |
}; | |
for (var name in supportedBrowsers) { | |
if (name === browserName && supportedBrowsers[name] <= browserVersion) { | |
supportedBrowser = true; | |
} | |
} | |
if (supportedBrowser) { | |
navigator.serviceWorker.register('/service-worker-81126.js') | |
.then(function (registration) { | |
console.log('Service worker registered'); | |
}) | |
.catch(function (error) { | |
console.log('Registration failed: ', error); | |
}); | |
} else { | |
navigator.serviceWorker.getRegistrations().then(function(registrations) { | |
for (var i = 0; i < registrations.length; i++) { | |
registrations[i].unregister(); | |
} | |
}); | |
} | |
} | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment