weevent-broker/src/test/java/com/webank/weevent/sample/OverSockjs/js/live-demo.js
// Publich click connect-btn / change button style 
Publich click connect-btn / change button style
Publich click connect - btn / change button style
function connectBtn(btn) {
    type = 1
    $('#connect').hide()
    $('#disconnect').hide()
    if(btn){
        $('#disconnect').show()
    } else {
        $('#connect').show()
    }
}
function connectBtn ( btn ) { type = 1 $ ( '#connect' ) . hide ( ) $ ( '#disconnect' ) . hide ( ) if ( btn ) { $ ( '#disconnect' ) . show ( ) } else { $ ( '#connect' ) . show ( ) } }
Publich click connect-btn / change button style
Publich click connect - btn / change button style
// 点击publich connect