Skip to content

Tag: jquery

Filterable gallery using slick.js

I’m trying to create filterable gallery with differents buttons but when I click on them the filter is working but that let empty space in the gallery for the other pictures. I tried to use different script from the forum but that always let empty space. This is an exemple of the HTML : And the JavaScri…

Preventing orphaned words but exclude tag

I’m using the answer from this question to prevent orphaned words by inserting &nbsp; between the last two word within paragraphs and headings. As the author states, it doesn’t work when the last word is inside the <a> tag. So renders as Can this be fixed so that it ignores any content i…

Scroll event JQuery – Detecting bottom page

Im trying to make an infinite scroll page. The script works well on my computer (Chrome) but not on my friend’s computer (chrome too). I saw it does work when it comes to detect the bottom of the page when the content at the bottom was append via ajax. I also saw that the loading content works once i ch…

How to drag html shapes into mxgraph canvas

I want to drag and drop those 3 shapes into mxgraph canvas (which is the black area). Note: I want to fully preserve the drag element on the canvas, including shape, size, color, text, etc. I don’t know whether insertVertex does it work. Dragging the orange,red or other box in to the dark area currently…

How can I have multiple functions in onkeyup?

I am writing code to be able to search multiple fields within cards that pull customer data from endpoints. The first function that searches customerID works fine, but I would also like to be able to search the other fields. But I am having trouble getting it recognize multiple fields. How can I register mult…