From 098a458c4aa701ee27c59daed50b85c84b0ff2ef Mon Sep 17 00:00:00 2001 From: Georgi Gerganov Date: Mon, 2 May 2022 19:08:07 +0300 Subject: [PATCH] Add "buttons" example Simple web page to test talking buttons --- examples/CMakeLists.txt | 1 + examples/buttons/CMakeLists.txt | 4 + examples/buttons/README.md | 3 + examples/buttons/index-tmpl.html | 232 +++++++++++++++++++++++++++++++ 4 files changed, 240 insertions(+) create mode 100644 examples/buttons/CMakeLists.txt create mode 100644 examples/buttons/README.md create mode 100644 examples/buttons/index-tmpl.html diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt index b20b2e1..5cb7c09 100644 --- a/examples/CMakeLists.txt +++ b/examples/CMakeLists.txt @@ -83,6 +83,7 @@ endif() if (EMSCRIPTEN) add_subdirectory(ggwave-js) + add_subdirectory(buttons) else() add_subdirectory(ggwave-to-file) endif() diff --git a/examples/buttons/CMakeLists.txt b/examples/buttons/CMakeLists.txt new file mode 100644 index 0000000..64500c4 --- /dev/null +++ b/examples/buttons/CMakeLists.txt @@ -0,0 +1,4 @@ +set(TARGET buttons) + +configure_file(${CMAKE_CURRENT_SOURCE_DIR}/index-tmpl.html ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${TARGET}/index.html @ONLY) +configure_file(${CMAKE_SOURCE_DIR}/bindings/javascript/ggwave.js ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${TARGET}/ggwave.js COPYONLY) diff --git a/examples/buttons/README.md b/examples/buttons/README.md new file mode 100644 index 0000000..65d0e90 --- /dev/null +++ b/examples/buttons/README.md @@ -0,0 +1,3 @@ +# buttons + +Live demo: https://buttons.ggerganov.com diff --git a/examples/buttons/index-tmpl.html b/examples/buttons/index-tmpl.html new file mode 100644 index 0000000..99dc7f3 --- /dev/null +++ b/examples/buttons/index-tmpl.html @@ -0,0 +1,232 @@ + + + + ggwave : buttons + + +
+ Talking buttons tester: + +

+ + + + + +

+ + If you have Fluent Pet talking buttons, enable this option during the recording:

+ Fluent Pet + +
+ +
+ + + + +

+ +
+ + | + Build time: @GIT_DATE@ | + Commit hash: @GIT_SHA1@ | + Commit subject: @GIT_COMMIT_SUBJECT@ | + Source Code | + +
+
+ + + + +