Get Website Rank using Alexa API
Alexa Internet, Inc. is an American web traffic analysis company based in San Francisco. It is a subsidiary of Amazon. collects data on Internet browsing behavior and transmits them to the Alexa website, where they are stored and analyzed. Full Source…
Minify HTML in Codeigniter using Hooks
HTML Minification is the removal of unnecessary characters and lines in HTML code. Indentation, comments, empty lines, etc. are not required while rendering in HTML. Trimming these details can save download file size not only without affecting the output…
Show toast/snackbar in a webpage using CSS and JavaScript
In this post, we will be learning to display a simple toast message or snackbar in a webpage using CSS, HTML and JavaScript. Full Source Code : <style> #snakbar{ visibility:hidden; min-width:250px; margin-left:-125px; background-color:#333;…
Moving Car Animation with Javascript and CSS
In this post, we will be going through a simple moving car animation using only Javascript and CSS. We rotate wheels with CSS and move car using JavaScript. Full Source Code : <h2>Moving Car with JavaScript and CSS</h2> <style> body{…
Animate SnowFall in your webpage with CSS and JavaScript
In this post, we are going to learn to animate a snowfall in webpage using CSS and JavaScript. The full source code for this animation is as follows : <script> var snowmax=75; var snowcolor=new Array("#4285f4","#cc181e","#008000"); var…
Get city and country and Client IP using JavaScript
In this post, we are going to learn to get city and country and client using JavaScript. Sample JavaScript to get city and country and Client IP using JavaScript <div id="IP">Loading...................</div> <div…
How to Embed Google Form in Your Website ??
In this post, we are going to learn to embed a Google Form in our website. We will embed a PHP script in our view file. The PHP script which we have embedded in our page will redirect to the Google Form link. Source Code for index.php <!DOCTYPE…
Get Geo Location Details of Client using PHP
In this post, we will be learning to get the geo location details of client using PHP. We use API from geoplugin.net to get the geo details of a location based on the IP Address which request the page. Here is the full source code : <h1…
Encrypt/Decrypt String using a Private Secret Key with PHP
In this tutorial, we are going to learn how to encrypt and decrypt a message using a private secret key with PHP. <h1 style="text-align: center;">Encrypt/Decrypt String using a Private Secret Key with PHP</h1> <?php function…
Realtime Air Quality Index (AQI) Fetch API
Full Source Code for Fetching Realtime Air Quality Index (AQI) based on location. <style> .wrapper{ display: flex; flex-wrap: wrap; } .green{ background-color: green; } .orange{ background-color: orange; } .gray{ background-color: #615f5f; }…
Complete guide to Free Daily Horoscope API using PHP
A complete guide on how to use free daily horoscope API using PHP