1
0
mirror of https://github.com/kihashi/stardew_community_checklist.git synced 2025-10-19 08:03:17 +00:00

Updated the Javascript to load the JSON data.

This commit is contained in:
John Cleaver 2016-03-16 23:19:46 -04:00
parent f23ff97acd
commit 8e4009cf8d

21
main.js
View File

@ -1,5 +1,22 @@
v = new Vue({
el: '#app'
var v = new Vue({
el: '#app',
data:{
debug: true,
static: null,
user_data: []
},
ready: function(){
this.fetchData();
},
methods: {
fetchData: function(){
this.$http.get('bundles.json', function(data, status, response){
if(status == 200){
this.static = data;
}
});
}
}
});
$(function() {