This file contains 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
const UpdateProcessWireFrontendContentUsingHtmxDemo = { | |
initHTMXXRequestedWithXMLHttpRequest: function () { | |
document.body.addEventListener("htmx:configRequest", (event) => { | |
// @note: ADD THIS!!! if not using hx-include='token input' | |
// const csrf_token = UpdateProcessWireFrontendContentUsingHtmxDemo.getCSRFToken() | |
// event.detail.headers[csrf_token.name] = csrf_token.value | |
// add XMLHttpRequest to header to work with $config->ajax | |
event.detail.headers["X-Requested-With"] = "XMLHttpRequest" | |
}) | |
}, |
This file contains 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
#!/bin/bash | |
COMPRESS=1 # Compress if ImageOptim is intalled. 0 = disabled; 1 = enabled | |
iOSSubdir="/iOS" # make this an empty string to save in same dir | |
androidSubdir="/Android" # make this an empty string to save in same dir | |
help() { | |
echo "" | |
echo "Usage: ./$(basename "$0") <your_1024x1024.png>" | |
echo " --------------------------------------------------------------------------------------" |