|
@@ -249,7 +249,7 @@ function clipboard_copy(...data) {
|
|
data.forEach(item => {
|
|
data.forEach(item => {
|
|
let clip = new ClipboardJS(item);
|
|
let clip = new ClipboardJS(item);
|
|
clip.on('success', (e) => {
|
|
clip.on('success', (e) => {
|
|
- Materialize.toast(CCB.str_group.copy_success, 2000);
|
|
|
|
|
|
+ Materialize.toast(CCB.str_group.copy_success, 2000, 'shareUrl');
|
|
e.clearSelection();
|
|
e.clearSelection();
|
|
});
|
|
});
|
|
});
|
|
});
|
|
@@ -640,22 +640,22 @@ function comm_boards(incomingMsg, isOpen) {
|
|
$('#comms-cnt').css("display", "none");
|
|
$('#comms-cnt').css("display", "none");
|
|
$('#comms-discnt').css("display", "block");
|
|
$('#comms-discnt').css("display", "block");
|
|
rm_disabled('#comms-send');
|
|
rm_disabled('#comms-send');
|
|
- Materialize.toast(CCB.str_group.success_openComm_monitor, 2000);
|
|
|
|
|
|
+ Materialize.toast(CCB.str_group.success_openComm_monitor, 2000, 'shareUrl');
|
|
CCB.isOpen = true
|
|
CCB.isOpen = true
|
|
} else if (incomingMsg.Open === false)
|
|
} else if (incomingMsg.Open === false)
|
|
- Materialize.toast(CCB.str_group.fail_openComm_monitor, 2000);
|
|
|
|
|
|
+ Materialize.toast(CCB.str_group.fail_openComm_monitor, 2000, 'shareUrl');
|
|
else if (incomingMsg.Close) {
|
|
else if (incomingMsg.Close) {
|
|
$('#comms-cnt').css("display", "block");
|
|
$('#comms-cnt').css("display", "block");
|
|
$('#comms-discnt').css("display", "none");
|
|
$('#comms-discnt').css("display", "none");
|
|
$('#comms-send').addClass('disabled');
|
|
$('#comms-send').addClass('disabled');
|
|
- Materialize.toast(CCB.str_group.success_closeComm_monitor, 2000);
|
|
|
|
|
|
+ Materialize.toast(CCB.str_group.success_closeComm_monitor, 2000, 'shareUrl');
|
|
CCB.isOpen = false;
|
|
CCB.isOpen = false;
|
|
} else if (incomingMsg.Close === false)
|
|
} else if (incomingMsg.Close === false)
|
|
- Materialize.toast(CCB.str_group.fail_closeComm_monitor, 2000);
|
|
|
|
|
|
+ Materialize.toast(CCB.str_group.fail_closeComm_monitor, 2000, 'shareUrl');
|
|
else if (data.updateBaud)
|
|
else if (data.updateBaud)
|
|
- Materialize.toast(CCB.str_group.success_setBaud_monitor, 2000);
|
|
|
|
|
|
+ Materialize.toast(CCB.str_group.success_setBaud_monitor, 2000, 'shareUrl');
|
|
else if (data.updateBaud === false)
|
|
else if (data.updateBaud === false)
|
|
- Materialize.toast(CCB.str_group.fail_setBaud_monitor, 2000);
|
|
|
|
|
|
+ Materialize.toast(CCB.str_group.fail_setBaud_monitor, 2000, 'shareUrl');
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -690,7 +690,7 @@ function ws_disconn(socket, empty) {
|
|
try {
|
|
try {
|
|
Materialize.Toast.removeAll();
|
|
Materialize.Toast.removeAll();
|
|
} catch (e) { }
|
|
} catch (e) { }
|
|
- Materialize.toast(CCB.str_group.ws_connect_loss, 2500);
|
|
|
|
|
|
+ Materialize.toast(CCB.str_group.ws_connect_loss, 2500, 'shareUrl');
|
|
eproxy.emit('wsreconn');
|
|
eproxy.emit('wsreconn');
|
|
}
|
|
}
|
|
|
|
|
|
@@ -827,7 +827,7 @@ function ws_conned(socket) {
|
|
try {
|
|
try {
|
|
Materialize.Toast.removeAll();
|
|
Materialize.Toast.removeAll();
|
|
} catch (e) { }
|
|
} catch (e) { }
|
|
- Materialize.toast(ws_connect_success, 2500);
|
|
|
|
|
|
+ Materialize.toast(ws_connect_success, 2500, 'shareUrl');
|
|
$('#discnt_icon').css('display', 'none');
|
|
$('#discnt_icon').css('display', 'none');
|
|
$('#cnt_icon').css('display', 'inline-block');
|
|
$('#cnt_icon').css('display', 'inline-block');
|
|
$('#uploader-relaunch-btn').removeClass('disabled');
|
|
$('#uploader-relaunch-btn').removeClass('disabled');
|
|
@@ -1037,7 +1037,7 @@ function PageModeSwitch() {
|
|
toolbox.tree_ = toolbox.tree_old_;
|
|
toolbox.tree_ = toolbox.tree_old_;
|
|
toolbox.tree_old_ = temp;
|
|
toolbox.tree_old_ = temp;
|
|
if ($('#network-btn').prop('checked')) {
|
|
if ($('#network-btn').prop('checked')) {
|
|
- Materialize.toast(CCB.str_group.wifi_mode, 1000);
|
|
|
|
|
|
+ Materialize.toast(CCB.str_group.wifi_mode, 1000, 'shareUrl');
|
|
toolbox.HtmlDiv = $toolboxDiv[1];
|
|
toolbox.HtmlDiv = $toolboxDiv[1];
|
|
|
|
|
|
$('#wifi_mode_label').css('color', '#000');
|
|
$('#wifi_mode_label').css('color', '#000');
|
|
@@ -1053,7 +1053,7 @@ function PageModeSwitch() {
|
|
loadLocalStorageBlocks("wifi-mode-blocks-xml");
|
|
loadLocalStorageBlocks("wifi-mode-blocks-xml");
|
|
CCB.mode = false;
|
|
CCB.mode = false;
|
|
} else {
|
|
} else {
|
|
- Materialize.toast(CCB.str_group.maincontrol_mode, 1000);
|
|
|
|
|
|
+ Materialize.toast(CCB.str_group.maincontrol_mode, 1000, 'shareUrl');
|
|
toolbox.HtmlDiv = $toolboxDiv[0];
|
|
toolbox.HtmlDiv = $toolboxDiv[0];
|
|
|
|
|
|
$('#main_mode_label').css('color', '#000');
|
|
$('#main_mode_label').css('color', '#000');
|
|
@@ -1434,7 +1434,7 @@ async function cocoblockly() {
|
|
{ selector: '#cloudBtn-shares', delay: 500, position: 'bottom', tooltip: CCB.str_group.cloudShares },
|
|
{ selector: '#cloudBtn-shares', delay: 500, position: 'bottom', tooltip: CCB.str_group.cloudShares },
|
|
{ selector: '#fullscreenIcon', delay: 500, position: 'bottom', tooltip: CCB.str_group.fullscreen },
|
|
{ selector: '#fullscreenIcon', delay: 500, position: 'bottom', tooltip: CCB.str_group.fullscreen },
|
|
{ selector: '#fullscreenExitIcon', delay: 500, position: 'bottom', tooltip: CCB.str_group.fullscreenExit },
|
|
{ selector: '#fullscreenExitIcon', delay: 500, position: 'bottom', tooltip: CCB.str_group.fullscreenExit },
|
|
- { selector: '#edit-off', delay: 500, position: 'bottom', tooltip: CCB.str_group.editing },
|
|
|
|
|
|
+ { selector: '#edit-off', delay: 1000000, position: 'bottom', tooltip: CCB.str_group.editing },
|
|
{ selector: '#edit-on', delay: 500, position: 'bottom', tooltip: CCB.str_group.close_editing },
|
|
{ selector: '#edit-on', delay: 500, position: 'bottom', tooltip: CCB.str_group.close_editing },
|
|
{ selector: '#copy_code_view', delay: 500, position: 'bottom', tooltip: CCB.str_group.copy_code },
|
|
{ selector: '#copy_code_view', delay: 500, position: 'bottom', tooltip: CCB.str_group.copy_code },
|
|
{ selector: '#blockpy-toolbar-upload', delay: 500, position: 'bottom', tooltip: CCB.str_group.blockpy_toolbar_upload },
|
|
{ selector: '#blockpy-toolbar-upload', delay: 500, position: 'bottom', tooltip: CCB.str_group.blockpy_toolbar_upload },
|
|
@@ -1509,7 +1509,7 @@ async function cocoblockly() {
|
|
const { compiling, compile_slow } = CCB.str_group;
|
|
const { compiling, compile_slow } = CCB.str_group;
|
|
progress_text(compiling, '0%');
|
|
progress_text(compiling, '0%');
|
|
progress.toast_timer = setTimeout(
|
|
progress.toast_timer = setTimeout(
|
|
- () => Materialize.toast(compile_slow, 20000), 10000);
|
|
|
|
|
|
+ () => Materialize.toast(compile_slow, 20000), 10000, 'shareUrl');
|
|
} else if (type === 'upload') {
|
|
} else if (type === 'upload') {
|
|
progress_text(CCB.str_group.uploading, '0%');
|
|
progress_text(CCB.str_group.uploading, '0%');
|
|
}
|
|
}
|