Added Open "Source Code" link in a new tab #476
This just makes the links to the source code and Chart.js open in a new tab. The `rel="noopener noreferrer"` has been added to prevent security issues in older browsers. This is just an ease of use change that doesn't affect any of the core speedtest functionality in any way. Signed-off-by: Matthew Nickson <mnickson@sidingsmedia.com>
This commit is contained in:
parent
2f19331378
commit
e5496fcf90
|
@ -428,7 +428,7 @@ function initUI(){
|
||||||
<img src="" id="resultsImg" />
|
<img src="" id="resultsImg" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<a href="https://github.com/librespeed/speedtest">Source code</a>
|
<a href="https://github.com/librespeed/speedtest" target="_blank" rel="noopener noreferrer">Source code</a>
|
||||||
</div>
|
</div>
|
||||||
<div id="privacyPolicy" style="display:none">
|
<div id="privacyPolicy" style="display:none">
|
||||||
<h2>Privacy Policy</h2>
|
<h2>Privacy Policy</h2>
|
||||||
|
|
|
@ -320,7 +320,7 @@ function initUI(){
|
||||||
<img src="" id="resultsImg" />
|
<img src="" id="resultsImg" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<a href="https://github.com/librespeed/speedtest">Source code</a>
|
<a href="https://github.com/librespeed/speedtest" target="_blank" rel="noopener noreferrer">Source code</a>
|
||||||
</div>
|
</div>
|
||||||
<div id="privacyPolicy" style="display:none">
|
<div id="privacyPolicy" style="display:none">
|
||||||
<h2>Privacy Policy</h2>
|
<h2>Privacy Policy</h2>
|
||||||
|
|
|
@ -443,7 +443,7 @@ function initUI(){
|
||||||
<img src="" id="resultsImg" />
|
<img src="" id="resultsImg" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<a href="https://github.com/librespeed/speedtest">Source code</a>
|
<a href="https://github.com/librespeed/speedtest" target="_blank" rel="noopener noreferrer">Source code</a>
|
||||||
</div>
|
</div>
|
||||||
<div id="privacyPolicy" style="display:none">
|
<div id="privacyPolicy" style="display:none">
|
||||||
<h2>Privacy Policy</h2>
|
<h2>Privacy Policy</h2>
|
||||||
|
|
|
@ -236,7 +236,7 @@ function I(id){return document.getElementById(id);}
|
||||||
IP Address: <span id="ip"></span>
|
IP Address: <span id="ip"></span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<a href="https://github.com/librespeed/speedtest">Source code</a>
|
<a href="https://github.com/librespeed/speedtest" target="_blank" rel="noopener noreferrer">Source code</a>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
initUI();
|
initUI();
|
||||||
loadServers();
|
loadServers();
|
||||||
|
|
|
@ -32,7 +32,7 @@
|
||||||
s.start(); // start the speedtest with default settings
|
s.start(); // start the speedtest with default settings
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<a href="https://github.com/librespeed/speedtest">Source code</a>
|
<a href="https://github.com/librespeed/speedtest" target="_blank" rel="noopener noreferrer">Source code</a>
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
|
@ -251,6 +251,6 @@
|
||||||
<a href="javascript:abortTest()" id="abortBtn">Abort</a>
|
<a href="javascript:abortTest()" id="abortBtn">Abort</a>
|
||||||
</div>
|
</div>
|
||||||
<a href="javascript:runTest()" id="startBtn">Run speedtest</a>
|
<a href="javascript:runTest()" id="startBtn">Run speedtest</a>
|
||||||
<br/><br/> Charts by <a href="http://www.chartjs.org/">Chart.js</a><br/><br/><a href="https://github.com/librespeed/speedtest">Source code</a>
|
<br/><br/> Charts by <a href="http://www.chartjs.org/" target="_blank" rel="noopener noreferrer">Chart.js</a><br/><br/><a href="https://github.com/librespeed/speedtest" target="_blank" rel="noopener noreferrer">Source code</a>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
|
@ -166,7 +166,7 @@ function I(id){return document.getElementById(id);}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<a href="https://github.com/librespeed/speedtest">Source code</a>
|
<a href="https://github.com/librespeed/speedtest" target="_blank" rel="noopener noreferrer">Source code</a>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
initUI();
|
initUI();
|
||||||
</script>
|
</script>
|
||||||
|
|
|
@ -317,7 +317,7 @@ function initUI(){
|
||||||
<img src="" id="resultsImg" />
|
<img src="" id="resultsImg" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<a href="https://github.com/librespeed/speedtest">Source code</a>
|
<a href="https://github.com/librespeed/speedtest" target="_blank" rel="noopener noreferrer">Source code</a>
|
||||||
</div>
|
</div>
|
||||||
<div id="privacyPolicy" style="display:none">
|
<div id="privacyPolicy" style="display:none">
|
||||||
<h2>Privacy Policy</h2>
|
<h2>Privacy Policy</h2>
|
||||||
|
|
|
@ -255,7 +255,7 @@ function initUI(){
|
||||||
<span id="ip"></span>
|
<span id="ip"></span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<a href="https://github.com/librespeed/speedtest">Source code</a>
|
<a href="https://github.com/librespeed/speedtest" target="_blank" rel="noopener noreferrer">Source code</a>
|
||||||
</div>
|
</div>
|
||||||
<script type="text/javascript">setTimeout(function(){initUI()},100);</script>
|
<script type="text/javascript">setTimeout(function(){initUI()},100);</script>
|
||||||
</body>
|
</body>
|
||||||
|
|
|
@ -184,7 +184,7 @@ function I(id){return document.getElementById(id);}
|
||||||
IP Address: <span id="ip"></span>
|
IP Address: <span id="ip"></span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<a href="https://github.com/librespeed/speedtest">Source code</a>
|
<a href="https://github.com/librespeed/speedtest" target="_blank" rel="noopener noreferrer">Source code</a>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
initUI();
|
initUI();
|
||||||
</script>
|
</script>
|
||||||
|
|
|
@ -204,7 +204,7 @@ function I(id){return document.getElementById(id);}
|
||||||
IP Address: <span id="ip"></span>
|
IP Address: <span id="ip"></span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<a href="https://github.com/librespeed/speedtest">Source code</a>
|
<a href="https://github.com/librespeed/speedtest" target="_blank" rel="noopener noreferrer">Source code</a>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
initUI();
|
initUI();
|
||||||
</script>
|
</script>
|
||||||
|
|
Loading…
Reference in a new issue