Mini Shell

Direktori : /home/rizant5/www/development/
Upload File :
Current File : /home/rizant5/www/development/function-file.php

<?php

function commoncss(){?>

<!-- core CSS -->

<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">

<link rel="shortcut icon" type="image/ico" href="lankavirtualacademy.ico" />

   <link rel="shortcut icon" type="image/ico" href="lankavirtualacademy.ico" />

    <link href="css/bootstrap.min.css" rel="stylesheet">

    <link href="css/font-awesome.min.css" rel="stylesheet">

    <link href="css/animate.min.css" rel="stylesheet">

    <link href="css/prettyPhoto.css" rel="stylesheet">

    <link href="css/main.css" rel="stylesheet">

    <link href="css/responsive.css" rel="stylesheet">

    <link href="css/mCustomScrollbar.css" rel="stylesheet">

    <!--[if lt IE 9]>

    <script src="js/html5shiv.js"></script>

    <script src="js/respond.min.js"></script>

    <![endif]-->   	

   <link href="css/custom.css" rel="stylesheet">

   

<?php

}

function commonjs(){?>

<script src="js/jquery.js"></script>

    <script src="js/bootstrap.min.js"></script>

    <script src="js/jquery.prettyPhoto.js"></script>

    <script src="js/jquery.isotope.min.js"></script>

    <script src="js/main.js"></script>

    <script src="js/mCustomScrollbar.min.js"></script>

    <script src="js/wow.min.js"></script>

    <script type="text/javascript">

function googleTranslateElementInit() {

  new google.translate.TranslateElement({pageLanguage: 'en', includedLanguages: 'en,si,ta', autoDisplay: false}, 'google_translate_element');

  $( ".goog-te-combo").addClass("form-control");

}

</script>

<script type="text/javascript" src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script>

    <script>

	$(document).scroll(function(e){

    var scrollTop = $(document).scrollTop();

    if(scrollTop > 0){

        console.log(scrollTop);

        $('.navbar').removeClass('navbar-static-top').addClass('navbar-fixed-top');

    } else {

        $('.navbar').removeClass('navbar-fixed-top').addClass('navbar-static-top');

    }

});

</script>

<script>



$('#new-reg').on('submit', function (e) {

	$("#register-msg").toggle();

	$("#register-form").toggle();

	e.preventDefault();

		$.ajax({

		type: 'post',

		url: 'new-register.php',

		data: $('form').serialize(),

	  	success: function (data) {

			//$(".modal, .fade").modal('hide');

			$("form")[0].reset();

        }

     });

 });

function registercheck(){

	$("#register-msg").toggle();

	$("#register-form").toggle();

}

</script>

 <script>

   $('#subscribe').on('submit', function (e) {

	   var emailid=$("#emailsubs").val();

	e.preventDefault();

		$.ajax({

		type: 'post',

		url: 'subscribe-ajax.php',

		data: $('form').serialize(),

	  	success: function (data) {

			$("#emailsubs").val('');

			if(data==1){$('#subsmodelw').modal('show');}

			else{$('#subsmodel').modal('show');}

        }

     });

 });

	</script>

<?php

}

?>

Zerion Mini Shell 1.0