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

Update dist/index.html

Browse files
Files changed (1) hide show
  1. dist/index.html +15 -15
dist/index.html CHANGED
@@ -30,7 +30,7 @@
30
  <body>
31
  <div id="sidebar">
32
  <label for="release-select">Select Release:</label>
33
- <select id="release-select" onchange="loadSwagger(this.value, currentFile)">
34
  <option value="Rel-18">Rel-18</option>
35
  <option value="Rel-17">Rel-17</option>
36
  <option value="Rel-16">Rel-16</option>
@@ -38,17 +38,17 @@
38
  </select>
39
  <h3>AMF 29518</h3>
40
  <ul>
41
- <li><a href="" onclick="updateRelease('TS29518_Namf_Communication.yaml')">
42
  Communication</a></li>
43
- <li><a href="" onclick="updateRelease('TS29518_Namf_EventExposure.yaml')">
44
  Event Exposure</a></li>
45
- <li><a href="" onclick="updateRelease('TS29518_Namf_Location.yaml')">
46
  Location</a></li>
47
- <li><a href="" onclick="updateRelease('TS29518_Namf_MT.yaml')">
48
  MT</a></li>
49
- <li><a href="" onclick="updateRelease('TS29518_Namf_MBSCommunication.yaml')">
50
  MBS Communication</a></li>
51
- <li><a href="" onclick="updateRelease('TS29518_Namf_MBSBroadcast.yaml')">
52
  MBS Broadcast</a></li>
53
  </ul>
54
  <!-- Add more API links here -->
@@ -56,18 +56,18 @@
56
  <div id="swagger-ui"></div>
57
  <script src="https://unpkg.com/[email protected]/swagger-ui-bundle.js" crossorigin></script>
58
  <script>
59
- let release = 'Rel-18';
60
  let currentFile = 'TS29518_Namf_Communication.yaml';
61
- function updateRelease(updatedFile) {
62
  const selectElement = document.getElementById('release-select');
63
- release = selectElement.value;
64
- loadSwagger(release, updatedFile); // Load the corresponding file for the selected release
65
- }
66
- function loadSwagger(release, updatedFile) {
67
- console.log('Load: ', release, updatedFile);
68
  currentFile = updatedFile;
 
 
 
 
69
  window.ui = SwaggerUIBundle({
70
- url: release + '/' + updatedFile,
71
  dom_id: '#swagger-ui'
72
  });
73
  }
 
30
  <body>
31
  <div id="sidebar">
32
  <label for="release-select">Select Release:</label>
33
+ <select id="release-select" onchange="update(currentFile)">
34
  <option value="Rel-18">Rel-18</option>
35
  <option value="Rel-17">Rel-17</option>
36
  <option value="Rel-16">Rel-16</option>
 
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 -->
 
56
  <div id="swagger-ui"></div>
57
  <script src="https://unpkg.com/[email protected]/swagger-ui-bundle.js" crossorigin></script>
58
  <script>
59
+ let currentRelease = 'Rel-18';
60
  let currentFile = 'TS29518_Namf_Communication.yaml';
61
+ function update(updatedFile) {
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,
71
  dom_id: '#swagger-ui'
72
  });
73
  }