Skip to content

Commit b50493b

Browse files
committed
Merge pull request #16 from mrroach9/dev-v0.3.1
Dev v0.3.1
2 parents a6216c0 + 6cb8021 commit b50493b

File tree

7 files changed

+1827
-5
lines changed

7 files changed

+1827
-5
lines changed

index.html

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -438,6 +438,9 @@ <h3 id='post-panel-title'>Rowell开发者名单</h3>
438438
<li>
439439
<a href="https://github.com/BYVoid" target="_blank">BYVoid</a>
440440
</li>
441+
<li>
442+
<a href="https://github.com/HenryHu" target="_blank">henryhu</a>
443+
</li>
441444
<li>
442445
<a href="https://github.com/hs3180" target="_blank">huangs</a>
443446
</li>
@@ -481,10 +484,31 @@ <h3 id='post-panel-title'>Rowell开发者名单</h3>
481484
</div>
482485
<div id='html-encoder' class='hide'></div>
483486

487+
<div class='xmpp-panel' id='xmpp-panel'>
488+
<div class='xmpp-panel-handle btn btn-info btn-large' id='xmpp-panel-handle'>
489+
<br/><br/><br/>
490+
</div>
491+
<div class='xmpp-panel-main' id='xmpp-panel-main'>
492+
<div class='xmpp-main-title' id='xmpp-main-title'>好友列表</div>
493+
<div class='xmpp-main-content' id='xmpp-main-content'>
494+
<div class='xmpp-loading' id='xmpp-loading'>
495+
<div class='xmpp-loading-img'>
496+
<img class='loading-logo' src='./img/loading.gif'></img>
497+
</div>
498+
<div class='xmpp-loading-text' id='xmpp-loading-text'>
499+
</div>
500+
</div>
501+
<div class='xmpp-user-list' id='xmpp-user-list'>
502+
</div>
503+
</div>
504+
</div>
505+
</div>
506+
484507
<!-- Placed at the end of the document so the pages load faster -->
485508
<script src='./js/jquery/jquery.min.js'></script>
486509
<script src='./js/jquery/jquery.cookie.js'></script>
487510
<script src='./js/jquery/jquery.purl.js'></script>
511+
<script src='./js/jquery/jquery.xmpp.js'></script>
488512
<script src='./js/bootstrap/bootstrap.min.js'></script>
489513

490514
<script src='./js/bbs/ansi2html.js'></script>
@@ -499,6 +523,7 @@ <h3 id='post-panel-title'>Rowell开发者名单</h3>
499523
<script src='./js/bbs/bbs_hotkey.js'></script>
500524
<script src='./js/bbs/bbs_utility.js'></script>
501525
<script src='./js/bbs/bbs_global.js'></script>
526+
<script src='./js/bbs/bbs_xmpp.js'></script>
502527

503528
<script type='text/javascript'>
504529
$(document).ready(function(){

js/bbs/bbs_UI.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -287,6 +287,9 @@ function UI_register_func(){
287287
}
288288
});
289289

290+
window.onresize = UI_onresize;
291+
window.onfocus = UI_onfocus;
292+
xmpp_ui_init();
290293
}
291294

292295

@@ -568,6 +571,7 @@ function UI_login_finished(result){
568571
$('#unlogged-panel').hide();
569572
$('#logged-navbar').show();
570573
view_boardlist(bbs_type.entry.favboard, -1, '', UI_update, 0);
574+
xmpp_connect();
571575
} else {
572576
$('#unlogged-navbar').show();
573577
$('#unlogged-panel').show();
@@ -629,6 +633,7 @@ function UI_update(){
629633
UI_hide_backdrop();
630634
UI_hide_loading();
631635
$('#logged-panel').show();
636+
xmpp_onresize();
632637
}
633638

634639
function UI_notify_update(msg){
@@ -910,3 +915,11 @@ function UI_generate_uploading_file_entry(file) {
910915
function UI_register_hotkeys(){
911916
register_default_hotkeys();
912917
}
918+
919+
function UI_onresize(){
920+
xmpp_onresize();
921+
}
922+
923+
function UI_onfocus() {
924+
xmpp_onfocus();
925+
}

0 commit comments

Comments
 (0)