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 @@ + + +
+ +