MMCT TEAM
Server IP : 103.53.40.154  /  Your IP : 3.12.34.192
Web Server : Apache
System : Linux md-in-35.webhostbox.net 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64
User : ppcad7no ( 715)
PHP Version : 8.2.25
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON
Directory (0755) :  /home2/ppcad7no/herbalhairoil.in/../polytechniccoaching.com/../adisgauges.com/js/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home2/ppcad7no/herbalhairoil.in/../polytechniccoaching.com/../adisgauges.com/js/coming-soon.js
/* Set Footer Section */	
function setFooterSection()
{
	$windowWidth = $(window).width();
	
	if($windowWidth <= 1920)
	{
		if($('.f-ele-m')[0])
		{
			$centerDiv = $('.f-ele-m');
			$marginVal  = $centerDiv.attr('dlab-top-pos') ? $centerDiv.attr('dlab-top-pos') : 0  ;
			$position  = $centerDiv.attr('dlab-position') ? $centerDiv.attr('dlab-position') : true  ;
			//alert($position);
			//alert($marginVal);
			$windowHeight = $(window).height();
			$centerDivHeight = $centerDiv.height();
			$marginHeight = ($windowHeight - $centerDivHeight) / 2 ;
			$marginHeight = $marginHeight - ($marginHeight * $marginVal / 100);
			//alert($marginVal);
			
			//alert($windowWidth);
			if(($windowWidth < 460 || $windowWidth > 700) && $position == true)
			{
				//alert('dfgdfg');
				$('.f-ele-m').css("position", 'fixed');
			}
		
			if($position == true )
			{
				$('.f-ele-m').css("margin-top", '0');
				$('.f-ele-m').css("top", $marginHeight);	
			}
			else{
				$('.f-ele-m').css("margin-top", $marginHeight);
				$('.f-ele-m').css("margin-bottom", $marginHeight);
			}
			
			$('.f-ele-m').css("padding", '0 15px ');
			$('.f-ele-m').css("left", '0');

		}
	}	
}
/* countdown */

	$(document).ready(function() {
      $('.countdown').countdown({date: '30 march 2018 23:5'}, function() {
        $('.countdown').text('we are live');
      });
    });
	
/* countdown End */	

	/* Side Bar */
	function openNav() {
		if($(window).width() <= 800)
		{
			document.getElementById("mySidenav").style.width = "100%";
			document.getElementById("main").style.marginLeft = "100%";
		}
		else
		{
			document.getElementById("mySidenav").style.width = "800px";
			document.getElementById("main").style.marginLeft = "800px";
		}
	}
	function closeNav() {
		document.getElementById("mySidenav").style.width = "0";
		document.getElementById("main").style.marginLeft= "0";
	}
/* Scroll */
	(function($){
		$(window).on("load",function(){
			/* all available option parameters with their default values */
			$(".content").mCustomScrollbar({
				setWidth:false,
				setHeight:false,
				axis:"y",
			});
		});
	})(jQuery);
	
// function([string1, string2],target id,[color1,color2])
 function dezText(words, id) {
		'use strict';
	if($('#'+id).length > 0)
	{
		var visible = true;
        var letterCount = 1;
        var x = 1;
        var waiting = false;
        var target = document.getElementById(id);
        window.setInterval(function() {

            if (letterCount === 0 && waiting === false) {
                waiting = true;
                target.innerHTML = words[0].substring(0, letterCount);
                window.setTimeout(function() {
                    var usedWord = words.shift();
                    words.push(usedWord);
                    x = 1;
                    letterCount += x;
                    waiting = false;
                }, 500)
            } else if (letterCount === words[0].length + 1 && waiting === false) {
                waiting = true;
                window.setTimeout(function() {
                    x = -1;
                    letterCount += x;
                    waiting = false;
                }, 1000)
            } else if (waiting === false) {
                target.innerHTML = words[0].substring(0, letterCount);
                letterCount += x;
            }
        }, 70)
	}	
}
/*################	End OF Function List ###################################*/
/* Document.ready Start */	
jQuery(document).ready(function() {
    'use strict';
	
	setFooterSection(); 
	
	dezText(['We Are Coming Soon', 'We Are Coming Soon'], "text");
	
});
/* Document.ready END */
/* Loading */
	jQuery(window).load(function() {
		setTimeout(function(){
			jQuery('#loading-area').remove();
		}, 0);
	});
/* Loading End */

MMCT - 2023