sui/assets/js/data.js
2019-04-03 15:47:12 +02:00

35 lines
No EOL
901 B
JavaScript
Executable file

var data_links = "links.json";
$(document).ready(function(){
$.getJSON(data_links,
function (data) {
var mysource = $('#links-template').html();
var mytemplate = Handlebars.compile(mysource);
var myresult = mytemplate(data)
$('#links').html(myresult);
});
});
var data_apps = "apps.json";
$(document).ready(function(){
$.getJSON(data_apps,
function (data) {
var mysource = $('#apps-template').html();
var mytemplate = Handlebars.compile(mysource);
var myresult = mytemplate(data)
$('#apps').html(myresult);
});
});
var data_providers = "providers.json";
$(document).ready(function(){
$.getJSON(data_providers,
function (data) {
var mysource = $('#providers-template').html();
var mytemplate = Handlebars.compile(mysource);
var myresult = mytemplate(data)
$('#providers').html(myresult);
});
});