You Are Viewing Posts Under Category: JavaScript Codes

Simple And Clean Fixed Right Side Sliding Panel Using Pure JS and CSS3
March 14th, 2022 | 0 Comments | HTML-CSS-PHP-JavaScript / JavaScript Codes | Do you want a clean, responsive and simple sliding widget that will slide from the right side of the screen with fixed position event whole screen is able to scroll behind it in a simple way then here is the minified code with basic syntax to achieve your target in a simple and nice way? […]...
How To Set Value Of Input type=”datetime-local” Via Pure JavaScript?
March 13th, 2022 | 0 Comments | HTML-CSS-PHP-JavaScript / JavaScript Codes | The <input> tag with a type="datetime-local" attribute creates an input field that accepts a date and time value which does not include the timezone (hence ‘local‘). The input element with a type attribute whose value is “datetime-local” represents a control for setting the...
How To Capitalize Every Starting Letter Of A Word In A String JavaScript?
January 22nd, 2022 | 0 Comments | HTML-CSS-PHP-JavaScript / JavaScript Codes | Do you want to capitalize each first letter of the word in a string using Vanilla JavaScript? Here is the little one-line function to make any string capitalised in one process. There are many code snippets available online or on many other blogs and websites but everyone is not able to optimize you...
Sort An Array With Respect To Multiple Column In ASC/DESC Order Using JavaScript
January 20th, 2022 | 0 Comments | HTML-CSS-PHP-JavaScript / JavaScript Codes | The following function will allow you to sort an array of objects on one or multiple properties, either ascending (default) or descending on each property and allow you to choose whether or not to perform case sensitive comparisons. By default, this function performs case insensitive sorts. There ar...
Pure JavaScript Formula To Calculate And Show Islamic Hijri Dates
January 14th, 2022 | 0 Comments | HTML-CSS-PHP-JavaScript / JavaScript Codes | If you do not need fancy looking Hijri calendar widget, or you want to style the calendar text by yourself, or you are a webmaster or a web developer that want to build your own Hijri calendar web applications, then the following code may be of use. The script (modified from Robert van Gent’s ...
How To Get User Location (Lat/Long) Using Pure JavaScript?
January 9th, 2022 | 0 Comments | HTML-CSS-PHP-JavaScript / JavaScript Codes | Detecting the location of your users can be really useful if you want to personalize your user’s experience when they browse through your website. Want to show a uniquely tailored promotion? Want to change the language of your site or design based on where your users are coming from? Lots of websi...