Skip to content

Commit

Permalink
-hotfix
Browse files Browse the repository at this point in the history
  • Loading branch information
mikrosmile committed Dec 3, 2022
1 parent 0391e57 commit 92cca91
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 17 deletions.
15 changes: 0 additions & 15 deletions resources/dist/timex.js
Expand Up @@ -31,18 +31,3 @@ window.addEventListener('monthLoaded', event => {
})
});

function addBorder(evt)
{
const element = document.getElementById(evt.srcElement.id);
element.style.backgroundColor = "gray";
element.style.opacity = "0.4";
element.style.color = "white";
}

function removeBorder(evt)
{
const element = document.getElementById(evt.srcElement.id);
element.removeAttribute('style');

}

3 changes: 1 addition & 2 deletions resources/views/calendar/day.blade.php
Expand Up @@ -16,13 +16,12 @@
wire:click="$emitUp('onDayClick','{{$timestamp}}')">
<span
id="day-{{$timestamp}}"
onmouseenter="addBorder(event)"
onmouseleave="removeBorder(event)"
@class(
[
'relative cursor-pointer inline-flex items-center justify-center text-sm ml-auto rtl:ml-0 rtl:mr-auto font-medium tracking-tight rounded-xl whitespace-normal',
'text-white bg-primary-500' => $isCurrentDay,
'rounded-full px-3 py-0.5 h-6 -mb-2',
'hover:bg-gray-500 hover:text-white'
]
)
>
Expand Down

0 comments on commit 92cca91

Please sign in to comment.