added teacher/parent page

This commit is contained in:
Joe Reeve
2015-11-07 13:40:08 +00:00
parent bb8afbdc23
commit 1765a42699
8 changed files with 90 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
$(document).ready(function(){
Ractive.components.home = Ractive.extend({
template:'#home'
});
$.getJSON('/sample', function(res){
var ractive = new Ractive.components.home({
el:'#load',
data:res
});
});
//Code below here
});
+23
View File
@@ -0,0 +1,23 @@
$(document).ready(function(){
Ractive.components.home = Ractive.extend({
template:'#home'
});
$.getJSON('/sample', function(res){
var ractive = new Ractive.components.home({
el:'#load',
data:res
});
});
//Code below here
});
View File
+24
View File
@@ -0,0 +1,24 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>RCard</title>
<script src='http://cdn.ractivejs.org/latest/ractive.js'></script>
<script src='https://code.jquery.com/jquery-2.1.4.min.js'></script>
<!-- Compiled and minified CSS -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.1/css/materialize.min.css">
<!-- Compiled and minified JavaScript -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.1/js/materialize.min.js"></script>
<script src='index.js'></script>
</head>
<body>
@@include('components.html')
<div id='load'></div>
</body>
</html>
+20
View File
@@ -0,0 +1,20 @@
$(document).ready(function(){
@@include('components.js')
$.getJSON('/sample', function(res){
var ractive = new Ractive.components.home({
el:'#load',
data:res
});
});
//Code below here
});