From 4743da6fae11db1ec2df0cf0b79cc6d9ab8e79f3 Mon Sep 17 00:00:00 2001 From: Alexander Popov Date: Sun, 25 Sep 2022 01:12:00 +0300 Subject: [PATCH] use EditorConfig --- .editorconfig | 24 ++++++++++++++++++++++++ docs/index.html | 2 +- docs/ytcg.js | 2 +- 3 files changed, 26 insertions(+), 2 deletions(-) create mode 100644 .editorconfig diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..49f4eea --- /dev/null +++ b/.editorconfig @@ -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 diff --git a/docs/index.html b/docs/index.html index 86a6d5a..c4aaaca 100644 --- a/docs/index.html +++ b/docs/index.html @@ -22,7 +22,7 @@
+ -->
diff --git a/docs/ytcg.js b/docs/ytcg.js index f151315..f6bcc06 100644 --- a/docs/ytcg.js +++ b/docs/ytcg.js @@ -2,7 +2,7 @@ function getCover() { var videoUrl = document.getElementById('videoUrl').value; var videoCover = new Image(); - + videoCover.onload = function() { document.getElementById('ytImage').innerHTML =