Create Thumbnail of pdf and video file with certain width and height – JavaScript Function
The following code creates a 480 X 320 px thumbnail and calls the upload function to upload...
Read Moreby Puneet Sharma | Jan 23, 2025 | Code Snippets, JavaScript | 0 |
The following code creates a 480 X 320 px thumbnail and calls the upload function to upload...
Read Moreby Puneet Sharma | Dec 19, 2024 | Code Snippets, JavaScript, jQuery | 0 |
Let’s create an HTML form with many different types of inputs with values and a hidden submit button and a reset button. Now, create a jQuery script that detects changes in input fields, unhides the submit and reset...
Read Moreby Puneet Sharma | Dec 13, 2024 | Code Snippets, JavaScript, UI Components | 0 |
Here is a code with the demo I just found on Codepen, that handles pasting OTP also. See the Pen...
Read Moreby Puneet Sharma | Aug 20, 2024 | Code Snippets, CSS Animations, JavaScript | 0 |
Here is a code with a demo for matrix raindrop-like animation from top to bottom with 0 and 1 as...
Read Moreby Puneet Sharma | Feb 28, 2024 | JavaScript | 0 |
JavaScript to equalize element heights To achieve equal heights for child elements with the class...
Read Moreby Puneet Sharma | Feb 6, 2024 | CSS Animations, JavaScript | 0 |
Here is a cool example of animating blocks with no adjacent blocks active. See the Pen Animating Blocks by Puneet Sharma (@webdevpuneet) on CodePen.
Read Moreby Puneet Sharma | Sep 22, 2023 | JavaScript, UI Components | 0 |
Javascript function to make the sidebar sticky to the bottom if the content length is more than...
Read Moreby Puneet Sharma | Jul 26, 2023 | JavaScript | 0 |
In Chart.js, if you want to format the tick labels on the axis to add ‘k’ to the numbers that are above 1000, you can achieve this using the callback function in the ticks options of the chart’s configuration....
Read Moreby Puneet Sharma | Feb 20, 2023 | JavaScript, jQuery | 0 |
To count the number of characters in an input tag, you can use JavaScript or jQuery to get the value of the input and then count the length of the value. We can use the length property to count the number of characters in the...
Read Moreby Puneet Sharma | Feb 20, 2023 | JavaScript | 0 |
var inputName =...
Read Moreby Puneet Sharma | Feb 20, 2023 | JavaScript | 0 |
JavaScript code to encapsulate {{}} with span elements Problem For examples: if a div tag has...
Read Moreby Puneet Sharma | Feb 18, 2023 | JavaScript | 0 |
This following script sets an event listener on the CKEditor instance and gets triggered on every...
Read More
You must be logged in to post a comment.