/(function($){ Drupal.behaviors.block_carousel = { attach: function (context, settings) { if ($('.page-node .owl-carousel-rte').length) { $('.owl-carousel-rte').owlCarousel({ pagination: false, navigation: true, // Show next and prev buttons slideSpeed: 300, paginationSpeed: 400, singleItem: true, // "singleItem:true" is a shortcut for: // items : 1, // itemsDesktop : false, // itemsDesktopSmall : false, // itemsTablet: false, itemsMobile: false }); } } }; })(jQuery); ;/*})'"*/ ;/*})'"*/ (function ($) { Drupal.behaviors.captcha = { attach: function (context) { // Turn off autocompletion for the CAPTCHA response field. // We do it here with JavaScript (instead of directly in the markup) // because this autocomplete attribute is not standard and // it would break (X)HTML compliance. $("#edit-captcha-response").attr("autocomplete", "off"); } }; Drupal.behaviors.captchaAdmin = { attach: function (context) { // Add onclick handler to checkbox for adding a CAPTCHA description // so that the textfields for the CAPTCHA description are hidden // when no description should be added. // @todo: div.form-item-captcha-description depends on theming, maybe // it's better to add our own wrapper with id (instead of a class). $("#edit-captcha-add-captcha-description").click(function() { if ($("#edit-captcha-add-captcha-description").is(":checked")) { // Show the CAPTCHA description textfield(s). $("div.form-item-captcha-description").show('slow'); } else { // Hide the CAPTCHA description textfield(s). $("div.form-item-captcha-description").hide('slow'); } }); // Hide the CAPTCHA description textfields if option is disabled on page load. if (!$("#edit-captcha-add-captcha-description").is(":checked")) { $("div.form-item-captcha-description").hide(); } } }; })(jQuery); ;/*})'"*/ ;/*})'"*/ (function ($) { $(document).ready(function() { // Attach mousedown, keyup, touchstart events to document only and catch // clicks on all elements. $(document.body).bind("mousedown keyup touchstart", function(event) { // Catch the closest surrounding link of a clicked element. $(event.target).closest("a,area").each(function() { if (Drupal.settings.piwik.trackMailto && $(this).is("a[href^='mailto:'],area[href^='mailto:']")) { // Mailto link clicked. _paq.push(["trackEvent", "Mails", "Click", this.href.substring(7)]); } }); }); // Colorbox: This event triggers when the transition has completed and the // newly loaded content has been revealed. if (Drupal.settings.piwik.trackColorbox) { $(document).bind("cbox_complete", function () { var href = $.colorbox.element().attr("href"); if (href) { _paq.push(["setCustomUrl", href]); _paq.push(["trackPageView"]); } }); } }); })(jQuery); ;/*})'"*/ ;/*})'"*/