unction () {
        let sub_url = getParameterByName("sub")
        if (!$(this).attr("disabled")) {
            openSocket(sub_url, null);
            $(this).attr("disabled", true);
        }
    });

    $(document).on('click', '#danmu_send_btn', function () {
        sendMessage()
    });
    $('#contentText').keypress(function (event){
        if (event.which === 13){
            sendMessage()
        }
    })
    function getParameterByName(name) {
        let url = new URL(window.location.href);
   