Skip to content

Commit 484774a

Browse files
fix: various code issues (#161)
* http -> https * un used namespace * remove redundant `</link>` tags * fix label for attributes * provide generic fallback fonts * remove overridden properties in same rule * language issues * provide function instead of an object as argument * fix remaining closing tags * fix remaining closing tags * Update target-text/index.html * Update target-text/index.html --------- Co-authored-by: Jean-Yves Perrier <jypenator@gmail.com>
1 parent b97efcc commit 484774a

File tree

36 files changed

+55
-67
lines changed

36 files changed

+55
-67
lines changed

backdrop/script.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ function toggleFullscreen() {
3636
if (!document.fullscreenElement) {
3737
elem
3838
.requestFullscreen()
39-
.then({})
39+
.then(() => {})
4040
.catch((err) => {
4141
alert(
4242
`Error attempting to enable full-screen mode: ${err.message} (${err.name})`,

counter-style-demo/css/style.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ body {
2828
.header h1 {
2929
margin: 0;
3030
padding: 0;
31-
font-family: Ubuntu, Arial, Tahoma, "Sans Serif";
31+
font-family: Ubuntu, Arial, Tahoma, sans-serif;
3232
}
3333

3434
.header {
@@ -41,7 +41,7 @@ body {
4141
.notes-section {
4242
margin: 10px;
4343
color: #4d4e53;
44-
font-family: Ubuntu, Arial, Tahoma, "Sans Serif";
44+
font-family: Ubuntu, Arial, Tahoma, sans-serif;
4545
float: left;
4646
}
4747

css-cookbook/sharp-account_box-24px.svg

Lines changed: 1 addition & 1 deletion
Loading

editable-samples-2/pages/filter/svg/example.svg

Lines changed: 1 addition & 2 deletions
Loading

editable-samples/codemirror/mode/css/gss.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,17 @@
22

33
<title>CodeMirror: Closure Stylesheets (GSS) mode</title>
44
<meta charset="utf-8"/>
5-
<link rel=stylesheet href="../../doc/docs.css">
5+
<link rel=stylesheet href="../../doc/docs.css" />
66

7-
<link rel="stylesheet" href="../../lib/codemirror.css">
8-
<link rel="stylesheet" href="../../addon/hint/show-hint.css">
7+
<link rel="stylesheet" href="../../lib/codemirror.css" />
8+
<link rel="stylesheet" href="../../addon/hint/show-hint.css" />
99
<script src="../../lib/codemirror.js"></script>
1010
<script src="css.js"></script>
1111
<script src="../../addon/hint/show-hint.js"></script>
1212
<script src="../../addon/hint/css-hint.js"></script>
1313
<style>.CodeMirror {background: #f8f8f8;}</style>
1414
<div id=nav>
15-
<a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a>
15+
<a href="https://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a>
1616

1717
<ul>
1818
<li><a href="../../index.html">Home</a>

editable-samples/codemirror/mode/css/index.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,17 @@
22

33
<title>CodeMirror: CSS mode</title>
44
<meta charset="utf-8"/>
5-
<link rel=stylesheet href="../../doc/docs.css">
5+
<link rel=stylesheet href="../../doc/docs.css" />
66

7-
<link rel="stylesheet" href="../../lib/codemirror.css">
8-
<link rel="stylesheet" href="../../addon/hint/show-hint.css">
7+
<link rel="stylesheet" href="../../lib/codemirror.css" />
8+
<link rel="stylesheet" href="../../addon/hint/show-hint.css" />
99
<script src="../../lib/codemirror.js"></script>
1010
<script src="css.js"></script>
1111
<script src="../../addon/hint/show-hint.js"></script>
1212
<script src="../../addon/hint/css-hint.js"></script>
1313
<style>.CodeMirror {background: #f8f8f8;}</style>
1414
<div id=nav>
15-
<a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a>
15+
<a href="https://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a>
1616

1717
<ul>
1818
<li><a href="../../index.html">Home</a>

editable-samples/codemirror/mode/css/less.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22

33
<title>CodeMirror: LESS mode</title>
44
<meta charset="utf-8"/>
5-
<link rel=stylesheet href="../../doc/docs.css">
5+
<link rel=stylesheet href="../../doc/docs.css" />
66

7-
<link rel="stylesheet" href="../../lib/codemirror.css">
7+
<link rel="stylesheet" href="../../lib/codemirror.css" />
88
<script src="../../lib/codemirror.js"></script>
99
<script src="../../addon/edit/matchbrackets.js"></script>
1010
<script src="css.js"></script>
1111
<style>.CodeMirror {border: 1px solid #ddd; line-height: 1.2;}</style>
1212
<div id=nav>
13-
<a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a>
13+
<a href="https://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a>
1414

1515
<ul>
1616
<li><a href="../../index.html">Home</a>

editable-samples/codemirror/mode/css/scss.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22

33
<title>CodeMirror: SCSS mode</title>
44
<meta charset="utf-8"/>
5-
<link rel=stylesheet href="../../doc/docs.css">
5+
<link rel=stylesheet href="../../doc/docs.css" />
66

7-
<link rel="stylesheet" href="../../lib/codemirror.css">
7+
<link rel="stylesheet" href="../../lib/codemirror.css" />
88
<script src="../../lib/codemirror.js"></script>
99
<script src="css.js"></script>
1010
<style>.CodeMirror {background: #f8f8f8;}</style>
1111
<div id=nav>
12-
<a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a>
12+
<a href="https://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a>
1313

1414
<ul>
1515
<li><a href="../../index.html">Home</a>

editable-samples/pages/border-top-color/index-old.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33
<head>
44
<meta charset="utf-8" />
55
<meta name="viewport" content="width=device-width" />
6-
<link href="../../css/editable-old.css" rel="stylesheet"></link>
6+
<link href="../../css/editable-old.css" rel="stylesheet" />
77

8-
<link href="../../codemirror/lib/codemirror.css" rel="stylesheet">
9-
<link href="../../codemirror/theme/mdn-like.css" rel="stylesheet"></link>
10-
<link href="../../codemirror/addon/hint/show-hint.css" rel="stylesheet"></link>
8+
<link href="../../codemirror/lib/codemirror.css" rel="stylesheet" />
9+
<link href="../../codemirror/theme/mdn-like.css" rel="stylesheet" />
10+
<link href="../../codemirror/addon/hint/show-hint.css" rel="stylesheet" />
1111

12-
<link href="css/element.css" rel="stylesheet"></link>
12+
<link href="css/element.css" rel="stylesheet" />
1313
</head>
1414

1515
<body>
@@ -31,7 +31,7 @@
3131
<script src="../../codemirror/mode/css/css.js"></script>
3232
<script src="../../codemirror/addon/hint/css-hint.js"></script>
3333
<script src="../../codemirror/addon/hint/show-hint.js"></script>
34-
34+
3535
<script src="js/border-top-color.js"></script>
3636
<script src="../../js/editable-old.js"></script>
3737
</body>

editable-samples/pages/border-top-color/index.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33
<head>
44
<meta charset="utf-8" />
55
<meta name="viewport" content="width=device-width" />
6-
<link href="../../css/editable.css" rel="stylesheet"></link>
6+
<link href="../../css/editable.css" rel="stylesheet" />
77

8-
<link href="../../codemirror/lib/codemirror.css" rel="stylesheet">
9-
<link href="../../codemirror/theme/eclipse.css" rel="stylesheet"></link>
10-
<link href="../../codemirror/addon/hint/show-hint.css" rel="stylesheet"></link>
8+
<link href="../../codemirror/lib/codemirror.css" rel="stylesheet" />
9+
<link href="../../codemirror/theme/eclipse.css" rel="stylesheet" />
10+
<link href="../../codemirror/addon/hint/show-hint.css" rel="stylesheet" />
1111

12-
<link href="css/element.css" rel="stylesheet"></link>
12+
<link href="css/element.css" rel="stylesheet" />
1313
</head>
1414

1515
<body>
@@ -30,7 +30,7 @@
3030
<script src="../../codemirror/mode/css/css.js"></script>
3131
<script src="../../codemirror/addon/hint/css-hint.js"></script>
3232
<script src="../../codemirror/addon/hint/show-hint.js"></script>
33-
33+
3434
<script src="js/border-top-color.js"></script>
3535
<script src="../../js/editable.js"></script>
3636
</body>

0 commit comments

Comments
 (0)