Skip to content

Commit 433a1fa

Browse files
Create webrtc-hdr-v2.0.html
1 parent e709c46 commit 433a1fa

File tree

1 file changed

+136
-0
lines changed

1 file changed

+136
-0
lines changed
Lines changed: 136 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,136 @@
1+
2+
3+
<video-hdr>
4+
5+
<template shadowrootmode=open>
6+
7+
<style>
8+
9+
section
10+
{margin:0;box-sizing:border-box;display:flex;align-items:center;
11+
gap:10px;
12+
}
13+
14+
.icon
15+
{cursor:pointer;border-radius:3px;border:1px solid gray;box-sizing:border-box;
16+
width:38px;height:38px;
17+
}
18+
19+
.item
20+
{display:inline-flex;align-items:center;text-align:center;background:buttonface;
21+
border-radius:3px;border:1px solid lightgray;padding:5px 7px;
22+
}
23+
24+
.item-label
25+
{}
26+
27+
::slotted(.title)
28+
{text-align:center;position:absolute;left:0;right:0;top:0px;z-index:-1;margin:0 auto;
29+
}
30+
31+
32+
.date
33+
{position:absolute;top:20px;right:5px;}
34+
35+
a
36+
{color:blue;}
37+
a:visited
38+
{color:blue;}
39+
40+
::slotted(.visually-hidden)
41+
{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);border:0}
42+
43+
44+
</style>
45+
46+
<section>
47+
48+
<div class=item>
49+
50+
<a id=home class=item-label href='/'>
51+
home
52+
</a>
53+
54+
<top-menu component=grp v2.0></top-menu>
55+
56+
</div>
57+
58+
<slot></slot>
59+
<slot name=seo-hdr class=visually-hidden></slot>
60+
61+
<div class=date>
62+
<slot name=date></slot>
63+
</div>
64+
65+
</section>
66+
67+
</template>
68+
69+
70+
<script id=hdr>
71+
72+
(function video_hdr({mod,root,node}){
73+
74+
var obj = {
75+
version : 'v2.0',
76+
};
77+
78+
79+
var df=true,did='video-hdr'
80+
;
81+
82+
var ext,$,menu
83+
;
84+
85+
obj.initmod = function(params){
86+
87+
ext = params.ext;
88+
$ = params.$;
89+
menu = params.menu;
90+
91+
}//initmod
92+
93+
94+
//:
95+
96+
var top;
97+
98+
99+
obj.init = function(){
100+
101+
top = mod['top-menu'];
102+
103+
top.initmod({ext,$,menu});
104+
105+
top.init();
106+
107+
108+
}//init
109+
110+
111+
//:
112+
113+
114+
obj.initdom = function(rootnode){
115+
116+
var root = $.$(rootnode,'video-hdr');
117+
var shadow = root.shadowRoot;
118+
119+
top.initdom(shadow);
120+
121+
122+
}//initdom
123+
124+
125+
//:
126+
127+
128+
129+
return obj;
130+
131+
}//video-hdr
132+
133+
134+
</script>
135+
136+
</video-hdr>

0 commit comments

Comments
 (0)