Last active
May 24, 2021 01:59
-
-
Save magyarmelinda/a1e3f515f2f6f3aa98c6b941c0be0b70 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Event Listeners | |
// Reload Home | |
$$(document).on('click', '.back-link', function () { | |
$$(document).on('page:init', '.page[data-name="home"]', function () { | |
window.location.reload(); | |
}); | |
}); | |
// Get Data for Thread Details Page | |
$$(document).on('click', '.thread-details', function () { | |
const id = $$(this).data('thread-id'); | |
setUpThreadDetails(id); | |
setUpComments(id); | |
newComment(id); | |
}); | |
// Pop Up With Swipe To Close | |
const loginSwipeToClosePopup = app.popup.create({ | |
el: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment