gandetails.html 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  1. <div class="standardContainer">
  2. <button onclick="exitToGanList();" class="ui large circular black icon button"><i class="angle left icon"></i></button>
  3. <div style="float: right; max-width: 300px;">
  4. <h1 class="ui header" style="text-align: right;">
  5. <span class="ganetID"></span>
  6. <div class="sub header ganetName"></div>
  7. </h1>
  8. </div>
  9. <br><br>
  10. </div>
  11. <script>
  12. var currentGaNetDetails = {};
  13. //Entry points
  14. function initGanetDetails(ganetId){
  15. $(".ganetID").text(ganetId);
  16. //Get the details of the net
  17. $.get("/api/gan/network/list?netid=" + ganetId, function(data){
  18. if (data.error !== undefined){
  19. msgbox(data.error, false, 6000);
  20. }else{
  21. $(".ganetName").html(`${data.Name}<br>${data.Description}`);
  22. }
  23. })
  24. }
  25. //Exit point
  26. function exitToGanList(){
  27. $("#gan").load("./components/gan.html", function(){
  28. if (tabSwitchEventBind["gan"]){
  29. tabSwitchEventBind["gan"]();
  30. }
  31. });
  32. }
  33. </script>