Web Developer Notes - Page 8
Swipe Events on Touch Devices in JavaScript
Last updated: 21.02.2026
Views: 136
Every day sensory devices are being introduced into our lives. These devices have specific events, unlike the desktop. One of these events is the swipe. Especially often have to deal with it when developing a mobile version of the site.
Swipe events on touch devices allow developers to detect gestures like swiping left, right, up, or down, commonly used for navigation or interaction. These even...
How to Get Max Value in JavaScript Array
Last updated: 21.02.2026
Views: 158
A short note about finding the maximum value in a JavaScript array with numeric values. The Array object in JS does not have its own max method.
To find the maximum value in a JavaScript array, you can use several methods. Here are the most common and efficient approaches:
1. Using Math.max() with the spread operator
The Math.max() function returns the largest number from a set of numbers...
Drop down menu (jQuery)
Last updated: 10.10.2025
Views: 262
Drop down menu can be done without JavaScript, only with the help of CSS. With :hover. But the JavaScript menu has its advantages. The most important thing is the delay in the disappearance of the drop-down elements.
Let's consider a simple menu with one nesting level. We will write the code using jQuery. Although jQuery is not the most modern tool, this library continues to be used in many pr...
Configuring HTTPS for Nginx
Last updated: 21.02.2026
Views: 206
HTTPS stands for Hypertext Transfer Protocol Secure, and it is the secure version of HTTP, the protocol used for communication between your web browser and a website. HTTPS encrypts the data being sent and received, ensuring that the communication is secure and private.
Some time ago I used VPS for some of my projects. I needed to run PHP and NodeJS on the server and set up domains for these p...
jQuery Accordion Plugin
Last updated: 10.10.2025
Views: 151
An accordion is often used on websites. This element is popular and convenient at the same time. An accordion helps to structure content and save space. In my work, I often used jQuery (and sometimes use it now). And with the help of this library, I wrote an accordion plugin for use in different projects. The plugin is based on the slideToggle() method. Maybe this plugin will also be useful to som...