See my last function plz how can I make it true? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

See my last function plz how can I make it true?

https://code.sololearn.com/Wg6U037TtSlJ/?ref=app

17th Mar 2018, 2:26 PM
Sina
Sina - avatar
21 Answers
+ 5
Here you go added checked in HTML big icon checkbox. Called select with boolean when icon changes. Updated select to work. https://code.sololearn.com/WnnSfPvN8tF4
17th Mar 2018, 4:40 PM
John Wells
John Wells - avatar
+ 4
You are modifying your x and y. Use == not =. y != select isn't valid nor assigning select. What are you trying to do with this? if(x = select){ y != select } else if(y=select){ x != select }
17th Mar 2018, 2:53 PM
John Wells
John Wells - avatar
+ 4
You should also default the checkbox to match the size it starts with.
17th Mar 2018, 3:32 PM
John Wells
John Wells - avatar
+ 4
At end of littleicons and bigicons.
18th Mar 2018, 7:34 PM
John Wells
John Wells - avatar
+ 4
Note that your default background color that you starting with doesn't match your black color that is selected when you first enter settings. You should fix that also.
19th Mar 2018, 10:42 PM
John Wells
John Wells - avatar
+ 3
I have to do something here for a bit. I'll get back to it asap.
17th Mar 2018, 3:34 PM
John Wells
John Wells - avatar
+ 3
the boolean true or false passed in. True from bigicons
19th Mar 2018, 6:25 PM
John Wells
John Wells - avatar
+ 3
You forgot the initial checked in HTML, but otherwise is fine.
19th Mar 2018, 7:01 PM
John Wells
John Wells - avatar
+ 3
My code line 77 of HTML I put checked into checkbox tag to force big icons to be checked on startup. You should do the same as you start with them displayed so box should reflect that.
19th Mar 2018, 8:48 PM
John Wells
John Wells - avatar
+ 3
HTML line 69 add value="#add8e6" to your input color tag to set the default to your lightblue.
19th Mar 2018, 11:04 PM
John Wells
John Wells - avatar
+ 1
See the output you will see two checkbox I want when a person selected a checkbox the other check box be unselected
17th Mar 2018, 3:17 PM
Sina
Sina - avatar
+ 1
How?
17th Mar 2018, 3:33 PM
Sina
Sina - avatar
+ 1
Oka
17th Mar 2018, 3:35 PM
Sina
Sina - avatar
+ 1
Oh thanks
18th Mar 2018, 5:35 PM
Sina
Sina - avatar
+ 1
Where did you call the function ??
18th Mar 2018, 7:29 PM
Sina
Sina - avatar
+ 1
I didn't know we can write "true" and "false" insted of big
19th Mar 2018, 6:24 PM
Sina
Sina - avatar
+ 1
What is "if(big)"??
19th Mar 2018, 6:25 PM
Sina
Sina - avatar
+ 1
See my code plz I made it another way
19th Mar 2018, 6:55 PM
Sina
Sina - avatar
+ 1
I don't underestand what you say
19th Mar 2018, 8:28 PM
Sina
Sina - avatar
+ 1
I corrected it. thank you
19th Mar 2018, 9:17 PM
Sina
Sina - avatar