Incluida arquitectura 'Js_loader' con un ejemplo de uso

This commit is contained in:
imnavajas
2023-09-14 10:29:40 +02:00
parent 8754782dc9
commit 8a207b246b
8 changed files with 96 additions and 3 deletions

View File

@ -335,6 +335,16 @@ if (!empty($token) && $tfa == false) {
<!-- Page JS -->
<?= sweetAlert() ?>
<?php
if (isset($global_js_variables)) {
echo "<script>\n";
foreach ($global_js_variables as $name => $value):
echo "\t" . "var $name = $value;" . "\n";
endforeach;
echo "</script>\n";
}
?>
<script type="text/javascript">