23 lines
455 B
JavaScript
23 lines
455 B
JavaScript
(function () {
|
|
var index = getQueryString('i');
|
|
$.ajax({
|
|
type: "GET",
|
|
url: "content.json",
|
|
dataType: "json",
|
|
success: function (response) {
|
|
|
|
listContent(response);
|
|
|
|
if (response[index]['hasCode'])
|
|
loadScript('content/js/' + response[index]['date'] + '.js');
|
|
|
|
$.ajax({
|
|
type: "GET",
|
|
url: 'content/html/' + response[index]['date'] + '.html',
|
|
success: function (res) {
|
|
appendContent(res);
|
|
}
|
|
});
|
|
}
|
|
});
|
|
})(); |