jQuery Mobile in the examples - Lista z dzielonymi przyciskami

Lista z dzielonymi przyciskami

Lista z dzielonymi przyciskami

<!DOCTYPE html>
<html>
<head>
   <meta name="viewport" content="width=device-width, initial-scale=1">
   <link rel="stylesheet" href="https://code.jquery.com/mobile/1.4.3/jquery.mobile-1.4.3.min.css" />
   <script src="https://code.jquery.com/jquery-1.9.1.min.js"></script>
   <script src="https://code.jquery.com/mobile/1.4.3/jquery.mobile-1.4.3.min.js"></script>
</head>
<body>
<div data-role="page">
   <div data-role="header" data-position="fixed"><H1>Header</H1></div>
   <div role="main" class="ui-content">
    <h3>Lista z dzielonymi przyciskami</h3>
    <ul data-role="listview" data-split-icon="gear" data-split-theme="a" data-inset="true">
       <li><a href="#"><img src="/jqm/img/bach.jpg"><h2>Bach</h2><p>The Best of Bach</p></a>
           <a href="#purchase" data-rel="popup" data-position-to="window" data-transition="pop">Purchase album</a>
       </li>
       <li><a href="#"><img src="/jqm/img/beethoven.jpg"><h2>Beethoven</h2><p>Masters of classical music</p></a>
           <a href="#purchase" data-rel="popup" data-position-to="window" data-transition="pop">Purchase album</a>
       </li>
       <li><a href="#"><img src="/jqm/img/haydn.jpg"><h2>Haydn</h2><p>Piano Trios</p></a></a>
           <a href="#purchase" data-rel="popup" data-position-to="window" data-transition="pop">Purchase album</a>
       </li>
       <li><a href="#"><img src="/jqm/img/mozart.jpg"><h2>Mozart</h2><p>Eine Klaine Nachtmusik</p></a>
           <a href="#purchase" data-rel="popup" data-position-to="window" data-transition="pop">Purchase album</a>
       </li>
    </ul>
  <div data-role="popup" id="purchase" data-theme="a" 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-rel="back" class="ui-shadow ui-btn ui-corner-all ui-btn-b ui-icon-check ui-btn-icon-left ui-btn-inline ui-mini">Buy: $10.99</a>
    <a href="index.html" data-rel="back" class="ui-shadow ui-btn ui-corner-all ui-btn-inline ui-mini">Cancel</a>
  </div>
  </div>
  <div data-role="footer" data-position="fixed"><H1>Footer</H1></div>
</div>
</body>
</html>
Pobierz kod