Merge branch 'main' into add-copy-button
This commit is contained in:
commit
0c7993fed7
20 changed files with 1572 additions and 619 deletions
|
@ -7,7 +7,7 @@ window.addEventListener('DOMContentLoaded', () => {
|
|||
const fuseOptions = {
|
||||
shouldSort: true,
|
||||
includeMatches: true,
|
||||
threshold: 0.0,
|
||||
threshold: 0.1,
|
||||
tokenize: true,
|
||||
location: 0,
|
||||
distance: 100,
|
||||
|
|
|
@ -4,4 +4,5 @@ import './sidebar'
|
|||
import './education'
|
||||
import './achievements'
|
||||
import './projects'
|
||||
import './skills'
|
||||
import './publications'
|
||||
|
|
15
assets/scripts/sections/skills.js
Normal file
15
assets/scripts/sections/skills.js
Normal file
|
@ -0,0 +1,15 @@
|
|||
import Filterizr from 'filterizr'
|
||||
|
||||
document.addEventListener('DOMContentLoaded', () => {
|
||||
// ================== Skill cards =====================
|
||||
|
||||
// setup skill filter buttons
|
||||
const skillCardHolder = document.getElementById('skill-card-holder')
|
||||
if (skillCardHolder != null && skillCardHolder.children.length !== 0) {
|
||||
// eslint-disable-next-line no-new
|
||||
new Filterizr('.filtr-skills', {
|
||||
layout: 'sameWidth',
|
||||
controlsSelector: '.skill-filtr-control'
|
||||
})
|
||||
}
|
||||
})
|
Loading…
Add table
Add a link
Reference in a new issue