mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
#292 Add button titles
This commit is contained in:
@ -2433,7 +2433,7 @@
|
|||||||
<div id="loading_mes">
|
<div id="loading_mes">
|
||||||
<div alt="" class="fa-solid fa-hourglass-half"></div>
|
<div alt="" class="fa-solid fa-hourglass-half"></div>
|
||||||
</div>
|
</div>
|
||||||
<div id="send_but" class="fa-solid fa-feather-pointed"></div>
|
<div id="send_but" class="fa-solid fa-feather-pointed" title="Send a message"></div>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
@ -96,6 +96,7 @@ $(document).ready(function () {
|
|||||||
function addSendPictureButton() {
|
function addSendPictureButton() {
|
||||||
const sendButton = document.createElement('div');
|
const sendButton = document.createElement('div');
|
||||||
sendButton.id = 'send_picture';
|
sendButton.id = 'send_picture';
|
||||||
|
sendButton.title = 'Send a picture to chat';
|
||||||
sendButton.classList.add('fa-solid');
|
sendButton.classList.add('fa-solid');
|
||||||
$(sendButton).hide();
|
$(sendButton).hide();
|
||||||
$(sendButton).on('click', () => $('#img_file').click());
|
$(sendButton).on('click', () => $('#img_file').click());
|
||||||
|
@ -29,7 +29,7 @@ async function doDiceRoll() {
|
|||||||
|
|
||||||
function addDiceRollButton() {
|
function addDiceRollButton() {
|
||||||
const buttonHtml = `
|
const buttonHtml = `
|
||||||
<div id="roll_dice" class="fa-solid fa-dice" /></div>
|
<div id="roll_dice" class="fa-solid fa-dice" title="Roll the dice" /></div>
|
||||||
`;
|
`;
|
||||||
const dropdownHtml = `
|
const dropdownHtml = `
|
||||||
<div id="dice_dropdown">
|
<div id="dice_dropdown">
|
||||||
|
@ -326,7 +326,7 @@ async function sendMessage(prompt, image) {
|
|||||||
|
|
||||||
function addSDGenButtons() {
|
function addSDGenButtons() {
|
||||||
const buttonHtml = `
|
const buttonHtml = `
|
||||||
<div id="sd_gen" class="fa-solid fa-paintbrush" /></div>
|
<div id="sd_gen" class="fa-solid fa-paintbrush" title="Trigger Stable Diffusion" /></div>
|
||||||
`;
|
`;
|
||||||
|
|
||||||
const waitButtonHtml = `
|
const waitButtonHtml = `
|
||||||
|
@ -165,7 +165,7 @@ function onAudioControlClicked() {
|
|||||||
|
|
||||||
function addAudioControl() {
|
function addAudioControl() {
|
||||||
$('#send_but_sheld').prepend('<div id="tts_media_control"/>')
|
$('#send_but_sheld').prepend('<div id="tts_media_control"/>')
|
||||||
$('#tts_media_control').on('click', onAudioControlClicked)
|
$('#tts_media_control').attr('title', 'TTS play/pause').on('click', onAudioControlClicked)
|
||||||
audioControl = document.getElementById('tts_media_control')
|
audioControl = document.getElementById('tts_media_control')
|
||||||
updateUiAudioPlayState()
|
updateUiAudioPlayState()
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user