Note that there are some explanatory texts on larger screens.

plurals
  1. POjquery mobile footer missing
    primarykey
    data
    text
    <p>im new it jquery mobile so i went to look for tutorials and found some and made my own golf scoring UI it work well until the last part i want to put a footer with home button and about button that show on all pages but apparently it is not showing here is my code</p> <pre><code>&lt;!DOCTYPE html&gt; &lt;html&gt; &lt;head&gt; &lt;title&gt;Golf Score&lt;/title&gt; &lt;meta http-equiv="content-type" content="text/html; charset=UTF-8"&gt; &lt;meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1, user-scalable=no"&gt; &lt;link rel="stylesheet" href="css/themes/default/jquery.mobile-1.3.2.min.css"&gt; &lt;script src="jq/jquery.js"&gt;&lt;/script&gt; &lt;script src="jq/jquery.mobile-1.3.2.min.js"&gt;&lt;/script&gt; &lt;script type="text/javascript" src="http://code.jquery.com/jquery-1.6.4.js"&gt;&lt;/script&gt; &lt;link rel="stylesheet" type="text/css" href="/css/normalize.css"&gt; &lt;link rel="stylesheet" type="text/css" href="/css/result-light.css"&gt; &lt;link rel="stylesheet" type="text/css" href="http://code.jquery.com/mobile/1.0/jquery.mobile-1.0.min.css"&gt; &lt;script type="text/javascript" src="http://code.jquery.com/mobile/1.0/jquery.mobile-1.0.min.js"&gt;&lt;/script&gt; &lt;style type="text/css"&gt;&lt;/style&gt; &lt;script type="text/javascript"&gt;//&lt;![CDATA[ $(window).load(function(){ $('#newgame').live('pageshow',function(event, ui) { // refresh specific element $('#refresh').val(''); }); $('#viewscore').live('pageshow',function(event, ui) { // refresh all elements var allInputs = $(':input'); allInputs.val(''); }); $('#currentscore').live('pageshow',function(event, ui) { // refresh all elements var allInputs = $(':input'); allInputs.val(''); }); $('#previousscore').live('pageshow',function(event, ui) { // refresh all elements var allInputs = $(':input'); allInputs.val(''); }); $('#about').live('pageshow',function(event, ui) { // refresh all elements var allInputs = $(':input'); allInputs.val(''); }); });//]]&gt; &lt;/script&gt; &lt;/head&gt; &lt;body&gt; &lt;div data-role="page" id="home" &gt; &lt;div data-role="content" name="contentlogin"&gt; &lt;div data-role="header" data-icon="bars" data-theme="b" class="ui-header ui-bar-b" role="banner"&gt; &lt;h1 class="ui-title" role="heading" aria-level="1"&gt;Home&lt;/h1&gt; &lt;/div&gt; &lt;a href="#newgame" data-role="button" id="login"&gt;New Game&lt;/a&gt; &lt;a href="#viewscore" data-role="button"&gt;View Score&lt;/a&gt; &lt;/div&gt; &lt;/div&gt; &lt;div data-role="page" id="newgame" &gt; &lt;div data-role="content"&gt; &lt;div data-role="header" data-icon="bars" data-theme="b" class="ui-header ui-bar-b" role="banner"&gt; &lt;h1 class="ui-title" role="heading" aria-level="1"&gt;New Game&lt;/h1&gt; &lt;/div&gt; &lt;div data-role="fieldcontain"&gt; &lt;label for="textarea2"&gt; Golf Club &lt;/label&gt; &lt;textarea name="" id="textarea2" placeholder="Golf Club"&gt;&lt;/textarea&gt; &lt;/div&gt; &lt;div data-role="fieldcontain"&gt; &lt;label for="textarea1"&gt; Golf Course &lt;/label&gt; &lt;textarea name="" id="textarea1" placeholder="Golf Course"&gt;&lt;/textarea&gt; &lt;/div&gt; &lt;div data-role="fieldcontain"&gt; &lt;label for="selectmenu1"&gt; Number of Players &lt;/label&gt; &lt;select id="selectmenu1" name=""&gt; &lt;option value="1"&gt; 1 &lt;/option&gt; &lt;option value="2"&gt; 2 &lt;/option&gt; &lt;option value="3"&gt; 3 &lt;/option&gt; &lt;option value="4"&gt; 4 &lt;/option&gt; &lt;/select&gt; &lt;/div&gt; &lt;div data-role="fieldcontain"&gt; &lt;label for="selectmenu2"&gt; Number of Holes &lt;/label&gt; &lt;select id="selectmenu2" name=""&gt; &lt;option value="9"&gt; 9 &lt;/option&gt; &lt;option value="18"&gt; 18 &lt;/option&gt; &lt;option value="27"&gt; 27 &lt;/option&gt; &lt;option value="36"&gt; 36 &lt;/option&gt; &lt;option value="45"&gt; 45 &lt;/option&gt; &lt;option value="54"&gt; 54 &lt;/option&gt; &lt;/select&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;div data-role="page" id="viewscore" &gt; &lt;div data-role="content" name="contentlogin"&gt; &lt;div data-role="header" data-icon="bars" data-theme="b" class="ui-header ui-bar-b" role="banner"&gt; &lt;h1 class="ui-title" role="heading" aria-level="1"&gt;View Score&lt;/h1&gt; &lt;/div&gt; &lt;a href="#currentscore" data-role="button"&gt;Current&lt;/a&gt; &lt;a href="#previousscore" data-role="button"&gt;Previous&lt;/a&gt; &lt;/div&gt; &lt;/div&gt; &lt;div data-role="page" id="currentscore" &gt; &lt;div data-role="content" name="contentlogin"&gt; &lt;div data-role="header" data-icon="bars" data-theme="b" class="ui-header ui-bar-b" role="banner"&gt; &lt;h1 class="ui-title" role="heading" aria-level="1"&gt;Current Score&lt;/h1&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;div data-role="page" id="previousscore" &gt; &lt;div data-role="content" name="contentlogin"&gt; &lt;div data-role="header" data-icon="bars" data-theme="b" class="ui-header ui-bar-b" role="banner"&gt; &lt;h1 class="ui-title" role="heading" aria-level="1"&gt;Previous Score&lt;/h1&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;div data-role="page" id="about" &gt; &lt;div data-role="content" name="contentlogin"&gt; &lt;div data-role="header" data-icon="bars" data-theme="b" class="ui-header ui-bar-b" role="banner"&gt; &lt;h1 class="ui-title" role="heading" aria-level="1"&gt;About&lt;/h1&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;div data-theme="a" data-role="footer" data-position="fixed"&gt; &lt;h3&gt; Footer &lt;/h3&gt; &lt;a data-role="button" href="#about" class="ui-btn-left"&gt; About &lt;/a&gt; &lt;a data-role="button" href="#home" class="ui-btn-right"&gt; Home &lt;/a&gt; &lt;/div&gt; &lt;/body&gt; &lt;/html&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload