diff --git a/examples/HelloElement/README.md b/examples/HelloElement/README.md index 1a4ec5a..fb06a68 100644 --- a/examples/HelloElement/README.md +++ b/examples/HelloElement/README.md @@ -2,6 +2,8 @@ This sample demonstrates how to use the HtmlElement class in Crafter.CppDOM. + + ## Features - Shows how to create and manipulate HTML elements diff --git a/examples/HelloWorld/README.md b/examples/HelloWorld/README.md index 34004ee..ffc4b68 100644 --- a/examples/HelloWorld/README.md +++ b/examples/HelloWorld/README.md @@ -2,6 +2,8 @@ This sample demonstrates a simple hello world application using Crafter.CppDOM. + + ## Usage ```cpp diff --git a/examples/Website/Website.png b/examples/Website/Website.png new file mode 100644 index 0000000..cad2698 Binary files /dev/null and b/examples/Website/Website.png differ diff --git a/examples/Website/frontend/main.cpp b/examples/Website/frontend/main.cpp index 3e8bcfc..739b334 100644 --- a/examples/Website/frontend/main.cpp +++ b/examples/Website/frontend/main.cpp @@ -22,7 +22,6 @@ HtmlElementView* head = new HtmlElementView("head", R"( body { font-family: Arial, sans-serif; margin: 0 auto; - padding: 20px; background-color: #121212; color: #e0e0e0; width: 100vw; @@ -219,7 +218,6 @@ void RenderNotes() { } } - // Main function int main() { FetchNotes(); @@ -230,7 +228,8 @@ int main() { std::cout << noteValue << std::endl; if (!noteValue.empty()) { loadingIndicator->SetInnerHTML("
Saving note...
"); - Fetch("http://localhost:3000/createNote", noteValue, [¬eValue](std::string content) { + Fetch("http://localhost:3000/createNote", noteValue, [noteValue](std::string content) { + std::cout << noteValue << std::endl; notes->push_back({static_cast