Advertisement
Guest User

Untitled

a guest
Oct 1st, 2014
181
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.25 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html xmlns="http://www.w3.org/1999/xhtml"
  3. xmlns:c="http://java.sun.com/jsp/jstl/core"
  4. xmlns:f="http://java.sun.com/jsf/core"
  5. xmlns:h="http://java.sun.com/jsf/html"
  6. xmlns:ui="http://java.sun.com/jsf/facelets"
  7. xmlns:sf="http://www.springframework.org/tags/faces">
  8.  
  9. <head>
  10. <!-- Ionic Stylesheet -->
  11. <link rel="stylesheet" type="text/css" href="http://code.ionicframework.com/1.0.0-beta.13/css/ionic.min.css"/>
  12. <meta charset="utf-8" />
  13. <meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no, width=device-width" />
  14. </head>
  15.  
  16. <body ng-app="starter">
  17.  
  18. <ion-tabs class="tabs-positive">
  19. <ion-tab title="Home">
  20. <ion-header-bar class="bar-positive">
  21. <h1 class="title">Home</h1>
  22. </ion-header-bar>
  23.  
  24. <ion-content>
  25. <p>Home</p>
  26. </ion-content>
  27. </ion-tab>
  28.  
  29. <ion-tab title="About">
  30. <ion-header-bar class="bar-positive">
  31. <h1 class="title">About</h1>
  32. </ion-header-bar>
  33. <ion-content>
  34. <h1>About the app</h1>
  35. </ion-content>
  36. </ion-tab>
  37.  
  38. </ion-tabs>
  39.  
  40. <!-- ionic/angular/jquery -->
  41. <script type="text/javascript" src="http://code.ionicframework.com/1.0.0-beta.13/js/ionic.bundle.min.js"></script>
  42.  
  43. <!-- Bootstraps the application -->
  44. <script type="text/javascript" src="#{request.contextPath}/mobile/js/app.js"></script>
  45. </body>
  46. </html>
  47.  
  48. angular.module('starter', ['ionic'])
  49. .run(function($ionicPlatform) {
  50. $ionicPlatform.ready(function() {
  51. // Hide the accessory bar by default (remove this to show the accessory bar above the keyboard
  52. // for form inputs)
  53. if(window.cordova && window.cordova.plugins.Keyboard) {
  54. cordova.plugins.Keyboard.hideKeyboardAccessoryBar(true);
  55. }
  56. if(window.StatusBar) {
  57. // Set the statusbar to use the default style, tweak this to
  58. // remove the status bar on iOS or change it to use white instead of dark colors.
  59. StatusBar.styleDefault();
  60. }
  61. });
  62. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement