Skip to content

Commit

Permalink
fix: active
Browse files Browse the repository at this point in the history
  • Loading branch information
Valexr committed Apr 25, 2024
1 parent a686d72 commit 2352d47
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
8 changes: 1 addition & 7 deletions src/App.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,7 @@
export let name: Name;
export let repository: Repository;
// let input: HTMLInputElement;
let active: string | undefined = "0";
// function openDatepicker() {
// input.focus();
// input.showPicker();
// }
let active: string | undefined;
function intersection(section: HTMLElement) {
const observer = new IntersectionObserver(observe, { threshold: 1.0 });
Expand Down
4 changes: 4 additions & 0 deletions src/lib/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,7 @@ export function convert(en: keyof Trans, count = 0) {
return RU ? trans[en] : count === 1 ? en.substring(0, en.length - 1) : en
}

function openDatepicker(input: HTMLInputElement) {
input.focus();
input.showPicker();
}

0 comments on commit 2352d47

Please sign in to comment.