ACC SHELL

Path : /srv/www/vhosts/agroing/web/views/agroing/www/
File Upload :
Current File : /srv/www/vhosts/agroing/web/views/agroing/www/environment.js

function nahled() {
	var img_all = new Image();
	var bg_size = 'auto';
	img_all.onload = function () {
		width = $('body').width();
		height = this.height * this.width / width;
		if ($('#nahled').length > 0) {
			$('#nahled').css('width', width + 'px').css('height', height + 'px').css('margin-left', '-' + (width / 2) + 'px').css('background-image', 'url(' + img_all.src + ')').css('background-size', bg_size);
		} else {
			$('body').prepend('<div id="nahled" style="position:absolute; top:0px; left: 50%; z-index:5; width: ' + width + 'px;height: ' + height + 'px;margin-left: -' + (width / 2) + 'px; background: url(' + img_all.src + ') no-repeat center top; background-size: ' + bg_size + ';"></div>');
			$("#nahled").hide();
			$(window).keydown(function (e) { //
				if (e.keyCode == 78) { //
					$("#nahled").toggle(0);
				}
				;
				if (e.keyCode == 86) { //v
					$("#nahled").fadeTo(0, 0.3);
				}
				;
				if (e.keyCode == 66) { //b
					$("#nahled").fadeTo(0, 0.7);
				}
				;
				if (e.keyCode == 77) { //m
					$("#nahled").fadeTo(0, 1);
				}
				;
				if (e.keyCode == 84) { //t
					alert($('body').width());
				}
				;

				if (e.keyCode == 82) { //r
					$('footer .styles').toggle();
				}
				;
			});
		}
	};
	img_all.src = 'http://www.agroing.lcz/all.png';
}

$(document).ready(function () {
	$('#banner').addClass('noresh');
	
//	nahled();
});

ACC SHELL 2018