PageSourceSearch

https://tedxsantacruz.org/wp-content/themes/tedxsantacruz/js/scripts.js?ver=6.3.11

js tedxsantacruz.org collected 2026-10-02 05:25:12 UTC 5,853 bytes, 192 lines download raw bytes

1(function($) { 
2  
3  $('#menu-main').slicknav({
4    label: '',
5    allowParentLinks: true,
6    prependTo: '#header-bar'	  
7  });
8  
9  $(".eventtitle").fitText(1.2, { minFontSize: '20px', maxFontSize: '100px' });
10  
11  $('.speaker-list').children('a').wrapInner('<span></span>');
12  
13  $('.speaker-list').find('span').unwrap()
14  
15  $('#uwpqsf_id_key').attr('placeholder', 'Search talks...');
16  
17  $('#tdp-0 option[value="activate"]').html('Activate 2014');
18  $('#tdp-0 option[value="change"]').html('Change 2012');
19  $('#tdp-0 option[value="engage"]').html('Engage 2011');
20  $('#tdp-0 option[value="open"]').html('Open 2012');
21  
22  $('.uwpqsf_submit').addClass('btn-black');
23  
24  $('a.smooth-scroll').smoothScroll();
25  
26  $('#uwpqsffrom_87').appendTo('#uwpqsffrom_87');
27  
28  var superx = $('.tedx').width();
29  
30  var elementHeights = $('.hp-talk-preview-content-title-wrap').map(function() {
31    return $(this).outerHeight();
32    }).get();
33    
34  var maxHeight = Math.max.apply(null, elementHeights);
35  var previewHeight = $('.hp-talk-preview').outerHeight();
36  var topMargin = previewHeight - (maxHeight);
37  
38  var elementHeights2 = $('.hp-speaker-title-bar').map(function() {
39    return $(this).height();
40    }).get();
41    
42  var maxHeight2 = Math.max.apply(null, elementHeights2);
43  
44  var contentWidth = $('#featured-talks').width();
45  var blockWidth = $('.hp-talk').width();
46  var otherWidth = contentWidth - blockWidth;
47  
48  $('.tedtxt').css('margin-right', superx);
49  
50  $(window).resize(function(){
51    var contentWidth2 = $('#wrapper').width();
52    var superx2 = $('.tedx').width();
53  
54    $('.hp-speaker-bio').width(contentWidth2);
55    $('.tedtxt').css('margin-right', superx2);
56  });
57  
58  function mintitleHeight(){
59    
60    $('.hp-talk-preview-content-title').height(maxHeight);
61    
62    $('.hp-talk-preview-content').css('top', topMargin);
63    
64    $('.hp-speaker-title-bar').height(maxHeight2);
65    
66  }
67  
68  function showPreview(){
69      $(this).find('.hp-talk-preview-content').transition({y: -topMargin});
70  }
71  
72  function hidePreview(){
73      $(this).find('.hp-talk-preview-content').transition({y: 0});
74  }
75  
76  function showMenu(){
77    $(this).children('.sub-menu').slideDown();
78  }
79  
80  function hideMenu(){
81    $(this).children('.sub-menu').slideUp();
82  }
83  
84  $('.hp-speaker-title-bar').click(function(){
85    $('.hp-speaker-icon').children('i').removeClass('fa-minus-square-o').addClass('fa-plus-square-o');
86    if($(this).siblings('.hp-speaker-bio').css('display') == 'none'){
87      
88      $('.hp-speaker-bio').slideUp();
89      
90      $(this).siblings('.hp-speaker-bio').slideDown();
91      $(this).find('.fa').removeClass('fa-plus-square-o').addClass('fa-minus-square-o');
92    }
93    else{
94      $(this).siblings('.hp-speaker-bio').slideUp();
95      $(this).find('.fa').removeClass('fa-minus-square-o').addClass('fa-plus-square-o');
96    }
97   
98  });
99  
100  
101  if($(window).width() < 500){
102  
103    $('.hp-talk').each(function(i, e) {
104        var titleHeight = $(this).find('.hp-talk-preview-content-title-wrap').outerHeight();
105        var previewHeight = $(this).find('.hp-talk-preview').height();
106        var topMargin = previewHeight - titleHeight;
107        
108        console.log(titleHeight + previewHeight)
109        
110        $(this).find('.hp-talk-preview-content').css('top', topMargin);
111    });
112    
113  }
114  
115  if($(window).width() > 500){
116    
117  $('.hp-speaker-bio').width(contentWidth);
118    
119    $(document).ready(mintitleHeight);
120    
121    $(document).ajaxSuccess(mintitleHeight);
122      
123  }
124  
125  if($(window).width() < 1100){
126  
127    $('.hp-talk-preview').click(function(){
128      if ($(this).find('.hp-talk-preview-content').hasClass('showing')){
129        $(this).find('.hp-talk-preview-content').transition({y: 0}).removeClass('showing');
130      }
131      else{
132        $(this).find('.hp-talk-preview-content').transition({y: -topMargin}).addClass('showing');
133      }
134    });
135  }
136  
137  if($(window).width() > 1100){
138  
139    $('.hp-talk-preview').hoverIntent(showPreview, hidePreview);
140    
141    $('.hp-talk:nth-child(3n)').find('.hp-speaker-bio').transition({x: -otherWidth});
142    
143    $('.menu-item-has-children').hoverIntent( showMenu, hideMenu );
144    
145    $(document).ajaxSuccess(function(){
146      $('.hp-talk-preview').hoverIntent(showPreview, hidePreview);  
147      
148      var elementHeights3 = $('.hp-speaker-title-bar').map(function() {
149        return $(this).height();
150        }).get();
151        
152      var maxHeight3 = Math.max.apply(null, elementHeights3);
153    
154      $('.hp-speaker-title-bar').height(maxHeight3);
155      
156      $('.su-lightbox').each(function () {
157        $(this).on('click', function (e) {
158          e.preventDefault();
159          e.stopPropagation();
160          if ($(this).parent().attr('id') === 'su-generator-preview') $(this).html(su_other_shortcodes.no_preview);
161          else {
162            var type = $(this).data('mfp-type');
163            $(this).magnificPopup({
164              type: type,
165              tClose: su_magnific_popup.close,
166              tLoading: su_magnific_popup.loading,
167              gallery: {
168                tPrev: su_magnific_popup.prev,
169                tNext: su_magnific_popup.next,
170                tCounter: su_magnific_popup.counter
171              },
172              image: {
173                tError: su_magnific_popup.error
174              },
175              ajax: {
176                tError: su_magnific_popup.error
177              }
178            }).magnificPopup('open');
179          }
180        });
181      });
182      
183    });
184  }
185  
186  if($(window).width() < 1100 && $(window).width() > 700){
187    
188    $('.hp-talk:nth-child(2n)').find('.hp-speaker-bio').transition({x: -otherWidth});
189    
190  }
191  
192})( jQuery );

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.