From ff5fae7a6327f5c51dada69fe341114ddda94251 Mon Sep 17 00:00:00 2001 From: Jannik Koch Date: Thu, 19 Apr 2018 23:48:09 +0200 Subject: [PATCH] Updates the page for the fourth semester. --- .gitignore | 1 - index.html | 127 ++++++++++++++++++----------------------------------- k.js | 104 ------------------------------------------- 3 files changed, 43 insertions(+), 189 deletions(-) delete mode 100644 k.js diff --git a/.gitignore b/.gitignore index 567609b..e69de29 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +0,0 @@ -build/ diff --git a/index.html b/index.html index f287dd3..bdc9054 100644 --- a/index.html +++ b/index.html @@ -8,116 +8,75 @@

Der AfKollektor

-

3. Fachsemester

+

4. Fachsemester

- -

Grundlagen der Wahrscheinlichkeitsrechnung und Statistik für Informatiker (GWSI)

+ +

Numerische Mathematik

-

ILIAS

+

Website

+
+ + +

Rechnernetze

+
+

ILIAS

- -

Rechnerorganisation (TI2)

-
-

TI Homepage

-
- - -

Betriebssysteme (OS)

-
-

ILIAS

-
- - -

Theoretische Grundlagen der Informatik (TGI)

-
-

TGI Homepage des ITI

-
- + +

Datenbanksysteme

+
+

ILIAS

+
+

Klausurenübersicht

Siehe auch: KitInfo Timers

-

Mitschriebe

-

Mitschriebe von Informatik-Vorlesungen sind unter Lukes Github verfügbar. Mitarbeit immer gerne gesehen.

- diff --git a/k.js b/k.js deleted file mode 100644 index 068460e..0000000 --- a/k.js +++ /dev/null @@ -1,104 +0,0 @@ -(function () { - /* - * A map of key codes so that you dont have to use them directly. - */ - var k = { - UP: 38, - DOWN: 40, - LEFT: 37, - RIGHT: 39, - B: 66, - A: 65 - }; - - /* - * These are the keys of the konami code (according to wikipedia). - */ - var konamiCode = [ k.UP, k.UP, k.DOWN, k.DOWN, k.LEFT, k.RIGHT, k.LEFT, k.RIGHT, k.B, k.A ]; - - /* - * In case someone enters the konami code, unleash the seven hells. - */ - onKeyStreak(konamiCode, unleashTheSevenHells); - - /* - * Keep a record of keystrokes and call a function when a certain streak is entered. - */ - function onKeyStreak (streak, callback) { - var keysPressed = []; - var eventToListenFor = 'keydown'; - - var listener = function (e) { - keysPressed.push(e.keyCode); - - if (isSuffix(streak, keysPressed)) { - window.removeEventListener(eventToListenFor, listener); - callback(); - } - }; - - window.addEventListener(eventToListenFor, listener); - } - - /* - * Check whether listA is a suffix of listB. - */ - function isSuffix (listA, listB) { - if (listA.length > listB.length) { - return false; - } - - var index = 0; - - for (; index < listA.length; index++) { - if (listA[index] !== listB[listB.length - listA.length + index]) { - console.log(index); - return false; - } - } - - return true; - } - - /* - * Commit some chaos and make sure to do so at the next frame too. - */ - function unleashTheSevenHells () { - angery(); - - window.requestAnimationFrame(unleashTheSevenHells); - } - - /* - * Be an angry website. - */ - function angery () { - // This returns a list of all elements that match the CSS selector * (which are all). - var allElements = document.querySelectorAll('*'); - - // Since querySelectorAll doesn't return an array, but something zero-indexed that has a length property, we can use Array's forEach here. - // Welcome to the world of duck typing. - Array.prototype.forEach.call(allElements, makeItPretty); - } - - /* - * Makes an element pretty. - */ - function makeItPretty (element) { - element.style.color = randomColour(); - element.style.backgroundColor = randomColour(); - element.style.textAlign = randomChoice([ 'left', 'center', 'right' ]); - } - - function randomChoice (choices) { - return choices[Math.floor(Math.random() * choices.length)]; - } - - function randomColour () { - var r = Math.floor(Math.random() * 256); - var g = Math.floor(Math.random() * 256); - var b = Math.floor(Math.random() * 256); - - return 'rgb(' + r + ',' + g + ',' + b + ')'; - } -})();