1
0
forked from extern/nix-config

Move serv/ to app/

This commit is contained in:
Donovan Glover 2017-12-21 20:08:17 -05:00
parent 6c39facf3c
commit 629b98d111
No known key found for this signature in database
GPG Key ID: 8FC5F7D90A5D8F4D
4 changed files with 15 additions and 31 deletions

15
app/layouts/main.ecr Normal file
View File

@ -0,0 +1,15 @@
<!doctype html>
<html lang="en-us">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>AquaStart</title>
<link rel="stylesheet" href="/design.css">
<link rel="shortcut icon" href="/favicon.ico">
<link rel="icon" href="/icon.png">
</head>
<body>
<%= content %>
<script src="/app.js"></script>
</body>
</html>

View File

@ -1,22 +0,0 @@
;(function(window, document, undefined) {
"use strict";
// Open all external links in new tabs
var links = document.getElementsByTagName("a");
for(var i = 0; i < links.length; i++) {
var thisLink = links[i];
if(thisLink.getAttribute("href") && thisLink.hostName !== location.hostname) {
thisLink.target = "_blank";
}
}
var randomize = function(id) {
var list = document.getElementById(id);
for(var i = list.children.length; i > -1; i--) {
list.appendChild(list.children[Math.random() * i | 0]);
}
}
})(window, document);

View File

@ -1,9 +0,0 @@
<!doctype html>
<html lang="en-us">
<head>
<meta charset="utf-8">
</head>
<body>
<%= content %>
</body>
</html>