From bbc52b95e4b69344cad465e7a992176c36a20875 Mon Sep 17 00:00:00 2001 From: Andre Beging Date: Tue, 18 Aug 2020 12:48:50 +0200 Subject: [PATCH] Added zooming to images --- content/anreise.md | 10 ++++++++-- content/location.md | 30 +++++++++++------------------- content/merch.md | 15 ++++++++++----- layouts/partials/footer.html | 1 + static/js/zooming.min.js | 1 + 5 files changed, 31 insertions(+), 26 deletions(-) create mode 100644 static/js/zooming.min.js diff --git a/content/anreise.md b/content/anreise.md index d37cea8..7dad1bf 100644 --- a/content/anreise.md +++ b/content/anreise.md @@ -17,7 +17,7 @@ Daubachtal 1\ Sowohl Google Maps als auch sonstige Routenplaner und Navigationssysteme sollten die Adresse schlucken. Falls nicht, findet ihr hier eine kleine Abbildung, die euch vom Ort aus den Weg weist: - + (KLICKEN ZUM VERGRÖßERN) @@ -40,4 +40,10 @@ Dennoch hier zwei Beispiel-Verbindungen mit dem ÖPNV: **Beispiel-Verbindung ab Koblenz** -(KLICKEN ZUM VERGRÖßERN) \ No newline at end of file +(KLICKEN ZUM VERGRÖßERN) + + \ No newline at end of file diff --git a/content/location.md b/content/location.md index 3dbc0fc..dc6ab2a 100644 --- a/content/location.md +++ b/content/location.md @@ -17,9 +17,7 @@ Daubachtal 1\ Mit Parkplätzen
- - - +
@@ -28,9 +26,7 @@ Daubachtal 1\ Kinder bitte wegdenken
- - - +
@@ -39,9 +35,7 @@ Daubachtal 1\ Eingehend geprüfte Flunkyballeignung
- - - +
@@ -50,9 +44,7 @@ Daubachtal 1\ Von innen viel größer. 80qm
- - - +
@@ -61,9 +53,7 @@ Daubachtal 1\ Gulasch? Gulasch!
- - - +
@@ -72,13 +62,15 @@ Daubachtal 1\ Morgens ein paar Bahnen schwimmen
- - - +
- + diff --git a/content/merch.md b/content/merch.md index 4e4313d..f31fb5c 100644 --- a/content/merch.md +++ b/content/merch.md @@ -89,7 +89,7 @@ date: '2020-02-18' T-Shirt
- +

Vorne im klassischen <DD>-Design
Die Rückseite mit Event-Motiv
@@ -103,7 +103,7 @@ date: '2020-02-18' Bierkrug

- +

Rundherum bedruckt im coolen <DD>-Design
Personalisiert mit Hex-ID
@@ -117,7 +117,7 @@ date: '2020-02-18' Weißbierglas

- +

Hochwertige Lasergravur
im coolen <DD>-Design
@@ -131,7 +131,7 @@ date: '2020-02-18' Emaille Tasse

- +

Rundherum bedruckt im coolen <DD>-Design
 
@@ -140,4 +140,9 @@ date: '2020-02-18'

€ 10,00

- \ No newline at end of file + + \ No newline at end of file diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 299416a..b93266f 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -24,4 +24,5 @@ + \ No newline at end of file diff --git a/static/js/zooming.min.js b/static/js/zooming.min.js new file mode 100644 index 0000000..7e7c1ee --- /dev/null +++ b/static/js/zooming.min.js @@ -0,0 +1 @@ +!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t=t||self).Zooming=e()}(this,function(){"use strict";var t="auto",n="zoom-in",o="zoom-out",r="grab",a="move";function l(t,e,i){var n={passive:!1};!(3=o||Math.abs(n)>=o)&&(this.lastScrollPosition=null,this.close())},keydown:function(t){var e;("Escape"===((e=t).key||e.code)||27===e.keyCode)&&(this.released?this.close():this.release(this.close))},mousedown:function(t){if(d(t)&&!f(t)){t.preventDefault();var e=t.clientX,i=t.clientY;this.pressTimer=setTimeout(function(){this.grab(e,i)}.bind(this),200)}},mousemove:function(t){this.released||this.move(t.clientX,t.clientY)},mouseup:function(t){d(t)&&!f(t)&&(clearTimeout(this.pressTimer),this.released?this.close():this.release())},touchstart:function(t){t.preventDefault();var e=t.touches[0],i=e.clientX,n=e.clientY;this.pressTimer=setTimeout(function(){this.grab(i,n)}.bind(this),200)},touchmove:function(t){if(!this.released){var e=t.touches[0],i=e.clientX,n=e.clientY;this.move(i,n)}},touchend:function(t){void t.targetTouches.length||(clearTimeout(this.pressTimer),this.released?this.close():this.release())},clickOverlay:function(){this.close()},resizeWindow:function(){this.close()}};function d(t){return 0===t.button}function f(t){return t.metaKey||t.ctrlKey}var p={init:function(t){this.el=document.createElement("div"),this.instance=t,this.parent=document.body,c(this.el,{position:"fixed",top:0,left:0,right:0,bottom:0,opacity:0}),this.updateStyle(t.options),l(this.el,"click",t.handler.clickOverlay.bind(t))},updateStyle:function(t){c(this.el,{zIndex:t.zIndex,backgroundColor:t.bgColor,transition:"opacity\n "+t.transitionDuration+"s\n "+t.transitionTimingFunction})},insert:function(){this.parent.appendChild(this.el)},remove:function(){this.parent.removeChild(this.el)},fadeIn:function(){this.el.offsetWidth,this.el.style.opacity=this.instance.options.bgOpacity},fadeOut:function(){this.el.style.opacity=0}},m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},y=function(){function n(t,e){for(var i=0;i