(function(){
'use strict';
function set_style(name){
- $('#stylesheet').attr("href", "/static/css/" + name + ".css");
+ $('link[rel~="stylesheet"]').prop('disabled', true);
+ $('link[title="' + name + '"]').prop('disabled', false);
localStorage.setItem("theme", name);
}
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
-<link rel="stylesheet" href="/static/css/cyborg.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>
<body>