')}
`).hide(); $("#commentSection").append(newItem); newItem.fadeIn(); visibleComments.push(JSON.stringify(element)); $("#no-comments").hide(); }); }; function reloadComments() { var sqlStatement = encodeURIComponent(`SELECT A, C, D, E WHERE B = '${thisPageUrl}'`); fetch(`https://docs.google.com/spreadsheets/d/13Hvj5zjt5ksC8M_5ereuvLPSTV-UBF6VoiNgSTpidMM/gviz/tq?tqx=out:csv&sheet=comments&tq=${sqlStatement}&headers=0`) .then(response => response.text()) .then(response => displayComments(response)); }; reloadComments(); const encodeFormData = (data) => { return Object.keys(data) .map(key => encodeURIComponent(key) + '=' + encodeURIComponent(data[key])) .join('&'); }; function postComment() { var username = $("#comment-name").val(); var comment = $("#comment-comment").val(); fetch(`https://docs.google.com/forms/d/10zF2BH2h7jx7JbzQHu4fXK76Cjcz1WDcdYN-aa4LNqg/formResponse`, { method: 'POST', mode: 'no-cors', headers: { "Content-Type": "application/x-www-form-urlencoded" }, body: encodeFormData({ "entry.148489506" : thisPageUrl, "entry.1990599000" : username, "entry.1482663308" : comment }) }).then(response => { $("#comment-name").val(''); $("#comment-comment").val(''); reloadComments(); }) .catch(error => {console.log(error)}); return false; };There are currently not any comments yet.
If you use find any of the information provided on this website useful it would be great to hear from you and please consider citing the paper! All rights reserved © 2021 Jolle Jolles. Website built using Jekyll and the Just the Docs theme.
Please leave your comment below. If you'd like to be notified of my reply, please leave your comment here for others but also send your comment as an email to me. I will try to reply as soon as I can. Thanks!