Fixed handleGesture by moving it up, actually this time
This commit is contained in:
parent
1c0ccfc6bf
commit
95055cc857
|
@ -68,23 +68,8 @@ let indiv = false
|
|||
let mobile = false
|
||||
let selectLatestNote = false
|
||||
|
||||
// Init the note box
|
||||
document.addEventListener("DOMContentLoaded", function() {
|
||||
pell.init({
|
||||
element: pellAttacher,
|
||||
onChange: html => console.log(html),
|
||||
defaultParagraphSeparator: 'br',
|
||||
styleWithCSS: false,
|
||||
classes: {
|
||||
actionbar: 'pell-actionbar',
|
||||
button: 'pell-button',
|
||||
content: 'pell-content',
|
||||
selected: 'pell-button-selected'
|
||||
}
|
||||
})
|
||||
let noteBox = document.getElementsByClassName("pell-content")[0]
|
||||
|
||||
function handleGesture() {
|
||||
function handleGesture() {
|
||||
if (indiv) {
|
||||
indiv = false
|
||||
notesBar.style.width = "100%";
|
||||
|
@ -108,7 +93,23 @@ document.addEventListener("DOMContentLoaded", function() {
|
|||
backButton.classList.remove("hidden")
|
||||
newNote.classList.add("hidden")
|
||||
}
|
||||
}
|
||||
|
||||
// Init the note box
|
||||
document.addEventListener("DOMContentLoaded", function() {
|
||||
pell.init({
|
||||
element: pellAttacher,
|
||||
onChange: html => console.log(html),
|
||||
defaultParagraphSeparator: 'br',
|
||||
styleWithCSS: false,
|
||||
classes: {
|
||||
actionbar: 'pell-actionbar',
|
||||
button: 'pell-button',
|
||||
content: 'pell-content',
|
||||
selected: 'pell-button-selected'
|
||||
}
|
||||
})
|
||||
let noteBox = document.getElementsByClassName("pell-content")[0]
|
||||
|
||||
if (/Android|iPhone|iPod/i.test(navigator.userAgent)) {
|
||||
mobile = true
|
||||
|
|
Reference in New Issue