Skip to content

Commit 66524c3

Browse files
save file
1 parent 836ad31 commit 66524c3

1 file changed

Lines changed: 36 additions & 0 deletions

File tree

html/chat-room/html/chat-room-hdr/chat-room-hdr.html

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,17 @@
88

99
#hdr
1010
{}
11+
#title
12+
{text-align:center;font-size:20px;font-weight:bold;color:gray;text-align:center;padding:20px}
1113

1214
</style>
1315

1416

1517
<section id=hdr>
18+
19+
<div id=title>
20+
</div>
21+
1622
</section>
1723

1824

@@ -37,17 +43,47 @@
3743
}//initmod
3844

3945

46+
//:
47+
48+
49+
var ui = {};
50+
51+
52+
//:
53+
54+
4055
obj.init = async function(){
4156
debug=eval(debug.mod);
4257
debug('init');
4358
}//init
4459

4560

61+
//:
62+
63+
4664
obj.initdom = async function(){
4765
debug('initdom');
66+
shadow = host.shadowRoot;
67+
68+
ui.title = $(shadow,'#title');
69+
70+
71+
4872
}//initdom
4973

5074

75+
//:
76+
77+
78+
obj.title = function(title){
79+
80+
$(ui.title).textContent = title;
81+
82+
}//title
83+
84+
85+
86+
5187
return obj;
5288

5389
//chat-room-hdr

0 commit comments

Comments
 (0)