(function(){
'use strict';
function set_style(name){
- $('#stylesheet').attr("href", "/css/" + name);
+ $('#stylesheet').attr("href", "/css/" + name + ".css");
localStorage.setItem("theme", name);
+ if(name == 'slate' || name == 'cyborg')
+ $('.logo').addClass('logo-dark');
+ else
+ $('.logo').removeClass('logo-dark');
+ }
+
+ var theme = localStorage.getItem("theme");
+ if(theme) {
+ set_style(theme);
}
$( document ).ready(function() {
$('#theme_cerulean').on('click', function () { set_style("cerulean"); });
$('#theme_cyborg' ).on('click', function () { set_style("cyborg"); });
$('#theme_cosmo' ).on('click', function () { set_style("cosmo"); });
- });
- var theme = localStorage.getItem("theme");
- if(theme) {
- set_style(theme);
- }
+ if(!$('#sidebar').size()) {
+ var content = $('#content');
+ content.wrapInner('<div class="col-md-9">').append('<div id="sidebar" class="col-md-3">').addClass('row');
+ }
+ $('#sponsors').detach().appendTo($('#sidebar'));
+
+ if(theme) set_style(theme);
+ });
})();
<!DOCTYPE html>
-<title>TITLE_GOES_HERE</title>
+<title>TITLE_GOES_HERE | MindCoding</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
- <link rel="stylesheet" href="/css/cosmo" id="stylesheet">
- <script src="/js" type="text/javascript"></script>
+<link rel="shortcut icon" href="/static/favicon.png">
+ <link rel="stylesheet" href="/css/cyborg.css" id="stylesheet">
+ <script src="/js.js" type="text/javascript"></script>
<nav class="navbar navbar-default navbar-static-top" role="navigation">
<div class="container-fluid">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1"> <span class="sr-only">Toggle navigation</span><span class="icon-bar"></span><span class="icon-bar"></span><span class="icon-bar"></span></button>
-<a class="navbar-brand" href="/">Gruntmaster 6000</a>
+<a class="navbar-brand" href="/"><div class="logo logo-sigla"></div></a>
</div>
<div class="collapse navbar-collapse">
<li><a href="/pb/">Problems</a>
<li><a href="/ct/">Contests</a>
<li><a href="/account">Account</a>
+<li><a href="/about">About</a>
</ul>
<ul class="nav navbar-nav navbar-right">
+<li><a href="/rules">Rules</a>
<li><a class="dropdown-toggle" data-toggle="dropdown"> Theme <span class="caret"></span></a>
<ul class="dropdown-menu" role="menu">
<div class="container-fluid">
+<div class="logo logo-mindcoding center-block"></div>
+
<h1 id="title">TITLE_GOES_HERE</h1>
<div id="result"></div>
+
+<div id="content">