mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-04-11 07:56:28 +00:00
Added linemanjs as frontend
This commit is contained in:
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);
|
||||
}
|
||||
Reference in New Issue
Block a user