1
0
Fork 0

[SITE] new CSP without 'unsafe-inline'

This commit is contained in:
Jannik Beyerstedt 2016-10-15 20:10:34 +02:00
parent 404e6f8d79
commit 30e00e09ad
3 changed files with 5 additions and 5 deletions

View file

@ -40,7 +40,7 @@ echo js('assets/vendors/bootstrap/js/dist/carousel.js');
?>
<?php if (c::get('plg_masonry.enable') && $plg_masonry==true) : $width = c::get('plg_masonry.width');?>
<style>
<style nonce="nRfqpuKWNuYyUAFPTr6WVNZk9">
#masonry {margin: 0 auto;}
.masonryitem { width: <?php echo $width ?>px; margin-bottom: 10px;}
.masonryitem.w2 { width: 40%; }
@ -48,7 +48,7 @@ echo js('assets/vendors/bootstrap/js/dist/carousel.js');
<?php echo js('assets/vendors/masonry/dist/masonry.pkgd.min.js');?>
<script type="text/javascript">
<script type="text/javascript" nonce="nRfqpuKWNuYyUAFPTr6WVNZk9">
$('#masonry').masonry({
isFitWidth: true,
columnWidth: <?php echo c::get('plg_masonry.width') ?>,
@ -60,7 +60,7 @@ echo js('assets/vendors/bootstrap/js/dist/carousel.js');
<?php echo js('assets/vendors/swipebox/src/js/jquery.swipebox.min.js');?>
<?php echo css('assets/vendors/swipebox/src/css/swipebox.css') ?>
<script type="text/javascript">
<script type="text/javascript" nonce="nRfqpuKWNuYyUAFPTr6WVNZk9">
$(document).ready(function () {
$('.swipebox' ).swipebox();
});