- Posts: 19
- Thank you received: 0
Ask the community, share ideas, and connect with other LimeSurvey users!
Content Security Policy: The report URI (about:blank) should be an HTTP or HTTPS URI. Content Security Policy: The page’s settings observed the loading of a resource at https://openspeedtest.com/service-worker.js (“worker-src”). A CSP report is being sent.
<script type="text/javascript">jQuery(document).ready(function($){ $('#button').click(function(){ if(!$('#iframe').length) { $('#iframeHolder').html('<iframe id="iframe" src="https://openspeedtest.com/Get-widget.php" width="700" height="450"></iframe>'); } }); }); </script> <button id="button">Speed Test Here</button> <div id="iframeHolder"></div>
<script type="text/javascript"> $(document).on('ready pjax:scriptcomplete',function(){ var buttonText1 = 'Speed Test Here'; var buttonText2 = 'Hide Speed Test'; $('#speedTestButton').click(function(){ if(!$('#iframeHolder').is(':visible')) { $('#iframeHolder').fadeIn(300, function(e) { $('#speedTestButton').text(buttonText2); }); } else { $('#iframeHolder').fadeOut(300, function(e) { $('#speedTestButton').text(buttonText1); }); } }); }); </script> <button id="speedTestButton" type="button">Speed Test Here</button> <div id="iframeHolder" style="display: none;"> <iframe id="iframe" src="https://openspeedtest.com/Get-widget.php" width="700" height="450"></iframe> </div>