darksideEx

joined 6 months ago
[–] darksideEx 1 points 1 week ago* (last edited 1 week ago) (1 children)

Sorry for the late response, unfortunately, I'm just started learning coding recently, especially JS, I might need to read a bit more about this lol thanks for the link!

EDIT: Just wanted to let you know that I've figured out a solution thanks to the AI code helper, it basically wrote the similar function:

// Function to load data from local storage when the page loads
  function loadData() {
    userInputEl.value = localStorage.userInput || ""; // Load user input
    aiOutputEl.value = localStorage.aiOutput || ""; // Load AI output
  }

  // Function to save data to local storage whenever there's an input change
  function saveData() {
    localStorage.userInput = userInputEl.value; // Save user input
    localStorage.aiOutput = aiOutputEl.value; // Save AI output
  }

window.onload = loadData;

And just simply put the oninput="saveData() into both input and output elements.

[–] darksideEx 1 points 1 week ago* (last edited 1 week ago)

I’m just making random generators atm, trying to figure out how it works for later use since I’m not really active in the platform, but I’ve tried putting the output alongside with the @inputs to the plugin code like this: [remember(root, "@inputs,output")] and got an error message like this:

It appears that you've got a mismatch in your opening and closing square brackets. For each opening square bracket, there should be a closing one. If you'd like to use a literal square bracket (i.e. you want to actually display one, rather than using them to output a random list item, then you need to put a "backslash" before it like "[ ... ]". Here's the text that seems to be causing the error:

It seems the plugin is currently not supporting AI output text, also, thanks for the output suggestion!

EDIT: I think I've figured out the solutions for both of my problems thanks to AI code helper 👍

1
submitted 1 week ago* (last edited 1 week ago) by darksideEx to c/perchance
 

So, I want the make generator to remember user inputs and the latest generated output using the remember plugin, it works on user input but not for the output. I know there's a solution for this since generators like AI Chat can remember the chat logs without problem but I'm too dumb to understand the code lol

Also, how can I prevent the AI to automatically generate output on first load? I'm using the firstload = true tingy but I want to make it look cleaner when the generator loads since it 's displaying the [firstLoad ? "" : output] for a split second, is there any other method for this?

[–] darksideEx 2 points 3 months ago

I've noticed the change a few days ago, thanks for hearing my suggestion, you guys are awesome 😍 (sorry for the late reply, I rarely use this platform lol)

 

I just found out about this site and it's amazing! one thing that bothers me is the frames in the side and bottom of the site, I don't mind the header but the frame reducing the view area, especially on mobile screens. I'm still new to this site so I don't know for sure whether I can hide the frame or not and there are no customization options anywhere on the site. I'm not sure what the specific purpose for it but I would suggest removing it and leaving just the header.