Bar at bottom and top of screen?
Hello,
I'm currently working on a little Webapp as a school assignment. I copied the code
here and edited it a little, however there's a small bar at the top and bottom of the window. Also, if I chance the background color it will only show in those two bars. Does anyone perhaps know what the issue might be?
Thanks in advance
- <DOCTYPE html>
- <html>
- <head>
- <meta charset="UTF-8">
- <meta name="viewport" content="width=device-width, initial-scale=1">
- <title>Naam</title>
- <link rel="stylesheet" href="http://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.css" />
- <script src="http://code.jquery.com/jquery-1.11.1.min.js"></script>
- <script src="http://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.js"></script>
- <script>
- $( document ).on( "pageinit", "#home", function() {
- $( document ).on( "swipeleft swiperight", "#home", function( e ) {
- // We check if there is no open panel on the page because otherwise
- // a swipe to close the left panel would also open the right panel (and v.v.).
- // We do this by checking the data that the framework stores on the page element (panel: open).
- if ( $.mobile.activePage.jqmData( "panel" ) !== "open" ) {
- if ( e.type === "swipeleft" ) {
- $( "#right-panel" ).panel( "open" );
- } else if ( e.type === "swiperight" ) {
- $( "#left-panel" ).panel( "open" );
- }
- }
- });
- });
- </script>
- <style>
- /* Swipe works with mouse as well but often causes text selection. */
- #home * {
- -webkit-user-select: none;
- -moz-user-select: none;
- -ms-user-select: none;
- -o-user-select: none;
- user-select: none;
- }
- #home * {
- -webkit-user-select: none;
- -moz-user-select: none;
- -ms-user-select: none;
- -o-user-select: none;
- user-select: none;
- }
- /* Arrow only buttons in the header. */
- #home .ui-header .ui-btn {
- background: none;
- border: none;
- top: 9px;
- }
- #home .ui-header .ui-btn-inner {
- border: none;
- }
- /* Content styling. */
- dl { font-family: "Times New Roman", Times, serif; padding: 1em; }
- dt { font-size: 2em; font-weight: bold; }
- dt span { font-size: .5em; color: #777; margin-left: .5em; }
- dd { font-size: 1.25em; margin: 1em 0 0; padding-bottom: 1em; border-bottom: 1px solid #eee; }
- .back-btn { float: right; margin: 0 2em 1em 0; }
- </style>
- </head>
- <body>
- <div data-role="page" id="home" data-theme="a" data-url="home">
- <div data-role="header" data-theme="a">
- <h2>Naam</h2>
- <a href="#left-panel" data-theme="a" data-icon="bars" data-iconpos="notext" data-shadow="false" data-iconshadow="false" class="ui-icon-nodisc">Open left panel</a>
- <a href="#right-panel" data-theme="a" data-icon="arrow-r" data-iconpos="notext" data-shadow="false" data-iconshadow="false" class="ui-icon-nodisc">Open right panel</a>
- </div>
- <div data-role="content">
- <dl>
- <dt>Welkom</dt>
- <dd>Home</dd>
- </dl>
- </div>
- <div data-role="panel" id="left-panel" data-theme="a">
- <a href="#" data-rel="close" data-role="button" data-mini="true" data-inline="true" data-icon="delete" data-iconpos="right">Sluiten</a>
- <br>
- <a href="#" data-rel="close" data-role="button" data-mini="true" data-inline="true" data-icon="home" data-iconpos="right">Home</a>
- <br>
- <a href="menu.html" rel="external" data-rel="close" data-role="button" data-mini="true" data-inline="true" data-icon="grid" data-iconpos="right">Menukaart</a>
- </div>
- <div data-role="panel" id="right-panel" data-display="push" data-position="right" data-theme="a">
- <a href="#" data-rel="close" data-role="button" data-mini="true" data-inline="true" data-icon="delete" data-iconpos="right">Sluiten</a>
- </div>
- </div>
- </body>
- </html>