From 39c0517195d9143661b6f941345a876621839f70 Mon Sep 17 00:00:00 2001 From: exaucae Date: Fri, 17 Jun 2022 22:31:32 +0000 Subject: [PATCH] refactor: refine examples --- .../src/main/webapp/WEB-INF/js/functionCall.js | 8 -------- .../webapp/WEB-INF/views/functionCall.html | 18 ++++++++++++------ 2 files changed, 12 insertions(+), 14 deletions(-) delete mode 100644 spring-web-modules/spring-thymeleaf/src/main/webapp/WEB-INF/js/functionCall.js diff --git a/spring-web-modules/spring-thymeleaf/src/main/webapp/WEB-INF/js/functionCall.js b/spring-web-modules/spring-thymeleaf/src/main/webapp/WEB-INF/js/functionCall.js deleted file mode 100644 index 41a71a73d2..0000000000 --- a/spring-web-modules/spring-thymeleaf/src/main/webapp/WEB-INF/js/functionCall.js +++ /dev/null @@ -1,8 +0,0 @@ - -function greetWorld() { - alert("hello world") -} - -function salute(name) { - alert("hello: " + name) -} \ No newline at end of file diff --git a/spring-web-modules/spring-thymeleaf/src/main/webapp/WEB-INF/views/functionCall.html b/spring-web-modules/spring-thymeleaf/src/main/webapp/WEB-INF/views/functionCall.html index b3172a0c98..d21fb7cf27 100644 --- a/spring-web-modules/spring-thymeleaf/src/main/webapp/WEB-INF/views/functionCall.html +++ b/spring-web-modules/spring-thymeleaf/src/main/webapp/WEB-INF/views/functionCall.html @@ -4,9 +4,16 @@ Thymeleaf: Javascript function call - +
Thymeleaf: Javascript function call
@@ -14,11 +21,10 @@
- - - + + + -