Page 29 - JqueryMobile_Manual
P. 29

29

                 <div data-role="main" class="ui-content">
                   <a href="#myPopupDialog" data-rel="popup" data-position-to="window" data-transition="fade"
               class="ui-btn ui-corner-all ui-shadow ui-btn-inline">Open Dialog Popup</a>

                   <div data-role="popup" id="myPopupDialog">
                     <div data-role="header">
                       <h1>Header Text</h1>
                     </div>

                     <div data-role="main" class="ui-content">
                       <h2>Welcome to my Popup Dialog!</h2>
                       <p>jQuery Mobile is FUN!</p>
                       <a href="#" class="ui-btn ui-corner-all ui-shadow ui-btn-inline ui-btn-b ui-icon-back ui-btn-icon-left"
               data-rel="back">Go Back</a>
                     </div>

                     <div data-role="footer">
                       <h1>Footer Text</h1>
                     </div>
                   </div>
                 </div>

                 <div data-role="footer">
                   <h1>Footer Text</h1>
                 </div>
               </div>

                                                        Popup photos
                                                  tryjqmob_popup_image.html
               <!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.5/jquery.mobile-1.4.5.min.css">
               <script src="https://code.jquery.com/jquery-1.11.3.min.js"></script>
               <script src="https://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.js"></script>
               </head>
               <body>

               <div data-role="page">
                 <div data-role="header">
                   <h1>Welcome To My Homepage</h1>
                 </div>

                 <div id="pageone" data-role="main" class="ui-content">
                   <p>Click on the image to enlarge it.</p>
                   <p>Notice that we have added a "back button" in the top right corner.</p>
                   <a href="#myPopup" data-rel="popup" data-position-to="window">
                   <img src="skaret.jpg" alt="Skaret View" style="width:200px;"></a>

                   <div data-role="popup" id="myPopup">
                     <p>This is my picture!</p>
                     <a href="#pageone" data-rel="back" class="ui-btn ui-corner-all ui-shadow ui-btn-a ui-icon-delete ui-btn-
               icon-notext ui-btn-right">Close</a><img src="skaret.jpg" style="width:800px;height:400px;" alt="Skaret
               View">
   24   25   26   27   28   29   30   31   32   33   34