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GjEhC,OAAO+C,OAAS,WAAW5E,EAdhB,KAEO,2BAYiCC,EAAK,C","sources":["webpack:///./js/hfgotio.js","webpack:///./js/app.js","webpack:///webpack/bootstrap","webpack:///webpack/runtime/make namespace object"],"sourcesContent":["var main = require('./app').main;\n\nvar type = 'io';\n\nvar description = 'Microsites HfG Karlsruhe';\n\nvar menu = [\n\t{ path: \"http://adsz.hfg-karlsruhe.de/\", label: \"Ausstellungsdesign und Szenografie\" },\n\t{ path: \"http://kommunikationsdesign.hfg-karlsruhe.de/\", label: \"Kommunikationsdesign\" },\n\t{ path: \"https://digitalhfg.xyz/\", label: \"Digitale Kunst\" },\n\t{ path: \"http://film.hfg-karlsruhe.de/\", label: \"MK Film\" },\n\t{ path: \"http://fotografie.hfg-karlsruhe.de/\", label: \"MK Fotografie\" },\n\t{ path: \"https://www.researchcatalogue.net/view/1910784/1910785\", label: \"MK Sound\" },\n\t{ path: \"http://infoart.hfg-karlsruhe.de/gamelab\", label: \"Gamelab\" },\n];\n\nwindow.onload = function(){main(type, description, menu)};\n","require('../less/hfgot.less');\n\nvar sheet = (function () {\n\tvar style = document.createElement(\"style\");\n\tstyle.appendChild(document.createTextNode(\"\"));\n\tdocument.head.appendChild(style);\n\treturn style.sheet;\n})();\n\nvar esc = function (ev) {\n\tif (ev.keyCode == 27) {\n\t\trm_overlay(ev);\n\t\tdocument.removeEventListener('keydown', esc);\n\t}\n}\n\nvar add_overlay = function (title, data, container) {\n\tvar overlay = document.createElement('div');\n\toverlay.setAttribute('id', 'hfg-punkt-ueberlagerung');\n\tcontainer.appendChild(overlay);\n\tsetTimeout(function() {\n\t\toverlay.className += ' aktiv';\n\t}, 5);\n\n\tvar link = document.createElement('a');\n\tlink.setAttribute('href', '#');\n\tlink.setAttribute('id', 'hfg-depunkt');\n\tlink.innerHTML = '\\u2022 trigger the menu \\u2022';\n\toverlay.appendChild(link);\n\n\tlink.addEventListener('click', function(ev) {\n\t\tev.preventDefault();\n\t\trm_overlay(container);\n\t}); \n\n\t// add the logo to the overlay\n\tvar logo_container = document.createElement('div');\n\tlogo_container.setAttribute('id', 'hfg-punkt-logo-container');\n\tlogo_container.className += ' logo-container';\n\tvar text = document.createElement('span');\n\ttext.className += 'text';\n\ttext.innerHTML = title;\n\tlogo_container.appendChild(text);\n\toverlay.appendChild(logo_container);\n\n\t// add the buttons to the overlay\n\tvar buttons_container = document.createElement('div');\n\tbuttons_container.className += ' buttons-container';\n\tvar buttons = document.createElement('ul');\n\tbuttons.className += ' buttons list ' + 'count-' + data.length;\n\n\t// style relevant stuff\n\tvar buttons_count = data.length;\n\tvar full_bucket2 = Math.ceil(buttons_count/2);\n\tvar full_bucket3 = Math.ceil(buttons_count/3);\n\tvar last_bucket2 = buttons_count - full_bucket2;\n\tvar last_bucket3 = buttons_count - 2*full_bucket3;\n\tvar document_height = Math.max(document.documentElement.clientHeight, window.innerHeight || 0);\n\tvar document_height_correction = Math.max(document.getElementById('hfg-punkt-logo-container').clientHeight || 0);\n\tvar container_height = document_height - document_height_correction;\n\n\tdata.forEach(function(el, eli) {\n\t\tvar li = document.createElement('li');\n\t\tli.className += ' button-container';\n\t\tif (eli > full_bucket2-1) {\n\t\t\tli.className += ' resize-2';\n\t\t}\n\t\tif (eli > 2*full_bucket3-1) {\n\t\t\tli.className += ' resize-3';\n\t\t}\n\t\tvar a = document.createElement('a');\n\t\ta.setAttribute('href', el.path);\n\t\ta.className += ' button';\n\t\tvar span = document.createElement('span');\n\t\tspan.className += ' button-text';\n\t\tspan.innerHTML = el.label;\n\n\t\ta.appendChild(span);\n\t\tli.appendChild(a);\n\t\tbuttons.appendChild(li);\n\t});\n\n\tsheet.insertRule(\"@media (min-width: 840px) and (max-width: 1600px) {\" +\n\t\t\"#hfg-punkt-huelle #hfg-punkt-ueberlagerung .buttons-container {\" +\n\t\t\t\"min-height: \" + container_height + \"px;\" +\n\t\t\"}\" +\n\t\t\"#hfg-punkt-huelle #hfg-punkt-ueberlagerung .buttons-container .buttons .button-container .button {\" +\n\t\t\t\"height: \" + container_height/full_bucket2 + \"px;\" +\n\t\t\t\"max-height: \" + container_height/full_bucket2 + \"px;\" +\n\t\t\"}\" +\n\t\t\"#hfg-punkt-huelle #hfg-punkt-ueberlagerung .buttons-container .buttons .button-container.resize-2 .button {\" +\n\t\t\t\"height: \" + container_height/last_bucket2 + \"px;\" +\n\t\t\t\"max-height: \" + container_height/last_bucket2 + \"px;\" +\n\t\t\t\"min-height: \" + 130*full_bucket2/last_bucket2 + \"px;\" +\n\t\t\"}\" +\n\t\"}\", 0);\n\n\tsheet.insertRule(\"@media (min-width: 1600px) {\" +\n\t\t\"#hfg-punkt-huelle #hfg-punkt-ueberlagerung .buttons-container {\" +\n\t\t\t\"min-height: \" + container_height + \"px;\" +\n\t\t\"}\" +\n\t\t\"#hfg-punkt-huelle #hfg-punkt-ueberlagerung .buttons-container .buttons .button-container .button {\" +\n\t\t\t\"height: \" + container_height/full_bucket3 + \"px;\" +\n\t\t\t\"max-height: \" + container_height/full_bucket3 + \"px;\" +\n\t\t\"}\" +\n\t\t\"#hfg-punkt-huelle #hfg-punkt-ueberlagerung .buttons-container .buttons .button-container.resize-3 .button {\" +\n\t\t\t\"height: \" + container_height/last_bucket3 + \"px;\" +\n\t\t\t\"max-height: \" + container_height/last_bucket3 + \"px;\" +\n\t\t\t\"min-height: \" + 130*full_bucket3/last_bucket3 + \"px;\" +\n\t\t\"}\" +\n\t\"}\", 0);\n\t\n\tbuttons_container.appendChild(buttons);\n\toverlay.appendChild(buttons_container);\n\n\tdocument.documentElement.style.overflow = 'hidden';\n\tdocument.body.style.overflow = 'hidden';\n\n}\n\nvar rm_overlay = function (ev) {\n\tvar el = document.getElementById('hfg-punkt-ueberlagerung');\n\tel.classList.remove('aktiv');\n\tsetTimeout(function() {\n\t\tel.remove();\n\t\tsheet.deleteRule(0);\n\t\tsheet.deleteRule(0);\n\t}, 250);\n\tdocument.documentElement.style.overflow = '';\n\tdocument.body.style.overflow = '';\n}\n\n\nvar main = function (impl, title, data) {\n\tif (window != window.top) {\n\t\treturn;\n\t}\n\tvar container = document.createElement('div');\n\tcontainer.setAttribute('id', 'hfg-punkt-huelle');\n\tcontainer.className += impl;\n\tvar link = document.createElement('a');\n\tlink.setAttribute('href', '#');\n\tlink.setAttribute('id', 'hfg-punkt');\n\tlink.innerHTML = '\\u2022 trigger the menu \\u2022';\n\tdocument.body.appendChild(container);\n\tcontainer.appendChild(link);\n\n\tdocument.addEventListener('keydown', esc, false);\n\tlink.addEventListener('click', function(ev) {\n\t\tev.preventDefault();\n\t\tadd_overlay(title, data, container);\n\t\tdocument.addEventListener('keydown', esc, false);\n\t}); \n}\n\nmodule.exports.main = main;\n\n","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};"],"names":["main","menu","require","style","sheet","document","createElement","appendChild","createTextNode","head","esc","ev","keyCode","rm_overlay","removeEventListener","el","getElementById","classList","remove","setTimeout","deleteRule","documentElement","overflow","body","module","exports","impl","title","data","window","top","container","setAttribute","className","link","innerHTML","addEventListener","preventDefault","overlay","logo_container","text","buttons_container","buttons","length","buttons_count","full_bucket2","Math","ceil","full_bucket3","last_bucket2","last_bucket3","container_height","max","clientHeight","innerHeight","forEach","eli","li","a","path","span","label","insertRule","add_overlay","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","__webpack_modules__","r","Symbol","toStringTag","Object","defineProperty","value","onload"],"sourceRoot":""}