Skip to content

Commit

Permalink
clean up svgs, small bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
eyaler committed Apr 12, 2024
1 parent 5f6fe4f commit dd4f389
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 32 deletions.
6 changes: 3 additions & 3 deletions resen/pages.js
Original file line number Diff line number Diff line change
Expand Up @@ -243,8 +243,8 @@ function page2url(page, lang, current, hash) {


function open_internal_link(elem) {
const [page, ...hash] = elem.hash.slice(1).replace(/\?(.*)/, '').split('_')
elem.href = page2url(page, elem.hash.match(/\?(.*)/)?.[1] || elem.search.slice(1) || null, null, hash.join('_'))
const [page, ...hash] = elem.hash.slice(1).replace(/\?(.*)/, '').split('#')
elem.href = page2url(page, elem.hash.match(/\?(.*)/)?.[1] || elem.search.slice(1) || null, null, hash.join('#'))
}


Expand Down Expand Up @@ -658,7 +658,7 @@ function get_make_author(page, lang, elem, new_tab_for_social=default_new_tab_fo
span.className = 'social'
networks.forEach(net => {
if (span.innerHTML)
span.innerHTML += ' '
span.innerHTML += ' '
let prefix = ''
if (!author[net].match(/[:/]/) && social[net].url)
prefix = social[net].url
Expand Down
2 changes: 1 addition & 1 deletion resen/petri/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const comp_marking = 5

const lang = get_lang()
let global_reset_counter = 0
document.addEventListener('keydown', e => global_reset_counter += is_key(e, 'Backspace'))
document.addEventListener('keydown', e => global_reset_counter += is_shortcut(e, 'Backspace'))

function compare_lists(a, b) {
if (a.length != b.length)
Expand Down
Loading

0 comments on commit dd4f389

Please sign in to comment.