2017-09-14 21:39:01 +02:00
|
|
|
$(function() {
|
2018-03-25 22:47:19 +02:00
|
|
|
$.getJSON('apps.json', function(data) {
|
|
|
|
var host = data._.domain + (data._.port != '443' ? ':'+data._.port : '')
|
2017-10-14 11:18:05 +02:00
|
|
|
$.each(data, function(id, props) {
|
|
|
|
var div = $('#'+id).show();
|
2017-12-03 22:46:23 +01:00
|
|
|
if (props.hasOwnProperty('url'))
|
2018-03-25 22:47:19 +02:00
|
|
|
div.find('h2 a').attr('href', props.url.replace('{host}', host));
|
2017-12-03 22:46:23 +01:00
|
|
|
$.each(props, function(key, value) {
|
2018-03-25 22:47:19 +02:00
|
|
|
div.find('.'+key).text(value.replace('{host}', host));
|
2017-12-03 22:46:23 +01:00
|
|
|
});
|
2017-09-14 21:39:01 +02:00
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|