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
// Variables used by Scriptable. | |
// These must be at the very top of the file. Do not edit. | |
// icon-color: deep-gray; icon-glyph: magic; | |
// Licence: Robert Koch-Institut (RKI), dl-de/by-2-0 | |
// Vaccine API by @_ThisIsBenny_ | |
// Define URLs based on the corona.rki.de webpage | |
const newCasesApiUrl = `https://services7.arcgis.com/mOBPykOjAyBO2ZKk/arcgis/rest/services/RKI_COVID19/FeatureServer/0/query?f=json&where=NeuerFall%20IN(1%2C%20-1)&returnGeometry=false&spatialRel=esriSpatialRelIntersects&outFields=*&outStatistics=%5B%7B%22statisticType%22%3A%22sum%22%2C%22onStatisticField%22%3A%22AnzahlFall%22%2C%22outStatisticFieldName%22%3A%22value%22%7D%5D&resultType=standard&cacheHint=true`; | |
const incidenceUrl = (location) => |
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
Funktionen | |
openWindow | |
<a href="https://www.test.de/subpage.html" data-action="openWindow">Neues natives Fenster mit URL öffnen</a> | |
oder | |
<a href="#" data-action="openWindow" data-url="https://www.test.de/subpage.html">Neues natives Fenster mit URL öffnen</a> | |
Das data-action Attribut ist an dieser Stelle optional, da generell ALLE Urls erstmal über openWindow aufgerufen werden. | |
Optionale Parameter: |
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
$(document).ready(function() { | |
var zoomed = false; | |
$( "#container" ).dblclick(function() { | |
if(zoomed === false){ | |
$("body").css('transition', ''); | |
$("body").css('zoom', 2); | |
$("body").css('-moz-transform', 'scale(2)'); | |
$("body").css('-ms-transform', 'scale(2)'); | |
zoomed = true; | |
}else{ |
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
String.prototype.printf = function (obj) { | |
var useArguments = false; | |
var _arguments = arguments; | |
var i = -1; | |
if (typeof _arguments[0] == "string") { | |
useArguments = true; | |
} | |
if (obj instanceof Array || useArguments) { | |
return this.replace(/\%s/g, function (a, b) { | |
i++; |
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
function getFileAndSave (filename, url) { | |
var file_obj = { | |
file: filename, | |
url: url, | |
path: null | |
}; | |
var testFile = Ti.Filesystem.getFile(Ti.Filesystem.applicationDataDirectory); | |
var privateDocFolder = testFile.nativePath.replace('Documents/', ''); | |
privateDocFolder += 'Library/Private%20Documents/'; |