Skip to content

Commit

Permalink
Rename and modification date
Browse files Browse the repository at this point in the history
  • Loading branch information
aandrew-me committed Apr 8, 2023
1 parent 238ceba commit 8cc560e
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 23 deletions.
57 changes: 35 additions & 22 deletions assets/css/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -126,13 +126,8 @@ body {
margin: 10px auto;
}

@media screen and (max-width: 650px) {
.item {
width: 90%;
}
}
.itemIconBox{
display:flex;
.itemIconBox {
display: flex;
flex-direction: column;
}
.itemIcon {
Expand All @@ -142,9 +137,18 @@ body {
margin: 0 10px 0 0;
}

.title {
padding: 10px;
border-radius: 8px;
border: none;
outline: none;
width: 45%;
text-align: center;
}

.itemTitle {
font-family: sans-serif;
padding:5px;
padding: 5px;
}
.itemBody {
height: 90%;
Expand All @@ -159,11 +163,11 @@ body {
margin-top: 10px;
font-family: sans-serif;
}
.progressBar{
width:90%;
.progressBar {
width: 90%;
}
.itemSpeed{
padding:10px 5px 5px 5px;
.itemSpeed {
padding: 10px 5px 5px 5px;
}
.itemClose {
position: absolute;
Expand Down Expand Up @@ -239,7 +243,7 @@ body {
padding: 8px;
color: var(--text);
}
#videoToggle{
#videoToggle {
background-color: var(--box-toggleOn);
}

Expand Down Expand Up @@ -334,12 +338,12 @@ input[type="number"]::-webkit-outer-spin-button {
#errorDetails {
cursor: pointer;
font-family: monospace;
padding:15px;
padding: 15px;
margin: 10px 0;
border: 2px solid rgb(189, 0, 0);
border-radius: 8px;
display: none;
transition: .5s all;
transition: 0.5s all;
}
#loadingWrapper {
/* Default is flex */
Expand Down Expand Up @@ -471,16 +475,25 @@ body::-webkit-scrollbar-thumb {
cursor: pointer;
}

#popupText{
#popupText {
display: none;
position:fixed;
left:25px;
position: fixed;
left: 25px;
bottom: 20px;
padding:10px;
padding: 10px;
border-radius: 2px;
color:white;
color: white;
background-color: rgb(80, 80, 224);
cursor: pointer;
transition: .5s all;
transition: 0.5s all;
z-index: 2;
}
}

@media screen and (max-width: 650px) {
.item {
width: 90%;
}
.title {
width: 80%;
}
}
12 changes: 11 additions & 1 deletion src/renderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ async function getInfo(url) {

getId("loadingWrapper").style.display = "none";
getId("hidden").style.display = "inline-block";
getId("title").innerHTML = `<b>${i18n.__("Title ")}</b>: ` + title;
getId("title").innerHTML = `<b>${i18n.__("Title ")}</b>: ` + `<input class="title" id="titleName" type="text" value="${title}" onchange="renameTitle()">`;

let audioSize = 0;
let defaultVideoFormat = 0;
Expand Down Expand Up @@ -932,6 +932,7 @@ function download(
configTxt,
cookieArg,
browser,
"--no-mtime",
`"${url}"`,
],
{ shell: true, detached: false },
Expand Down Expand Up @@ -961,6 +962,7 @@ function download(
browser,
configArg,
configTxt,
"--no-mtime",
`"${url}"`,
],
{ shell: true, detached: false },
Expand Down Expand Up @@ -990,6 +992,7 @@ function download(
browser,
configArg,
configTxt,
"--no-mtime",
`"${url}"`,
],
{ shell: true, detached: false },
Expand Down Expand Up @@ -1127,6 +1130,13 @@ function showItem(location, filename) {
shell.showItemInFolder(`${path.join(location, filename)}`);
}

// Rename title

function renameTitle(){
title = getId("titleName").value
console.log(title)
}

// Opening windows
function closeMenu() {
getId("menuIcon").style.transform = "rotate(0deg)";
Expand Down

0 comments on commit 8cc560e

Please sign in to comment.