Skip to content

Commit 39d1aa9

Browse files
committed
Moved clear button
1 parent 82b37c3 commit 39d1aa9

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

resources/views/account/profile.blade.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,15 @@
257257
// This takes the color from the color picker to show a live preview
258258
$(function() {
259259
260+
/**
261+
* 5. Add an event listener to toggle the reset
262+
*/
263+
clearButton.addEventListener("click", (event) => {
264+
localStorage.removeItem("theme");
265+
});
266+
267+
268+
260269
$('#nav-link-color').colorpicker().on('changeColor', function(e) {
261270
var color = e.color.toString('rgba');
262271
// $('.navbar-nav > li > a').css('background-color', header_color);

resources/views/layouts/default.blade.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1902,12 +1902,6 @@ function updateThemeOnHtmlEl({ theme }) {
19021902
currentThemeSetting = newTheme;
19031903
});
19041904
1905-
/**
1906-
* 5. Add an event listener to toggle the reset
1907-
*/
1908-
clearButton.addEventListener("click", (event) => {
1909-
localStorage.removeItem("theme");
1910-
});
19111905
19121906
19131907

0 commit comments

Comments
 (0)