forked from extern/nix-config
Move serv/ to app/
This commit is contained in:
parent
6c39facf3c
commit
629b98d111
15
app/layouts/main.ecr
Normal file
15
app/layouts/main.ecr
Normal 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>
|
22
serv/app.js
22
serv/app.js
@ -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);
|
@ -1,9 +0,0 @@
|
||||
<!doctype html>
|
||||
<html lang="en-us">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
</head>
|
||||
<body>
|
||||
<%= content %>
|
||||
</body>
|
||||
</html>
|
Loading…
Reference in New Issue
Block a user