Skip to content

Commit 15c5502

Browse files
author
Daniel Arthur Gallagher
committed
Some tweaks to the HTML.
I've removed the "type" attributes from the script and style attributes, since in HTML5 these are not needed. I made the tracking script specifically use HTTPS rather than be protocol-relative. I added "noopener" to the anchors to other domain.
1 parent da3d8a0 commit 15c5502

File tree

1 file changed

+10
-11
lines changed

1 file changed

+10
-11
lines changed

index.html

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
<!DOCTYPE html>
2-
<html>
2+
<html lang="en-us" dir="ltr">
33
<head>
44
<title>Scriptular - Javascript Regular Expression Editor</title>
5-
<link rel="stylesheet" type="text/css" href="application.css">
5+
<link href="application.css" rel="stylesheet">
66
<link href="https://fonts.googleapis.com/css?family=Reenie+Beanie&text=Scriptular" rel="stylesheet">
7-
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js" type="text/javascript"></script>
8-
<script src="spine.js" type="text/javascript"></script>
9-
<script src="application.js" type="text/javascript"></script>
7+
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
8+
<script src="spine.js"></script>
9+
<script src="application.js"></script>
1010
<script>
1111
$(function() {
1212
new App();
@@ -31,11 +31,11 @@ <h2>Test Strings:</h2>
3131
</div>
3232

3333
<div id="intro">
34-
<p>Scriptular is a javascript regular expression editor. Inspired by <a href="http://rubular.com" target="_blank">Rubular</a> it gives you a simple way to test javascript regular expressions as you write them.</p>
34+
<p>Scriptular is a javascript regular expression editor. Inspired by <a href="http://rubular.com" target="_blank" rel="noopener">Rubular</a> it gives you a simple way to test javascript regular expressions as you write them.</p>
3535

3636
<p>Start by entering a regular expression and then a test string. Or give this <a href="#" id="example">example a try</a>.</p>
3737

38-
<p><a href="https://developer.mozilla.org/en/JavaScript/Guide/Regular_Expressions" target="_blank">Learn more</a> about regular expressions in javascript.</p>
38+
<p><a href="https://developer.mozilla.org/en/JavaScript/Guide/Regular_Expressions" target="_blank" rel="noopener">Learn more</a> about regular expressions in javascript.</p>
3939
</div>
4040

4141
<div id="error">
@@ -188,19 +188,18 @@ <h2>Quantifiers</h2>
188188
</div>
189189

190190
<div id="footer">
191-
<p>Created by <a href="http://theprogrammingbutler.com">Hoyt</a> and maintained by <a href="https://github.com/jonmagic/scriptular#contributors">many</a>. To contribute or report an issue visit <a href="https://github.com/jonmagic/scriptular">the project on GitHub</a>.</p>
191+
<p>Created by <a href="http://theprogrammingbutler.com" rel="noopener">Hoyt</a> and maintained by <a href="https://github.com/jonmagic/scriptular#contributors" rel="noopener">many</a>. To contribute or report an issue visit <a href="https://github.com/jonmagic/scriptular" rel="noopener">the project on GitHub</a>.</p>
192192
</div>
193193
</div>
194194

195-
<script type="text/javascript">
195+
<script>
196196
var _gauges = _gauges || [];
197197
(function() {
198198
var t = document.createElement('script');
199-
t.type = 'text/javascript';
200199
t.async = true;
201200
t.id = 'gauges-tracker';
202201
t.setAttribute('data-site-id', '4f542216cb25bc2358000006');
203-
t.src = '//secure.gaug.es/track.js';
202+
t.src = 'https://secure.gaug.es/track.js';
204203
var s = document.getElementsByTagName('script')[0];
205204
s.parentNode.insertBefore(t, s);
206205
})();

0 commit comments

Comments
 (0)