Skip to content
Snippets Groups Projects
Unverified Commit 54dfabbb authored by David Beniamine's avatar David Beniamine
Browse files

Remove inline scripts in style for Content Security Policy

parent 71bee404
Branches
No related tags found
No related merge requests found
$(function() {
var myInterval0 = setInterval(function(){
$.get('discs.php', function(data) {
$('#discs').html(data);
});
}, 15000);
});
<div id="logos">
<img style="float:left" src="tl.png" alt="Tetras Libre" />
<img style="float:right;margin-top: 25px" src="dt.png" alt="Demo-TIC" />
<img class="top-left" src="tl.png" alt="Tetras Libre" />
<img class="top-right" src="dt.png" alt="Demo-TIC" />
<h1>
Tetras Back
</h1>
......
......@@ -17,24 +17,8 @@
<div id="mainlog">
<?php require './log.php'; ?>
</div>
<script>
$(function() {
var myInterval = setInterval(function(){
$.get('log.php', function(data) {
$('#mainlog').html(data);
});
}, 5000);
});
</script>
<script>
$(function() {
var myInterval0 = setInterval(function(){
$.get('discs.php', function(data) {
$('#discs').html(data);
});
}, 15000);
});
</script>
<script src='./mainlog.js'></script>
<script src='./discs.js'></script>
<?php
include("footer.php");
?>
......
$(function() {
var myInterval = setInterval(function(){
$.get('log.php', function(data) {
$('#mainlog').html(data);
});
}, 5000);
});
......@@ -69,6 +69,13 @@ img.right{
margin : auto auto 5% 5%;
padding : 0.1em;
}
img.top-left{
float : left;
}
img.top-right{
float: right;
margin-top 25px;
}
/*Comportement des liens*/
a
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment