Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-04-09 07:58:26

0001 /*

0002 Template Name: Admin Pro Admin

0003 Author: Wrappixel

0004 Email: niravjoshi87@gmail.com

0005 File: js

0006 */
0007 $(function () {
0008     "use strict";
0009 
0010     function objToString (obj) {
0011         var str = '';
0012         for (var p in obj) {
0013             str += p + '(' + obj[p] + ')';
0014         }
0015         return str;
0016     }
0017 
0018     $(document).ready(function() {
0019         //$.each(appConfig, function(key, value) {

0020         //    alert(key);

0021         //});

0022         $("#wait_message").text("Please wait for data loading");
0023 
0024         var iddsAPI_request_detail = appConfig.iddsAPI_request_detail;
0025         // iddsAPI_transform = "https://aipanda160.cern.ch:443/idds/monitor/72505/null/true/false";

0026         // iddsAPI_transform = "https://aipanda160.cern.ch:443/idds/monitor/null/null/true/false";

0027 
0028         $.getJSON(iddsAPI_request_detail, function(data){
0029             // $("#transforms_table_body").empty();

0030             $.each(data, function(i) {
0031                 var row = data[i];
0032 
0033                 var item_number = i + 1;
0034                 var new_item = "<tr>";
0035                 new_item += "<td>" + item_number + "</td>";
0036                 new_item += '<td class="txt-oflo">' + row.request_id + '</td>';
0037                 new_item += '<td>' + row.status + '</td>';
0038                 // new_item += '<td class="txt-oflo">' + row.transforms + '</td>';

0039                 new_item += '<td class="txt-oflo">' + objToString(row.transforms) + '</td>';
0040 
0041                 new_item += '<td>' + row.created_at + '</td>';
0042                 new_item += '<td class="txt-oflo">' + row.updated_at + '</td>';
0043                 new_item += '<td>' + row.input_total_files + '</td>';
0044                 new_item += '<td class="txt-oflo">' + row.input_processed_files + '</td>';
0045                 new_item += '<td>' + row.output_total_files + '</td>';
0046                 new_item += '<td class="txt-oflo">' + row.output_processed_files + '</td>';
0047                 new_item += "</tr>";
0048 
0049                 $("#requests_table_body").append(new_item);
0050             });
0051             $('table.display').DataTable();
0052             $("#wait_message").text("");
0053         });
0054 
0055     });
0056 
0057 });
0058 
0059