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