mirror of
https://github.com/jcreek/phldnhack.git
synced 2026-07-12 18:43:43 +00:00
test
This commit is contained in:
+4
-4
@@ -1,13 +1,13 @@
|
||||
$(document).ready(function(){
|
||||
|
||||
Ractive.components.home = Ractive.extend({
|
||||
template:'#home'
|
||||
Ractive.components.student = Ractive.extend({
|
||||
template:'#student'
|
||||
});
|
||||
|
||||
|
||||
$.getJSON('/sample', function(res){
|
||||
$.getJSON('/data/'+location.pathname.split('/').slice(3).join('/'), function(res){
|
||||
|
||||
var ractive = new Ractive.components.home({
|
||||
var ractive = new Ractive.components[location.pathname.split('/')[2]]({
|
||||
el:'#load',
|
||||
data:res
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user