Skip to content

Commit 4671da1

Browse files
committed
fix: default project beautify code
1 parent 94b2e75 commit 4671da1

File tree

2 files changed

+15
-23
lines changed

2 files changed

+15
-23
lines changed

src/assets/default-project/en/index.html

Lines changed: 11 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!DOCTYPE html>
1+
<!doctype html>
22
<html lang="en">
33
<head>
44
<title>Phoenix editor</title>
@@ -12,35 +12,27 @@
1212
<img id="logo" alt="logo" src="images/phoenix-logo.svg" />
1313
<div id="MainText">
1414
<h1>Phoenix Code</h1>
15-
<span>CLICK_HERE<br /></span><br />
15+
<span>Click here to locate this &lt;span&gt; in the HTML file<br /></span><br />
1616
</div>
1717
<div class="video-container">
1818
<a
19-
href="https://www.youtube.com/watch?feature=player_embedded&v=Jkg3nAZ6vF8"
20-
target="_blank"
21-
title="Phoenix YouTube Channel">
19+
href="https://www.youtube.com/watch?feature=player_embedded&v=Jkg3nAZ6vF8"
20+
target="_blank"
21+
title="Phoenix YouTube Channel">
2222
<img
23-
src="images/youtube_video.png"
24-
alt="Phoenix Code on YouTube"
25-
title="Phoenix Code on YouTube"
26-
style="max-width: 320px;" />
23+
src="images/youtube_video.png"
24+
alt="Phoenix Code on YouTube"
25+
title="Phoenix Code on YouTube"
26+
style="max-width: 320px" />
2727
</a>
2828
<svg class="play-button" viewBox="0 0 200 200" alt="Play video">
29-
<circle
30-
cx="100"
31-
cy="100"
32-
r="90"
33-
fill="#333"
34-
fill-opacity="0.6" />
29+
<circle cx="100" cy="100" r="90" fill="#333" fill-opacity="0.6" />
3530
<polygon points="70, 55 70, 145 145, 100" fill="white" />
3631
</svg>
3732
</div>
3833
</div>
3934
<img id="cloudLeftTop" alt="cloud" src="images/vector-top-left.png" />
40-
<img
41-
id="cloudBottomRight"
42-
alt="cloud"
43-
src="images/vector-bottom-right.png" />
35+
<img id="cloudBottomRight" alt="cloud" src="images/vector-bottom-right.png" />
4436
<img id="starsRight" alt="stars" src="images/stars-right.svg" />
4537
<img
4638
class="clouds"

src/assets/default-project/en/script.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@ function onPageLoaded() {
33
console.log("page loaded");
44
}
55

6-
document.addEventListener('DOMContentLoaded', function() {
6+
document.addEventListener("DOMContentLoaded", function () {
77
// Listen for clicks on elements with the class 'play-button'
8-
document.querySelectorAll('.play-button').forEach(function(button) {
9-
button.addEventListener('click', function() {
8+
document.querySelectorAll(".play-button").forEach(function (button) {
9+
button.addEventListener("click", function () {
1010
// When a play button is clicked, simulate a click on the <a> tag within the same .video-container
11-
this.parentNode.querySelector('a').click();
11+
this.parentNode.querySelector("a").click();
1212
});
1313
});
1414
});

0 commit comments

Comments
 (0)