Skip to content

Commit

Permalink
Fix ICARUS href address /
Browse files Browse the repository at this point in the history
Tidy Up Project
  • Loading branch information
Ali-Sdg90 committed Jan 12, 2024
1 parent 3503577 commit 3af0482
Show file tree
Hide file tree
Showing 11 changed files with 55 additions and 63 deletions.
2 changes: 1 addition & 1 deletion JS/addNewMember.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion JS/customScaleCalc.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion JS/customScaleCalc.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion JS/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion JS/index.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion JS/memberActionBtns.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions TS/addNewMember.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,6 @@ const addNewMemberForm = () => {

rerenderAddMember();
updateIndexes();

// console.log(JSON.stringify(memberBits, null, 2));
}
}
);
Expand Down
5 changes: 2 additions & 3 deletions TS/customScaleCalc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,12 @@ const pageHeight = customScaleDiv.scrollHeight;

if (pageHeight > pageWidth) {
console.log(">>", pageHeight);
console.log("Mobile View");

customScaleDiv.classList.add("custom-scale-calc");

let scale = 0;
scale = 1 - ((pageHeight / pageWidth) * 0.5) / (900 / 477);
// console.log(scale);

console.log("Mobile View");

customScaleDiv.style.transform = `scale(${scale}) rotate(90deg)`;
}
2 changes: 1 addition & 1 deletion TS/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ ICARUSs.forEach((ICARUS) => {
if (ICARUS.classList.contains("ICARUS")) {
console.log("Aloha!");

ICARUS.setAttribute("href", "../Assets/ICARUS.mp3");
ICARUS.setAttribute("href", "./Assets/ICARUS.mp3");
ICARUS.classList.remove("ICARUS");

setTimeout(() => {
Expand Down
6 changes: 0 additions & 6 deletions TS/memberActionBtns.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,21 +7,15 @@ const addMemberToEnd = (memberIndex: number): void => {
}

if (selectedMemberIndex + 1 != memberBits.length) {

editList.appendChild(
document.querySelector(`.member-row-${memberIndex}`) as HTMLElement
);

// console.log("1.", JSON.stringify(memberBits, null, 2));

const selectedMember = memberBits[selectedMemberIndex];
// console.log("=>", JSON.stringify(selectedMember, null, 2));

memberBits.splice(selectedMemberIndex, 1);
memberBits.push(selectedMember);

// console.log("2.", JSON.stringify(memberBits, null, 2));

setTimeout(() => {
updateIndexes();
}, 100);
Expand Down
Loading

0 comments on commit 3af0482

Please sign in to comment.