-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
アンケートポップアップを追加 #283
アンケートポップアップを追加 #283
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
これ難しそうなので、参考になりそうなのをメモしとく。 今のところ思いついた方法は2つある。
それぞれのメリット1. local storageを使う一番のメリットは、導入が簡単なことだと思う。 2. cookieを使うここで敢えてcookieを選ぶメリットはあんまりない。 Note これ以外にもっと良い方法もありそうだけれど今のところ思いつかない @nafell |
localStorageにisPopupshownをチェックして表示非表示の切り替えをする
一回ポップアップを消すと再度リンクに飛ぶ手段がないため、簡易的に追加。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
# Release ホームページにアンケート誘導ポップアップの追加 おすすめ検索ボタンの下にアンケートリンクバナーの追加 ## Related PRs - #283 ## Remark ポップアップ表示はlocalstorageを用いてポップアップ表示の切り替え ## Before submitting > [!WARNING] > > The following is allowed for review only. (No additions or modifications are permitted.) - [x] I have read the [Contribution Guidelines](https://github.com/iputapp/lounas/blob/develop/.github/CONTRIBUTING.md). - [x] I agree to the [Code of Conduct](https://github.com/iputapp/lounas/blob/develop/.github/CODE_OF_CONDUCT.md).
概要
✅️ホーム画面ロード時にポップアップウィンドウを表示
✅️一度閉じた時に再度表示しないようにする
プレビュー