Skip to content

Instantly share code, notes, and snippets.

@ThisIsBenny
ThisIsBenny / apple-order.js
Last active Jan 1, 2021
Appe Order Widget Script with log file
View apple-order.js
// Version 1.1.5 - BETA
const cacheMinutes = 60 * 2
const today = new Date()
let width;
const h = 5
const debug = false
if (config.widgetFamily === 'small') {
width = 200
View PushCut-Example.js
const req = new Request('https://api.pushcut.io/l...-s/notifications/Example')
await req.loadJSON()
// Oder mit dynamischen Title und Text. Und einer Url welche sich öffnet wenn man die Push Nachricht anklickt.
const req2 = new Request('https://api.pushcut.io/l...-s/notifications/Example')
req2.method = 'POST'
req2.headers = {