Show block before sending request: Implementation using MwaiAPI
-
Hello!
Help me please. Is it possible to somehow show a specific block through js before the request is sent?
For example, there is a filter, and it shows a block with the class ‘.container’ after the AI provides the answer.
MwaiAPI.addFilter(‘ai.reply’, function (reply) {
jQuery(‘.container’).show();
return reply;
});
However, I really need to show the block with the ‘.container’ class before the request is executed. That is, show it immediately before executing the request. Is it possible to implement this somehow? Thank you in advance!
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Show block before sending request: Implementation using MwaiAPI’ is closed to new replies.