Full screen div at any screen and resolution

Add this in your javascript file and call this file after jquery file

function fullsize() 
{
	var new_height = window.innerHeight; // get new height of window
	var fullsize = new_height; 
	fullsize = parseInt(fullsize) + 'px'; // concatenate string get output in px format  
	jQuery("div").css('height',fullsize); // changing height of div
}
jQuery(document).ready(function()
{
	fullsize();
	jQuery(window).bind('resize', fullsize); // event is call at screen change ( resolution changes )
});

Note: you can replace ‘jQuery’ with ‘$’ if there is any issue due to ‘jQuery’ Keyword.

Share on Google+Share on FacebookTweet about this on TwitterEmail this to someone
 
 

How to show local json data in chrome using angular JS??

Working with angularJS needs a JSON file to play with data. But the irony of the chrome is behind the fact that the local JSON file data can’t be displayed in simple chrome browser.

Solution of this could be using any deployment server environment on your system like Java or python. But as a front end developer this seems to be quite difficult.So the solution is ,actually there.

Yes the chrome does not display data using local file due to some security reasons but this security can be turned off using simple command prompt.

1. Find the path for chrome.exe file :-

open command prompt
type cd\
type dir chrome.exe /s /p
now with path obtained in this step goto this path
and then execute following command:-

chrome.exe –allow-file-access-from-files

Capture

Share on Google+Share on FacebookTweet about this on TwitterEmail this to someone
 

what is jQuery

jQuery is a fast, small, and feature-rich JavaScript library and cross-platform JavaScript library designed
to simplify the client-side scripting of HTML.

The purpose of jQuery is to make it much easier to use JavaScript on your website.

jQuery wraps multiple line of code in single line.

Share on Google+Share on FacebookTweet about this on TwitterEmail this to someone