<footer class="footer">
    <div class="container">
        <div class="text-center">
            <span class="underline"><a href="https://www.kik.com" target="_blank">Kik</a> or not</span> &copy; <?php echo date('Y') ?><br/>
            We are not affiliated with or endorsed by Kik or "Hot or Not".
        </div>
    </div>
</footer>

<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
<script src="<?php echo asset_url('js/bootstrap.min.js') ?>"></script>
<script src="//code.jquery.com/jquery-1.10.2.min.js"></script>
<script>$(document).bind("mobileinit", function () {
        $.extend($.mobile, {autoInitializePage: false})
    });</script>
<script src="//code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.js"></script>
<?php if (Main::loggedIn()): ?>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/modernizr/2.8.2/modernizr.js"></script>

    <script>
        // Wait for window load
        $(window).load(function () {
            // Animate loader off screen
            $(".se-pre-con").fadeOut("slow");
        });

        var seed = <?php echo User::userId();?>;

        $(function () {
            $("#tinderslide ul ").on("swiperight", "li", function () {
                $(this).addClass('rotate-right').find('.yes').fadeTo("fast", 0.90);
                var match_id = $(this).data('match-id');

                setTimeout(function () {
                    $('.rotate-right').remove();
                }, 500); // <-- time in milliseconds
                $.ajax({
                    url: "<?php echo site_url('loadUsers') ?>",
                    type: "POST",
                    data: {'seed': 1, 'like_id': match_id},
                    dataType: "HTML",
                    success: function (data) {
                        $("#tinderslide ul").prepend(data);
                    }
                });
            });
            $("#tinderslide ul ").on("swipeleft", "li", function () {
                $(this).addClass('rotate-left').find('.no').fadeTo("fast", 0.90);
                setTimeout(function () {
                    $('.rotate-left').hide();
                }, 500); // <-- time in milliseconds
                $.ajax({
                    url: "<?php echo site_url('loadUsers') ?>",
                    type: "POST",
                    data: {'seed': 1},
                    dataType: "HTML",
                    success: function (data) {
                        $("#tinderslide ul").prepend(data);
                    }
                });
            });
        });
    </script>
<?php endif; ?>
<script>
    // Preload configuration
    $(document).on("mobileinit", function () {
        $.mobile.autoInitializePage = false; // This one does the job
    });
</script>
</body>
</html>
