Note that there are some explanatory texts on larger screens.

plurals
  1. POhow to do Page Scrolling in ipad website
    primarykey
    data
    text
    <p>I have a website for ipad i want to scroll the pages with finger as we do in iphone or ipad app but problem is that when i scroll page it does not cover full area like it scrolls upto half page </p> <pre><code> &lt;!DOCTYPE HTML&gt; &lt;html&gt; &lt;head&gt; &lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8"&gt; &lt;meta name="keywords" content="" /&gt; &lt;meta name="description" content="" /&gt; &lt;title&gt;Bovine Respiratory Disease&lt;/title&gt; &lt;script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.min.js"&gt;&lt;/script&gt; &lt;link href="css/overviewstyle.css" rel="stylesheet" /&gt; &lt;script type="text/javascript" src="js/jquery.touchSwipe-1.2.5.js"&gt;&lt;/script&gt; &lt;link rel="stylesheet" href="css/jpreloader.css" /&gt; &lt;script src="js/jpreLoader.js"&gt;&lt;/script&gt; &lt;!--fonts--&gt; &lt;style type="text/css"&gt; @font-face { font-family: 'TradeGothicBdCnOb'; src: url('trade_gothic_bold_condensed_no._20_oblique-webfont.eot'); src: url('trade_gothic_bold_condensed_no._20_oblique-webfont.eot?#iefix') format('embedded-opentype'), url('trade_gothic_bold_condensed_no._20_oblique-webfont.woff') format('woff'), url('trade_gothic_bold_condensed_no._20_oblique-webfont.ttf') format('truetype'), url('trade_gothic_bold_condensed_no._20_oblique-webfont.svg#TradeGothicBdCnOb') format('svg'); font-weight: normal; font-style: normal; } &lt;/style&gt; &lt;!--[if IE]&gt; &lt;script&gt; document.createElement('header'); document.createElement('footer'); document.createElement('section'); document.createElement('nav'); &lt;/script&gt; &lt;![endif]--&gt; &lt;/head&gt; &lt;body&gt; &lt;header&gt; &lt;ul id="banner"&gt; &lt;li&gt;&lt;a href="#overview"&gt;&lt;img src="assets/overview1.png" alt=""/&gt;&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#"&gt;&lt;img src="assets/strategy1.png" alt=""/&gt;&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#draxxinslide"&gt;&lt;img src="assets/draxxin_1.png" alt=""/&gt;&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#draxxin_slide2"&gt;&lt;img src="assets/excede1.png" alt=""/&gt;&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#"&gt;&lt;img src="assets/results1.png" alt=""/&gt;&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#"&gt;&lt;img src="assets/wrap_up_2.png" alt=""/&gt;&lt;/a&gt;&lt;/li&gt; &lt;/ul&gt; &lt;/header&gt; &lt;div id="swipeBox" ontouchstart="touchStart(event,'swipeBox');" ontouchend="touchEnd(event);" ontouchmove="touchMove(event);" ontouchcancel="touchCancel(event);"&gt; &lt;section id="container"&gt; &lt;section id="overview" class="panel"&gt; &lt;!-- Start of Page one --&gt; &lt;div id="section_one"&gt; &lt;div&gt;&lt;h1&gt;Overview&lt;/h1&gt;&lt;/div&gt; &lt;div&gt; &lt;h2&gt;Bovine Respiratory Disease (BRD)&lt;/h2&gt; &lt;/div&gt; &lt;/div&gt; &lt;div id="section_content"&gt; &lt;div class="content"&gt;&lt;img src="assets/box.png" alt=""/&gt; &lt;div class="font_class1"&gt;Economic Loss&lt;/div&gt; &lt;ul&gt; &lt;li&gt; $1 Billion each year&lt;/li&gt; &lt;li&gt; From death, reduced feed efficiency and treatment costs &lt;/li&gt; &lt;li&gt; Loss $57.48 - $239.69 per head &lt;/li&gt; &lt;/ul&gt; &lt;/div&gt; &lt;div class="content"&gt; &lt;img src="assets/box.png" alt=""/&gt; &lt;div class="font_class"&gt;Bacterial Culprits&lt;/div&gt; &lt;ul&gt; &lt;li&gt; Mannheimia haemolytica&lt;/li&gt; &lt;li&gt; Pasteurella multocida &lt;/li&gt; &lt;li&gt; Histophilus somni&lt;/li&gt; &lt;li&gt; Mycoplasma bovis&lt;/li&gt; &lt;/ul&gt; &lt;/div&gt; &lt;/div&gt; &lt;/section&gt; &lt;!-- End of Page one --&gt; &lt;section id="draxxinslide" class="panel"&gt; &lt;div id="section_two"&gt; &lt;div&gt;&lt;h1&gt;Draxxin&lt;/h1&gt;&lt;/div&gt; &lt;h2&gt;Draxxin keeps working for up to 14 days&lt;/h2&gt; &lt;/div&gt; &lt;div id="section_content_two"&gt; &lt;div class="arrow"&gt;&lt;img src="assets/arrow.png" alt=""/&gt;&lt;/div&gt; &lt;div class="paragraph"&gt;Treats four major pathogens including &lt;i&gt;Mycoplasma Bovis&lt;/i&gt;&lt;/div&gt; &lt;div class="arrow1"&gt;&lt;img src="assets/arrow.png" alt=""/&gt;&lt;/div&gt; &lt;div class="paragraph1"&gt;Decreases total number of treatments&lt;/div&gt; &lt;div class="arrow2"&gt;&lt;img src="assets/arrow.png" alt=""/&gt;&lt;/div&gt; &lt;div class="paragraph2"&gt;Reduces labor and treatment costs&lt;/div&gt; &lt;/div&gt; &lt;div id="section_card"&gt;&lt;img src="assets/card.png"/&gt;&lt;/div&gt; &lt;/section&gt; &lt;!-- &lt;div id="draxxin_slide2" class="panel"&gt; &lt;div id="section_three"&gt; &lt;h2&gt;Draxxin extends your PMIs and PTIs for a greater return on your investment...&lt;/h2&gt; &lt;/div&gt; &lt;div id="section_content_three"&gt; &lt;div class="draxxin_table_structure"&gt;&lt;img src="assets/table_structure.png" alt=""/&gt;&lt;/div&gt; &lt;div class="draxxin_table"&gt;&lt;img src="assets/draxxin_table_img_1.png" alt=" "/&gt;&lt;/div&gt; &lt;div class="draxxin_table_1"&gt;&lt;img src="assets/draxxin_table_img_2.png" alt=""/&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt;--&gt; &lt;!-- This section is for Splash Screen --&gt; &lt;div id=jSplash&gt; &lt;section class=selected&gt; &lt;h1&gt;jPreLoader&lt;/h1&gt; &lt;h2&gt;A Loading Screen to preload images &amp; content&lt;br/&gt; for website using jQuery&lt;/h2&gt; &lt;/section&gt; &lt;section&gt; &lt;p&gt;Create your own &lt;br/&gt; &lt;span style="font-size:30px"&gt;Splash Screen&lt;/span&gt;.&lt;/p&gt; &lt;/section&gt; &lt;section&gt; &lt;p&gt;Customize Progress Bar and Progress Percentage &lt;br/&gt; &lt;span style="font-size:30px"&gt;using CSS&lt;/span&gt;.&lt;/p&gt; &lt;/section&gt; &lt;section&gt; &lt;p&gt;Preload all images in &lt;br/&gt; &lt;span style="font-size:25px"&gt;&amp;lt;img&amp;gt; tag&lt;/span&gt; + &lt;span style="font-size:25px"&gt;CSS background-image&lt;/span&gt;.&lt;/p&gt; &lt;/section&gt; &lt;/div&gt; &lt;!-- End of Splash Screen --&gt; &lt;footer&gt; &lt;div class="footer_center"&gt; &lt;ul&gt; &lt;li&gt;&lt;a onClick="" href="#"&gt;&lt;img src="assets/back_light_blue_button_copy.png" alt=""/&gt;&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#"&gt;&lt;img src="assets/home_light_blue_button_copy.png" alt=""/&gt;&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#"&gt;&lt;img src="assets/forward_light_blue_button_copy.png" alt=""/&gt;&lt;/a&gt;&lt;/li&gt; &lt;/ul&gt; &lt;/div&gt; &lt;/footer&gt; &lt;/section&gt; &lt;!-- end of container div--&gt; &lt;/div&gt; &lt;script&gt; //Assign handlers to the simple direction handlers. var swipeOptions= { swipe:swipe, threshold:0, fingers:2 } $(function() { //Enable swiping... $("#panel").swipe( swipeOptions ); }); function swipe(event) { $("#panel").text("You swiped " + direction); } &lt;/script&gt; &lt;script&gt; </code></pre> <pre><code> $(document).ready(function() { var timer; //calling jPreLoader function with properties $('body').jpreLoader({ splashID: "#jSplash", splashFunction: function() { //passing Splash Screen script to jPreLoader $('#jSplash').children('section').not('.selected').hide(); $('#jSplash').hide().fadeIn(800); timer = setInterval(function() { splashRotator(); }, 3000); } }, function() { //jPreLoader callback function clearInterval(timer); $('footer').animate({"bottom":0}, 500); $('header').animate({"top":0}, 800, function() { $('#container').fadeIn(1000); }); }); }); &lt;!-- End of jPreLoader script --&gt; function splashRotator(){ var cur = $('#jSplash').children('.selected'); var next = $(cur).next(); if($(next).length != 0) { $(next).addClass('selected'); } else { $('#jSplash').children('section:first-child').addClass('selected'); next = $('#jSplash').children('section:first-child'); } $(cur).removeClass('selected').fadeOut(800, function() { $(next).fadeIn(800); }); } &lt;/script&gt; &lt;/body&gt; &lt;/html&gt; </code></pre> <p>End Of code</p> <p>Below is the script for scrolling</p> <pre><code> &lt;script type="text/javascript"&gt; $(function() { $('ul a').bind('click',function(event){ var $anchor = $(this); $('html, body').stop().animate({ scrollLeft: $($anchor.attr('href')).offset().left }, 1000); event.preventDefault(); }); }); &lt;/script&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.
    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