Ohm-Management - Projektarbeit B-ME
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

index.html 6.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <!-- NOTE: Meta Tags -->
  5. <meta charset="utf-8">
  6. <meta name="description" content="Ohm management app">
  7. <meta name="keywords" content="">
  8. <meta name="author" content="">
  9. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  10. <<<<<<< HEAD
  11. <!--for demonstration:-->
  12. <!-- <meta http-equiv="refresh" content="10">
  13. =======
  14. <!-- <meta http-equiv="refresh" content="30"> -->
  15. <!-- NOTE: Define Theme Color -->
  16. <!-- Chrome, Firefox OS and Opera -->
  17. <meta name="theme-color" content="#0046a0">
  18. <!-- NOTE: Icon for tab recognition -->
  19. <!-- highest resolution for Chrome & Opera -->
  20. <link rel="icon" sizes="192x192" href="favicon.ico">
  21. <!-- icons for Safari -> iOS Icons -->
  22. <!-- icons for IE & Windows phone -->
  23. <meta name="msapplication-square70x70logo" content="icon_smalltile.png">
  24. <meta name="msapplication-square150x150logo" content="icon_mediumtile.png">
  25. <meta name="msapplication-square310x310logo" content="icon_largetile.png">
  26. <meta name="msapplication-wide310x150logo" content="icon_widetile.png">
  27. >>>>>>> 7a6d46c85b54e576ce552e15a8938291ab2fd22f
  28. <!-- NOTE: iOS - Add to Homescreen -->
  29. <!-- Hide Safari UI Components -->
  30. <meta name="apple-mobile-web-app-capable" content="yes" />
  31. <!-- iOS Status bar: black or black-translucent -->
  32. <meta name="apple-mobile-web-app-status-bar-style" content="black">
  33. <!-- iOS App Name next to Icon -->
  34. <meta name="apple-mobile-web-app-title" content="OHM News">
  35. <!-- Icon: No transparency allowed -->
  36. <link rel="apple-touch-icon" href="img/launcher/ios_launcher_app_icon_192.png"> <!-- iphone -->
  37. <link rel="apple-touch-icon" sizes="152x152" href="img/launcher/ios_launcher_app_icon_152.png"><!-- ipad -->
  38. <link rel="apple-touch-icon" sizes="180x180" href="img/launcher/ios_launcher_app_icon_180.png"><!-- iphone-retina -->
  39. <link rel="apple-touch-icon" sizes="167x167" href="img/launcher/ios_launcher_app_icon_167.png"><!-- ipad-retina -->
  40. <!-- Splash screen: If not set, will be white screen -->
  41. <link rel="apple-touch-startup-image" sizes="2048x2732" href="ios-splash/apple_splash_2048.png" /><!-- Tablet -->
  42. <link rel="apple-touch-startup-image" sizes="1668x2224"href="ios-splash/apple_splash_1668.png" /><!-- Tablet -->
  43. <link rel="apple-touch-startup-image" sizes="1536x2048" href="ios-splash/apple_splash_1536.png" /><!-- Tablet -->
  44. <link rel="apple-touch-startup-image" sizes="1125x2436" href="ios-splash/apple_splash_1125.png" /><!-- Tablet ? Phone -->
  45. <link rel="apple-touch-startup-image" sizes="1242x2208" href="ios-splash/apple_splash_1242.png" /><!-- Tablet ? Phone -->
  46. <link rel="apple-touch-startup-image" sizes="750x1334" href="ios-splash/apple_splash_750.png" /><!-- Phone -->
  47. <link rel="apple-touch-startup-image" sizes="640x1136" href="ios-splash/apple_splash_640.png" /><!-- Phone -->
  48. <!-- NOTE: CSS -->
  49. <!-- CSS_Material Design for Bootstrap fonts and icons -->
  50. <link rel="stylesheet" href="lib/bootstrap-font-and-icons.css">
  51. <!-- CSS_Material Design for Bootstrap minified CSS -->
  52. <link rel="stylesheet" href="lib/bootstrap-material-design.min.css">
  53. <!-- CSS_Custom Design -->
  54. <link rel="stylesheet" type="text/css" href="style/style.css">
  55. <!-- NOTE: Call manifest.json -->
  56. <link rel="manifest" href="manifest.json">
  57. <!-- NOTE: Load JQuery, Vue.js, VueRouter -->
  58. <script src=lib/jquery-3.3.1.min.js></script>
  59. <script src=lib/vue.js></script>
  60. <script src=lib/vue-router.js></script>
  61. <!-- NOTE: JavaScript Libs & Files -->
  62. <script src="routes/home.js"></script>
  63. <script src="routes/files.js"></script>
  64. <script src="routes/createMessage.js"></script>
  65. <script src="routes/bookmark.js"></script>
  66. <script src="routes/profil.js"></script>
  67. <script src="routes/msgCard.js"></script>
  68. <script src="routes/messageData.js"></script>
  69. <script src="routes/profilCard.js"></script>
  70. <script src="routes/profilData.js"></script>
  71. <script src="routes/login.js"></script>
  72. <title>OHM News</title>
  73. </head>
  74. <body>
  75. <div id="api">
  76. <div class="om-header-container">
  77. <div class="om-header">
  78. <a class="logo-img" href="index.html"><img src="img/app_icon.png" width=45px height=45px></a>
  79. <button v-on:click="showLoginModal=true">Login</button>
  80. <form class="om-searchbar">
  81. <input type="search" placeholder="Search...">
  82. </form>
  83. </div>
  84. </div>
  85. <login-panel v-if="showLoginModal" @clicked="onClickChild" ></login-panel>
  86. <div class="om-content">
  87. <div id=xxx></div>
  88. <router-view></router-view>
  89. </div>
  90. <nav class="nav nav-tabs nav-justified om-nav" v-if="$route.path !=='/createMessage' ">
  91. <router-link to="/home" class="nav-item nav-link"><i class="material-icons">home</i></router-link>
  92. <router-link to="/files" class="nav-item nav-link"><i class="material-icons">language</i></router-link>
  93. <router-link to="/createMessage" class="nav-item nav-link outlined"><i class="material-icons">add_circle</i></router-link>
  94. <router-link to="/bookmark" class="nav-item nav-link"><i class="material-icons">bookmark</i></router-link>
  95. <router-link to="/profil" class="nav-item nav-link"><i class="material-icons">person</i></router-link>
  96. </nav>
  97. </div>
  98. <script>
  99. const routes = [
  100. { path: "/", component: HomeRouter },
  101. { path: "/home", component: HomeRouter },
  102. { path: "/files", component: FileRouter },
  103. { path: "/createMessage", component: CreateMsgRouter },
  104. { path: "/bookmark", component: BookmarkRouter },
  105. { path: "/profil", component: ProfilRouter },
  106. ];
  107. const router = new VueRouter({
  108. routes
  109. });
  110. var app = new Vue({
  111. router,
  112. el: '#api',
  113. data: {
  114. showLoginModal: false,
  115. },
  116. methods: {
  117. onClickChild (value) {
  118. this.showLoginModal= value;
  119. },
  120. }
  121. });
  122. </script>
  123. <!-- CDN_Vue.js minified lib -->
  124. <!-- <script src="https://cdn.jsdelivr.net/npm/vue@2.5.17/dist/vue.min.js"></script> -->
  125. <!-- CDN_jQuery minified lib -->
  126. <!--<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>-->
  127. <!-- Load Popper.js -->
  128. <script src="lib/popper-1.12.6.js"></script>
  129. <!-- Load Bootstrap.js -->
  130. <script src="lib/bootstrap-material-design.js"></script>
  131. <!-- NOTE: Call main.js -->
  132. <script src="main.js"></script>
  133. </body>
  134. </html>