use EditorConfig
This commit is contained in:
parent
36f0ffb03d
commit
4743da6fae
24
.editorconfig
Normal file
24
.editorconfig
Normal 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
|
@ -22,7 +22,7 @@
|
|||||||
<div class="wrap">
|
<div class="wrap">
|
||||||
<form action="JavaScript:getCover()">
|
<form action="JavaScript:getCover()">
|
||||||
<input type="text" id="videoUrl" placeholder="YouTube video url" onchange="getCover()"><!--
|
<input type="text" id="videoUrl" placeholder="YouTube video url" onchange="getCover()"><!--
|
||||||
--><button type="submit">Search</button>
|
--><button type="submit">Search</button>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -2,7 +2,7 @@ function getCover()
|
|||||||
{
|
{
|
||||||
var videoUrl = document.getElementById('videoUrl').value;
|
var videoUrl = document.getElementById('videoUrl').value;
|
||||||
var videoCover = new Image();
|
var videoCover = new Image();
|
||||||
|
|
||||||
videoCover.onload = function()
|
videoCover.onload = function()
|
||||||
{
|
{
|
||||||
document.getElementById('ytImage').innerHTML =
|
document.getElementById('ytImage').innerHTML =
|
||||||
|
Loading…
Reference in New Issue
Block a user