diff options
| author | root <root@starla.laserr.local> | 2019-04-03 15:47:12 +0200 |
|---|---|---|
| committer | root <root@starla.laserr.local> | 2019-04-03 15:47:12 +0200 |
| commit | 69aa0718b434d55de1ec67a225745f2ae180a0c6 (patch) | |
| tree | 52931243b79af41130bae5d41bb654c91e967e5b /assets/js/data.js | |
first commit
Diffstat (limited to 'assets/js/data.js')
| -rwxr-xr-x | assets/js/data.js | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/assets/js/data.js b/assets/js/data.js new file mode 100755 index 0000000..e89b2de --- /dev/null +++ b/assets/js/data.js @@ -0,0 +1,35 @@ +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); + }); +});
\ No newline at end of file |