Advertisement
Guest User

rendered index.php

a guest
Sep 13th, 2014
24
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 4.07 KB | None | 0 0
  1.  
  2. <!doctype html>
  3. <!--[if lt IE 7 ]><html class="ie ie6" lang="en"> <![endif]-->
  4. <!--[if IE 7 ]><html class="ie ie7" lang="en"> <![endif]-->
  5. <!--[if IE 8 ]><html class="ie ie8" lang="en"> <![endif]-->
  6. <!--[if (gte IE 9)|!(IE)]><!--><html lang="en"> <!--<![endif]-->
  7. <head>
  8.   <meta charset="utf-8">
  9.  
  10.   <title>FFD</title>
  11.   <meta name="description" content="FFD bestillings app">
  12.   <meta name="author" content="Anders Fylling">
  13.  
  14.  
  15.     <!-- Mobile Specific Metas
  16.  ================================================== -->
  17.     <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  18.  
  19.     <!-- CSS
  20.  ================================================== -->
  21.   <link rel="stylesheet" href="css/base.css?v=1.0">
  22.   <link rel="stylesheet" href="css/skeleton.css?v=1.0">
  23.   <link rel="stylesheet" href="css/layout.css?v=1.0">
  24.  
  25.   <!-- Favicons
  26.     ================================================== -->
  27.     <link rel="shortcut icon" href="images/favicon.ico">
  28.     <link rel="apple-touch-icon" href="images/apple-touch-icon.png">
  29.     <link rel="apple-touch-icon" sizes="72x72" href="images/apple-touch-icon-72x72.png">
  30.     <link rel="apple-touch-icon" sizes="114x114" href="images/apple-touch-icon-114x114.png">
  31.    
  32.  
  33.   <!--[if lt IE 9]>
  34.  <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
  35.  <![endif]-->
  36. </head>
  37.  
  38. <body ng-app>
  39.     <nav id="topNav" class>
  40.         <h1 id="navTitle" class>FFD Bestillingsliste</h1>
  41.         <ul id="navUl">
  42.             <li class="navList"><a class="navListA" href="" title="link 1">Varer</a></li>
  43.             <li class="navList"><a class="navListA" href="" title="link 2">Handlevogn</a></li>
  44.             <li class="navList"><a class="navListA" href="" title="link 3">Historikk</a></li>
  45.             <li class="navList"><a class="navListA" href="" title="link 4">Kontakt</a></li>
  46.             <li class="navList"><a class="navListA" href="" title="link 3">Om</a></li>
  47.         </ul>
  48.     </nav>
  49.     <div id="mainContainer" class="container">
  50.        
  51.         {{1*2}}
  52.         <!-- Side menu
  53.     ================================================== -->
  54.         <aside class="four columns" id="items-category-list" ng-controller="itemsCategoryList">
  55.             <h1>side meny</h1>
  56.             {{ 1 + 2 }}
  57.         </aside>
  58.        
  59.         <!-- Main content
  60.     ================================================== -->
  61.         <div class="twelve columns nospace">
  62.        
  63.             <article id="new-items" class="row twelve columns">
  64.                 <h1>Nyheiter! {{ 2 + 2 }}</h1>
  65.             </article>
  66.            
  67.             <section class="row twelve columns">
  68.                             </section>
  69.            
  70.         </div>
  71.        
  72.     </div>
  73.  
  74.     <footer>
  75.         <p>footer</p>
  76.     </footer>
  77.    
  78.    
  79.     <script src="js/angular.min.js"></script>
  80.     <script src="js/app.js"></script>
  81.     <script src="js/controllers.js"></script>
  82.    
  83.     <script type="text/javascript">
  84.         //when scrolling passes h1#navTitle, hide #navTitle and set menu as sticky
  85.         (function stickyNavScroller(){
  86.             //static vars
  87.             var minTop = document.getElementById('navTitle').offsetHeight,
  88.                 navOffset = document.getElementById('topNav').offsetHeight,
  89.                 container = document.getElementById('mainContainer'),
  90.                 active = 0;
  91.             //function
  92.             window.onscroll = function (event) {
  93.                 var scrollTop = document.documentElement.scrollTop || document.body.scrollTop;
  94.                 if (active == 0 && minTop <= scrollTop) {
  95.                    active = 1;
  96.                     topNav.className = 'sticky';
  97.                     topNav.style.top = -minTop + 'px';
  98.                     container.style.paddingTop = navOffset + 'px';
  99.                 } else if (active == 1 && scrollTop <= minTop) {
  100.                    active = 0;
  101.                     topNav.style.top = 0;
  102.                     topNav.className = '';
  103.                     container.style.paddingTop = 0;
  104.                 }
  105.             };
  106.         })();
  107.     </script>
  108. </body>
  109. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement