Clean up empty JS-Files and add CSS-link

This commit is contained in:
Erik Römmelt 2018-11-21 15:54:09 +01:00
parent 7043e5b2ed
commit bdf4157b08
9 changed files with 72 additions and 78 deletions

View File

View File

View File

View File

@ -10,25 +10,23 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- <meta http-equiv="refresh" content="30"> --
<!-- TODO: vue routes-->
<script src="home.js"></script>
<script src="folder.js"></script>
<script src="bookmark.js"></script>
<script src="profil.js"></script>
<!-- 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">
<title>oma</title>
<!-- CSS_Custom Design -->
<link rel="stylesheet" type="text/css" href="style.css">
<title>OMApp</title>
</head>
<body>
<div class="om-header-container">
<div class="om-header">
<img src="https://www.chaac.tf.fau.de/files/2018/06/csm_th_nuernberg_ohmicon_amp_0b08e6a9c0.png" width=55px height=55px>
<!-- <img src="https://www.chaac.tf.fau.de/files/2018/06/csm_th_nuernberg_ohmicon_amp_0b08e6a9c0.png" width=55px height=55px> -->
<img src="th_nbg_ohmicon_amp.png" width=55px height=55px>
<form class="om-searchbar">
<input type="search" placeholder="Search...">
</form>

View File

@ -29,6 +29,7 @@ $(document).ready(function() {
});
*/
/*
// NOTE: Define routes
const routes = [{
path: "/home",
@ -55,7 +56,6 @@ const routes = [{
component: RouterEntry
},
];
/*
const router = new VueRouter({
routes
});

View File

@ -6,23 +6,21 @@
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!--vue:-->
<script src=lib/vue.js> </script> <script src=lib/vue-router.js> </script> <script src=lib/jquery-3.3.1.min.js> </script> <link rel="stylesheet" type="text/css" href="style.css">
<link rel="stylesheet" type="text/css" href="message.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">
<!-- Material Design for Bootstrap 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">
<link rel="stylesheet" type="text/css" href="style.css">
<title>oma</title>
</head>
<body>
<div class="om-header-container ">
<div class="om-header">
<img src="https://www.chaac.tf.fau.de/files/2018/06/csm_th_nuernberg_ohmicon_amp_0b08e6a9c0.png" width=55px height=55px>
<img src="th_nbg_ohmicon_amp.png" width=55px height=55px>
<form class="om-searchbar">
<input type="search" placeholder="Search...">
</form>

View File

View File

@ -5,13 +5,10 @@ const staticCacheName = 'omapp-v1.0.0';
const filesToCache = [
'/',
'/index.html',
'/message.html',
'/style.css',
'/main.js',
'/favicon.ico',
'/lib/',
'/lib/jquery-3.3.1.min.js',
'/lib/vue.js',
'/lib/vue-router.js'
'/favicon.ico'
];
// NOTE: Registration done in main.js
@ -20,9 +17,10 @@ const filesToCache = [
self.addEventListener('install', function (event) {
console.log('Service worker installing...');
event.waitUntil(
console.log('Trying to install service worker and static cache files.'); caches.open(staticCacheName).then(function (cache) {
(console.log('Trying to install service worker and static cache files.'),
caches.open(staticCacheName).then(function (cache) {
return cache.addAll(filesToCache);
})
}))
);
});

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB