12 lines
266 B
JavaScript
12 lines
266 B
JavaScript
(function($) {
|
|
if (typeof(n3wz) == 'undefined') {
|
|
var n3wz = {};
|
|
n3wz.apiPrefix = '/api/';
|
|
}
|
|
|
|
$.getJSON(n3wz.apiPrefix + 'newsgroup/it.comp.console/threads')
|
|
.then(function(threads) {
|
|
$('.js-articles').html(ejs.rtfe('articles', threads));
|
|
});
|
|
})(jQuery);
|