The section contains various examples of interactive usage of Pusa. All examples do not use specific JS code, only the framework library pusa.js.
The backend code of the examples is located in the file pusa_pages.
This example demonstrates the ability to request and dynamically change content.
Select any text on the page, click copy and paste. The marked text will be copied to the clipboard, sent to the backend, and after processing placed into the textarea.
Move the cursor over the field. The backend handles the mousemove event and outputs the coordinates.
Fill out the form and submit it for processing. The backend will perform the operation and add the form to the table. In this example, the backend does not save the data
Shown are ways to position the focus on elements for subsequent operations.
Demonstration of input validation.
Shows the ability to position an element on the page. Clicking will scroll the page to the uuid element.
Demonstration of dynamic content loading on scroll. Images are provided by the resource. https://picsum.photos
The example allows you to start and stop the timer. Each timer call performs the next iteration with the backend, changing the state of the visual glitch generator.