1/*! 2 * enquire.js v2.1.2 - Awesome Media Queries in JavaScript 3 * Copyright (c) 2014 Nick Williams - http://wicky.nillia.ms/enquire.js 4 * License: MIT (http://www.opensource.org/licenses/mit-license.php) 5 */ 6 7!function(a,b,c){var d=window.matchMedia;"undefined"!=typeof module&&module.exports?module.exports=c(d):"function"==typeof define&&define.amd?define(function(){return b[a]=c(d)}):b[a]=c(d)}("enquire",this,function(a){"use strict";function b(a,b){var c,d=0,e=a.length;for(d;e>d&&(c=b(a[d],d),c!==!1);d++);}function c(a){return"[object Array]"===Object.prototype.toString.apply(a)}function d(a){return"function"==typeof a}function e(a){this.options=a,!a.deferSetup&&this.setup()}function f(b,c){this.query=b,this.isUnconditional=c,this.handlers=[],this.mql=a(b);var d=this;this.listener=function(a){d.mql=a,d.assess()},this.mql.addListener(this.listener)}function g(){if(!a)throw new Error("matchMedia not present, legacy browsers require a polyfill");this.queries={},this.browserIsIncapable=!a("only all").matches}return e.prototype={setup:function(){this.options.setup&&this.options.setup(),this.initialised=!0},on:function(){!this.initialised&&this.setup(),this.options.match&&this.options.match()},off:function(){this.options.unmatch&&this.options.unmatch()},destroy:function(){this.options.destroy?this.options.destroy():this.off()},equals:function(a){return this.options===a||this.options.match===a}},f.prototype={addHandler:function(a){var b=new e(a);this.handlers.push(b),this.matches()&&b.on()},removeHandler:function(a){var c=this.handlers;b(c,function(b,d){return b.equals(a)?(b.destroy(),!c.splice(d,1)):void 0})},matches:function(){return this.mql.matches||this.isUnconditional},clear:function(){b(this.handlers,function(a){a.destroy()}),this.mql.removeListener(this.listener),this.handlers.length=0},assess:function(){var a=this.matches()?"on":"off";b(this.handlers,function(b){b[a]()})}},g.prototype={register:function(a,e,g){var h=this.queries,i=g&&this.browserIsIncapable;return h[a]||(h[a]=new f(a,i)),d(e)&&(e={match:e}),c(e)||(e=[e]),b(e,function(b){d(b)&&(b={match:b}),h[a].addHandler(b)}),this},unregister:function(a,b){var c=this.queries[a];return c&&(b?c.removeHandler(b):(c.clear(),delete this.queries[a])),this}},new g}); 8;/*})'"*/ 9;/*})'"*/ 10/** 11 * @file 12 * Highwire User Salutation JS 13 * 14 * Copyright (c) HighWire Press, Inc. 15 * This software is open-source licensed under the GNU Public License Version 2 16 * or later. The full license is available in the LICENSE.TXT file at the root 17 * of this repository. 18 */ 19 20 21(function ($) { 22 // Store our function as a property of Drupal.behaviors. 23 Drupal.behaviors.highwire_user_salutation = { attach: function (context, settings) { 24 $('.highwire-user-message', context).once('highwire-user-message-once', function() { 25 var msgConfig = []; 26 var msgWrapper = $(this); 27 msgWrapper.children().each(function() { 28 var elem = $(this); 29 var idType = elem.data('id-type'); 30 msgConfig.push({name: idType, data: elem.data('identity')}); 31 }); 32 33 $.ajax({ 34 url: '/highwire/salutation', 35 type: 'POST', 36 cache: false, 37 dataType: 'json', 38 data: {'salutation': msgConfig}, 39 success: function(msg){ 40 // Replace placeholder spans with customized greetings. 41 for (var id in msg) { 42 msgWrapper.find('.' + id).html(unescape(msg[id])); 43 } 44 45 // Fill in separators where needed. 46 msgWrapper.children().each(function() { 47 var elem = $(this); 48 if (elem.text().length > 0 && elem.prevAll().text().length > 0) { 49 elem.before('<span class="highwire-user-msg-separator">' + msgWrapper.data('separator') + '</span>'); 50 } 51 }); 52 } 53 }); 54 }); 55 }}; 56}(jQuery)); 57 58;/*})'"*/ 59;/*})'"*/
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.