Onebite.dev

Developer tips & trick, one bite at a time

Developer tips & trick around javascript


Import function from another file in NodeJS without module If you need to add an external function from other file into a nodejs file without changing the type into module type you can use this commonJS method
Dragging item on mobile also scrolling the parent When working with dragging library like interactjs, I got a problem with mobile devices. Where scrolling get buggy and moving the parent as well
Async await function not working in forEach loop Javascript This is a quick solve on how to handle async await function not working in forEach loop Javascript
How to make zoom effect in HTML with CSS Learn how to make zoom effect in HTML with CSS. We will play with scale transformation on CSS to make the element chosen bigger/smaller
How to get x and y coordinate position when clicking on javascript Learn How to get x and y coordinate position when firing on click event at javascript
How to use Toast UI Editor in Browser (without NPM) Are you looking for great markdown WYSIWYG text editor? Try toast UI Editor, lets see how to use it directly in browser
Super simple Zoom image vanilla javascript medium like I need an ability to zoom images on my site. Luckily I found this javascript plugin by Tholman that very easy to use.
Sort Javascript Object Value by the number or date Do you need to sort your object by one of the key value by the number? start from highest or lowest number? We can use javascript sort function fort that. Here is how
Sort javascript Object value alphabetically Do you need to sort your object by one of the key value alphabetically? We can use javascript sort function fort that. Here is how
Auto Scroll page in Javascript Do you have a really long page that you wish will scroll down automatically using javascript? or do you want to make this as feature for your website visitor?
Convert string to UUID format in Javascript This is how to convert a 32 characters string into UUID format with - dash as separator on each 8 - 4 - 4 - 4 - 12 characters.
Hover effect on 5 star rating systems This is my solution on how to make a Hover effect on 5 star rating systems
Simple jquery like selector for vanilla javascript jQuery make us love javascript. One of the simplest but most useful feature for me is the selector in jquery, just use $ dollar sign and target the element. Let's make it happen in our vanilla javascript
Working with object in localstorage We all love localstorage, no database needed to store simple things for our user. But what if the data is more than a string or number? How to store and read object in localstorage?
How to add _blank or open new tab for link in markdown Can we add _blank property or open new tab for our links in markdown? is there any way around it
Next Page 👉


Colleciton of bitesize articles for developer around javascript