Change script location.

Split js code.
Added cache and changed loading mechanism for js sources.
This commit is contained in:
Oleg Sh
2023-11-06 19:16:50 +02:00
parent c29ad15e3c
commit 43a4b44a22
86 changed files with 7738 additions and 3383 deletions
+5 -3
View File
@@ -1,6 +1,8 @@
<head>
<link rel="stylesheet" type="text/css" href="<?= Root('i/css/create_graph_by_incidence_matrix.css')?>" />
<script src="<?= Root('script/Graph.js')?>"></script>
<script src="<?= RootCacheJS("script/shared/config.js")?>" ></script>
<script src="<?= RootCacheJS("script/shared/loader.js")?>" ></script>
<script src="<?= RootCacheJS('script/pages/create_graph_by_incidence_matrix/api/index.js')?>"></script>
</head>
<script>
@@ -304,11 +306,11 @@ window.onload = function ()
<form action="./" method="post" id="matrixForm">
<textarea name="incidenceMatrix" id="IncidenceMatrixFieldPage" wrap="off" style="display: none;">
<? if (!isset($_GET["incidenceMatrix"])): ?>
<?php if (!isset($_GET["incidenceMatrix"])): ?>
1, 0
1, 1
0, -1
<? else: ?><?= $_GET["incidenceMatrix"] ?><? endif;?></textarea>
<?php else: ?><?= $_GET["incidenceMatrix"] ?><?php endif;?></textarea>
</form>
<div id="MatrixForm">
<form id="AdjacencyMatrixFieldInput" role="form">