Skip to content
This repository was archived by the owner on Jan 3, 2023. It is now read-only.

scotland_class5-abdulrahman salman- JavaScript-Core-2-Coursework-Week_3#95

Open
Abadi11 wants to merge 16 commits into
CodeYourFuture:mainfrom
Abadi11:scotland-class5-Abadi11
Open

scotland_class5-abdulrahman salman- JavaScript-Core-2-Coursework-Week_3#95
Abadi11 wants to merge 16 commits into
CodeYourFuture:mainfrom
Abadi11:scotland-class5-Abadi11

Conversation

@Abadi11

@Abadi11 Abadi11 commented Sep 3, 2021

Copy link
Copy Markdown

Your Details

  • Your Name:
  • Your City:
  • Your Slack Name:

Homework Details

  • Module:
  • Week:


input:checked + .slider::before{
transform: translateX(40px);
}

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like how you styled the checkbox, really neat idea to make it a slider.

Comment thread mandatory/2-quotegenerator/quotes.js Outdated

let intervalId;
inputEl.addEventListener("click", function(){
if (inputEl.checked == true){

@Andy-Robertson Andy-Robertson Sep 3, 2021

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In this situation you can write this conditional as if (inputEl.checked) and drop the right side "== true" making it a bit more concise.

if you ever need to check for a false, you can do the same thing but add a ! at the beginning, if (!inputEl.checked)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants