150 lines
6.4 KiB
HTML
150 lines
6.4 KiB
HTML
<!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>
|
|
|
|
<script type = "text/javascript" language = "javascript">
|
|
|
|
function get_insert_message (id) {
|
|
$.get (id+".json"
|
|
) .done (function (msg) {
|
|
// _messages[id] = msg;
|
|
Vue.set (_messages, id, msg);
|
|
}) .fail (function (e,f,g) {
|
|
console.log ("cannot load "+id+".json: "+e+f+g);
|
|
})
|
|
}
|
|
$(document).ready(function() {
|
|
console.log("egal");
|
|
$.get('list.json'
|
|
) .done (function (jd) {
|
|
// _messagelist = jd;
|
|
_messagelist.splice (0, _messagelist.length);
|
|
_messagelist.push.apply (_messagelist, jd);
|
|
console.log("egal2");
|
|
//$('#xxx').text(jd[0]);
|
|
for (var e in jd) {
|
|
if (! _messages[jd[e]]) {
|
|
get_insert_message (jd[e]);
|
|
}
|
|
}
|
|
}) .fail (function(e,f,g) {
|
|
console.log("egal3: "+e+f+g );
|
|
});
|
|
});
|
|
</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">folder</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>
|
|
</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'
|
|
});
|
|
|
|
</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 -->
|
|
<xxxscript src="main.js"></script>
|
|
|
|
</body>
|
|
|
|
</html>
|