function set_style(name){
- $('link[rel~="stylesheet"]').each(e => e.disabled = true);
+ $('link[title]').each(e => e.disabled = true);
$('link[title="' + name + '"]')[0].disabled = false;
localStorage.setItem("theme", name);
+ $(function() {
+ if(name == 'slate' || name == 'cyborg')
+ $('.logo').each(e => e.classList.remove('logo-light'));
+ else
+ $('.logo').each(e => e.classList.add('logo-light'));
+ });
}
$(function() {
use v5.14;
use warnings;
- use CSS::Minifier::XS qw//;
+ use CSS::Minifier::XS qw/minify/;
+use CSS::SpriteMaker;
-
use Digest::SHA qw/sha256_base64/;
use IO::Compress::Gzip qw/gzip/;
use File::Slurp qw/read_file write_file edit_file_lines/;
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
-<link href="/static/css/cyborg.css" title="cyborg" rel="stylesheet" integrity="x">
-<link href="/static/css/slate.css" title="slate" rel="alternate stylesheet" integrity="x">
+<link href="/static/favicon.png" rel="shortcut icon">
+ <link href="/static/css/common.css" rel="stylesheet" integrity="x">
+<link href="/static/css/cyborg.css" title="cyborg" rel="alternate stylesheet" integrity="x">
+<link href="/static/css/slate.css" title="slate" rel="stylesheet" integrity="x">
<link href="/static/css/readable.css" title="readable" rel="alternate stylesheet" integrity="x">
<script src="/static/js/all.js" type="text/javascript" async defer integrity="x"></script>