Skip to content

Commit 5992001

Browse files
committed
chore: clean up html
1 parent 277f04e commit 5992001

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

68 files changed

+388
-395
lines changed

spec/network/response_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@
8181
%r{/ferrum/jquery.min.js$} => File.size("#{PROJECT_ROOT}/spec/support/public/jquery-1.11.3.min.js"),
8282
%r{/ferrum/jquery-ui.min.js$} => File.size("#{PROJECT_ROOT}/spec/support/public/jquery-ui-1.11.4.min.js"),
8383
%r{/ferrum/test.js$} => File.size("#{PROJECT_ROOT}/spec/support/public/test.js"),
84-
%r{/ferrum/with_js$} => 2343
84+
%r{/ferrum/with_js$} => 2312
8585
}
8686

8787
resources_size.each do |resource, size|

spec/support/views/animated.erb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
<!DOCTYPE html>
12
<html>
23
<head>
34
<meta http-equiv="Content-type" content="text/html; charset=utf-8"/>

spec/support/views/attach_file.erb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<script>
2-
window.onload = function() {
3-
var file = document.getElementById("file")
4-
file.onchange = function() {
5-
file.parentElement.removeChild(file)
2+
window.onload = function() {
3+
var file = document.getElementById("file")
4+
file.onchange = function() {
5+
file.parentElement.removeChild(file)
6+
}
67
}
7-
}
88
</script>
99

1010
<input type="file" id="file">

spec/support/views/auto_refresh.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!doctype html>
1+
<!DOCTYPE html>
22
<html>
33
<head>
44
</head>

spec/support/views/buttons.erb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
<h1>Buttons</h1>
32
<button>Click me!</button>
43
<button id="click_me_123">Click me by id!</button>
Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,30 @@
11
<!DOCTYPE html>
22
<html>
3-
<head>
4-
<style type="text/css">
5-
body {
6-
width: 800px;
7-
margin: 0;
8-
}
9-
#box {
10-
width: 800px;
11-
height: 600px;
12-
background: red;
13-
}
14-
</style>
15-
<script type="text/javascript">
16-
window.onload = function() {
17-
var log = document.querySelector("#log")
18-
var boxes = document.querySelector("#box")
19-
boxes.onclick = function(event) {
20-
var text = "x: " + event.pageX + ", y: " + event.pageY;
21-
log.textContent = text
22-
}
23-
}
24-
</script>
25-
</head>
26-
<body>
27-
<div id="box"></div>
28-
<div id="log"></div>
29-
</body>
3+
<head>
4+
<style>
5+
body {
6+
width: 800px;
7+
margin: 0;
8+
}
9+
#box {
10+
width: 800px;
11+
height: 600px;
12+
background: red;
13+
}
14+
</style>
15+
<script type="text/javascript">
16+
window.onload = function() {
17+
var log = document.querySelector("#log")
18+
var boxes = document.querySelector("#box")
19+
boxes.onclick = function(event) {
20+
var text = "x: " + event.pageX + ", y: " + event.pageY;
21+
log.textContent = text
22+
}
23+
}
24+
</script>
25+
</head>
26+
<body>
27+
<div id="box"></div>
28+
<div id="log"></div>
29+
</body>
3030
</html>

spec/support/views/click_test.erb

Lines changed: 48 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -1,52 +1,52 @@
11
<!DOCTYPE html>
22
<html>
3-
<head>
4-
<style type="text/css">
5-
body {
6-
width: 800px;
7-
margin: 0;
8-
}
9-
.box {
10-
width: 200px;
11-
height: 200px;
12-
float: left;
13-
margin: 100px;
14-
}
15-
#one {
16-
background: red;
17-
}
18-
#two {
19-
background: orange
20-
}
21-
#three {
22-
background: blue;
23-
}
24-
#four {
25-
background: green;
26-
}
27-
</style>
28-
<script type="text/javascript">
29-
window.onload = function() {
30-
var log = document.querySelector("#log")
31-
var boxes = document.querySelectorAll(".box")
32-
for (var i = 0; i < boxes.length; i++) {
33-
var el = boxes[i]
34-
el.onclick = function() {
35-
log.textContent = this.id
3+
<head>
4+
<style>
5+
body {
6+
width: 800px;
7+
margin: 0;
368
}
37-
}
38-
}
39-
</script>
40-
</head>
41-
<body>
42-
<div id="one" class="box"></div>
43-
<div id="two" class="box"></div>
44-
<div id="three" class="box"></div>
45-
<div id="four" class="box"></div>
46-
<div id="log"></div>
47-
<svg id="svg" class="box"></svg>
48-
<svg xmlns="http://www.w3.org/2000/svg" version="1.1">
49-
<rect id="myrect" width="300" height="100" style="fill:rgb(0,0,255);stroke-width:1;stroke:rgb(0,0,0)" />
50-
</svg>
51-
</body>
9+
.box {
10+
width: 200px;
11+
height: 200px;
12+
float: left;
13+
margin: 100px;
14+
}
15+
#one {
16+
background: red;
17+
}
18+
#two {
19+
background: orange
20+
}
21+
#three {
22+
background: blue;
23+
}
24+
#four {
25+
background: green;
26+
}
27+
</style>
28+
<script type="text/javascript">
29+
window.onload = function() {
30+
var log = document.querySelector("#log")
31+
var boxes = document.querySelectorAll(".box")
32+
for (var i = 0; i < boxes.length; i++) {
33+
var el = boxes[i]
34+
el.onclick = function() {
35+
log.textContent = this.id
36+
}
37+
}
38+
}
39+
</script>
40+
</head>
41+
<body>
42+
<div id="one" class="box"></div>
43+
<div id="two" class="box"></div>
44+
<div id="three" class="box"></div>
45+
<div id="four" class="box"></div>
46+
<div id="log"></div>
47+
<svg id="svg" class="box"></svg>
48+
<svg xmlns="http://www.w3.org/2000/svg" version="1.1">
49+
<rect id="myrect" width="300" height="100" style="fill:rgb(0,0,255);stroke-width:1;stroke:rgb(0,0,0)" />
50+
</svg>
51+
</body>
5252
</html>

spec/support/views/computed_style.erb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<style>
2-
.foo { color: red; }
3-
.bar { font-weight: bold; }
2+
.foo { color: red; }
3+
.bar { font-weight: bold; }
44
</style>
55

66
<span id="test_node" class="foo bar">Test</span>

spec/support/views/console_log.erb

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
<!DOCTYPE html>
22
<html>
3-
<head>
4-
<script type="text/javascript">
5-
window.onload = function() {
6-
console.log("Hello world");
7-
}
8-
</script>
9-
</head>
10-
<body>
11-
</body>
3+
<head>
4+
<script type="text/javascript">
5+
window.onload = function() {
6+
console.log("Hello world");
7+
}
8+
</script>
9+
</head>
10+
<body></body>
1211
</html>

spec/support/views/custom_html_size.erb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
<!DOCTYPE html>
12
<html>
23
<head>
34
<title>custom_size</title>
@@ -8,6 +9,5 @@
89
}
910
</style>
1011
</head>
11-
<body>
12-
</body>
12+
<body></body>
1313
</html>

0 commit comments

Comments
 (0)