jQM - Bartender Example

by Dragan Gaić

HTML

<link rel="stylesheet" href="http://jeromeetienne.github.com/jquery-mobile-960/css/jquery-mobile-fluid960.css">
<script src="http://timeago.yarp.com/jquery.timeago.js"></script>
<script src="http://imakewebthings.github.com/jquery-waypoints/waypoints.min.js"></script>
<!DOCTYPE html>
<html>
    <head>
        <title>jQM Complex Demo</title>
        <meta http-equiv='Content-Type' content='text/html; charset=utf-8'/>
        <meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; minimum-scale=1.0; user-scalable=no; target-densityDpi=device-dpi"/>
        <link rel="stylesheet" href="http://code.jquery.com/mobile/1.3.1/jquery.mobile-1.3.1.min.css" />
        <link rel="stylesheet" type="text/css" href="http://www.stokkers.mobi/valuables/bartender.css" /> 
        <!--<script src="http://code.jquery.com/jquery-1.9.1.min.js"></script>-->
        <script src="http://code.jquery.com/mobile/1.3.1/jquery.mobile-1.3.1.min.js"></script>    
    </head>
    <body>
        <div data-role="page" id="index">
            <div data-theme="a" data-role="header">
                <h1>Index page</h1>
            </div>
            
            <div data-role="content">
                
            </div>
            
            <div data-role="footer" data-id="mainFooter" data-position="fixed">
                <div data-role="navbar" data-grid="d">
                    <ul class="apple-navbar-ui comboSprite">
                        <li><a href="#features" data-iconpos="top" data-icon="features">Features</a></li>
                        <li><a href="#brands" data-iconpos="top" data-icon="brands">Brands<span class="ui-li-count">10</span></a></li>
                        <li><a href="#fees" data-iconpos="top" data-icon="fees">Fees</a></li>
                        <li><a href="#contact" data-iconpos="top" data-icon="contact">Contact</a></li>
                        <li><a href="#about" class="ui-btn-active ui-state-persist" data-iconpos="top"...

JavaScript

$(document).on('pagebeforeshow', '#index', function(){ 
    console.log("init");
});