write.html 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <base href="https://jamesfengcao.codeberg.page/en/searchurl/bingAI/">
  6. <title id="docTitle">Write</title>
  7. <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.16.4/katex.min.css">
  8. <style>
  9. #input {
  10. height: auto;
  11. width: 100%;
  12. display: block;
  13. }
  14. pre {white-space: pre-wrap;}
  15. </style>
  16. <script>
  17. function getSelectedText(select){
  18. return select.options[select.selectedIndex].text;
  19. }
  20. </script>
  21. </head>
  22. <body>
  23. <select id="toneSelect" onchange="window.tone=getSelectedText(this);">
  24. <option>professional</option>
  25. <option>casual</option>
  26. <option>enthusiastic</option>
  27. <option>informational</option>
  28. <option>funny</option>
  29. </select>
  30. <select id="formatSelecct" onchange="window.format=getSelectedText(this);">
  31. <option>paragraph</option>
  32. <option>email</option>
  33. <option>blog post</option>
  34. <option>bullet point list</option>
  35. </select>
  36. <select id="lengthSelect" onchange="window.length=getSelectedText(this);">
  37. <option>short</option>
  38. <option>medium</option>
  39. <option>long</option>
  40. </select>
  41. <textarea id="input" type="text" rows="5" enterkeyhint="send" autocapitalize="off"
  42. autocomplete="off" aria-autocomplete="both" spellcheck="false"
  43. autocorrect="off" placeholder="topic...">
  44. </textarea>
  45. <input id="send" class="ThemeColors" type="button" value="Generate"><input id="restart" type="button" value="🧹"><input id="restartNewChat" type="button" value="new">
  46. <div id="chat">
  47. <div class="bing">
  48. <div class="adaptiveCardsFatherDIV">
  49. <div class="textBlock markdown-body">
  50. </div>
  51. </div>
  52. </div>
  53. </div>
  54. <!-- dummy nodes -->
  55. <div id='chatTypeDiv'>
  56. <div id='chatTypeChoseCreate'></div>
  57. <div id='chatTypeChoseBalance'></div>
  58. <div id='chatTypeChoseAccurate'></div>
  59. </div>
  60. <script>
  61. async function getMagicUrl() {
  62. let v = localStorage.GoGoUrl;
  63. if(v && v.startsWith("http")) return v;
  64. return "https://mybing2.xn--xyza.top/";
  65. }
  66. function getStartProposes(){return ["","",""];}
  67. function getStartMessage(){return "";}
  68. </script>
  69. <script src="https://cdnjs.cloudflare.com/ajax/libs/marked/4.3.0/marked.min.js"></script>
  70. <script src="https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.16.4/katex.min.js"></script>
  71. <script src="https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.16.4/contrib/auto-render.min.js"></script>
  72. <script type="text/javascript" src="./js/GetSet.js"></script>
  73. <script type="text/javascript" src="./js/w_optionsSets.js"></script>
  74. <script type="text/javascript" src="./js/bingChatHub.js"></script>
  75. <script type="text/javascript" src="./js/parserReturn.js"></script>
  76. <script type="text/javascript" src="./js/bing.js"></script>
  77. <script src="./js/Write.js"></script>
  78. </body>
  79. </html>