splide-1.0.x-dev/js/components/splide.colorbox.min.js

js/components/splide.colorbox.min.js
!function(r,i,c){"use strict";var o="splide",l=o+"-colorbox",s="."+o,n=s+".is-colorbox",d=s+"__slide",b=d+"--clone",u=d+":not("+b+")";function a(o){r(u,o).each(function(o,e){r(e).attr("data-delta",o)})}i.splideColorbox=i.splideColorbox||{set:function(o){var e,t=r.colorbox.element(),c=t.closest(s),l=c.find(b+" .litebox"),n=c.find(u+" .litebox").length,a=r("#cboxCurrent");c.length&&(e=function(t){l.length&&l.each(function(o,e){r(e)[t?"addClass":"removeClass"]("cboxElement"),i[t?"attachBehaviors":"detachBehaviors"](e)})},c=Math.abs(t.closest(d).data("delta")),isNaN(c)&&(c=0),"cbox_load"===o?e(!1):"cbox_complete"===o?a.length&&(t=(t=drupalSettings.colorbox.current||!1)?t.replace("{current}",c+1).replace("{total}",n):i.t("@curr of @total",{"@curr":c+1,"@total":n}),a.text(t)):"cbox_closed"===o&&window.setTimeout(function(){e(!0)},10))}},i.behaviors.splideColorbox={attach:function(o){var e=i.splideColorbox,t=c.context(o);r(t).on("cbox_load",function(){e.set("cbox_load")}),r(t).on("cbox_complete",function(){e.set("cbox_complete")}),r(t).on("cbox_closed",function(){e.set("cbox_closed")}),c.once(a,l,n,o)},detach:function(o,e,t){"unload"===t&&c.once.removeSafely(l,n,o)}}}(jQuery,Drupal,dBlazy);

Главная | Обратная связь

drupal hosting | друпал хостинг | it patrol .inc