diff --git a/public/script.js b/public/script.js index 6193c0c5a..c477e4fb6 100644 --- a/public/script.js +++ b/public/script.js @@ -283,9 +283,8 @@ const system_messages = { mes: [ 'Hi there! The following chat formatting commands are supported:', '
    ', - '
  1. *text* – format the actions that your character does
  2. ', - '
  3. {{text}} – set the behavioral bias for the AI character
  4. ', - '
  5. {{}} – cancel a previously set bias
  6. ', + '
  7. {{text}} – sets a permanent behavioral bias for the AI
  8. ', + '
  9. {{}} – removes any active character bias
  10. ', '
', ].join('') }, @@ -5326,16 +5325,16 @@ $(document).ready(function () { try { var edit_mes_id = $(this).closest(".mes").attr("mesid"); var text = chat[edit_mes_id]["mes"]; - navigator.clipboard.writeText(text); - const copiedMsg = document.createElement("div"); - copiedMsg.classList.add('code-copied'); - copiedMsg.innerText = "Copied!"; - copiedMsg.style.top = `${event.clientY - 55}px`; - copiedMsg.style.left = `${event.clientX - 55}px`; - document.body.append(copiedMsg); - setTimeout(() => { - document.body.removeChild(copiedMsg); - }, 1000); + navigator.clipboard.writeText(text); + const copiedMsg = document.createElement("div"); + copiedMsg.classList.add('code-copied'); + copiedMsg.innerText = "Copied!"; + copiedMsg.style.top = `${event.clientY - 55}px`; + copiedMsg.style.left = `${event.clientX - 55}px`; + document.body.append(copiedMsg); + setTimeout(() => { + document.body.removeChild(copiedMsg); + }, 1000); } catch (err) { console.error('Failed to copy: ', err); } @@ -5565,7 +5564,7 @@ $(document).ready(function () { console.log('No secret key saved for NovelAI'); return; } - + $("#api_loading_novel").css("display", "inline-block"); $("#api_button_novel").css("display", "none"); is_get_status_novel = true;