Skip to content

Commit 8f421bb

Browse files
committed
fix: default project beautify code
1 parent 94b2e75 commit 8f421bb

File tree

3 files changed

+16
-24
lines changed

3 files changed

+16
-24
lines changed

src-node/package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

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

Lines changed: 10 additions & 18 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>
@@ -16,31 +16,23 @@ <h1>Phoenix Code</h1>
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)