PageSourceSearch

https://www.tdcapitalmanagement.com/sites/all/themes/aw_responsive/js/aw_responsive.js?m

js tdcapitalmanagement.com collected 2026-10-06 19:00:12 UTC 7,536 bytes, 180 lines download raw bytes

1/*! A fix for the iOS orientationchange zoom bug. Script by @scottjehl, rebound by @wilto.MIT / GPLv2 License.*/
2(function(a){function m(){d.setAttribute("content",g),h=!0}function n(){d.setAttribute("content",f),h=!1}function o(b){l=b.accelerationIncludingGravity,i=Math.abs(l.x),j=Math.abs(l.y),k=Math.abs(l.z),(!a.orientation||a.orientation===180)&&(i>7||(k>6&&j<8||k<8&&j>6)&&i>5)?h&&n():h||m()}var b=navigator.userAgent;if(!(/iPhone|iPad|iPod/.test(navigator.platform)&&/OS [1-5]_[0-9_]* like Mac OS X/i.test(b)&&b.indexOf("AppleWebKit")>-1))return;var c=a.document;if(!c.querySelector)return;var d=c.querySelector("meta[name=viewport]"),e=d&&d.getAttribute("content"),f=e+",maximum-scale=1",g=e+",maximum-scale=10",h=!0,i,j,k,l;if(!d)return;a.addEventListener("orientationchange",m,!1),a.addEventListener("devicemotion",o,!1)})(this); 
3
4(function($) {
5  "use strict";
6  jQuery.cachedScript = jQuery.cachedScript || function( url, options ) {
7   
8    // Allow user to set any option except for dataType, cache, and url
9    options = $.extend( options || {}, {
10      dataType: "script",
11      cache: true,
12      url: url
13    });
14   
15    // Use $.ajax() since it is more flexible than $.getScript
16    // Return the jqXHR object so we can chain callbacks
17    return jQuery.ajax( options );
18  };
19})(jQuery);
20
21/*!
22loadCSS: load a CSS file asynchronously.
23[c]2014 @scottjehl, Filament Group, Inc.
24Licensed MIT
25*/
26var loadCSS = loadCSS || function ( href, before, media, callback ){
27  "use strict";
28  // Arguments explained:
29  // `href` is the URL for your CSS file.
30  // `before` optionally defines the element we'll use as a reference for injecting our <link>
31  // By default, `before` uses the first <script> element in the page.
32  // However, since the order in which stylesheets are referenced matters, you might need a more specific location in your document.
33  // If so, pass a different reference element to the `before` argument and it'll insert before that instead
34  // note: `insertBefore` is used instead of `appendChild`, for safety re: http://www.paulirish.com/2011/surefire-dom-element-insertion/
35  var ss = window.document.createElement( "link" );
36  var ref = before || window.document.getElementsByTagName( "script" )[ 0 ];
37  var sheets = window.document.styleSheets;
38  ss.rel = "stylesheet";
39  ss.href = href;
40  // temporarily, set media to something non-matching to ensure it'll fetch without blocking render
41  ss.media = "only x";
42  // DEPRECATED
43  if( callback ) {
44    ss.onload = callback;
45  }
46
47  // inject link
48  ref.parentNode.insertBefore( ss, ref );
49  // This function sets the link's media back to `all` so that the stylesheet applies once it loads
50  // It is designed to poll until document.styleSheets includes the new sheet.
51  ss.onloadcssdefined = function( cb ){
52    var defined;
53    for( var i = 0; i < sheets.length; i++ ){
54      if( sheets[ i ].href && sheets[ i ].href.indexOf( href ) > -1 ){
55        defined = true;
56      }
57    }
58    if( defined ){
59      cb();
60    } else {
61      setTimeout(function() {
62        ss.onloadcssdefined( cb );
63      });
64    }
65  };
66  ss.onloadcssdefined(function() {
67    ss.media = media || "all";
68  });
69  return ss;
70}
71
72Drupal.behaviors.loadCSS = Drupal.behaviors.loadCSS || function() {
73  if (Drupal.settings.addCSS) {
74    while (Drupal.settings.addCSS.length) {
75      var path = Drupal.settings.addCSS.pop();
76      loadCSS(path, window.document.getElementsByTagName('link')[0]);
77    }
78  }
79};
80
81Drupal.behaviors.offCanvas = Drupal.behaviors.offCanvas || function() {
82  $('.offcanvas-toggle').click(function() {
83    $('#main-wrapper').toggleClass('show-left');
84  });
85};
86
87Drupal.behaviors.dropdownHover = Drupal.behaviors.dropdownHover || function() {
88  if (!('ontouchstart' in window || navigator.msMaxTouchPoints > 0)) {
89    $("#dashboard-menu ul.nav:not('.navbar-right') .dropdown").hover(function() {
90      $(this).find('.dropdown-menu').first().stop(true, true).slideToggle(100);
91    }, function() {
92      $(this).find('.dropdown-menu').first().stop(true, true).slideToggle(100)
93    });
94  }
95};
96
97Drupal.behaviors.fileManagerLinks = Drupal.behaviors.fileManagerLinks || function () {
98  $('a[href="/imce"]').click(function () {
99    var filemanager = window.open(this.href, 'filemanager', 'menubar=0,width=800,height=600,location=0');
100    if (window.focus) {filemanager.focus()}
101    return false;
102  });
103};
104
105Drupal.behaviors.modalWindowsMove = Drupal.behaviors.modalWindowsMove || function () {
106  var $modal = $('div.modal');
107  if ($modal.length) {
108    $modal.appendTo("body");
109  }
110};
111
112Drupal.behaviors.awModal = Drupal.behaviors.awModal || function(context){
113  var $awModal = $("[data-toggle='modal'].modal-aw");
114  var loader = '<div class="loader text-center"><div></div></div>';
115  if ($awModal.length) {
116    $awModal.each(function(i){
117      var $this = $(this);
118      var nid = $this.data('nid');
119      if (typeof nid === "undefined") {
120        console.log('Please ensure you add a valid Node ID to the modal via data-nid attribute.');
121      }
122      var modalId = "awmodal-" + i;
123      var $modal = $('<div class="modal fade" id="' + modalId + '" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">  <div class="modal-dialog modal-lg">    <div class="modal-content">   <div class="modal-header">   <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>    </div>      <div class="modal-body">' + loader + ' </div>    </div>  </div></div>');
124      var $content;
125      if (!window.location.origin) {
126        window.location.origin = window.location.protocol + "//" + window.location.hostname + (window.location.port ? ':' + window.location.port: ''); 
127      }
128      $modal = $modal.appendTo('body');
129
130      $this.on('click', function(e){
131        e.preventDefault();
132        $('#'+modalId).modal('show');
133        $.ajax(window.location.origin + '/node/' + nid, {
134          dataType: "html"
135        })
136        .done(function(data) {
137          var $data = $(data).find('#content-middle');
138          var modalTitle = $data.find('#page-title').remove();
139          $content = $data.html();
140          if (!$modal.find('h2.modal-title').length) {
141            $modal.find('.modal-header').append('<h2 class="modal-title">' + modalTitle.text() + '</h2>')
142          }
143          $modal.find('.modal-body').html($content);
144        })
145        .fail(function(data, textStatus, errorThrown){
146          $content = $('<div class="alert alert-danger" role="alert">' + textStatus + ' ' + errorThrown + '</div>');
147          $modal.find('.modal-body').html($content);
148          window.setTimeout(function(){
149            $('#'+modalId).modal('hide');
150          }, 3000);
151        });
152      });
153
154      $('#'+modalId).on('hidden.bs.modal', function(e) {
155        $modal.find('.modal-body').html(loader);
156      });
157
158    });
159  } 
160}; 
161
162Drupal.behaviors.modalChromeVideosFix = Drupal.behaviors.modalChromeVideosFix || function() {
163  // Chrome:  Modal on top of Videos fix. It seemed to just disappear after show. 
164  var $videos = $('video');
165  if ($videos.length) {
166    $('.modal').on('show.bs.modal',function(){
167      $videos.not($(this).find('video')).hide();
168    });
169    $('.modal').on('hide.bs.modal',function(){
170      $videos.not($(this).find('video')).show();
171    });
172  }
173};
174
175Drupal.behaviors.marketingproDisclosureText = Drupal.behaviors.marketingproDisclosureText || function() {
176  var textElem = $('span:contains("RepresentativeDisclosure")');
177  if (textElem.length) {
178    textElem.remove();
179  }
180};

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.