(function(){
'use strict';
function set_style(name){
- $('#stylesheet').attr("href", "https://static.mindcoding.ro/static/css/" + name + ".css");
+ $('link[rel~="stylesheet"]').prop('disabled', true);
+ $('link[title="' + name + '"]').prop('disabled', false);
localStorage.setItem("theme", name);
+ $(document).ready(function() {
+ if(name == 'slate' || name == 'cyborg')
+ $('.logo').removeClass('logo-light');
+ else
+ $('.logo').addClass('logo-light');
+ });
}
$( document ).ready(function() {
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
- <link rel="stylesheet" href="https://static.mindcoding.ro/static/css/slate.css" id="stylesheet">
-<link href="/static/css/cyborg.css" title="cyborg" rel="stylesheet">
-<link href="/static/css/slate.css" title="slate" rel="alternate stylesheet">
-<link href="/static/css/readable.css" title="readable" rel="alternate stylesheet">
-<script src="/static/js.js" type="text/javascript" async defer></script>
++<link href="https://static.mindcoding.ro/static/css/cyborg.css" title="cyborg" rel="alternate stylesheet">
++<link href="https://static.mindcoding.ro/static/css/slate.css" title="slate" rel="stylesheet">
++<link href="https://static.mindcoding.ro/static/css/readable.css" title="readable" rel="alternate stylesheet">
+<script src="https://static.mindcoding.ro/static/js.js" type="text/javascript" async defer></script>
<body>
<nav role="navigation">