Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix lint errors #19

Merged
merged 1 commit into from
May 31, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"prettier": "^2.8.8"
},
"scripts": {
"format": "prettier --no-config -w .",
"lint": "eslint . --ext .js,.jsx,.ts,.tsx"
}
}
14 changes: 7 additions & 7 deletions source/FortuneCookie/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ function speakFortune(fortune) {
window.speechSynthesis.speak(speech);

// Turn button back on when fortune is done being read
speech.addEventListener("end", (event) => {
speech.addEventListener("end", () => {
fortuneButton.disabled = false;
fortuneButton.style.opacity = "1";
});
Expand All @@ -79,13 +79,13 @@ fortuneButton.addEventListener("click", function () {
// Added options for different voices
const synth = window.speechSynthesis;

const inputForm = document.querySelector("form");
const inputTxt = document.querySelector(".txt");
// const inputForm = document.querySelector("form");
// const inputTxt = document.querySelector(".txt");
const voiceSelect = document.querySelector("select");
const pitch = document.querySelector("#pitch");
const pitchValue = document.querySelector(".pitch-value");
const rate = document.querySelector("#rate");
const rateValue = document.querySelector(".rate-value");
// const pitch = document.querySelector("#pitch");
// const pitchValue = document.querySelector(".pitch-value");
// const rate = document.querySelector("#rate");
// const rateValue = document.querySelector(".rate-value");

let voices = [];

Expand Down
2 changes: 1 addition & 1 deletion source/Zodiac_compatibility/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ function roundAngle(angle) {
}

// Function to handle the mouseout event
function stopRotation(event) {
function stopRotation() {
// Round the current angle of the wheels to the nearest multiple of 30
const target1 = roundAngle(w1anglereal);
const target2 = roundAngle(w2anglereal);
Expand Down
6 changes: 3 additions & 3 deletions source/home-page/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,17 @@ cardContainers.forEach((cardContainer, index) => {
let subpageURL;
switch (index) {
case 0:
subpageURL = "love-compatibility.html";
subpageURL = "../Zodiac_compatibility/";
break;
case 1:
subpageURL = "../FortuneCookie/";
break;
case 2:
subpageURL = "palm-reading.html";
subpageURL = "../PalmReading/";
break;
// Add more cases for additional card containers if needed
default:
subpageURL = "default.html";
subpageURL = "";
break;
}
// Navigate to the subpage
Expand Down