A responsive and excellence HTML5 website with slide-able style menu and sub menu feature for both mobile and desktop version. Below image is the desktop version of this website template: You can view it in action in this video: Get this template from this link: https://creativeshop.ciihuy.com/product/healthcon-responsive-html5-website-template/
Category: HTML5, CSS & JavaScript
How to make and generateQR Code with JavaScript – Center Align the QR Code
This tutorial is answering a question about how to center align the qr code image generated by qrcode.js library on my previous video: https://www.youtube.com/watch?v=gLLd9YJOJgM&lc And the answer is relatively easy, we can adjust the styling of the div containing qr code image to make it center aligned. You can download the library from here: https://davidshimjs.github.io/qrcodejs/…
How to make an HTML5 Note Taking Program
HTML5 is amazing to me it and I have fun to do coding with JavaScript because it runs on web browser just like that, so we don’t have to install anything, its just running on web browser. In this tutorial I will share with you how to create a web program, this time, a note…
Call JavaScript function from Unity and vice versa – Unity JavaScript Bridge
When building a Unity program for web (WebGL), mostly we need to access methods/functions inside Unity from JavaScript (browser scripting). This example is showing how it can be done. In this example I’m showing how to call JavaScript alert from Unity and then send back some string text to Unity Scene from web browser.
How to use PDFJS to open pdf file in full screen and embedded in Iframe
In this video I demonstrate how to use PDFJS to open a full screen pdf file in a web browser and also how to embed a pdf file in an Iframe. By default PDFJS opens the pdf file from any url you specified in full screen. But we can use Iframe to open pdf file…
How to use Facebook Comments plugin dynamically in your PHP websites
This tutorial in this video showing you how to use Facebook Comments Plugin dynamically on each page of your website without adjusting it one by one on each page with the help of PHP.
Showing Previous and Next Tab Divs with JavaScript and jQuery
Here is another example and tutorial how we can do a show and hide previous and next HTML5 divs/tabs based on it’s id’s and classes… The idea is simple, we must store a value of a number of current tab that we are seeing right now in a variable, then by clicking next button we…
Simple JavaScript function to capitalize first letter of a word
Hi! Previously I was searching for a way to capitalize the first letter of a word in JavaScript. I thought there is built in function/method in JavaScript to do that, but I didn’t find it. So, here is a simple function that I’ve made. To use this function, just call the function with any word…
How to generate random sentence consisted of random words with PHP
In this post I’m going to share a simple PHP script to generate random sentence consisted of random pre-defined words. For example I want to show a text saying: “Hi, thank you for visiting my website” several times, but I don’t want repetitively saying exactly that sentence. Then the solution is this program, which can…
Tutorial on Creating HTML5 and JavaScript Load More Button
In this video tutorial I’m sharing about how to create “Load More” button in JavaScript to show partial contents of an array variable. Please note that in this technique first I retrieve all the information from server at single shot and store it in single array variable. So load more mechanism is happening on client…
Creating Greeting Card Maker WebApp with Phaser
Phaser.js is a good library for creating HTML5 games. However, this time I tried to use Phaser to make a greeting card maker web app. Visit CardU a webapp that I’ve made recently. You can test it and see how it works. Here I will share the source code of index.html and main.js files used…
Google Play and Apple Play Store Icon SVG Codes for Web Pages
The common way to display an image on a web page is showing image files by using <img src=”blabla.jpg”> tag. But the problem is image files are not good enough if you scale up the web page, you will see the pixels. It’s time to use SVG instead image files. This codes I’m going to…
How to change WordPress footer text with JavaScript
There is a common way to edit footer text of a WordPress site theme, it’s by modifying footer.php file. But if you got a new update of your theme, you will lose that, the footer reverted back to the original footer file. But if you put this a few line of JavaScript codes in your…
Easy JavaScript Custom Encryption and Decryption Engine
Hello again! I’ve created a simple JavaScript program that can encrypt and decrypt basic texts. Watch this: And of course, this is the source code:
Creating a Menu System that Hides and Shows Divs and Sections
Hi, This is a short tutorial about creating simple menu system that if you click a menu item, it will show a div and hide another divs. With using this system you can make a single page web app nicely. Watch the video here:
How to Export HTML Table to Excel File with JavaScript
Let’s say we have a huge data in an HTML table. Now we need to export it as an Excel file. What to do? Basically, we can select entire table, copy and paste it into a blank Excel document. Or, if we code it in JavaScript, here how we can achieve that. Watch this video:
How to create and send HTML email from Gmail
In this video tutorial I will show you how you can create and send an HTML email from Gmail. Here is the source of this HTML email:
Array of cities in JS and show it on a div
In this example, I have a bunch of city names as an array variable in JavaScript. Then I want to make a list of links for all the city names. Here I do it using jQuery: <div id=”kotas”></div> <script> var kotas = [ “Banda Aceh”, “Langsa”, “Lhokseumawe”, “Meulaboh”, “Sabang”, “Subulussalam”, “Denpasar”, “Pangkalpinang”, “Cilegon”, “Serang”, “Tangerang…
JavaScript random numbers examples
Generating random numbers is a common thing in programming. Here is some examples in JavaScript: //Basic Random Math.random(); //From 0 to specific number Math.random() * 10; //Removing decimals Math.floor(Math.random() * 10); //Random between 5 and 10 Math.floor(Math.random() * 5) + 5; //Random between 5 and 10 (included 10) Math.floor(Math.random() * 5) + 6;
How to hide or show previous or next div with jQuery
Imagine if we have some divs, and we want to show them one by one like a gallery, by providing users two buttons to navigate to previous or next div. How do we code it? In this tutorial I’ll share how I do it by using jQuery.