mirror of
https://github.com/s00500/ESPUI.git
synced 2025-11-27 23:03:16 +00:00
remove unnecessary example
This commit is contained in:
10
README.md
10
README.md
@@ -684,15 +684,7 @@ void setup() {
|
||||
}
|
||||
```
|
||||
|
||||
The custom JavaScript is served at `/js/custom.js` and is automatically included in the `index.htm` file. You can use this to interact with the UI elements, handle events, and create new UI components. For example, you can use `zepto.js` to listen for clicks on a button:
|
||||
|
||||
```cpp
|
||||
const char* myCustomJS = R"=====(
|
||||
$(document).on('click', '#my-button', function() {
|
||||
alert('Button clicked!');
|
||||
});
|
||||
)=====";
|
||||
```
|
||||
The custom JavaScript is served at `/js/custom.js` and is automatically included in the `index.htm` file.
|
||||
|
||||
|
||||
# Notes for Development
|
||||
|
||||
Reference in New Issue
Block a user