ShawnAI commited on
Commit
57b11dd
·
1 Parent(s): 55f0ebb

Update dist/index.html

Browse files
Files changed (1) hide show
  1. dist/index.html +9 -9
dist/index.html CHANGED
@@ -38,17 +38,17 @@
38
  </select>
39
  <h3>AMF 29518</h3>
40
  <ul>
41
- <li><a href="" onclick="update('TS29518_Namf_Communication.yaml')">
42
  Communication</a></li>
43
- <li><a href="" onclick="update('TS29518_Namf_EventExposure.yaml')">
44
  Event Exposure</a></li>
45
- <li><a href="" onclick="update('TS29518_Namf_Location.yaml')">
46
  Location</a></li>
47
- <li><a href="" onclick="update('TS29518_Namf_MT.yaml')">
48
  MT</a></li>
49
- <li><a href="" onclick="update('TS29518_Namf_MBSCommunication.yaml')">
50
  MBS Communication</a></li>
51
- <li><a href="" onclick="update('TS29518_Namf_MBSBroadcast.yaml')">
52
  MBS Broadcast</a></li>
53
  </ul>
54
  <!-- Add more API links here -->
@@ -62,9 +62,9 @@
62
  const selectElement = document.getElementById('release-select');
63
  currentRelease = selectElement.value;
64
  currentFile = updatedFile;
65
- loadSwagger(currentRelease, currentFile); // Load the corresponding file for the selected release
66
  }
67
- function loadSwagger(loadRelease, loadFile) {
68
  console.log('Load: ', loadRelease, loadFile);
69
  window.ui = SwaggerUIBundle({
70
  url: loadRelease + '/' + loadFile,
@@ -72,7 +72,7 @@
72
  });
73
  }
74
  window.onload = () => {
75
- updateRelease(currentFile);
76
  };
77
  </script>
78
  </body>
 
38
  </select>
39
  <h3>AMF 29518</h3>
40
  <ul>
41
+ <li><a href="#" onclick="update('TS29518_Namf_Communication.yaml')">
42
  Communication</a></li>
43
+ <li><a href="#" onclick="update('TS29518_Namf_EventExposure.yaml')">
44
  Event Exposure</a></li>
45
+ <li><a href="#" onclick="update('TS29518_Namf_Location.yaml')">
46
  Location</a></li>
47
+ <li><a href="#" onclick="update('TS29518_Namf_MT.yaml')">
48
  MT</a></li>
49
+ <li><a href="#" onclick="update('TS29518_Namf_MBSCommunication.yaml')">
50
  MBS Communication</a></li>
51
+ <li><a href="#" onclick="update('TS29518_Namf_MBSBroadcast.yaml')">
52
  MBS Broadcast</a></li>
53
  </ul>
54
  <!-- Add more API links here -->
 
62
  const selectElement = document.getElementById('release-select');
63
  currentRelease = selectElement.value;
64
  currentFile = updatedFile;
65
+ load(currentRelease, currentFile); // Load the corresponding file for the selected release
66
  }
67
+ function load(loadRelease, loadFile) {
68
  console.log('Load: ', loadRelease, loadFile);
69
  window.ui = SwaggerUIBundle({
70
  url: loadRelease + '/' + loadFile,
 
72
  });
73
  }
74
  window.onload = () => {
75
+ update(currentFile);
76
  };
77
  </script>
78
  </body>