71 lines
1.6 KiB
HTML
71 lines
1.6 KiB
HTML
<!doctype html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
<title>MinApp</title>
|
|
<style>
|
|
html,
|
|
body {
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
header {
|
|
height: 40px;
|
|
background-color: #303030;
|
|
display: flex;
|
|
flex-direction: row;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
-webkit-app-region: drag;
|
|
}
|
|
#header-left {
|
|
margin-left: 10px;
|
|
margin-right: auto;
|
|
}
|
|
#header-center {
|
|
color: #fff;
|
|
font-size: 14px;
|
|
margin-left: 10px;
|
|
}
|
|
#header-right {
|
|
margin-left: auto;
|
|
margin-right: 10px;
|
|
display: flex;
|
|
flex-direction: row;
|
|
align-items: center;
|
|
}
|
|
button {
|
|
background: none;
|
|
border: none;
|
|
color: white;
|
|
cursor: pointer;
|
|
width: 26px;
|
|
height: 26px;
|
|
display: flex;
|
|
flex-direction: row;
|
|
justify-content: center;
|
|
align-items: center;
|
|
font-size: 14px;
|
|
border-radius: 3px;
|
|
-webkit-app-region: no-drag;
|
|
}
|
|
button:hover {
|
|
background-color: #555;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<header>
|
|
<div id="header-left"></div>
|
|
<div id="header-center"></div>
|
|
<div id="header-right"></div>
|
|
</header>
|
|
<script type="module">
|
|
import { getQueryParam } from './js/utils.js'
|
|
const title = getQueryParam('title')
|
|
document.getElementById('header-center').innerHTML = title
|
|
</script>
|
|
</body>
|
|
</html>
|