Advertisement
Guest User

help

a guest
Jan 21st, 2013
32
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5 4.76 KB | None | 0 0
  1. <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default2.aspx.cs" Inherits="jjwhitmore_coordinates.Default2" %>
  2.  
  3. <!DOCTYPE html>
  4.  
  5. <html xmlns="http://www.w3.org/1999/xhtml">
  6. <head>
  7.     <title></title>
  8.     <!-- Bootstrap -->
  9.     <link href="css/bootstrap.min.css" rel="stylesheet" media="screen" />
  10.     <link href="css/default.css" rel="stylesheet" />
  11.     <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  12.     <link href="css/bootstrap-responsive.min.css" rel="stylesheet" />
  13.  
  14.     <style type="text/css">
  15.       body {
  16.         padding-top: 60px;
  17.         padding-bottom: 40px;
  18.       }
  19.       .sidebar-nav {
  20.         padding: 9px 0;
  21.       }
  22.     </style>
  23.  
  24. </head>
  25. <body>
  26.     <div class="navbar navbar-fixed-top">
  27.       <div class="navbar-inner">
  28.         <div class="container-fluid">
  29.           <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
  30.             <span class="icon-bar"></span>
  31.             <span class="icon-bar"></span>
  32.             <span class="icon-bar"></span>
  33.           </a>
  34.           <a class="brand" href="#">asdfasdf</a>
  35.           <div class="nav-collapse collapse">
  36.             <form class="navbar-search pull-right" action="search">
  37.                 <input type="text" class="search-query span2" placeholder="Search" />
  38.             </form>
  39.           </div><!--/.nav-collapse -->
  40.         </div>
  41.       </div>
  42.     </div>
  43.  
  44.  
  45.  
  46.     <div class="container-fluid">
  47.       <div class="row-fluid pageHome">
  48.  
  49.        
  50.         <div class="span2">
  51.           <!--Sidebar content-->
  52.  
  53.             <ul class="nav nav-list bs-docs-sidenav affix">
  54.                 <li id="MenuHome" class="active"><a href="#">Home</a></li>
  55.                 <li id="MenuMotionPictures"><a href="#">Motion Pictures</a></li>
  56.                 <li id="MenuBiography"><a href="#">Biography</a></li>
  57.                 <li id="MenuContact"><a href="#">Contact</a></li>
  58.                 <li id="MenuNews"><a href="#">News</a></li>
  59.  
  60.             </ul>
  61.  
  62.            
  63.         </div>
  64.  
  65.  
  66.  
  67.         <div class="span10 hero-unit">
  68.           <p>TEXT TEXT TEXT</p>
  69.  
  70.         </div>
  71.       </div>
  72.        
  73.         <!-- PAGE -->
  74.         <div class="row-fluid">
  75.             <div class="span10 offset2 hero-unit">
  76.             <span class="label label-inverse">Body</span>
  77.             </div>
  78.         <div class="span10 hero-unit rightSide RIGHT" style="left:5000px;position:absolute;">
  79.                 <span class="label label-inverse">Right Side</span>
  80.             </div>
  81.         </div>
  82.  
  83.         <!-- PAGE -->
  84.         <div class="row-fluid">
  85.             <div class="span10 offset2 hero-unit">
  86.             <span class="label label-inverse">Body</span>
  87.             </div>
  88.         </div>
  89.  
  90.         <!-- PAGE -->
  91.         <div class="row-fluid">
  92.             <div class="span10 offset2 hero-unit">
  93.             <span class="label label-inverse">Body</span>
  94.             </div>
  95.         </div>
  96.  
  97.         <!-- PAGE -->
  98.         <div class="row-fluid">
  99.             <div class="span10 offset2 hero-unit">
  100.             <span class="label label-inverse">Body</span>
  101.             </div>
  102.         </div>        
  103.     </div>
  104.  
  105.     <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
  106.     <script src="js/bootstrap.min.js"></script>
  107.     <script src="js/jquery.scrollTo.min.js"></script>
  108.  
  109.     <script>
  110.         $(document).ready(function () {
  111.  
  112.             // Get the page size and set the page divs equal to it
  113.             var pageSize = $(window).innerHeight();
  114.  
  115.             // Make sure the page is a valid size
  116.             if (pageSize < 750){pageSize = 750;}
  117.            $('.row-fluid').height(pageSize);
  118.  
  119.  
  120.            console.log("Page Size:" + pageSize);
  121.  
  122.            
  123.  
  124.  
  125.        });
  126.  
  127.  
  128.        // Clicking on Menu Item
  129.        $('a').click(function () {
  130.            var clicked = $(this);
  131.  
  132.            switch (clicked.text()) {
  133.                case 'Home':
  134.                    console.log("1")
  135.                    moveFromFilm('.pageHome')
  136.                    break;
  137.  
  138.                case 'Motion Pictures':
  139.                    console.log("2")
  140.                    moveToFilm('.RIGHT')
  141.                    break;
  142.  
  143.                default:
  144.                    console.log("3")
  145.                    moveTo('.pageHome')
  146.                    break;
  147.            }
  148.  
  149.  
  150.  
  151.        })
  152.  
  153.        function moveToFilm(location) {
  154.            console.log("location:" + location);
  155.            $.scrollTo(location, 2000, { easing: 'swing', axis: 'yx', queue: true });
  156.        }
  157.  
  158.        function moveFromFilm(location) {
  159.            console.log("location:" + location);
  160.            $.scrollTo(location, 2000, { easing: 'swing', axis: 'xy', queue: true });
  161.        }
  162.  
  163.    </script>
  164. </body>
  165. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement