theme, plugins und config für die Webseite der Baptisten Hohenacker
https://baptisten-hohenacker.de
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
2 lines
2.9 KiB
2 lines
2.9 KiB
// Native Javascript for Bootstrap 3 v2.0.23 | © dnp_theme | MIT-License |
|
!function(e,n){if("function"==typeof define&&define.amd)define([],n);else if("object"==typeof module&&module.exports)module.exports=n();else{var t=n();e.Dropdown=t.Dropdown}}(this,function(){"use strict";var e="undefined"!=typeof global?global:this||window,n=document,t=n.documentElement,o=e.BSN={},i=o.supports=[],r="Transition",a="Webkit",c="style",d=(t[c],a+r in t[c]||(r.toLowerCase(),t[c]),a+r in t[c]?a.toLowerCase():r.toLowerCase(),a+"Duration"in t[c]?a.toLowerCase():r.toLowerCase(),function(e){e.focus?e.focus():e.setActive()}),l=function(e,n){e.classList.add(n)},s=function(e,n){e.classList.remove(n)},u=function(e,n){return e.classList.contains(n)},f=function(e,t){var o=t||n;return"object"==typeof e?e:o.querySelector(e)},p=function(e,n,t){e.addEventListener(n,t,!1)},h=function(e,n,t){e.removeEventListener(n,t,!1)},w=function(e,n,t){var o=new CustomEvent(e+".bs."+n);o.relatedTarget=t,this.dispatchEvent(o)};o.version="2.0.23";var v=function(e,t){e=f(e),this.persist=!0===t||"true"===e.getAttribute("data-persist")||!1;var o=this,i=e.parentNode,r="open",a=null,c=f(".dropdown-menu",i),v=function(){for(var e=c.children,n=[],t=0;t<e.length;t++)e[t].children.length&&"A"===e[t].children[0].tagName&&n.push(e[t]);return n}(),g=function(e){(e.href&&"#"===e.href.slice(-1)||e.parentNode&&e.parentNode.href&&"#"===e.parentNode.href.slice(-1))&&this.preventDefault()},m=function(){var t=e[r]?p:h;t(n,"click",b),t(n,"keydown",D),t(n,"keyup",N)},b=function(n){var t=n.target,i=t&&("Dropdown"in t||"Dropdown"in t.parentNode);(t!==c&&!c.contains(t)||!o.persist&&!i)&&(a=t===e||e.contains(t)?e:null,k(),g.call(n,t))},y=function(n){a=e,L(),g.call(n,n.target)},D=function(e){var n=e.which||e.keyCode;38!==n&&40!==n||e.preventDefault()},N=function(t){var i=t.which||t.keyCode,l=n.activeElement,s=v.indexOf(l.parentNode),u=l===e,f=c.contains(l),p=l.parentNode.parentNode===c;(p||u)&&(s=u?0:38===i?s>1?s-1:0:40===i&&s<v.length-1?s+1:s,v[s]&&d(v[s].children[0])),(v.length&&p||!v.length&&(f||u)||!f)&&e[r]&&27===i&&(o.toggle(),a=null)},L=function(){w.call(i,"show","dropdown",a),l(i,r),c.setAttribute("aria-expanded",!0),w.call(i,"shown","dropdown",a),e[r]=!0,h(e,"click",y),setTimeout(function(){d(c.getElementsByTagName("INPUT")[0]||e),m()},1)},k=function(){w.call(i,"hide","dropdown",a),s(i,r),c.setAttribute("aria-expanded",!1),w.call(i,"hidden","dropdown",a),e[r]=!1,m(),d(e),setTimeout(function(){p(e,"click",y)},1)};e[r]=!1,this.toggle=function(){u(i,r)&&e[r]?k():L()},"Dropdown"in e||(!1 in c&&c.setAttribute("tabindex","0"),p(e,"click",y)),e.Dropdown=o};i.push(["Dropdown",v,'[data-toggle="dropdown"]']);var g=function(e,n){for(var t=0,o=n.length;t<o;t++)new e(n[t])},m=o.initCallback=function(e){e=e||n;for(var t=0,o=i.length;t<o;t++)g(i[t][1],e.querySelectorAll(i[t][2]))};return n.body?m():p(n,"DOMContentLoaded",function(){m()}),{Dropdown:v}});
|
|
|