use EditorConfig

This commit is contained in:
Alexander Popov 2022-09-25 01:12:00 +03:00
parent 36f0ffb03d
commit 4743da6fae
Signed by: iiiypuk
GPG Key ID: D8C9B59A9F04A70C
3 changed files with 26 additions and 2 deletions

24
.editorconfig Normal file
View File

@ -0,0 +1,24 @@
root = true
[*]
indent_style = space
indent_size = 4
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
[{*.html,*.css}]
indent_style = space
indent_size = 2
[humans.txt]
indent_style = tab
indent_size = 2
[*.md]
trim_trailing_whitespace = false
[*.js]
indent_style = space
indent_size = 2

View File

@ -22,7 +22,7 @@
<div class="wrap">
<form action="JavaScript:getCover()">
<input type="text" id="videoUrl" placeholder="YouTube video url" onchange="getCover()"><!--
--><button type="submit">Search</button>
--><button type="submit">Search</button>
</form>
</div>
</div>

View File

@ -2,7 +2,7 @@ function getCover()
{
var videoUrl = document.getElementById('videoUrl').value;
var videoCover = new Image();
videoCover.onload = function()
{
document.getElementById('ytImage').innerHTML =