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:
4
frontend/app/css/style.css
Normal file
4
frontend/app/css/style.css
Normal file
@@ -0,0 +1,4 @@
|
||||
.hello {
|
||||
background-color: #efefef;
|
||||
border: 1px solid #dedede;
|
||||
}
|
||||
0
frontend/app/img/.keep
Normal file
0
frontend/app/img/.keep
Normal file
0
frontend/app/js/.keep
Normal file
0
frontend/app/js/.keep
Normal file
14
frontend/app/js/hello.js
Normal file
14
frontend/app/js/hello.js
Normal 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);
|
||||
}
|
||||
12
frontend/app/pages/index.us
Normal file
12
frontend/app/pages/index.us
Normal 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>
|
||||
BIN
frontend/app/static/favicon.ico
Normal file
BIN
frontend/app/static/favicon.ico
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.1 KiB |
3
frontend/app/templates/hello.us
Normal file
3
frontend/app/templates/hello.us
Normal file
@@ -0,0 +1,3 @@
|
||||
<div class="hello">
|
||||
<%= text %>
|
||||
</div>
|
||||
Reference in New Issue
Block a user