From 5ac0c4e09ef09ad2dcbf0e6c7209334427f81473 Mon Sep 17 00:00:00 2001 From: Ratnadeep Rajendra Kharade <92khra1mst@hft-stuttgart.de> Date: Mon, 12 Oct 2020 13:27:00 +0200 Subject: [PATCH] added feedback button and toggle feedback form functionality --- public/index.html | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/public/index.html b/public/index.html index cbbccb4..5a710e7 100644 --- a/public/index.html +++ b/public/index.html @@ -78,15 +78,20 @@ <div> <button onclick="calculateReadingTime()">Calculate</button> </div> - <div> - <div id="calculate-time-element" class="title" style="display: none;"> + <div id="calculate-time-element" style="display: none;"> + <div class="title"> <h2>Estimated Reading Time: 5 min</h2> </div> + <div> + Send your feedback on: ybehira@yahoo.com + <button onclick="showFeedbackForm()">Feedback</button> + </div> </div> + </div> - <div> + <div id="feedback-form" style="display: none;"> <div class="title" style="padding-bottom: 12px; border-bottom: 1px solid #dddddd; margin-bottom: 10px;"> - <h3>Please provide feedback</h3> + <h3>Feedback Form</h3> </div> <div> <form action="mailto:ratnadeepkharade@gmail.com" method="GET" target="_blank"> @@ -159,6 +164,11 @@ x.style.display = "block"; } + function showFeedbackForm() { + let x = document.getElementById('feedback-form'); + x.style.display = "block"; + } + </script> <!-- KEINE ÄNDERUNGEN NACH DIESER ZEILE --> -- GitLab