<?php
/**
 * The template for displaying the footer
 *
 * Contains the closing of the #content div and all content after
 *
 * @package WordPress
 * @subpackage Twenty_Sixteen
 * @since bsmart_old_theme_by_Goldfish 1.0
 */
?>
		<footer id="footer">
        <div class="container">
            <div class="row">
                <div class="col-lg-6 col-md-6 col-sm-6">
                    <div class="footer_left">
                        <p>Copyright &copy; 2016 <a href="index.html" target="_blank">B'Smart Telematics Myanmar Co., Ltd</a> All Rights Reserved</p>
                    </div>
                </div>
                <div class="col-lg-6 col-md-6 col-sm-6">
                    <div class="footer_right">
                        <ul class="social_nav">
                            <li><a href="https://www.facebook.com/bsmartmyanmar"><i class="fa fa-facebook"></i></a></li>
                            
                        </ul>
                    </div>
                </div>
            </div>
        </div>
    </footer>
	</div><!-- .site-inner -->
</div><!-- .site -->

    <script src="<?php bloginfo('template_directory'); ?>/jquery.min.js"></script>

    <script src="<?php bloginfo('template_directory'); ?>/js/wow.min.js"></script>
    <script src="<?php bloginfo('template_directory'); ?>/js/bootstrap.min.js"></script>
    <script src="<?php bloginfo('template_directory'); ?>/js/jquery.superslides.min.js" type="text/javascript"></script>
    <script src="<?php bloginfo('template_directory'); ?>/js/slick.min.js"></script>
    <script src='<?php bloginfo('template_directory'); ?>/js/jquery.circliful.min.js'></script>
    <script src="<?php bloginfo('template_directory'); ?>/js/modernizr.custom.js"></script>
    <script src="<?php bloginfo('template_directory'); ?>/js/classie.js"></script>
    <script src="<?php bloginfo('template_directory'); ?>/js/elastic_grid.min.js"></script>
    <script src="<?php bloginfo('template_directory'); ?>/js/portfolio_slider.js"></script>

    <script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/custom.js"></script>
    <script type="text/javascript">
        //<![CDATA[
        $(window).load(function () { // makes sure the whole site is loaded
            $('#status').fadeOut(); // will first fade out the loading animation
            $('#preloader').delay(350).fadeOut('slow'); // will fade out the white DIV that covers the website.
            $('body').delay(350).css({ 'overflow': 'visible' });
        })
        //]]>
    </script>

        <!-- Preloader -->
        <script type='text/javascript' src='<?php bloginfo('template_directory'); ?>/js/jquery.fancybox.pack.js'></script>
        <script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/script.js"></script>
        <script src="<?php bloginfo('template_directory'); ?>/js/jquery.validate.js"></script>
        <script type="text/javascript">
            $body = $("body");
            $(document).on({
                ajaxStart: function () { $body.addClass("loading"); },
                ajaxStop: function () { $body.removeClass("loading"); }
            });
            $(document).ready(function () {
                $('#loading').hide();
                $.validator.setDefaults({
                    submitHandler: function () {
                        $.ajax({
                            type: "POST",
                            url: "default.aspx/SendHtmlFormattedEmail",
                            contentType: 'application/json; charset=utf-8',
                            data: '{name: "' + $("#txtUserName")[0].value + '" , email:"' + $("#txtEmail")[0].value + '" , subject: "' + $("#txtSubject")[0].value + '" , body:"' + $("#txtMessage")[0].value + '" }',
                            dataType: "json",
                            success: OnSuccess,
                            failure: function (response) {
                                alert(response.d);
                            }
                        });
                        function OnSuccess(response) {
                            alert(response.d);
                            $("#txtUserName").val('');
                            $("#txtSubject").val('');
                            $("#txtMessage").val('');
                            $("#txtEmail").val('');
                        }
                    }
                });
                $("#form1").validate({
                    rules: {
                        txtUserName: "required",
                        txtSubject: "required",
                        txtMessage: "required",
                        txtEmail: {
                            required: true,
                            email: true
                        }
                    },
                    messages: {
                        txtUserName: "Please enter your name",
                        txtSubject: "Please enter your subject",
                        txtMessage: "Please enter your message",
                        txtEmail: "Please enter a valid email address"
                    }
                });
            });
        </script>
        <script>
            (function (i, s, o, g, r, a, m) {
                i['GoogleAnalyticsObject'] = r; i[r] = i[r] || function () {
                    (i[r].q = i[r].q || []).push(arguments)
                }, i[r].l = 1 * new Date(); a = s.createElement(o),
                m = s.getElementsByTagName(o)[0]; a.async = 1; a.src = g; m.parentNode.insertBefore(a, m)
            })(window, document, 'script', '../www.google-analytics.com/analytics.js', 'ga');

            ga('create', 'UA-36988422-14', 'auto');
            ga('send', 'pageview');
        </script>
    </body>
</html>
