Skip to content

Instantly share code, notes, and snippets.

@F43nd1r
F43nd1r / webinscribe2ics.js
Last active October 22, 2017 10:13 — forked from phiresky/compiled
Export ICS file from KIT Webinscribe. Paste into web console
var today = new Date();
var date = prompt("Datum des Montags in der ersten Tutorienwoche (Format TT.MM.JJJJ)",('0' + today.getDate()).slice(-2)+"."+('0' + (today.getMonth()+1)).slice(-2)+"."+today.getFullYear());
var count = prompt("Anzahl der Wiederholungen","13");
if(date != null && count != null) {
var temp = date.split(".");
var year = temp[2];
var month = temp[1];
var day = parseInt(temp[0]);
var out = "BEGIN:VCALENDAR\nVERSION:2.0\nPRODID:-//phiresky.de//tools\n";
var t = $("table.piTable>tbody").children;