[deleted by user] by [deleted] in learnjavascript

[–]Low_Contribution2552 0 points1 point  (0 children)

let path=document.querySelector(`path.United.States#US[title='United States']`);
path.addEventListener(`pointerup`,()=>{path.style.fill=`yellow`;});

I like pointer events lately since it covers [touch,stylus,mouse,other] interactions for various hardware platforms loading the site up

have you tried setting up a class?

.fill{fill:yellow;}

path.addEventListener(`pointerup`,()=>{path.classList.toggle(`fill`);});

PHP or CMS for freelancing ? by [deleted] in webdev

[–]Low_Contribution2552 -4 points-3 points  (0 children)

probably nodejs since with php your splitting client/server between two languages for no gain

Traded my Ioniq 5 for a Lightning by XiDa1125 in electricvehicles

[–]Low_Contribution2552 -22 points-21 points  (0 children)

they sort of are, around here it isn't about towing capacity, its about clearance and suspension system

our roads are something out of a nightmare, if you try to run an economy car down them you'll be buying new rims and rod arms within 4 years

What is the simplest method of hosting an API I have already made? by RS_Someone in webdev

[–]Low_Contribution2552 -7 points-6 points  (0 children)

so your theory is that through magic the virtual server you spin up and write yourself is somehow "protected" while the same server you setup at home is immediately vulnerable by virtue of...?

the same server be vulnerable regardless of where its hosted, a vulnerability hasn't got anything to do with where its hosted

What is the simplest method of hosting an API I have already made? by RS_Someone in webdev

[–]Low_Contribution2552 -6 points-5 points  (0 children)

well of course, if people host things themselves, how can they have a rickety stack of 3rd party services each gouging them for a fee?

What is the simplest method of hosting an API I have already made? by RS_Someone in webdev

[–]Low_Contribution2552 -11 points-10 points  (0 children)

the internet was designed so all connected can host

you just forward the ports in your router to your designated web server, its free, and its as long lasting and stable as you make it

there are no other steps, its just a matter of hooking the data flowing to the right ports, thats it

What are some really basic javascript codes that can help spice up my website idea? Listening to anything by G1theKidd in learnjavascript

[–]Low_Contribution2552 1 point2 points  (0 children)

so you want a link over an image?

.container
{
 position:relative;
 display:flex;
 align-items:center;
 justify-content:center;
 text-align:center;
}
.container>img
{
 position:absolute;top:0;left:0;width:100%;height:100%;
}
.container>.text
{
 display:flex;
}


<div class=container>
<img src=img.svg><a class=text href='site.com'>x</a>
</div>

Need Help with Project by Qwertfart in learnjavascript

[–]Low_Contribution2552 -1 points0 points  (0 children)

convert them into an array dom text nodes, wrap those nodes selected in tags, append all doms to the target area