Skip to content

Commit 5dbb0c1

Browse files
save file
1 parent 7fd1a8a commit 5dbb0c1

File tree

1 file changed

+21
-13
lines changed

1 file changed

+21
-13
lines changed

blog/html/blog-hdr/v2.0/blog-hdr-v2.0.html

Lines changed: 21 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -7,41 +7,41 @@
77

88
<style>
99

10-
#root
10+
#root
1111
{margin:0;box-sizing:border-box;display:flex;align-items:center;gap:10px;
1212
border-bottom:1px solid lightgray;padding-bottom:20px;position:relative;
1313
margin-bottom:20px;
1414
}
15-
15+
1616
.icon
1717
{cursor:pointer;border-radius:3px;border:1px solid gray;box-sizing:border-box;
1818
width:38px;height:38px;
1919
}
20-
20+
2121
.item
2222
{display:inline-flex;align-items:center;text-align:center;background:buttonface;
2323
border-radius:3px;border:1px solid lightgray;padding:5px 7px;
2424
}
25-
25+
2626
.item-label
2727
{}
28-
28+
2929
::slotted(.title)
3030
{text-align:center;position:absolute;left:0;right:0;top:0px;z-index:-1;margin:0 auto;color:blue;
3131
}
32-
33-
32+
33+
3434
.date
3535
{position:absolute;top:5px;right:5px;}
36-
36+
3737
a
3838
{color:blue;}
3939
a:visited
4040
{color:blue;}
41-
41+
4242
::slotted(.visually-hidden)
4343
{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);border:0}
44-
44+
4545
</style>
4646

4747

@@ -54,15 +54,17 @@
5454
<a class=item href='/blog/index.html'>
5555
blog
5656
</a>
57-
57+
5858
<slot></slot>
5959

6060
<slot name=seo-hdr class=visually-hidden></slot>
61-
61+
6262
<div class=date>
6363
<slot name=date></slot>
6464
</div>
6565

66+
<page-source component></page-source>
67+
6668
</div>
6769

6870
</template>
@@ -86,14 +88,20 @@
8688

8789

8890
obj.init = async function(){
91+
92+
await mod.auto();
93+
94+
obj.pagesource = mod['page-source'];
95+
96+
8997
}//init
9098

9199

92100
//:
93101

94102

95103
obj.initdom = function(rootnode){
96-
104+
97105
var root = rootnode;
98106

99107
}//initdom

0 commit comments

Comments
 (0)