Skip to content

Commit f5cff09

Browse files
save file
1 parent 17f14a8 commit f5cff09

File tree

1 file changed

+155
-0
lines changed

1 file changed

+155
-0
lines changed
Lines changed: 155 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,155 @@
1+
2+
3+
<github-hdr>
4+
5+
<template shadowrootmode=open>
6+
7+
<style>
8+
9+
section {
10+
margin : 0;
11+
box-sizing : border-box;
12+
display : flex;
13+
align-items : center;
14+
gap : 10px;
15+
}
16+
17+
.icon {
18+
cursor : pointer;
19+
border-radius : 3px;
20+
border : 1px solid gray;
21+
box-sizing : border-box;
22+
width : 38px;
23+
height : 38px;
24+
}
25+
26+
.item {
27+
display : inline-flex;
28+
align-items : center;
29+
text-align : center;
30+
background : buttonface;
31+
border-radius : 3px;
32+
border : 1px solid lightgray;
33+
padding : 5px 7px;
34+
}
35+
36+
.item-label {
37+
}
38+
39+
::slotted(.title) {
40+
text-align : center;
41+
position : absolute;
42+
left : 0;
43+
right : 0;
44+
top : 0px;
45+
z-index : -1;
46+
margin : 0 auto;
47+
}
48+
49+
50+
.date {
51+
position : absolute;
52+
top : 5px;
53+
right : 5px;
54+
}
55+
56+
a {
57+
color : blue;
58+
}
59+
a:visited {
60+
color : blue;
61+
}
62+
63+
64+
</style>
65+
66+
<section>
67+
68+
<img id=help class=icon style='padding:2px' src='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAAAAXNSR0IArs4c6QAABANJREFUSEvNl2tsVEUUx39n224pEVNsTcGqAYM1gYYP0mCUaILGLqVptzVGKZCArxIU2VYTYpQapU2Mj9jWR9H6wUesUdcGWoRSJIQYjUhETUkkRUVIoGztLqB9bOm2OzL7urtst3eXhsT77c495/+bOXPmzLlCEk9JydOZKsNi8ws2QYqAW4DskOsF4IRC/WRRdIvP393V9fZFM1mZyqC0dONsX8aMZ0SpjUCOmVjou0eJbM/wjb65e/f284l8YsCqbNN8JK0Ii5JeJXN2IXVjkJskMMbMCu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Qu0lKRbJa4AAAAASUVORK5CYII='>
69+
70+
<div class=item>
71+
72+
<top-menu component=grp v2.0></top-menu>
73+
74+
<a id=home class=item-label href='/'>
75+
home
76+
</a>
77+
78+
</div>
79+
80+
<slot></slot>
81+
82+
<div class=date>
83+
<slot name=date></slot>
84+
</div>
85+
86+
</section>
87+
88+
</template>
89+
90+
91+
<script>
92+
93+
94+
(function github_hdr({mod,dom,host}){
95+
96+
var obj = {
97+
version : 'v2.0',
98+
};
99+
100+
var df=true
101+
;
102+
103+
104+
var $,menu
105+
;
106+
107+
obj.initmod = function(params){
108+
109+
$ = params.$;
110+
menu = params.menu;
111+
112+
}//initmod
113+
114+
115+
//:
116+
117+
118+
var top;
119+
120+
121+
obj.init = async function(){
122+
123+
top = mod['top-menu']
124+
125+
top.initmod({$,menu});
126+
127+
top.init();
128+
129+
130+
}//init
131+
132+
133+
//:
134+
135+
136+
obj.initdom = function(rootnode){
137+
138+
var shadow = host.shadowRoot;
139+
140+
top.initdom(shadow);
141+
142+
143+
}//initdom
144+
145+
146+
147+
return obj;
148+
149+
})//github_hdr
150+
151+
152+
</script>
153+
154+
</github-hdr>
155+

0 commit comments

Comments
 (0)