|
6 | 6 |
|
7 | 7 | <style> |
8 | 8 |
|
| 9 | + :host |
| 10 | + {margin-bottom:10px} |
| 11 | + |
9 | 12 | section |
10 | | - {margin:0;box-sizing:border-box;display:flex;align-items:center; |
11 | | - gap:10px; |
12 | | - } |
| 13 | + {margin:0;box-sizing:border-box;display:flex;align-items:center;gap:10px} |
13 | 14 |
|
14 | 15 | .icon |
15 | 16 | {cursor:pointer;border-radius:3px;border:1px solid gray;box-sizing:border-box; |
|
24 | 25 | .item-label |
25 | 26 | {} |
26 | 27 |
|
27 | | - ::slotted(.title) |
28 | | - {text-align:center;position:absolute;left:0;right:0;top:0px;z-index:-1;margin:0 auto; |
29 | | - } |
| 28 | + ::slotted([slot=title]) |
| 29 | + {text-align:center;position:absolute;left:0;right:0;top:0px;z-index:-1;margin:0 auto} |
30 | 30 |
|
31 | 31 | ::slotted([slot=version]) |
32 | | - {color:green;font-weight:bold} |
| 32 | + {color:blue;font-weight:bold;margin:0 20px} |
33 | 33 |
|
34 | 34 | .date |
35 | | - {position:absolute;top:5px;right:5px;} |
| 35 | + {} |
36 | 36 |
|
37 | 37 | a |
38 | 38 | {color:blue;} |
|
50 | 50 | <section> |
51 | 51 |
|
52 | 52 | <slot name=seo-hdr class=visually-hidden></slot> |
| 53 | + <slot name=title></slot> |
53 | 54 |
|
54 | 55 | <div class=item> |
55 | 56 |
|
|
61 | 62 |
|
62 | 63 | </div> |
63 | 64 |
|
64 | | - <input value=isolate type=button> |
| 65 | + <div id=btns> |
| 66 | + </div> |
65 | 67 |
|
66 | | - <slot></slot> |
| 68 | + <div style='flex:1'></div> |
| 69 | + |
| 70 | + <page-source component></page-source> |
67 | 71 |
|
68 | 72 | <slot name=version></slot> |
69 | 73 |
|
|
107 | 111 |
|
108 | 112 | obj.init = async function(){ |
109 | 113 | debug('init',obj.version); |
110 | | - top = mod['top-menu']; |
111 | | - |
112 | | - top.initmod({ext,$,menu}); |
113 | | - |
114 | | - await top.init(); |
| 114 | + await mod.auto(); |
115 | 115 |
|
| 116 | + obj['page-source'] = mod['page-source']; |
116 | 117 |
|
117 | 118 | }//init |
118 | 119 |
|
|
124 | 125 |
|
125 | 126 | var shadow = host.shadowRoot; |
126 | 127 |
|
127 | | - top.initdom(shadow); |
128 | | - |
129 | | - $(shadow,'[value=isolate]').onclick = btn.isolate; |
130 | | - |
131 | 128 |
|
132 | 129 | }//initdom |
133 | 130 |
|
134 | 131 |
|
135 | 132 | //: |
136 | 133 |
|
137 | 134 |
|
138 | | - btn.isolate = function(){ |
139 | | - |
140 | | - var url = window.location.toString(); |
141 | | - |
142 | | - if(url.indexOf('?')!=-1){ |
143 | | - return; |
144 | | - } |
145 | | - |
146 | | - url += '?isolate'; |
147 | | - window.location = url; |
148 | | - |
149 | | - }//isolate |
150 | | - |
151 | | - |
| 135 | + |
| 136 | + |
152 | 137 | //: |
153 | 138 |
|
154 | 139 |
|
|
0 commit comments