Skip to content

Tag: jquery

Send website visitor IP when accessing website

I am working on a personal project and I was wondering why not use a kind of ip logger that logs the ip of a visitor and sends it to a Discord webhook. The code works, but only locally. I tried hosting the code on Glitch but i was getting this error in the console: grab.js: index.html: Answer This answer

Hiding div/popup on page load until button click

I have a working modal in Vue, however, the modal loads empty for a split second on page load and I want it to remain completely hidden (even on page load) until the button is clicked. I tested with display:none in the CSS which works to hide it on page load, but it remains completely hidden when pushing the …

I want to create a html table layout in jQuery

I am trying to create an Html table layout using jQuery but I don’t know where I am doing mistakes. When I try to run this and check the console tab the error comes with undefined( i and table2) I just want to show the table on the chrome page means I want the output. Answer Simpling adding console.log …

How to add a decimal to jQuery animated counter?

I have an animated jquery counter that’s working fine, but I want to change the end number to a decimal number. So at the moment it’s counting up to 54000, but I want it to give me 54,000. How do I do this? jsfiddle is here Answer Try to use Number.prototype.toLocaleString(). Replace $this.text(th…