From 1765a426997cb0e1be1e4db4f81186b2f362c2a7 Mon Sep 17 00:00:00 2001 From: Joe Reeve Date: Sat, 7 Nov 2015 13:40:08 +0000 Subject: [PATCH] added teacher/parent page --- build/parent.js | 23 +++++++++++++++++++++++ build/teacher.js | 23 +++++++++++++++++++++++ client/{index.css => parent.css} | 0 client/{index.html => parent.html} | 0 client/{index.js => parent.js} | 0 client/teacher.css | 0 client/teacher.html | 24 ++++++++++++++++++++++++ client/teacher.js | 20 ++++++++++++++++++++ 8 files changed, 90 insertions(+) create mode 100644 build/parent.js create mode 100644 build/teacher.js rename client/{index.css => parent.css} (100%) rename client/{index.html => parent.html} (100%) rename client/{index.js => parent.js} (100%) create mode 100644 client/teacher.css create mode 100644 client/teacher.html create mode 100644 client/teacher.js diff --git a/build/parent.js b/build/parent.js new file mode 100644 index 0000000..982d86c --- /dev/null +++ b/build/parent.js @@ -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 + + + + + }); diff --git a/build/teacher.js b/build/teacher.js new file mode 100644 index 0000000..982d86c --- /dev/null +++ b/build/teacher.js @@ -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 + + + + + }); diff --git a/client/index.css b/client/parent.css similarity index 100% rename from client/index.css rename to client/parent.css diff --git a/client/index.html b/client/parent.html similarity index 100% rename from client/index.html rename to client/parent.html diff --git a/client/index.js b/client/parent.js similarity index 100% rename from client/index.js rename to client/parent.js diff --git a/client/teacher.css b/client/teacher.css new file mode 100644 index 0000000..e69de29 diff --git a/client/teacher.html b/client/teacher.html new file mode 100644 index 0000000..d484511 --- /dev/null +++ b/client/teacher.html @@ -0,0 +1,24 @@ + + + + + RCard + + + + + + + + + + + + + + @@include('components.html') + +
+ + + diff --git a/client/teacher.js b/client/teacher.js new file mode 100644 index 0000000..5261092 --- /dev/null +++ b/client/teacher.js @@ -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 + + + + + });