|
10 | 10 | */ |
11 | 11 | *{box-sizing:border-box;padding:0;margin:0} |
12 | 12 | .body:not(.normal){padding:0} |
13 | | - .body.normal{background-color:inherit;position:relative} |
14 | | - .wrapper {width:100%;display:flex;height:100vh} |
| 13 | + .body.normal{position:relative} |
| 14 | + .wrapper {width:100%;display:flex;height:100vh;align-items:flex-start} |
15 | 15 | /* Main */ |
16 | 16 | /* You can resize the channel and console height here */ |
17 | 17 | main [type=channel]{max-height:70vh} |
18 | 18 | main [type=console]{max-height:30vh} |
19 | 19 | main{flex-grow:1;display:flex;flex-direction:column} |
20 | 20 | main .body{overflow-y:scroll;} |
21 | 21 | /* Input */ |
22 | | - .input{display:block;width:100%;padding:15px} |
| 22 | + .input{display:block;width:100%;padding:10px;border:1px solid #555} |
23 | 23 | /* lists for server tree and member-list */ |
24 | 24 | ul{list-style:none;padding:0;margin:0} |
25 | 25 | ul ul{padding-left:15px} |
26 | 26 | li{padding-left:15px;margin-top:4px} |
27 | 27 | .closed ul{display:none} |
28 | 28 | /* server-tree */ |
29 | | - .server-tree{width:10%} |
| 29 | + .server-tree, |
| 30 | + .member-list{width:15%;resize:horizontal;overflow:auto} |
30 | 31 | .server-tree>ul>li:before{content:"› ";display:inline-block} |
31 | 32 | .server-tree>ul>li.open:before{transform:rotate(90deg)} |
32 | 33 | /* member-list */ |
33 | | - .member-list{padding:4px;width:10%;position:relative;z-index: 1} |
| 34 | + .member-list{padding:4px;position:relative;z-index:1} |
34 | 35 | .member-list li:before {display:inline-block;content:"+";margin-left:-15px;opacity:0;margin-right:4px} |
35 | 36 | .member-list .voice:before{opacity:1} |
36 | 37 | .member-list .operator:before{content:"@";opacity:1} |
|
43 | 44 | <li class="active open"> |
44 | 45 | freenode |
45 | 46 | <ul> |
46 | | - <li class="normal">#helpdesk</li> |
47 | | - <li class="normal selected active">#superchan</li> |
| 47 | + <li>#helpdesk</li> |
| 48 | + <li class="selected">#superchan</li> |
48 | 49 | <li>#limechat</li> |
49 | | - <li class="normal newtalk">#nerds</li> |
50 | | - <li class="normal highlight">#onfire</li> |
| 50 | + <li class="newtalk">#nerds</li> |
| 51 | + <li class="highlight">#onfire</li> |
51 | 52 | </ul> |
52 | 53 | </li> |
53 | 54 | <li class="inactive closed"> |
|
68 | 69 | UnderNET |
69 | 70 | <ul> |
70 | 71 | <li>#network</li> |
71 | | - <li>#is</li> |
72 | 72 | <li>#inactive</li> |
| 73 | + <li class="selected">#selected</li> |
73 | 74 | </ul> |
74 | 75 | </li> |
75 | 76 | </ul> |
76 | 77 | </aside> |
77 | 78 | <main class="main"> |
78 | 79 | <div class="body normal" id="channel" type="channel" channelname='#limechat'> |
| 80 | + |
| 81 | + <div class="line"> </div> |
| 82 | + <div class="line" type="reply"> |
| 83 | + <span class="time">[30.07.23, 17:41:57]</span> |
| 84 | + <span class="message" type="reply">Topic: This is a super topic!</span> |
| 85 | + </div> |
| 86 | + <div class="line" type="reply"> |
| 87 | + <span class="time">[30.07.23, 17:41:57]</span> |
| 88 | + <span class="message" type="reply">pr0pz set the topic at: 1. Jul 2023 at 12:34</span> |
| 89 | + </div> |
| 90 | + <div class="line" type="reply"> |
| 91 | + <span class="time">[30.07.23, 17:41:57]</span> |
| 92 | + <span class="message" type="reply">Mode: +CDPTmnrt</span> |
| 93 | + </div> |
| 94 | + <div class="line" type="reply"> |
| 95 | + <span class="time">[30.07.23, 17:41:57]</span> |
| 96 | + <span class="message" type="reply">Created at: 1. Jan 2000 at 13:37</span> |
| 97 | + </div> |
| 98 | + <div class="line" type="system"> |
| 99 | + <span class="time">[30.07.23, 17:41:57]</span> |
| 100 | + <span class="message" type="system">You have joined the channel</span> |
| 101 | + </div> |
| 102 | + |
79 | 103 | <div class="line"> |
80 | 104 | <span class="time">[30.07.23, 17:41:57]</span> |
81 | 105 | <span class="sender" type="myself"><pr0pz></span> |
|
367 | 391 | </div> |
368 | 392 |
|
369 | 393 | <div id="console" class="body normal" type="console"> |
| 394 | + |
| 395 | + <div class="line" type="system"> |
| 396 | + <span class="time">[30.07.23, 17:41:56]</span> |
| 397 | + <span class="place"><freenode></span> |
| 398 | + <span class="message" type="system">Connecting…</span> |
| 399 | + </div> |
| 400 | + <div class="line" type="system"> |
| 401 | + <span class="time">[30.07.23, 17:41:56]</span> |
| 402 | + <span class="place"><freenode></span> |
| 403 | + <span class="message" type="system">Connected</span> |
| 404 | + </div> |
| 405 | + <div class="line" type="system"> |
| 406 | + <span class="time">[30.07.23, 17:41:56]</span> |
| 407 | + <span class="place"><freenode></span> |
| 408 | + <span class="message" type="system">Logged in</span> |
| 409 | + </div> |
| 410 | + <div class="line" type="reply"> |
| 411 | + <span class="time">[30.07.23, 17:41:56]</span> |
| 412 | + <span class="place"><freenode></span> |
| 413 | + <span class="message" type="reply">Welcome to the freenode IRC Network pr0pz!~pr0pz@host.com</span> |
| 414 | + </div> |
| 415 | + <div class="line" type="reply"> |
| 416 | + <span class="time">[30.07.23, 17:41:56]</span> |
| 417 | + <span class="place"><freenode></span> |
| 418 | + <span class="message" type="reply">Your host is *.freenode.net, running version InspIRCd-3</span> |
| 419 | + </div> |
| 420 | + <div class="line" type="reply"> |
| 421 | + <span class="time">[30.07.23, 17:41:56]</span> |
| 422 | + <span class="place"><freenode></span> |
| 423 | + <span class="message" type="reply">This server was created 09:22:41 Jun 22 2023</span> |
| 424 | + </div> |
| 425 | + <div class="line" type="reply"> |
| 426 | + <span class="time">[30.07.23, 17:41:56]</span> |
| 427 | + <span class="place"><freenode></span> |
| 428 | + <span class="message" type="reply">*.freenode.net InspIRCd-3 BDHILRSTWcdghikorswxz ABCDEFIJKLMNOPQRSTUWXYZbcdefhijklmnoprstuvwz BEFIJLWXYZbdefhjklovw</span> |
| 429 | + </div> |
| 430 | + <div class="line" type="reply"> |
| 431 | + <span class="time">[30.07.23, 17:41:56]</span> |
| 432 | + <span class="place"><freenode></span> |
| 433 | + <span class="message" type="reply">ACCEPT=30 AWAYLEN=200 BOT=B CALLERID=g CASEMAPPING=ascii CHANLIMIT=#:20 CHANMODES=IXZbew,k,BEFJLWdfjl,ACDKMNOPQRSTUcimnprstuz CHANNELLEN=64 CHANTYPES=# ELIST=CMNTU ESILENCE=CcdiNnPpTtx EXCEPTS=e are supported by this server</span> |
| 434 | + </div> |
| 435 | + <div class="line" type="reply"> |
| 436 | + <span class="time">[30.07.23, 17:41:56]</span> |
| 437 | + <span class="place"><freenode></span> |
| 438 | + <span class="message" type="reply">EXTBAN=,ACNOQRSTUacjmnpruwz HOSTLEN=64 INVEX=I KEYLEN=32 KICKLEN=255 LINELEN=512 MAXLIST=I:100,X:100,b:100,e:100,w:100 MAXTARGETS=20 MODES=20 MONITOR=30 NAMELEN=128 NAMESX NETWORK=freenode are supported by this server</span> |
| 439 | + </div> |
| 440 | + <div class="line" type="reply"> |
| 441 | + <span class="time">[30.07.23, 17:41:56]</span> |
| 442 | + <span class="place"><freenode></span> |
| 443 | + <span class="message" type="reply">NICKLEN=30 PREFIX=(Yohv)!@%+ REMOVE SAFELIST SECURELIST=60 SILENCE=32 STATUSMSG=!@%+ TOPICLEN=390 UHNAMES USERIP USERLEN=10 USERMODES=,,s,BDHILRSTWcdghikorwxz VBANLIST are supported by this server</span> |
| 444 | + </div> |
| 445 | + <div class="line" type="reply"> |
| 446 | + <span class="time">[30.07.23, 17:41:56]</span> |
| 447 | + <span class="place"><freenode></span> |
| 448 | + <span class="message" type="reply">VLIST=b WATCH=32 WHOX are supported by this server</span> |
| 449 | + </div> |
| 450 | + <div class="line" type="reply"> |
| 451 | + <span class="time">[30.07.23, 17:41:56]</span> |
| 452 | + <span class="place"><freenode></span> |
| 453 | + <span class="message" type="reply">There are 20 users and 7683 invisible on 9 servers</span> |
| 454 | + </div> |
| 455 | + <div class="line" type="reply"> |
| 456 | + <span class="time">[30.07.23, 17:41:56]</span> |
| 457 | + <span class="place"><freenode></span> |
| 458 | + <span class="message" type="reply">5 operator(s) online</span> |
| 459 | + </div> |
| 460 | + <div class="line" type="reply"> |
| 461 | + <span class="time">[30.07.23, 17:41:56]</span> |
| 462 | + <span class="place"><freenode></span> |
| 463 | + <span class="message" type="reply">11597 channels formed</span> |
| 464 | + </div> |
| 465 | + <div class="line" type="reply"> |
| 466 | + <span class="time">[30.07.23, 17:41:56]</span> |
| 467 | + <span class="place"><freenode></span> |
| 468 | + <span class="message" type="reply">I have 1758 clients and 1 servers</span> |
| 469 | + </div> |
| 470 | + <div class="line" type="reply"> |
| 471 | + <span class="time">[30.07.23, 17:41:56]</span> |
| 472 | + <span class="place"><freenode></span> |
| 473 | + <span class="message" type="reply">Current local users: 1758 Max: 2025</span> |
| 474 | + </div> |
| 475 | + <div class="line" type="reply"> |
| 476 | + <span class="time">[30.07.23, 17:41:56]</span> |
| 477 | + <span class="place"><freenode></span> |
| 478 | + <span class="message" type="reply">Current global users: 7703 Max: 8393</span> |
| 479 | + </div> |
| 480 | + <div class="line" type="reply"> |
| 481 | + <span class="time">[30.07.23, 17:41:56]</span> |
| 482 | + <span class="place"><freenode></span> |
| 483 | + <span class="message" type="reply">MOTD blocked by ZNC</span> |
| 484 | + </div> |
| 485 | + <div class="line" type="reply"> |
| 486 | + <span class="time">[30.07.23, 17:41:56]</span> |
| 487 | + <span class="place"><freenode></span> |
| 488 | + <span class="message" type="reply">pr0pz has changed mode: +Rirw</span> |
| 489 | + </div> |
| 490 | + <div class="line" type="reply"> |
| 491 | + <span class="time">[30.07.23, 17:41:56]</span> |
| 492 | + <span class="place"><freenode></span> |
| 493 | + <span class="message" type="reply">Reply(306): You have been marked as being away</span> |
| 494 | + </div> |
| 495 | + <div class="line" type="reply"> |
| 496 | + <span class="time">[30.07.23, 17:41:56]</span> |
| 497 | + <span class="place"><freenode></span> |
| 498 | + <span class="sender"><*status></span> |
| 499 | + <span class="message" type="reply">Image here your own ZNC MOTD</span> |
| 500 | + </div> |
| 501 | + <div class="line" type="reply"> |
| 502 | + <span class="time">[30.07.23, 17:41:56]</span> |
| 503 | + <span class="place"><freenode></span> |
| 504 | + <span class="message" type="reply">Reply(305): You are no longer marked as being away</span> |
| 505 | + </div> |
| 506 | + |
370 | 507 | <div class="line"> |
371 | 508 | <span class="time">[30.07.23, 17:41:57]</span> |
372 | 509 | <span class="place"><#superchan></span> |
|
696 | 833 | <span class="place"><#superchan></span> |
697 | 834 | <span class="message" type="error">Error(421): SLAP Unkown command (error)</span> |
698 | 835 | </div> |
| 836 | + |
| 837 | + <div class="line" type="invite"> |
| 838 | + <span class="time">[30.07.23, 17:44:17]</span> |
| 839 | + <span class="place"><freenode></span> |
| 840 | + <span class="message" type="invite">boole has invited you to #omegachan</span> |
| 841 | + </div> |
699 | 842 | </div> |
700 | 843 | </main> |
701 | 844 | <aside id="member-list" class="member-list"> |
|
711 | 854 | { nick: 'CosmicChampion', class: 'voice', color: 4, }, |
712 | 855 | { nick: 'CyberNinja', class: 'voice', color: 1 }, |
713 | 856 | { nick: 'DiscoUnicorn', class: 'voice', color: 7 }, |
714 | | - { nick: 'GalacticGuru', class: 'voice', color: 6, }, |
| 857 | + { nick: 'GalacticGuru', class: ['voice', 'selected'], color: 6, }, |
715 | 858 | { nick: 'NeonGhost', class: 'voice', color: 5 }, |
716 | 859 | { nick: 'PixelPirate', class: 'voice', color: 2 }, |
717 | 860 | { nick: 'JazzMaster', color: 8 }, |
|
736 | 879 | // Fill member list |
737 | 880 | nicks.forEach( nick => |
738 | 881 | { |
| 882 | + // Create element |
739 | 883 | let li = document.createElement('li') |
740 | | - li.classList.add( nick.class !== undefined ? nick.class : 'normal' ) |
741 | 884 | li.innerHTML = nick.nick |
| 885 | + // Add right classes |
| 886 | + let classes = [ 'normal' ] |
| 887 | + if ( nick.class !== undefined ) |
| 888 | + { |
| 889 | + classes = Array.isArray( nick.class ) ? nick.class : [ nick.class ] |
| 890 | + } |
| 891 | + classes.forEach( c => li.classList.add( c ) ) |
| 892 | + // Append |
742 | 893 | document.getElementById('members').appendChild(li) |
743 | 894 | }) |
744 | 895 |
|
|
0 commit comments