fixed #11;
This commit is contained in:
@@ -7,14 +7,17 @@ a {
|
|||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ncdownloader-form-wrapper .form-input-wrapper {
|
#ncdownloader-form-wrapper {
|
||||||
|
margin-left: 2px;
|
||||||
|
|
||||||
|
.form-input-wrapper {
|
||||||
display : flex;
|
display : flex;
|
||||||
flex-flow: row nowrap;
|
flex-flow: row nowrap;
|
||||||
}
|
|
||||||
|
|
||||||
#ncdownloader-form-wrapper .form-input-wrapper select,
|
select input {
|
||||||
#ncdownloader-form-wrapper .form-input-wrapper input {
|
|
||||||
justify-content: left;
|
justify-content: left;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
a:hover,
|
a:hover,
|
||||||
@@ -118,12 +121,17 @@ div .number {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.app-ncdownloader,
|
.app-ncdownloader,
|
||||||
#ncdownloader-content,.ncdownloader-content-wrapper,#ncdownloader-form-wrapper, #ncdownloader-table-content{
|
#ncdownloader-content,
|
||||||
|
.ncdownloader-content-wrapper,
|
||||||
|
#ncdownloader-form-wrapper,
|
||||||
|
#ncdownloader-table-content {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.ncdownloader-content-wrapper {
|
.ncdownloader-content-wrapper {
|
||||||
padding-top: 0.3em;
|
padding-top: 0.3em;
|
||||||
}
|
}
|
||||||
|
|
||||||
.app-ncdownloader #app-content #app-content-wrapper {
|
.app-ncdownloader #app-content #app-content-wrapper {
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -19,10 +19,9 @@ const createInputBox = (event, type) => {
|
|||||||
let height = $(window).scrollTop();
|
let height = $(window).scrollTop();
|
||||||
if (height > 50)
|
if (height > 50)
|
||||||
$("html, body").animate({ scrollTop: 0 }, "fast");
|
$("html, body").animate({ scrollTop: 0 }, "fast");
|
||||||
let name, path;
|
let name = t("ncdownloader", 'Download'), path;
|
||||||
switch (type) {
|
switch (type) {
|
||||||
case "ytdl":
|
case "ytdl":
|
||||||
name = t("ncdownloader", 'YTDL Download');
|
|
||||||
path = basePath + "/youtube/new";
|
path = basePath + "/youtube/new";
|
||||||
break;
|
break;
|
||||||
case "search":
|
case "search":
|
||||||
@@ -30,7 +29,6 @@ const createInputBox = (event, type) => {
|
|||||||
path = basePath + "/search";
|
path = basePath + "/search";
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
name = t("ncdownloader", 'New Download');
|
|
||||||
path = basePath + "/new";
|
path = basePath + "/new";
|
||||||
}
|
}
|
||||||
let container;
|
let container;
|
||||||
|
|||||||
@@ -90,7 +90,7 @@ class inputBox {
|
|||||||
input.setAttribute('value', 'off');
|
input.setAttribute('value', 'off');
|
||||||
input.setAttribute('name', element.name || element.id);
|
input.setAttribute('name', element.name || element.id);
|
||||||
|
|
||||||
label.setAttribute('for',element.id);
|
label.setAttribute('for', element.id);
|
||||||
label.classList.add("checkbox-label");
|
label.classList.add("checkbox-label");
|
||||||
label.appendChild(input);
|
label.appendChild(input);
|
||||||
label.appendChild(span);
|
label.appendChild(span);
|
||||||
@@ -124,6 +124,17 @@ class inputBox {
|
|||||||
textInput.setAttribute('data-type', id);
|
textInput.setAttribute('data-type', id);
|
||||||
textInput.setAttribute('value', '');
|
textInput.setAttribute('value', '');
|
||||||
textInput.classList.add('form-input-text');
|
textInput.classList.add('form-input-text');
|
||||||
|
switch (id) {
|
||||||
|
case 'general':
|
||||||
|
textInput.setAttribute('placeholder', t("ncdownloader",'Paste your magnet/http link here'));
|
||||||
|
break;
|
||||||
|
case 'ytdl':
|
||||||
|
textInput.setAttribute('placeholder', t("ncdownloader",'Paste your video link here'));
|
||||||
|
break;
|
||||||
|
case 'search':
|
||||||
|
textInput.setAttribute('placeholder', t("ncdownloader",'Enter your keyword to search'));
|
||||||
|
break;
|
||||||
|
}
|
||||||
return textInput;
|
return textInput;
|
||||||
}
|
}
|
||||||
_createButton() {
|
_createButton() {
|
||||||
|
|||||||
Reference in New Issue
Block a user