1/** 2 * @file 3 * Breakpoints in JavaScript. 4 * 5 * Importing CSS Breakpoints Into JavaScript. 6 * See the following Lullabot article for more information, 7 * https://www.lullabot.com/articles/importing-css-breakpoints-into-javascript. 8 */ 9 10var breakpoint = {}; 11 12(function ($, Drupal) { 13 14 Drupal.behaviors.breakpoint = { 15 attach: function attach(context) { 16 breakpoint.refreshValue = function () { 17 this.value = window 18 .getComputedStyle(document.querySelector('body'), ':before') 19 .getPropertyValue('content') 20 .replace(/\"/g, ''); 21 }; 22 23 $(window).resize(function () { 24 breakpoint.refreshValue(); 25 }).resize(); 26 27 window.breakpoint = breakpoint; 28 } 29 } 30 31})(jQuery, Drupal);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.