jQM - Dont have a clue

by sebababi

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>

    <div data-role="page" id="index">
        <div data-role="content">
            <ul data-role="listview"  data-split-theme="d" data-inset="true">
                <li><a class="readonly-state">
                    <img src="http://view.jquerymobile.com/1.3.0/docs/_assets/img/album-bb.jpg">
                    <h2>Broken Bells</h2>
                    <p>Broken Bells</p></a>
                    
                    
                    <a href="#purchase" data-rel="popup" data-position-to="window" data-transition="pop">Purchase album POP UP</a>
                    
                    
                    
                            <div class="split-custom-wrapper"style="width:200px !important;">
            <a href="#purchase" class="bookIt" data-role="button"  data-icon="false" data-rel="popup" data-theme="c" data-position-to="window" data-transition="pop">BOOK IT</a>
        </div>
                    
                    
                </li>
            </ul>
            <div data-role="popup" id="purchase" data-theme="d" data-overlay-theme="b" class="ui-content" style="max-width:340px; padding-bottom:2em;">
                <h3>Purchase Album?</h3>
                <p>Your download will begin immediately on your mobile device when you purchase.</p>
                <a href="index.html" data-role="button" data-rel="back" data-theme="b" data-icon="check" data-inline="true" data-mini="true">Buy: $10.99</a>
                <a href="index.html" data-role="button" data-rel="back" data-inline="true" data-mini="true">Cancel</a>
            </div>
        </div>

        

        </div>
    </div>   
</body>
</html>

CSS

.split-custom-wrapper {
    /* position wrapper on the right of the listitem */
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
}

.bookIt{
        background:#00ff00!important;
    background-color:#00ff00!important;
}
.split-custom-button {
    position: relative;
    float: right;   /* allow multiple links stacked on the right */
    height: 100%;
    margin:0;
    min-width:3em;
    /* remove boxshadow and border */
    border:none;
    moz-border-radius: 0;
    webkit-border-radius: 0;
    border-radius: 0;
    moz-box-shadow: none;
    webkit-box-shadow: none;
    box-shadow: none;
}

JavaScript

$(document).on('pagebeforeshow', '#index', function(){       

});