mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-10-17 02:56:16 +08:00
parent
b899cf65a8
commit
5b378cc606
3 changed files with 15 additions and 5 deletions
|
@ -451,9 +451,11 @@
|
|||
.buttons {
|
||||
margin-top: 0.25rem;
|
||||
display: grid;
|
||||
grid-auto-flow: column;
|
||||
gap: 1rem;
|
||||
grid-template-columns: 1fr 2.25rem;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
.openSettings {
|
||||
grid-column: span 2;
|
||||
}
|
||||
}
|
||||
.settings {
|
||||
display: grid;
|
||||
|
|
|
@ -87,6 +87,15 @@ $("#cookiePopup .acceptAll").on("click", () => {
|
|||
hide();
|
||||
});
|
||||
|
||||
$("#cookiePopup .rejectAll").on("click", () => {
|
||||
const accepted = {
|
||||
security: true,
|
||||
analytics: false,
|
||||
};
|
||||
setAcceptedObject(accepted);
|
||||
hide();
|
||||
});
|
||||
|
||||
$("#cookiePopup .acceptSelected").on("click", () => {
|
||||
const analytics = $("#cookiePopup .cookie.analytics input").prop("checked");
|
||||
const accepted = {
|
||||
|
|
|
@ -23,9 +23,8 @@
|
|||
</div>
|
||||
<div class="buttons">
|
||||
<div class="button active acceptAll">Accept all</div>
|
||||
<div class="button openSettings">
|
||||
<i class="fas far fa-cog"></i>
|
||||
</div>
|
||||
<div class="button rejectAll">Reject all</div>
|
||||
<div class="button openSettings">More options</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="settings hidden">
|
||||
|
|
Loading…
Add table
Reference in a new issue