Blackwolf
KPCKevin Powell - Community
•Created by Blackwolf on 8/18/2024 in #back-end
How do I make an array from specific keys in another array?
OK, I'm exhausted after spending 10 hours researching and testing, but to no avail.
I have an array, which is along the lines of ...
How do I create a new array to contain only firstnames and lastnames please?
29 replies
KPCKevin Powell - Community
•Created by Blackwolf on 8/11/2024 in #front-end
How to fetch data from a function?
This works, but I need to elaborate on it ...
I am sending a list of names to a function that sorts them in various ways and retrieving the name at the top of the list. The function has
I am stuck on the syntax for retrieving 3 names ... name1, name2 and name3
33 replies
KPCKevin Powell - Community
•Created by Blackwolf on 4/11/2024 in #front-end
How do I get HTML Color Picker to return RGB values
I am more than capable of converting the Hex values to RGB, but just wondering if there was a setting on the Color Input to automatically return RGB or RGBA values instead of the Hex ones
25 replies
KPCKevin Powell - Community
•Created by Blackwolf on 4/1/2024 in #front-end
Why is my variable not Global ?
I have successfully fetched data from an API, and can console.log it in one function but not another. How do I make it globally accessible please?
17 replies
KPCKevin Powell - Community
•Created by Blackwolf on 3/11/2024 in #front-end
CSS Z-index changing unexpectedly
I have simplified this just to show what is going on. I have a box (originally a button), with a 3D effect. When it is hovered over, the box rises by 2 pixels and the 3D effect drops by 3 pixels (hiding it). However, for some reason the 3D effect behind the box moves in front. Can anyone explain why this is please? https://codepen.io/iBlackwolf/pen/ZEZWdQx
25 replies
KPCKevin Powell - Community
•Created by Blackwolf on 12/5/2023 in #front-end
My CSS "absolute, left 10px" moves when animated
Here is my Codepen project https://codepen.io/iBlackwolf/pen/RwvEKOZ
I am trying to make my menu shrink in size when closed, but remain 10px from the left of the div. I have no idea why is moves to the right.
The actual animation is supposed to take 1 second, but I have slowed it down so you can see the effect better
11 replies
KPCKevin Powell - Community
•Created by Blackwolf on 10/2/2023 in #front-end
Why is my TRY ... CATCH not working?
My CATCH is not catching the error, what am I doing wrong please?
HTML
JAVASCRIPT
16 replies
KPCKevin Powell - Community
•Created by Blackwolf on 9/22/2023 in #front-end
How do I get HEIGHT or MAX-HEIGHT to work dynamically with TRANSITION in CSS?
I have an accordion menu, which I would like to open and close smoothly
Although this appears fairly smooth, what in fact is happening is the transition is working over the full 1000px of the max-height and not the actual height.
If you open all the sub-menus of section 5 and then open and close the main section, and then compare that to opening and closing section 1, you will see the apparent latency as you catch the tail-end of the transitions.
Adding "height: auto", or "height: 100%" changes the whole thing to just snap open and closed
Does anyone have any clues please?
Link to my CodePen project: https://codepen.io/iBlackwolf/pen/bGOazwx
Feel free to critique any of my code
7 replies
KPCKevin Powell - Community
•Created by Blackwolf on 5/21/2023 in #front-end
Which is the best way to present CSS?
Both of the following divs are identical, but I have seen both methods of applying CSS. Most people seem to teach the former, but the likes of Amazon and Facebook use the latter. Just wondering if there are any advantages to either. Maybe admin could create a poll to see which is most popular 😄
12 replies
KPCKevin Powell - Community
•Created by Blackwolf on 5/16/2023 in #back-end
Why is the zero-indexed item in my $array not recognised?
results:
$array does not contain 0
$array does not contain 1
$array does not contain 2
$array does contain 3
$array does not contain 4
$array does contain 5
$array does not contain 6
$array does contain 7
$array does not contain 8
$array does contain 9
43 replies
KPCKevin Powell - Community
•Created by Blackwolf on 12/8/2022 in #back-end
How do I display a single entry from an array from MYSQL
This works ...
How do I display just the entry with PID value of "5" from the array?
35 replies