Skip to content

Commit ea4b489

Browse files
authored
Merge branch 'Ali-Sdg90:main' into main
2 parents 90f8e94 + 31c2b07 commit ea4b489

11 files changed

Lines changed: 44 additions & 38 deletions

JS/convertInput.js

Lines changed: 7 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

JS/demoList.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

JS/output.js

Lines changed: 0 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Style/_base-sections.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@
44
flex-flow: row nowrap;
55
justify-content: center;
66
align-items: flex-end;
7-
height: 80px;
7+
height: 66px;
88
padding-bottom: 3px;
99
text-shadow: 2.5px 0 rgba(98, 0, 255, 0.4), -2.5px 0 rgba(255, 0, 0, 0.4);
1010
font-size: 34px;
1111
}
1212

1313
.page-main-section {
1414
width: 100%;
15-
height: 560px;
15+
height: 574px;
1616
display: flex;
1717
flex-flow: row nowrap;
1818
justify-content: center;

Style/_edit-section.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
.edit-section {
22
width: 400px;
3-
height: 490px;
3+
height: 520px;
44
border-radius: 10px;
55
overflow: hidden;
66
padding-top: 30px;

Style/_input-output-sections.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
border: 1px solid rgb(0, 0, 0);
55
border-radius: 10px;
66
overflow: hidden;
7-
height: 490px;
7+
height: 520px;
88
position: relative;
99
padding-top: 30px;
1010
box-shadow: 0 0 3px 3px rgba(0, 0, 0, 0.1);

Style/style.css

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,15 +73,15 @@ body {
7373
flex-flow: row nowrap;
7474
justify-content: center;
7575
align-items: flex-end;
76-
height: 80px;
76+
height: 66px;
7777
padding-bottom: 3px;
7878
text-shadow: 2.5px 0 rgba(98, 0, 255, 0.4), -2.5px 0 rgba(255, 0, 0, 0.4);
7979
font-size: 34px;
8080
}
8181

8282
.page-main-section {
8383
width: 100%;
84-
height: 560px;
84+
height: 574px;
8585
display: flex;
8686
flex-flow: row nowrap;
8787
justify-content: center;
@@ -134,7 +134,7 @@ body {
134134
border: 1px solid rgb(0, 0, 0);
135135
border-radius: 10px;
136136
overflow: hidden;
137-
height: 490px;
137+
height: 520px;
138138
position: relative;
139139
padding-top: 30px;
140140
box-shadow: 0 0 3px 3px rgba(0, 0, 0, 0.1);
@@ -221,7 +221,7 @@ body {
221221

222222
.edit-section {
223223
width: 400px;
224-
height: 490px;
224+
height: 520px;
225225
border-radius: 10px;
226226
overflow: hidden;
227227
padding-top: 30px;

TS/convertInput.ts

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,14 @@
11
const convertInputToEditableList = () => {
22
inputArray = input.value.split("\n");
33

4-
course = inputArray[0].split(" ")[2];
4+
if (
5+
inputArray[0].split(" ").filter((word) => word.startsWith("#")).length >
6+
1
7+
) {
8+
course = inputArray[0].split(" ")[3];
9+
} else {
10+
course = inputArray[0].split(" ")[2];
11+
}
512

613
membersArray = [];
714

@@ -15,7 +22,7 @@ const convertInputToEditableList = () => {
1522
return memberArray.split(" ");
1623
});
1724

18-
console.log(JSON.stringify(memberBits, null, 2));
25+
// console.log(JSON.stringify(memberBits, null, 2));
1926

2027
// Clear How-to or old queue-list
2128
editList.innerHTML = "";

TS/demoList.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
const addDemoList = () => {
2-
input.value = `آپدیت صف #دمو 👇🏻
2+
input.value = `#آپدیت_صف مصاحبه دوره #دمو 👇🏻
33
44
1- علی صادقی @Ali_Sdg90
55
2- حسام حسنی @HessamHasaniWP

TS/output.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ const updateOutput = () => {
2626

2727
// console.log(addMembers, addMembers.length);
2828
if (addMembers.length > 2) {
29-
console.log("REMOVE");
29+
// console.log("REMOVE");
3030

3131
addMembers[addMembers.length - 2].remove();
3232
}
@@ -38,7 +38,7 @@ copyBtn.addEventListener("click", () => {
3838
if (output.textContent) {
3939
// Copy function
4040
navigator.clipboard.writeText(output.textContent).then(() => {
41-
console.log(`Copied to clipboard`);
41+
// console.log(`Copied to clipboard`);
4242
copyBtn.textContent = "Copied";
4343
setTimeout(() => {
4444
copyBtn.textContent = "Copy";

0 commit comments

Comments
 (0)