1
0
mirror of https://github.com/jcwimer/wrestlingApp synced 2026-04-09 23:44:52 +00:00

Added linemanjs as frontend

This commit is contained in:
2016-02-10 16:33:44 +00:00
parent 4685173548
commit dfa0972747
36 changed files with 2670 additions and 1 deletions

View File

@@ -0,0 +1,4 @@
.hello {
background-color: #efefef;
border: 1px solid #dedede;
}

0
frontend/app/img/.keep Normal file
View File

0
frontend/app/js/.keep Normal file
View File

14
frontend/app/js/hello.js Normal file
View File

@@ -0,0 +1,14 @@
window.helloText = function() {
return 'Hello, World!';
};
window.hello = function() {
html = JST['app/templates/hello.us']({text: helloText()});
document.body.innerHTML += html;
};
if(window.addEventListener) {
window.addEventListener('DOMContentLoaded', hello, false);
} else {
window.attachEvent('onload', hello);
}

View File

@@ -0,0 +1,12 @@
<!DOCTYPE html>
<html>
<head>
<title><%= pkg.name %></title>
<link rel="stylesheet" type="text/css" href="<%= css %>" media="all" />
</head>
<body>
<script type="text/javascript" src="<%= js %>"></script>
<p>Test</p>
</body>
</html>

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

View File

@@ -0,0 +1,3 @@
<div class="hello">
<%= text %>
</div>