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 * Provides responsive behaviors to HTML details elements. */ (function ($, Drupal) { 'use strict'; /** * Initializes the responsive behaviors for details elements. * * @type {Drupal~behavior} * * @prop {Drupal~behaviorAttach} attach * Attaches the responsive behavior to status report specific details elements. */ Drupal.behaviors.responsiveDetails = { attach: function (context) { var $details = $(context).find('details').once('responsive-details'); if (!$details.length) { return; } function detailsToggle(matches) { if (matches) { $details.attr('open', true); $summaries.attr('aria-expanded', true); $summaries.on('click.details-open', false); } else { // If user explicitly opened one, leave it alone. var $notPressed = $details .find('> summary[aria-pressed!=true]') .attr('aria-expanded', false); $notPressed .parent('details') .attr('open', false); // After resize, allow user to close previously opened details. $summaries.off('.details-open'); } } function handleDetailsMQ(event) { detailsToggle(event.matches); } var $summaries = $details.find('> summary'); var mql = window.matchMedia('(min-width:48em)'); mql.addListener(handleDetailsMQ); detailsToggle(mql.matches); } }; })(jQuery, Drupal);