"layout"
Bootstrap 3.0.0 Snippet by evarevirus

<link href="//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//netdna.bootstrapcdn.com/bootstrap/3.0.0/js/bootstrap.min.js"></script> <script src="//code.jquery.com/jquery-1.11.1.min.js"></script> <!------ Include the above in your HEAD tag ----------> <!DOCTYPE html><html lang='en' class=''> <head><script src='//production-assets.codepen.io/assets/editor/live/console_runner-079c09a0e3b9ff743e39ee2d5637b9216b3545af0de366d4b9aad9dc87e26bfd.js'></script><script src='//production-assets.codepen.io/assets/editor/live/events_runner-73716630c22bbc8cff4bd0f07b135f00a0bdc5d14629260c3ec49e5606f98fdd.js'></script><script src='//production-assets.codepen.io/assets/editor/live/css_live_reload_init-2c0dc5167d60a5af3ee189d570b1835129687ea2a61bee3513dee3a50c115a77.js'></script><meta charset='UTF-8'><meta name="robots" content="noindex"><link rel="shortcut icon" type="image/x-icon" href="//production-assets.codepen.io/assets/favicon/favicon-8ea04875e70c4b0bb41da869e81236e54394d63638a1ef12fa558a4a835f1164.ico" /><link rel="mask-icon" type="" href="//production-assets.codepen.io/assets/favicon/logo-pin-f2d2b6d2c61838f7e76325261b7195c27224080bc099486ddd6dccb469b8e8e6.svg" color="#111" /><link rel="canonical" href="https://codepen.io/Palestinian/pen/mDKkG?depth=everything&order=popularity&page=53&q=page&show_forks=false" /> <style class="cp-pen-styles">.blur-filter { -webkit-filter: blur(2px); -moz-filter: blur(2px); -o-filter: blur(2px); -ms-filter: blur(2px); filter: blur(2px); }</style></head><body> <html> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <script type='text/javascript' src='//code.jquery.com/jquery-1.9.1.js'></script> <link rel="stylesheet" type="text/css" href="/css/result-light.css"> <link rel="stylesheet" type="text/css" href="https://code.jquery.com/mobile/1.4.2/jquery.mobile-1.4.2.min.css"> <script type='text/javascript' src="https://code.jquery.com/mobile/1.4.2/jquery.mobile-1.4.2.min.js"></script> </head> <body> <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no"> <div data-role="page"> <div data-role="header" data-position="fixed" data-tap-toggle="false"> <a href="#" class="ui-btn ui-btn-b ui-btn-icon-right ui-icon-bars panel">Panel</a> <h1>Header</h1> <a href="#about" data-rel="popup" class="ui-btn ui-btn-icon-left ui-icon-info">Home</a> </div> <div role="main" class="ui-content"> <a href="#" class="ui-btn ui-btn-b ui-btn-icon-left ui-icon-info ui-corner-all" id="foo">Click here</a> <div class="ui-body ui-body-a ui-corner-all"> <h3>Heading</h3> <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse accumsan blandit fermentum. Pellentesque cursus mauris purus, auctor commodo mi ullamcorper nec.</p> </div> <form> <div data-role="rangeslider"> <label for="range-1a">Rangeslider:</label> <input type="range" name="range-1a" id="range-1a" min="0" max="100" value="40" /> <label for="range-1b">Rangeslider:</label> <input type="range" name="range-1b" id="range-1b" min="0" max="100" value="80" /> </div> </form> </div> <div data-role="footer" data-position="fixed" data-tap-toggle="false"> <h1>Footer</h1> </div> </div> <!-- External Panel --> <!-- / --> </body> </body> </html> <script src='//production-assets.codepen.io/assets/common/stopExecutionOnTimeout-b2a7b3fe212eaa732349046d8416e00a9dec26eb7fd347590fbced3ab38af52e.js'></script> <script >$(document).on("pagecreate", function () { $("#foo").on("click", function () { // close button var closeBtn = $('<a href="#" data-rel="back" class="ui-btn-right ui-btn ui-btn-b ui-corner-all ui-btn-icon-notext ui-icon-delete ui-shadow">Close</a>'); // text you get from Ajax var content = "<p>Lorem ipsum dolor sit amet, consectetur adipiscing. Morbi convallis sem et dui sollicitudin tincidunt.</p>"; // Popup body - set width is optional - append button and Ajax msg var popup = $("<div/>", { "data-role": "popup" }).css({ width: $(window).width() / 2.5 + "px", padding: 5 + "px" }).append(closeBtn).append(content); // Append it to active page $.mobile.pageContainer.append(popup); // Create it and add listener to delete it once it's closed // open it $("[data-role=popup]").popup({ dismissible: false, history: false, theme: "b", /* or a */ positionTo: "window", overlayTheme: "b", /* "b" is recommended for overlay */ transition: "pop", beforeposition: function () { $.mobile.pageContainer.pagecontainer("getActivePage") .addClass("blur-filter"); }, afterclose: function () { $(this).remove(); $(".blur-filter").removeClass("blur-filter"); }, afteropen: function () { /* do something */ } }).popup("open"); }); }); //# sourceURL=pen.js </script> </body></html>

Related: See More


Questions / Comments: