diff --git a/src/main/resources/static/js/header.js b/src/main/resources/static/js/header.js new file mode 100644 index 0000000..0b05bdf --- /dev/null +++ b/src/main/resources/static/js/header.js @@ -0,0 +1,9 @@ +$(function () { + $("#free_link").on("click", function() { + $.get("/free-account"); + }); + + $("#login_link").on("click", function() { + $.get("/login-account"); + }); +}); diff --git a/src/main/resources/static/js/start.js b/src/main/resources/static/js/start.js index 4cd1e20..999ef76 100644 --- a/src/main/resources/static/js/start.js +++ b/src/main/resources/static/js/start.js @@ -159,14 +159,6 @@ $(function () { }; */ - $("#free_link").on("click", function() { - $.get("/free-account"); - }); - - $("#login_link").on("click", function() { - $.get("/login-account"); - }); - var generatePackageName = function() { var groupId = $("#groupId").val(); var artifactId = $("#artifactId").val(); diff --git a/src/main/resources/templates/header.mustache b/src/main/resources/templates/header.mustache new file mode 100644 index 0000000..84c9d0e --- /dev/null +++ b/src/main/resources/templates/header.mustache @@ -0,0 +1,36 @@ + \ No newline at end of file diff --git a/src/main/resources/templates/home.mustache b/src/main/resources/templates/home.mustache index 43c95a2..7f81c4c 100644 --- a/src/main/resources/templates/home.mustache +++ b/src/main/resources/templates/home.mustache @@ -19,135 +19,16 @@
- - - +