How to send a URL with a specific section of text highlighted? Google Chrome Extension

Do you want to share a webpage URL with a specific section of text highlighted in yellow? Check the Link to Text Fragment Chrome extension.
You might notice in the URL the characters “#:~:text” and some “%20” replacing spaces in the copy.

Continue reading “How to send a URL with a specific section of text highlighted? Google Chrome Extension”

Execute Slick code after a jQuery each loop is finished

Run a “then” function as an “each jQuery” call is completed. The worse way to do it is to have a setTimeout delay before to call the function you wish. The good way to do it is to use promise to set a callback after all asynchronous each loop are completed.

Continue reading “Execute Slick code after a jQuery each loop is finished”

Check if we have a real user click or a code trigger click – jQuery

Sometimes you want an action to happen only when the user clicks. For instance, I had a rollover effect going trigger the same action as a click on filter button. However, if the button is clicked I wanted to avoid rollover to change the selected filter to keep the selected filter active. So if the user clicks, I run the trigger, if not I don’t run it.

Continue reading “Check if we have a real user click or a code trigger click – jQuery”