Welcome, guest! Login / Register - Why register?
Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)

Paste

Pasted as JavaScript by anon ( 8 years ago )
$.ajax({
           'async': false,
           'global': false,
           'url': 'saves/files.json',
           'dataType': "json",
           'success': function (json) {
$html = '';
$html += '<div class="carousel">';
$.each(json, function(idx, obj) {

$html += '<a class="carousel-item" href="#"><i class="tooltipped fas fa-file special2" data-position="bottom" data-delay="15" data-tooltip="'+obj.Name+'" data-created="'+obj.Created+'" data-updated="'+obj.Updated+'"></i><b>'+obj.Name+'</b></a>';


});​
$html += '<div>';  
$('[data-manager="files"]').html($html);
           },
     'error': function () {
     console.log('error loading json file');
           }
});

 

Revise this Paste

Your Name: Code Language: