Airheads Community (2024)

'); /*$('.global-page-hero-wrap .carousel-bg:nth-of-type(2)').fadeOut(500, function() { $(this).remove(); });*/ $('.carousel-bg').fadeIn(800,function(){ setTimeout(function(){$('.global-page-hero-wrap .carousel-bg:nth-of-type(2)').remove();},1000); }); }; var owl = $('.owl-carousel .section1'); owl.owlCarousel({ items:1, loop:true, autoplay: true, autoplayHoverPause: true, autoplaySpeed: 4000, mouseDrag: false, touchDrag: false, pullDrag: false, checkVisible: false, dots: true, center:true, margin:10, URLhashListener:true, autoplayHoverPause:true, animateOut: 'fadeOut', animateIn: 'animate__fadeIn', onInitialized: function(property){ changebg(property); }, onChanged: function(property){ changebg(property); } }); $('.global-page-hero-wrap .overflow-hidden').append('

').append('

'); } else { $('.BreadCrumb,#PageTitleH1,.community-description').appendTo('.global-page-hero-wrap .HtmlContent .inner'); $('#PageTitleH1').show(); $('.CommunityManagementGear').appendTo('#PageTitleH1'); // Format for background inline style var src = $('.solfuse-hero-image-include img').attr('src'), url = "url('" + src + "')"; $('.global-page-hero-wrap').css('background-image', url); $('.global-page-hero-wrap .overflow-hidden').append('

').append('

'); } }, navUI: function(){ var headerEl = $('#MPOuterHeader > .col-md-12'); var styleElem = document.head.appendChild(document.createElement("style")); function resizeHeaderShadow(){ var leftSpace = $(document).width() - (headerEl.offset().left + headerEl.outerWidth()); var elLength = leftSpace + $('#MPOuterHeader > .col-md-12').outerWidth(); styleElem.innerHTML = '#MPOuterHeader::before {width:'+elLength+'px;}'; } resizeHeaderShadow(); $(window).bind('resize', function(e) { resizeHeaderShadow(); }); }, getBlogImages: function(){ //get Blog images $(".solfuse-widget-blogs-grid .Content ul li").each(function () { // Grab href for each news item var self = $(this), title = $(self).find("h3"), href = $(self).find("h3 a").attr("href"); var foundIn = $(self).find('div[id*="FoundIn"]'); var communityAnchor = $(foundIn).find('a[id*="CommunityLink"]'); var imgContainer = '

'; // Ajax Call for each news item if($(self).parents('.solfuse-widget-news-announcements').length==0){ // handle image $(self).prepend(imgContainer); $.ajax({ url: href, dataType: "html", success: success }); foundIn.addClass('bg-color-'+Math.floor((Math.random() * 4) + 1)); } //add wrapping anchor $(self).wrapInner(''); function success(resp) { // Get Image for each news item if ($(resp).find('.blogs-block').length) { var img = $(resp).find('.blogs-block .col-md-12 img'); } if ($(resp).find('div[id*="DetailPanel"]').length) { var img = $(resp).find( 'div[id*="DetailPanel"] .col-md-10.col-sm-10 .col-md-12 img:first-of-type' ); } if ($(img).attr('src') !== undefined) { var src = $(img).attr("src"), // Format for background inline style url = "url('" + src + "')"; // Set each news image into respective img-containers $(self).find(".img-container").css("background-image", url).removeClass("no-image"); } // Community Url //var siteURL = 'community.arubanetworks.com'; // If community.arubanetworks.com is included in URL add normal anchor else add anchor to open content in new tab //$(self).wrapInner(''); /*if (externalLink.includes(siteURL)) { $(self).wrapInner(''); } else { $(self).wrapInner(''); $(self).find('h3 a').attr("href", externalLink); $(self).find('h3 a').attr("target", "_blank"); }*/ //$(self).find(".img-container").append('' + likes + ''); } }); }, getEventsLists: function(){ /* Events page */ var jqxhr = $.ajax({ url : 'https://www.arubanetworks.com/company/events/_airheads-events-feed/', method : 'GET', /*cache: false,*/ dataType: 'json', success: function(data){ //data = JSON.parse(data); if(data.html!==''){ //console.log(data.html); processEvents(data.html); } else { processEvents('

There was a problem querying events, please try again shortly.

'); } } }); function filterStuff() { if ($('.filter-form').length == '0' || $('.filter-data').length == '0') {return false;} var requiredFields = false; var theRequiredFields; if ($('select.filter-field.required').length) { theRequiredFields = $('select.filter-field.required'); requiredFields = true; } $('select.filter-field').on('change', function (e) { var continueFlag = true; if (requiredFields) { $.each(theRequiredFields, function () { if ($(this).val() == '') { continueFlag = false; $(this).css('border', '1px solid red'); } }); } if (!continueFlag) {return false;} if (typeof theRequiredFields != 'undefined' && theRequiredFields.length) {theRequiredFields.css('border', 'none');} loopFindMatch(); }); $('input.js-view-all').on('click', function () { $('select.filter-field').val('0').change(); $('.filter-data .filter-subject').show(); }); if (window.location.hash != '') { var thisHash = window.location.hash; thisHash = thisHash.split('#')[1]; if (thisHash == '') {return false;} var len = 1; if (thisHash.search('&') > -1) { thisHash = thisHash.split('&'); len = thisHash.length; } for (i = 0; i < len; i++) { if (typeof thisHash == 'object') { var thisSplit = thisHash[i].split('='); } else { var thisSplit = thisHash.split('='); } var thisDropDown = thisSplit[0]; var thisValue = thisSplit[1]; if (thisDropDown != 'k') { if ($('select[name="' + thisDropDown + '"]').length) { $('select[name="' + thisDropDown + '"]').val(thisValue).change(); } } } } else { if ($('.filter-form-wrap .loader').length) {$('.filter-form-wrap .loader').hide();} } } function loopFindMatch() { var filterDataEl = $('.filter-data'); $('.filter-subject',filterDataEl).not('.exclude-filter').hide(); var thisFieldName = ''; if ($('.filter-form-wrap .loader').length) {$('.filter-form-wrap .loader').show();} var newLocationURL = window.location.href + '#'; var newQueryString = ''; var dataLayerDropdownSelection = ''; $.each($('select.filter-field'), function () { var thisFieldVal = $(this).val(); if ((thisFieldVal == 0) || (thisFieldVal == '')) {return true;} thisFieldName += '[data-' + $(this).attr('name') + '~="' + thisFieldVal + '"]'; newQueryString += $(this).attr('name') + '=' + thisFieldVal + '&'; var theValText = ($('option[value="' + thisFieldVal + '"]', $(this)).text()); dataLayerDropdownSelection += $(this).attr('data-select') + '=' + theValText + '&'; }); if (thisFieldName != '') { var allMatched = $('.filter-data .filter-subject' + thisFieldName); allMatched.show(); $('input.js-view-all').show(); newQueryString = newQueryString.substring(0, newQueryString.length - 1) } else { filterReset(); newQueryString = ''; $('input.js-view-all').hide(); } if ($('.filter-form-wrap .loader').length) setTimeout(function () { $('.filter-form-wrap .loader').hide(); }, 1000); if ($('.filter-data ul li:visible').length || $('.filter-data td:visible').length) { $('p.no-results').addClass('hide'); } else { $('p.no-results').removeClass('hide'); } if (typeof window.history.pushState == 'function') { window.history.pushState(null, null, '#' + newQueryString); } else { window.location.hash = (newQueryString); } } function filterReset() { if ($('.filter-form').length == '0' || $('.filter-data').length == '0') return false; var filterDataEl = $('.filter-data'); if ($('h2.filtered-toggle-title',filterDataEl).length) { $('h2,hr',filterDataEl).show(); //$('h2.filtered-toggle-title',filterDataEl).hide(); } $('.filter-subject',filterDataEl).css('display', ''); $('ul',filterDataEl).css('height','auto'); $('.paginate-more',filterDataEl).hide(); } function processEvents(data){ var eventsMarkup = data; //console.log(eventsMarkup); //eventsMarkup = decodeURIComponent(eventsMarkup); $('.events-wrapper').html(eventsMarkup); filterStuff(); $('.events-wrapper select').wrap(""); $('.table-events .meta-data').on('click',function(e){$(this).toggleClass('expanded');}); if (window.location.hash == '') { $('select.filter-field[name="wpcf-event-categories"]').val('2').change(); } var countriesWithEvents = []; $('.filter-data tr.country-tr.filter-subject').each( function() { if ( $(this).attr('data-country') !== '') { countriesWithEvents.push($(this).attr('data-country')); } }); $('.filter-form select[name=country] option').each( function() { if ( ( $(this).attr('value') != 0) && ($.inArray( $(this).attr('value'), countriesWithEvents ) < 0) ) { $(this).remove(); } }); } }, initAccordion: function(){ if(!$('.accordion-parent').length) return false; $('.accordion-parent a.toggle-product-family').on('click',function(e){ e.preventDefault(); $(this).parent('li').toggleClass('open'); }); }, addBackground: function(){ $('[class*=bg-code]').each(function(){ $(this).addClass('bg-slice-wrapper'); var temp = $(this).attr('class'), tempArr = temp.split('bg-code-')[1].split(' ')[0].split('-'); var arr = tempArr.length; var i = 0; while (i < arr) { $(this).append('

'); //$('bg'+tempArr[i],$(this)).data('position',$(this).offset().top); i++; } }); }, scrollBackground: function(){ var bgs = $(".bg-slice-wrapper"); $(window).scroll(function() { var scroll = $(window).scrollTop(); bgs.each(function(i,el){ if ($(this).isInViewport()) { var value = ($(this).offset().top) - scroll; $(".bg-slice:nth-child(odd)",$(this)).css("transform","translateY(" + Math.floor(value/2) + "px)"); $(".bg-slice:nth-child(even),.bg-slice:only-of-type",$(this)).css("transform","translateY(" + Math.floor(value/4) + "px)"); } }); }); }, /*scrollBackground: function(){ var bgs = $(".bg-slice"); $(window).scroll(function() { var scroll = $(window).scrollTop(); bgs.each(function(i,el){ if ($(this).isInViewport()) { var value = ($(this).offset().top) - scroll; $(":nth-child(odd)",$(this)).css("transform","translateY(" + Math.floor(scroll/2) + "px)"); $(":nth-child(even),:only-of-type",$(this)).css("transform","translateY(" + Math.floor(scroll/4) + "px)"); } }); }); },*/ embedpdf: function(){ if($('.viewthread.interior').length || $('.blogviewer.interior').length) {/*var pdfObjectHtml = "";*/var indexcount = 0;$('.messageContentColumn div[id*=_AttachmetPreviewPanel_]').each(function(i){if($('a',$(this)).length){$(this).before('

');/*pdfObjectHtml = pdfObjectHtml.replace(/###pdfurl###/, $('a',$(this)).attr('href'));*//*$(this).before(pdfObjectHtml);*/PDFObject.embed($('a',$(this)).attr('href'), "#pdfembed-"+indexcount, {height: "40rem",suppressConsole:true,supportRedirect:true});indexcount++;}});} }, firstExeOperation: function(){ common.consoleLogError(); if(!$('#Welcome_NotLoggedIn').length) $('body').addClass('logged-in-user'); $('.navbar-toggle').addClass('collapsed'); mobileMenuScreen = (window.innerWidth <= 992) ? true : false; //if support KB detail page /*var hreftemp = location.href; if(hreftemp.search('support-home')>0 && hreftemp.search('knowledge-base')>0){ var supportBread = '

  1. Support
  2. Knowledge Base
  3. Article

'; //$('.nav-tabs').parents('.ContentUserControl').remove(); //$('a[id*="_backToDiscussions"]').parents('.row').remove(); //$('.HLRecentBlogs').remove(); $('body').addClass('solfuse-page-support-topic'); $('.BreadCrumb').html(supportBread); }*/ common.addBackground(); //Change Join Button to Subscribe, from HL $('.community-list a[id*=_lstCommunityList_join_]').each(function(){ $(this).text('Subscribe'); }) }, lastExeOperation: function(){ /* home page sections */ $('.solfuse-widget-popular-forums-quick-links .community-list').autoHeight(); $('.solfuse-widget-unanswered-topics ul li').autoHeight(); /* active members */ if($('.solfuse-widget-active-members').length){ $.each($('.solfuse-widget-active-members li'),function(){ $('.points-label',$(this)).appendTo($('.title-row .col-md-9',$(this))); }); } $('#MPFooterLink').remove(); common.scrollBackground(); //hof equal height if($('.solfuse-widget-amfx-members').length){ $('.solfuse-widget-amfx-members ul li .hof-content').autoHeight(); } } }; window.solfuseScripts = common; window.addEventListener('load', function() { common.firstExeOperation(); common.buildHero(); common.navUI(); common.getBlogImages(); common.initAccordion(); //common.searchToBread(); common.embedpdf(); common.lastExeOperation(); }); /* Loose scripts and plugins below */ $.fn.autoHeight = function(options) { var settings = { minHeight : false, limitHeight : false, ignore : '', padding : 0 }; if(options) { $.extend(settings, options); } var maxHeight = 0; this.not(settings.ignore).each(function() { if ($(this).height() > maxHeight) { if(settings.limitHeight && maxHeight >= settings.limitHeight) { maxHeight = settings.limitWidth; } else if(settings.minHeight && maxHeight <= settings.limitHeight) { maxHeight = settings.minHeight; } else { maxHeight = $(this).height(); } } }); this.not(settings.ignore).height(maxHeight + settings.padding); }; $.fn.isInViewport = function () { let elementTop = $(this).offset().top; let elementBottom = elementTop + $(this).outerHeight(); let viewportTop = $(window).scrollTop(); let viewportBottom = viewportTop + $(window).height(); return elementBottom > viewportTop && elementTop < viewportBottom; }; //console.log('I am here'); //})(jQuery);

Skip to main content (Press Enter).

Skip auxiliary navigation (Press Enter).

Airheads Community (1)

Airheads Community (2024)
Top Articles
Latest Posts
Article information

Author: Eusebia Nader

Last Updated:

Views: 5452

Rating: 5 / 5 (60 voted)

Reviews: 83% of readers found this page helpful

Author information

Name: Eusebia Nader

Birthday: 1994-11-11

Address: Apt. 721 977 Ebert Meadows, Jereville, GA 73618-6603

Phone: +2316203969400

Job: International Farming Consultant

Hobby: Reading, Photography, Shooting, Singing, Magic, Kayaking, Mushroom hunting

Introduction: My name is Eusebia Nader, I am a encouraging, brainy, lively, nice, famous, healthy, clever person who loves writing and wants to share my knowledge and understanding with you.