|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155 |
- <!DOCTYPE html>
- <html lang="en">
-
- <head>
- <!-- NOTE: Meta Tags -->
- <meta charset="utf-8">
- <meta name="description" content="Ohm management app">
- <meta name="keywords" content="">
- <meta name="author" content="">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <!-- <meta http-equiv="refresh" content="30"> -->
-
- <!-- NOTE: iOS - Add to Homescreen -->
- <!-- Icon: No transparency allowed -->
- <link rel="apple-touch-icon" href="img/ios-icon/th_ohmicon_192x192.png"> <!-- iphone -->
- <link rel="apple-touch-icon" sizes="152x152" href="img/ios-icon/th_ohmicon_152x152.png"><!-- ipad -->
- <link rel="apple-touch-icon" sizes="180x180" href="img/ios-icon/th_ohmicon_180x180.png"><!-- iphone-retina -->
- <link rel="apple-touch-icon" sizes="167x167" href="img/ios-icon/th_ohmicon_167x167.png"><!-- ipad-retina -->
- <!-- Splash screen: If not set, will be white screen -->
- <meta name="apple-mobile-web-app-capable" content="yes" />
- <link rel="apple-touch-startup-image" sizes="2048x2732" href="/ios-splash/apple_splash_2048.png" /><!-- Tablet -->
- <link rel="apple-touch-startup-image" sizes="1668x2224"href="/ios-splash/apple_splash_1668.png" /><!-- Tablet -->
- <link rel="apple-touch-startup-image" sizes="1536x2048" href="/ios-splash/apple_splash_1536.png" /><!-- Tablet -->
- <link rel="apple-touch-startup-image" sizes="1125x2436" href="/ios-splash/apple_splash_1125.png" /><!-- Tablet ? Phone -->
- <link rel="apple-touch-startup-image" sizes="1242x2208" href="/ios-splash/apple_splash_1242.png" /><!-- Tablet ? Phone -->
- <link rel="apple-touch-startup-image" sizes="750x1334" href="/ios-splash/apple_splash_750.png" /><!-- Phone -->
- <link rel="apple-touch-startup-image" sizes="640x1136" href="/ios-splash/apple_splash_640.png" /><!-- Phone -->
-
- <!-- NOTE: CSS -->
- <!-- CSS_Material Design for Bootstrap fonts and icons -->
- <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700|Material+Icons">
- <!-- CSS_Material Design for Bootstrap minified CSS -->
- <link rel="stylesheet" href="https://unpkg.com/bootstrap-material-design@4.1.1/dist/css/bootstrap-material-design.min.css" integrity="sha384-wXznGJNEXNG1NFsbm0ugrLFMQPWswR3lds2VeinahP8N0zJw9VWSopbjv2x7WCvX" crossorigin="anonymous">
- <!-- CSS_Custom Design -->
- <link rel="stylesheet" type="text/css" href="style/style.css">
-
- <!-- NOTE: Call manifest.json -->
- <link rel="manifest" href="manifest.json">
-
- <!-- NOTE: VUE.js und VueRouter -->
- <script src=lib/jquery-3.3.1.min.js></script>
- <script src=lib/vue.js></script>
- <script src=lib/vue-router.js></script>
-
- <!-- NOTE: JavaScript Libs & Files -->
- <script src="home.js"></script>
- <script src="files.js"></script>
- <script src="createMessage.js"></script>
- <script src="bookmark.js"></script>
- <script src="profil.js"></script>
- <script src="msgCard.js"></script>
- <script src="messageData.js"></script>
- <script src="profilCard.js"></script>
- <script src="profilData.js"></script>
-
- <title>OMApp</title>
- </head>
-
- <body>
- <div id="api">
- <div class="om-header-container">
- <div class="om-header">
- <a href="index.html"><img src="img/th_nbg_ohmicon_amp.png" width=55px height=55px></a>
- <form class="om-searchbar">
- <input type="search" placeholder="Search...">
- </form>
- </div>
- </div>
-
- <div class="om-content">
- <div id=xxx></div>
- <router-view></router-view>
- </div>
-
- <nav class="nav nav-tabs nav-justified om-nav" v-if="$route.path !=='/createMessage' ">
- <router-link to="/home" class="nav-item nav-link"><i class="material-icons">home</i></router-link>
- <router-link to="/files" class="nav-item nav-link"><i class="material-icons">language</i></router-link>
- <router-link to="/createMessage" class="nav-item nav-link outlined"><i class="material-icons">add_circle</i></router-link>
- <router-link to="/bookmark" class="nav-item nav-link"><i class="material-icons">bookmark</i></router-link>
- <router-link to="/profil" class="nav-item nav-link"><i class="material-icons">person</i></router-link>
- </nav>
-
- <!--test to put information into db by ajax-->
- <div class="container">
- <div class="col-sm-4">
- <h3>Ajax Test</h3>
- <div>
- <form id="messageForm">
- <div class="form-group">
- <label for="id">Id:</label>
- <input type="text" class="form-control" id="id" placeholder="Enter Id"/>
- </div>
- <div class="form-group">
- <label for="message">Message:</label>
- <input type="text" class="form-control" id="message" placeholder="Enter Message"/>
- </div>
- <div id="res">
- </div>
- <button type="submit" class="btn btn-default" @click.prevent=testform>Submit</button>
- </form>
- </div>
- </div>
- </div>
- </div>
-
- <script>
-
- const routes = [
- { path: "/", component: HomeRouter },
- { path: "/home", component: HomeRouter },
- { path: "/files", component: FileRouter },
- { path: "/createMessage", component: CreateMsgRouter },
- { path: "/bookmark", component: BookmarkRouter },
- { path: "/profil", component: ProfilRouter },
- ];
- const router = new VueRouter({
- routes
- });
- var app = new Vue({
- router,
- el: '#api',
- methods: {
- testform: function() {
- var id=$("#id").val();
- var message=$("#message").val();
- console.log ("test "+id+" "+message);
- $.ajax ({ url: "/api/test/"+id, data: {msg: message}, method: "GET" }) .done (have_result) .fail (have_error);
- function have_result (res) {
- console.log (res);
- $("#res").text (res[0].message);
- }
- function have_error (err) {
- console.log ("error:");
- console.log (err);
- }
- },
- },
- });
-
- </script>
-
- <!-- CDN_Vue.js minified lib -->
- <!-- <script src="https://cdn.jsdelivr.net/npm/vue@2.5.17/dist/vue.min.js"></script> -->
- <!-- CDN_jQuery minified lib -->
- <!--<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>-->
- <!-- CDN_Popper.js lib -->
- <script src="https://unpkg.com/popper.js@1.12.6/dist/umd/popper.js" integrity="sha384-fA23ZRQ3G/J53mElWqVJEGJzU0sTs+SvzG8fXVWP+kJQ1lwFAOkcUOysnlKJC33U" crossorigin="anonymous"></script>
- <!-- CDN_Bootstrap JS lib -->
- <script src="https://unpkg.com/bootstrap-material-design@4.1.1/dist/js/bootstrap-material-design.js" integrity="sha384-CauSuKpEqAFajSpkdjv3z9t8E7RlpJ1UP0lKM/+NdtSarroVKu069AlsRPKkFBz9" crossorigin="anonymous"></script>
- <!-- NOTE: Call main.js -->
- <script src="main.js"></script>
-
- </body>
-
- </html>
|