Skip to content

Commit eb4f558

Browse files
save file
1 parent 9dc3938 commit eb4f558

File tree

1 file changed

+151
-0
lines changed

1 file changed

+151
-0
lines changed
Lines changed: 151 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,151 @@
1+
2+
3+
<libs-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='#'>
55+
code
56+
</a>
57+
</div>
58+
59+
<div class=item>
60+
<a id=list class=item-label href='#'>
61+
nodejs
62+
</a>
63+
</div>
64+
65+
<div class=item>
66+
<a id=list class=item-label href='#'>
67+
servers
68+
</a>
69+
</div>
70+
71+
<div class=spc></div>
72+
73+
<slot name=date></slot>
74+
75+
<slot name=title></slot>
76+
77+
</section>
78+
79+
</template>
80+
81+
82+
<script>
83+
84+
85+
(function libs_hdr({mod,host}){
86+
87+
var obj = {
88+
version : 'v2.0',
89+
};
90+
91+
var df=true,did='libs-hdr'
92+
;
93+
94+
95+
var $,menu
96+
;
97+
98+
obj.initmod = function(params){
99+
100+
$ = params.$;
101+
menu = params.menu;
102+
103+
}//initmod
104+
105+
106+
//:
107+
108+
109+
var top;
110+
111+
112+
obj.init = async function(){
113+
114+
/*
115+
top = mod['top-menu']
116+
117+
top.initmod({$,menu});
118+
119+
await top.init();
120+
*/
121+
122+
123+
}//init
124+
125+
126+
//:
127+
128+
129+
obj.initdom = function(rootnode){
130+
131+
var shadow = host.shadowRoot;
132+
133+
//top.initdom(shadow);
134+
135+
136+
}//initdom
137+
138+
139+
140+
return obj;
141+
142+
//libs_hdr
143+
})
144+
145+
146+
</script>
147+
148+
</libs-hdr>
149+
150+
151+

0 commit comments

Comments
 (0)