Category Archives: Java Script


May 9, 2015 11:21 am

How to capture Website screenshot using PHP & PhantomJS


How to capture Website screenshot using PHP & PhantomJS
We have wrote an article on screen capture using a library which is paid with free version it makes screenshots with for 3 days only. So today I am going to write this tutorial to move a free library PhantomJS using PHP and PhantomJS you can easily capture website screenshots for free so let's start with installation.

[ Read More ]


April 29, 2015 11:35 am

How to Make a Custom Video Player with JavaScript, Part 2


How to Make a Custom Video Player with JavaScript, Part 2
This is the second part of our tutorial How to Make a Custom Video Player with JavaScript, Part 1, in first part we show you some CSS and basics of HTML. In this part we are going to explain a MediaController object to hold the Video Player functionality so we do not pollute the global scope and finalize it and give you download code.

[ Read More ]


April 28, 2015 1:35 pm

How to Make a Custom Video Player with JavaScript, Part 1


How to Make a Custom Video Player with JavaScript, Part 1
In this tutorial, we will be building a custom a custom video player with JavaScript. It will consist entirely of black and white controls. We will create an object that when initialized will add controls to all video tag containers with a particular class. You can then continue to improve it and re-factor it to better serve your needs and patch various bugs.

[ Read More ]


April 20, 2015 9:59 pm

How to Manipulate web browser’s history API for SPAs


How to Manipulate web browser's history API for SPAs
Manipulating the browser's history can be quite useful when you are creating a single page application which relies exclusively on AJAX to show different content. You can manipulate the browser's history to tell the user's browser that the user is located on a different page despite the fact that he is not and you can catch requests to that URL so the user can share the content he is currently viewing.

[ Read More ]


March 16, 2015 9:32 am

How to Reward users for viewing videos using AJAX


How to Reward users for viewing videos using AJAX
In this project, we are going to show you how to reward users for watching videos in your site. They would be rewarded only for watching the whole video without fast-forwarding/skipping parts of it and would be rewarded only once for each video.

[ Read More ]


March 10, 2015 5:35 pm

Creating a simple animation with Processing.js


Creating a simple animation with Processing.js
This tutorial aims to give you an overview of how to create animations in Processing.js which you could incorporate in JavaScript animations and games. We are going to create an animation of a Chinese dragon who moves and bounces off the sides of the screen and shoots stars all the time on a cosmic background. Here is an image:

[ Read More ]


February 23, 2015 8:09 pm

Creating an offline app using HTML5 Cache and Underscore Template


Creating an offline app using HTML5 Cache and Underscore Template
In this article, we are going to make an application that once accessed through an internet connection would be accessible even when you are offline. The application is relatively simple – it provides the user with the ability to create new notes with title and body and remove notes he no longer needs. We are going to store the notes the user has saved in localStorage in order for the application to be accessible without internet connection.

[ Read More ]