March 20th, 20240750Minifying your code makes it smaller in size which increases the website’s loading speed, which increases the ranking of the website in search engine and so on. There are many tools, even online ones, which allow you to minify JavaScript. Minification itself refers to modifying the code from a human-friendly version to a version that...
March 20th, 202401429You can use the date function to generate a date string of your desired format. As a second parameter, you can add a UNIX timestamp representing the date that you wish the string to hold.
March 20th, 202425583I have found a good mobile based swipe tab here and really loved it so now I am sharing it with you. Its very simple and very useful tutorial you can use these tabs in your mobile based website or hybrid mobile apps.
DEMO
index.html file contain all the tabs scripting:
<div class="swipegory">
<nav>
...
March 20th, 202421805In PHP, there are a variety of ways in which you can sanitize the user input, depending on your needs. The htmlspecialchars function allows you to transform every special character in HTML into text so that the user cannot enter code in his input. It is good to use the function when you want to show a user input, stored or coming from...
March 20th, 202401357You can be more specific, for example, by stipulating image/png instead of the wildcard image/* which accepts all kinds of images. When you add the accept attribute and the user is shown the file dialog, he would be able to select only files from that particular type with some browser magic.
March 20th, 20240991The tel input type stands for telephone while the others should be self-evident. It is good to start using them where appropriate as there are subtle differences in the browsers when you use them. For example, on a mobile phone the tel input type might show the numbers first in the user’s browser and the date and time input types would...
March 20th, 20240725Math.random() - generates a randon number between 0 and 1. You can multiply the number to get a number in a different range.
Math.floor(numberHere) - it would trim down the decimal part of a float and the end result is always an integer
Math.ceil(numberHere) - it would give the integer to which a decimal is closest to;...
March 20th, 2024274321
Most of the developers found PHP is the right developing language which works perfectly from server-side. Using such type of scripting languages has been boomed since the interdiction of inline code in static HTML.
Currently, demand of customers has been increased. They want multifunctional websites those can easily fill up their...
March 20th, 20240838Writing tests is something I believe a large number of developers do later. It's often the case when they are learning to code, whether it's by themselves, in boot camps, or in a university setting, tests are often not thought of as.
I'm not sure Why is testing not being addressed enough? When you begin working on production projects...