mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-11-29 08:56:03 +00:00
refactor scripts to allow operation with Content-Security-Policy: script-src 'self'
This commit is contained in:
1 parent
43bda7a5ba
commit
35641b099a
7 files changed
+172
-174
No files matched your search
+3
-22
@@ -483,30 +483,11 @@ $content_config2
|
||||
<p>$site_statistics_table</p>
|
||||
|
||||
<h2>$heading_php_info</h2>
|
||||
<script language="javascript">
|
||||
function toggle_visible() {
|
||||
var argv = toggle_visible.arguments;
|
||||
var argc = argv.length;
|
||||
|
||||
var fld_checkbox = document.getElementById(argv[0]);
|
||||
|
||||
if ( argc < 2 ) {
|
||||
return;
|
||||
}
|
||||
|
||||
for (var i = 1; i < argc; i++) {
|
||||
var block_id = argv[i].substr(1);
|
||||
var block_logical = argv[i].substr(0,1);
|
||||
var b = document.getElementById(block_id);
|
||||
if ( block_logical == '!' )
|
||||
b.style.display = (fld_checkbox.checked ? 'none' : '');
|
||||
else
|
||||
b.style.display = (!fld_checkbox.checked ? 'none' : '');
|
||||
}
|
||||
}
|
||||
</script><p><label>Show phpinfo() output:<input type="checkbox" value="1" id="fld_show_phpinfo" onclick="toggle_visible('fld_show_phpinfo','=phpinfo')"></label></p>
|
||||
<p><label>Show phpinfo() output:<input type="checkbox" value="1" id="fld_show_phpinfo"></label></p>
|
||||
<div style="display:none" id="phpinfo">$phpinfo</div>
|
||||
|
||||
EOBODY;
|
||||
|
||||
$c->scripts[] = 'js/common.js';
|
||||
$c->scripts[] = 'js/setup.js';
|
||||
include("page-footer.php");
|
||||
Reference in new issue
Block a user