Replies: 13 comments 1 reply
-
https://ldijkman.github.io/Ace_Seventh_Heaven/The_AfterWorld.html Artificial intelligence A.I. You: button with openwindow javascript code response is between 3 backticks ``` |
Beta Was this translation helpful? Give feedback.
-
examples of how i use A.I. https://ldijkman.github.io/Ace_Seventh_Heaven/The_AfterWorld.html
https://ldijkman.github.io/Ace_Seventh_Heaven/The_AfterWorld.html
https://ldijkman.github.io/Ace_Seventh_Heaven/The_AfterWorld.html
https://ldijkman.github.io/Ace_Seventh_Heaven/The_AfterWorld.html
|
Beta Was this translation helpful? Give feedback.
-
https://ldijkman.github.io/Ace_Seventh_Heaven/The_AfterWorld.html https://ldijkman.github.io/Ace_Seventh_Heaven/The_AfterWorld.html |
Beta Was this translation helpful? Give feedback.
-
https://ldijkman.github.io/Ace_Seventh_Heaven/The_AfterWorld.html https://ldijkman.github.io/Ace_Seventh_Heaven/The_AfterWorld.html |
Beta Was this translation helpful? Give feedback.
-
Hello guys, I have a simple question, so if you want a response on something |
Beta Was this translation helpful? Give feedback.
-
ChatGPT Let's break down the code:
Explanation: The function first checks if the target parameter is empty. If it's empty, it sets the target to _blank, which means the content will be opened in a new window/tab. It retrieves the width and height of the screen using screen.width and screen.height. Then, it uses window.open to open a new window. The parameters passed to window.open are: what: The URL or content to be displayed in the new window. This code will open a new window with the specified dimensions and attempt to center it on the screen. |
Beta Was this translation helpful? Give feedback.
-
You: html is it possible to see if a target window allready exist and if yes show it Yes, it is possible to check if a target window already exists and then show it using JavaScript. You can use the <!DOCTYPE html>
<html>
<body>
<button onclick="openOrFocusWindow()">Open or Focus Window</button>
<script>
function openOrFocusWindow() {
var targetWindow = window.open('', 'myWindow'); // check if window already exists
if (targetWindow) {
targetWindow.focus(); // if it does, bring it to the front
} else {
targetWindow = window.open('https://www.example.com', 'myWindow'); // if not, open a new window
}
}
</script>
</body>
</html> In this example, when the button is clicked, the |
Beta Was this translation helpful? Give feedback.
-
BrainPain Status You: ChatGPT html
This code creates a button with the text "Remove API Key." When the button is clicked, it triggers the removeApiKey function, which uses localStorage.removeItem("apiKey") to remove the API key stored under the key name "apiKey" in the browser's local storage. It also displays an alert confirming that the API key has been removed. |
Beta Was this translation helpful? Give feedback.
-
sorry no good words for the moderators of openai forumPost hidden by community flags This is an automated message from OpenAI Developer Forum to let you know that your post was hidden. https://community.openai.com/t/brainpain-status-status-openai-com-api-v2-status-json/511466/8 Your post was flagged as spam: the community feels it is an advertisement, something that is overly promotional in nature instead of being useful or relevant to the topic as expected. This post was hidden due to flags from the community, so please consider how you might revise your post to reflect their feedback. You can edit your post after 30 minutes, and it will be automatically unhidden. However, if the post is hidden by the community a second time, it will remain hidden until handled by staff. For additional guidance, please refer to our community guidelines. |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
parse md to html when chat stream is finnished |
Beta Was this translation helpful? Give feedback.
-
i have a problem when there is code in the stream without tripple backticks The issue you're facing is because parsing tools like marked or other markdown parsers may interpret HTML tags within the text as actual HTML elements rather than treating them as code blocks if they are not enclosed within triple backticks. One potential solution is to preprocess the markdown text to replace HTML-like code blocks with a placeholder before parsing it with marked. Then, after parsing, you can replace the placeholders back with the original HTML-like code. Here's an example of how you might achieve this:
In this example, the replaceHTMLBlocks function replaces HTML-like code blocks with placeholders before parsing the markdown. After parsing with marked, the restoreHTMLBlocks function restores the placeholders back to the original HTML-like code. This way, HTML-like code blocks within the markdown are treated as code blocks rather than being interpreted as HTML elements during parsing. Adjust the regular expressions or placeholder formats as needed for your specific use case. |
Beta Was this translation helpful? Give feedback.
-
Floating OpenAI Chat Stream Code Assistant
Note:
if you have a question about "something"
you should
ask "something" with the question in one message
Trying to make a floating AI window
The_AfterWorld, A World of never ending HappiNess
Only have been sleeping at lowest possible technical school
so
i am NOT a Coder, i am a Mechanic, i Screw Things.! ;-)
My Mothers Language was Dutch, And so is mine. Please Forgive me for errors
my language use, maybe weird / nuts
it might scare you
But, i Do No Evil.
Here is the source for u to see
https://plnkr.co/edit/su3sB9f54WyO0gJc
https://codepen.io/ldijkman/pen/oNmWQey?editors=1010
https://jsfiddle.net/luberth/haxLwrgy/
https://output.jsbin.com/kuvanaj
https://github.com/ldijkman/Ace_Seventh_Heaven/tree/main/docs
inputfield looks small, but it handles more input as Google Bard
.
.
.
.
.
.
A penny for sharing my thoughts
Een heitje voor een karweitje..
Http://paypal.me/LDijkman
.
.
.
.
.
.
.
Beta Was this translation helpful? Give feedback.
All reactions