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">
<form id="headerUpdate" data-inline="false" data-iconpos="left">
<input class="inputLoading" id="startBox" name="startBox" type="text"
data-type="search"
data-theme="c"
placeholder="Search & Book Near By"
title="Search & Book Near By"
tabindex="1">
</form>
<div data-role="content">
<ul data-role="listview" data-split-theme="c" 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>
<div class="split-custom-wrapper"style="width:200px !important;">
<a href="#purchase" class="bookItButton" data-role="button" data-icon="false" data-rel="popup" data-theme="c" data-position-to="window" data-transition="pop">BOOK IT 1</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"...
CSS
.split-custom-wrapper {
/* position wrapper on the right of the listitem */
position: absolute;
right: 0;
top: 0;
height: 100%;
}
.bookItButton{
background:#00ff00!important;
top:11px;
right:11px;
}
.bookItButton:hover {
background:#ff0099!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(){
});