|
164 | 164 | <script src="https://cdn.jsdelivr.net/npm/@lightningchart/lcjs@4.2.2/dist/lcjs.iife.min.js"></script> |
165 | 165 |
|
166 | 166 | <script type="module"> |
167 | | - import { reset, run, showPage, updatePlottingAreaAndAxesInfo } from "./res/libopencor.js"; |
168 | | - |
169 | | - $("#navHome").on("click", function() { |
170 | | - showPage("Home"); |
171 | | - }); |
172 | | - $("#navSimulation").on("click", function() { |
173 | | - showPage("Simulation"); |
174 | | - }); |
175 | | - $("#navVersions").on("click", function() { |
176 | | - showPage("Versions"); |
177 | | - }); |
178 | | - |
179 | | - $("#reset").on("click", function() { |
180 | | - reset(); |
181 | | - }); |
182 | | - |
183 | | - $("#xAxis").on("change", function() { |
184 | | - updatePlottingAreaAndAxesInfo(); |
185 | | - }); |
186 | | - |
187 | | - $("#yAxis").on("change", function() { |
188 | | - updatePlottingAreaAndAxesInfo(); |
189 | | - }); |
190 | | - |
191 | | - $("#run").on("click", function() { |
192 | | - run(); |
193 | | - }); |
| 167 | + import { reset, run, showPage, updatePlottingAreaAndAxesInfo } from './res/libopencor.js'; |
| 168 | + |
| 169 | + $('#navHome').on('click', function () { |
| 170 | + showPage('Home'); |
| 171 | + }); |
| 172 | + $('#navSimulation').on('click', function () { |
| 173 | + showPage('Simulation'); |
| 174 | + }); |
| 175 | + $('#navVersions').on('click', function () { |
| 176 | + showPage('Versions'); |
| 177 | + }); |
| 178 | + |
| 179 | + $('#reset').on('click', function () { |
| 180 | + reset(); |
| 181 | + }); |
| 182 | + |
| 183 | + $('#xAxis').on('change', function () { |
| 184 | + updatePlottingAreaAndAxesInfo(); |
| 185 | + }); |
| 186 | + |
| 187 | + $('#yAxis').on('change', function () { |
| 188 | + updatePlottingAreaAndAxesInfo(); |
| 189 | + }); |
| 190 | + |
| 191 | + $('#run').on('click', function () { |
| 192 | + run(); |
| 193 | + }); |
194 | 194 | </script> |
195 | 195 | </body> |
196 | 196 | </html> |
0 commit comments