mirror of
https://github.com/jcreek/phldnhack.git
synced 2026-07-13 02:53:44 +00:00
added teacher/parent page
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
});
|
||||||
@@ -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
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
});
|
||||||
@@ -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>
|
||||||
@@ -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
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
});
|
||||||
Reference in New Issue
Block a user