Skip to content

Commit 79efb11

Browse files
save file
1 parent beba1f7 commit 79efb11

File tree

1 file changed

+145
-0
lines changed

1 file changed

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

0 commit comments

Comments
 (0)