File tree Expand file tree Collapse file tree 1 file changed +62
-59
lines changed
utils/misc/html/misc-hdr/v2.0 Expand file tree Collapse file tree 1 file changed +62
-59
lines changed Original file line number Diff line number Diff line change 11
22
3- < misc-hdr style =' position:relative ' >
3+ < misc-hdr v2.0 >
44
55 < template shadowrootmode =open >
66
77 < style >
88
9+ : host
10+ {position: relative}
11+
912 section
1013 {margin: 0;box- sizing: bor der- box;dis play: flex;align- items: center;gap: 10px;
1114 padding- botto m: 20px;bor der- botto m: 1px solid lightgray;
1215 }
13-
16+
1417 .icon {
1518 cursor : pointer;
1619 border-radius : 3px ;
3033 padding : 5px 7px ;
3134 }
3235
33- .item-label {
34- }
35-
36- ::slotted (.title ) {
37- text-align : center;
38- position : absolute;
39- left : 0 ;
40- right : 0 ;
41- top : 0px ;
42- z-index : -1 ;
43- margin : 0 auto;
44- }
45-
46-
47- .date {
48- position : absolute;
49- top : 5px ;
50- right : 5px ;
51- }
52-
53- a {
54- color : blue;
55- }
56- a : visited {
57- color : blue;
58- }
59-
60-
36+ .item-label
37+ {}
38+
39+ ::slotted ([slot = title ])
40+ {text-align : center;position : absolute;left : 0 ;right : 0 ;top : 0px ;z-index : -1 ;margin : 0 auto}
41+
42+ ::slotted ([slot = version ])
43+ {font-weight : bold;color : blue}
44+
45+ .date
46+ {}
47+
48+ .spc
49+ {flex : 1 }
50+
51+ a
52+ {color : blue}
53+ a : visited
54+ {color : blue}
55+
56+
6157 </ style >
6258
6359 < section >
64-
60+
61+ < slot name =title > </ slot >
62+
63+
6564 <!--
6665 <img id=help class=icon style='padding:2px' src='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAAAAXNSR0IArs4c6QAABANJREFUSEvNl2tsVEUUx39n224pEVNsTcGqAYM1gYYP0mCUaILGLqVptzVGKZCArxIU2VYTYpQapU2Mj9jWR9H6wUesUdcGWoRSJIQYjUhETUkkRUVIoGztLqB9bOm2OzL7urtst3eXhsT77c495/+bOXPmzLlC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ThrBZDHhJdXVGTn/WF4KY5VFgrwtQtCOECmhCtELt8OR5Hz7S2qpTIfDENfQafr1r5jvJrNwsMgGAonVgzsimaOik4LBYaM+bzRJuCrgbxBHe08vt/h+/MIlmfzV+2v4DHQu0lKRbJa4AAAAASUVORK5CYII='>
6766 -->
68-
67+
68+
6969 < div class =item >
70-
70+
7171 <!--
7272 <top-menu component=grp v2.0></top-menu>
7373 -->
7474
7575 < a id =home class =item-label href ='/ '>
7676 home
7777 </ a >
78-
78+
7979 </ div >
80-
80+
8181 < div class =item >
82-
82+
8383 < a id =home class =item-label href ='/utils/misc/index.html '>
8484 misc
8585 </ a >
86-
86+
8787 </ div >
88-
89-
90- < slot > </ slot >
91-
92-
88+
89+
90+ < div class =spc > </ div >
91+
92+
93+ < slot name =version > </ slot >
94+
95+
9396 < div class =date >
9497 < slot name =date > </ slot >
9598 </ div >
96-
97-
99+
100+
98101 </ section >
99102
100103 </ template >
101104
102105 < script >
103106
104107( function misc_hdr ( { mod, dom, host} ) {
105-
108+
106109 var obj = {
107110 version : 'v2.0' ,
108111 } ;
109112
110113 var df = true
111114 ;
112-
115+
113116 var ext , $ , menu
114117 ;
115-
118+
116119 obj . initmod = function ( params ) {
117-
120+
118121 ext = params . ext ;
119122 $ = params . $ ;
120123 menu = params . menu ;
121124
122125 } //initmod
123-
124126
125- //:
126-
127+
128+ //:
129+
127130 var top ;
128131
129132 obj . init = async function ( ) {
133136 //top.initmod({$,menu});
134137
135138 //await top.init();
136-
139+
137140
138141 } //init
139-
140-
142+
143+
141144 //:
142145
143146
144147 obj . initdom = function ( ) {
145-
148+
146149 //var root = $.$(rootnode,'misc-hdr');
147150 var shadow = host . shadowRoot ;
148151
149152 //top.initdom(shadow);
150153
151154
152155 } //initdom
153-
154-
155-
156+
157+
158+
156159 return obj ;
157160
158161} ) //misc-hdr
159-
162+
160163 </ script >
161164
162165</ misc-hdr >
You can’t perform that action at this time.
0 commit comments