Skip to content

Commit

Permalink
Deploy test
Browse files Browse the repository at this point in the history
  • Loading branch information
rsnyder committed Oct 5, 2023
1 parent a0616a5 commit 7b834da
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion juncture/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,12 +111,15 @@ function createApp() {

Array.from(tmp.querySelectorAll('[data-id]'))
.forEach(seg => {
if (seg.tagName === 'SECTION') return
seg.setAttribute('data-seg', '')
let id = seg.getAttribute('data-id') || ''
let wrapper = document.createElement('div')
wrapper.setAttribute('data-id', id)
wrapper.setAttribute('data-wrapper', '')
wrapper.id = id
wrapper.className = seg.className
// seg.removeAttribute('id')
seg.removeAttribute('id')
seg.removeAttribute('data-id')
seg.className = ''
wrapper.appendChild(seg.cloneNode(true))
Expand Down

0 comments on commit 7b834da

Please sign in to comment.