(function(){
'use strict';
function set_style(name){
- $('#stylesheet').attr("href", "/css/" + name);
+ $('#stylesheet').attr("href", "/css/" + name + ".css");
localStorage.setItem("theme", name);
}
my $word = qr,(\w+),a;
my $ct = qr,(?:\/ct/$word)?,a;
- get qr,/css/$word, => 'CSS';
- get qr,/js, => 'JS';
+ get qr,/css/$word\.css, => 'CSS';
+ get qr,/js\.js, => 'JS';
get qr,/ct/, => 'Ct';
get qr,/ct/$word/, => 'Ct::Entry';
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
-<link rel="stylesheet" href="/css/cyborg" id="stylesheet">
-<script src="/js" type="text/javascript"></script>
+<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">