JavaScript

Recognizes Container Elements


Recognizes Container Elements (Such As <Div> With A Specific Class Or ID) On Your Website And Sorts Them In Alphabetical Order Based On Their Text Content

+

JavaScript

Author: 1osd3v1l

Lights Up An Element In A Navigation Bar


Lights Up An Element In A Navigation Bar When The Mouse Hovers Over It. This Can Be Achieved With CSS And JavaScript.

+

JavaScript

Author: 1osd3v1l

Displayed only the Main URL


ensures that only the main URL is displayed in the address bar, regardless of which subpage is accessed.

+

JavaScript

Author: 1osd3v1l

Hides A Navigation Bar When Scrolling


Here is a JavaScript code example that hides a navigation bar when scrolling and displays it again when the user stops scrolling. This functionality is achieved by comparing the current and previous scroll position and showing and hiding the navigation bar accordingly.

+

JavaScript

Author: 1osd3v1l

Initially Hides Multiple Elements With The Same Class


Here is the code that initially hides multiple elements with the same class (.content) and adds a separate button to each element that displays and hides that specific element.

+

JavaScript

Author: 1osd3v1l

View A User's IP Address And Country


To view a user's IP address and country of origin, you can use an API that provides this information, such as the free ipinfo.io API. This API returns JSON data that contains IP address, country, and other information about the user.

+

JavaScript

Author: 1osd3v1l

Show Modal On Scroll


Here Is An Example That Shows How To Display A Modal Window (Popup) In JavaScript And CSS When The User Reaches A Specific Scroll Position On A Page.

+

JavaScript

Author: 1osd3v1l

Automatic Linking Of Keywords To Wikipedia


Here is a JavaScript script that recognizes keywords on your HTML pages and automatically links to the corresponding Wikipedia articles. This example uses a list of keywords and links them to Wikipedia if they appear on the page

+

JavaScript

Author: 1osd3v1l