Skip to content

Commit

Permalink
Merge pull request #71 from Kokecoco/questionnaire-link
Browse files Browse the repository at this point in the history
✨ feat: 右下のトーストを再調査フォームに変更
  • Loading branch information
Sota000-1 authored Nov 13, 2024
2 parents 8fe67f1 + 7769465 commit c3e4176
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions _layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -123,9 +123,9 @@
></button>
</div>
<div class="toast-body">
満足度アンケートにご協力ください
ニーズ再調査アンケートにご協力ください(必須)
<a
href="https://docs.google.com/forms/u/1/d/195f98qlnqLGJ6yexaj1DQzL11GW5w48XmJ-OwSTB3-0/edit?usp=forms_home&ths=true"
href="https://docs.google.com/forms/d/e/1FAIpQLSeC2KrViAyuMA-gN6lywmTp3fe0H49c3xAgxtiRQAUR10_MPQ/viewform"
>
アンケートはこちら
</a>
Expand All @@ -134,6 +134,7 @@
class="form-check-input"
type="checkbox"
id="answeredCheck"
disabled
/>
<label class="form-check-label" for="answeredCheck">
もう回答しました
Expand All @@ -145,7 +146,7 @@

<script>
// ローカルストレージを確認
if (!localStorage.getItem("surveyAnswered2")) {
if (!localStorage.getItem("surveyAnswered3")) {
var toastEl = document.getElementById("liveToast");
var toast = new bootstrap.Toast(toastEl, { autohide: false });
toast.show();
Expand All @@ -157,7 +158,7 @@
.addEventListener("change", function () {
if (this.checked) {
// ローカルストレージにデータを書き込み
localStorage.setItem("surveyAnswered2", "true");
localStorage.setItem("surveyAnswered3", "true");
}
});
</script>
Expand Down

0 comments on commit c3e4176

Please sign in to comment.