%PDF-
%PDF-
Mini Shell
Mini Shell
;(function( $ ) {
PPVideoGallery = function( settings ) {
this.id = settings.id;
this.layout = settings.layout;
this.aspectRatio = settings.aspectRatioLightbox;
this.filters = settings.filters;
this.carousel = settings.carousel;
this.isBuilderActive = settings.isBuilderActive;
this.nodeClass = '.fl-node-' + this.id;
this.itemClass = this.nodeClass + ' .pp-video-gallery-item';
this.elements = {};
this.swiper = {};
this.lightboxWrap = '<div class="pp-aspect-ratio-'+this.aspectRatio+'"></div>';
this.lightboxData = [];
this.activeIndex = false;
this.filtersObj = '';
this._init();
};
PPVideoGallery.prototype = {
_init: function() {
this.elements = {
node: $(this.nodeClass),
wrap: $(this.nodeClass).find('.pp-video-gallery-items'),
items: '',
};
this._initVideo();
if ( 'gallery' === this.layout ) {
// Initialize the gallery.
this._initGallery();
} else {
// Initialize the carousel.
if ( typeof Swiper === 'undefined' ) {
$(window).on('load', function() {
if ( typeof Swiper === 'undefined' ) {
return;
} else {
this._initCarousel();
}
}.bind( this ) );
} else {
this._initCarousel();
}
}
},
_initVideo: function() {
var self = this;
this.lightboxData = [];
this._getItems();
this.elements.items.each( function() {
var $item = $(this);
if ( $(this).find( '.pp-video-image-overlay' ).length > 0 ) {
$(this).find( '.pp-video-image-overlay' ).off('click');
self._stopIframeAutoplay($item);
if ( $item.find('.pp-video-lightbox-content').length > 0 ) {
var data = {
src: $(self.lightboxWrap).html( $item.find('.pp-video-lightbox-content').html() ),
type: 'html',
opts: {
slideClass: 'pp-video-slide-' + $item.index()
}
};
self.lightboxData.push( data );
}
} else {
var videoFrame = $item.find('.pp-video-iframe');
videoFrame.attr( 'src', videoFrame.data( 'src' ) );
}
} );
this._bindEvents();
},
_initGallery: function() {
if ( this.filters ) {
this._initFilters();
this._initResponsiveFilters();
$(window).on( 'resize', this._initResponsiveFilters.bind( this ) );
}
},
_initCarousel: function() {
var self = this;
this.elements.swiper = this.nodeClass + ' .swiper-container';
this.elements.swiperSlide = $(this.elements.swiper).find('.swiper-slide');
if (1 >= this._getSlidesCount()) {
return;
}
this.swiper = new Swiper(this.elements.swiper, this._getSwiperOptions());
$(document).on('pp-tabs-switched', function(e, selector) {
if ( selector.find('.fl-node-' + self.id).length > 0 ) {
self.swiper.update();
}
});
$(document).on('fl-builder.pp-accordion-toggle-complete', function(e) {
if ( $(e.target).find('.fl-node-' + self.id).length > 0 ) {
self.swiper.update();
}
});
},
_bindEvents: function() {
this.elements.items.find('.pp-video-image-overlay').off('click');
this.elements.items.find('.pp-video-image-overlay').on('click keyup', function(e) {
// Click or keyboard (enter or spacebar) input?
if ( ! this._validClick(e) ) {
return;
}
e.preventDefault();
e.stopPropagation();
var $item = $(e.target).parents('.pp-video-gallery-item');
this.currentItem = $item;
this.activeIndex = $item.index();
if ( $item.find('.pp-video-lightbox-content').length > 0 ) {
this._initLightbox($item);
} else {
this._inlinePlay($item);
}
}.bind( this ) );
this._onHashChange();
$(window).on( 'hashchange', this._onHashChange.bind( this ) );
},
_initLightbox: function($item) {
$item.find('.pp-video-play-icon').attr( 'tabindex', '-1' );
//$.fancybox.open($('<div class="'+wrapperClasses+'"></div>').html( $item.find('.pp-video-lightbox-content').html() ), options);
$.fancybox.open( this.lightboxData, this._getLightboxOptions($item), this.activeIndex );
$(document).on('keyup', function(e) {
if ( e.keyCode === 27 ) {
$.fancybox.close();
}
});
},
_onHashChange: function() {
var hash = location.hash,
hashFragments = hash.split( '-' );
if ( hashFragments.length < 3 ) {
return;
}
if ( '#video' !== hashFragments[0] ) {
return;
}
if ( this.id !== hashFragments[1] ) {
return;
}
var $item = $('.fl-node-' + this.id).find( '.pp-video-gallery-item[data-index="' + hashFragments[2] + '"]' );
if ( $item.length === 0 ) {
return;
}
if ( $item.find('.pp-video-lightbox-content').length === 0 ) {
return;
}
$.fancybox.open( this.lightboxData, this._getLightboxOptions($item), hashFragments[2] );
},
_getLightboxOptions: function($item) {
var id = this.id;
var options = {
modal : false,
baseClass : 'pp-video-gallery-fancybox fancybox-' + id,
buttons : [
'close'
],
wheel : false,
defaultType : 'html',
animationEffect : 'fade',
touch : false,
afterLoad : function(current, previous) {
$('.fancybox-' + id).find('.fancybox-bg').addClass('fancybox-' + id + '-overlay');
setTimeout(function() {
$('.fancybox-' + id).trigger('focus');
}, 1200);
$('.fancybox-' + id).on('click', '.fancybox-content', function(e) {
if ( $(this).hasClass( 'fancybox-content' ) ) {
$.fancybox.close();
}
});
},
afterClose : function() {
if ( $item.find('.pp-video-play-icon').length > 0 ) {
$item.find('.pp-video-play-icon').attr( 'tabindex', '0' );
$item.find('.pp-video-play-icon')[0].focus();
}
},
iframe: {
preload: false
},
keys : {
close : [27],
}
};
return options;
},
_inlinePlay: function($item) {
$item.find( '.pp-video-image-overlay' ).fadeOut(800, function() {
$(this).remove();
});
if ( $item.find( '.pp-video-player' ).length > 0 ) {
$item.find( '.pp-video-player' )[0].play();
return;
}
if ( $item.find( '.pp-video-iframe' ).length > 0 ) {
var lazyLoad = $item.find( '.pp-video-iframe' ).data( 'src' );
if ( lazyLoad ) {
$item.find( '.pp-video-iframe' ).attr( 'src', lazyLoad );
}
var iframeSrc = $item.find( '.pp-video-iframe' )[0].src;
iframeSrc = iframeSrc.replace('autoplay=0', '');
var src = iframeSrc.split('#');
iframeSrc = src[0] + '&autoplay=1';
if ( 'undefined' !== typeof src[1] ) {
iframeSrc += '#' + src[1];
}
$item.find( '.pp-video-iframe' )[0].src = iframeSrc;
}
},
_initFilters: function() {
var filterData = {
itemSelector: '.pp-video-gallery-item',
percentPosition: true,
transitionDuration: '0.3s',
hiddenStyle: {
opacity: 0
},
visibleStyle: {
opacity: 1
},
isOriginLeft: ! $('body').hasClass( 'rtl' ),
};
filterData = $.extend( {}, filterData, {
layoutMode: 'fitRows',
fitRows: {
gutter: '.pp-video-gallery--spacer'
},
} );
var filters = this.filtersObj = this.elements.wrap.isotope( filterData );
var filtersWrap = this.elements.node.find( '.pp-video-gallery-filters' );
var self = this;
this._filterByHash();
$(window).on('hashchange', this._filterByHash.bind( this ) );
this.elements.wrap.imagesLoaded( function() {
filtersWrap.on('click', '.pp-video-gallery-filter', function() {
var filterVal = $(this).attr('data-filter');
filters.isotope({ filter: filterVal }, function() {
$(document).trigger( 'pp_video_gallery_filter_complete', [self] );
});
filtersWrap.find('.pp-video-gallery-filter').removeClass('pp-filter--active');
$(this).addClass('pp-filter--active');
});
}.bind( this ) );
},
_filterByHash: function() {
var filtersWrap = this.elements.node.find( '.pp-video-gallery-filters' );
if ( '' !== location.hash ) {
var filter = location.hash.replace('#', '.pp-filter-');
var filterItem = filtersWrap.find( 'li[data-filter="' + filter + '"]' );
if ( filterItem.length > 0 ) {
setTimeout(function() {
filterItem.trigger( 'click' );
}, 100);
}
}
},
_initResponsiveFilters: function() {
$( this.nodeClass + ' .pp-video-gallery-filters .pp-video-gallery-filter' ).removeAttr('style');
$('body').undelegate(this.nodeClass + ' .pp-video-gallery-filters .pp-filter--active', 'click', this._bindResponsiveFilters );
if ( window.innerWidth <= 768 ) {
$('body').on('click', this.nodeClass + ' .pp-video-gallery-filters .pp-filter--active', this._bindResponsiveFilters );
}
},
_bindResponsiveFilters: function(e) {
setTimeout(function() {
if ( $(e.target).siblings().is(':visible') ) {
$(e.target).siblings().hide();
} else {
$(e.target).siblings().show();
}
}, 250);
},
_stopIframeAutoplay: function($item) {
if ( $item.find( '.pp-video-iframe' ).length > 0 ) {
var src = $item.find( '.pp-video-iframe' )[0].src;
if ( 'undefined' !== typeof src && '' !== src ) {
src = src.replace('&autoplay=1', '');
src = src.replace('autoplay=1', '');
$item.find( '.pp-video-iframe' )[0].src = src;
}
}
},
_getItems: function() {
this.elements.items = $(this.itemClass);
return this.elements.items;
},
_isSlideshow: function() {
return false;
},
_getEffect: function() {
return this.carousel.effect;
},
_getSlidesCount: function () {
return this.elements.swiperSlide.length;
},
_getInitialSlide: function () {
return this.carousel.initialSlide;
},
_getSpaceBetween: function () {
var space = this.carousel.spaceBetween.desktop,
space = parseInt(space);
if ( isNaN( space ) ) {
space = 20;
}
return space;
},
_getSpaceBetweenTablet: function () {
var space = this.carousel.spaceBetween.tablet,
space = parseInt(space);
if ( isNaN(space) ) {
space = this._getSpaceBetween();
}
return space;
},
_getSpaceBetweenMobile: function () {
var space = this.carousel.spaceBetween.mobile,
space = parseInt(space);
if ( isNaN(space) ) {
space = this._getSpaceBetweenTablet();
}
return space;
},
_getSlidesPerView: function () {
if ( this._isSlideshow() ) {
return 1;
}
var slidesPerView = this.carousel.slidesPerView.desktop;
return Math.min(this._getSlidesCount(), +slidesPerView);
},
_getSlidesPerViewTablet: function () {
if ( this._isSlideshow() ) {
return 1;
}
var slidesPerView = this.carousel.slidesPerView.tablet;
if (slidesPerView === '' || slidesPerView === 0) {
slidesPerView = this._getSlidesPerView();
}
return Math.min(this._getSlidesCount(), +slidesPerView);
},
_getSlidesPerViewMobile: function () {
if ( this._isSlideshow() ) {
return 1;
}
var slidesPerView = this.carousel.slidesPerView.mobile;
if (slidesPerView === '' || slidesPerView === 0) {
slidesPerView = this._getSlidesPerViewTablet();
}
return Math.min(this._getSlidesCount(), +slidesPerView);
},
_getSlidesToScroll: function(device) {
if ( ! this._isSlideshow() && 'slide' === this._getEffect() ) {
var slides = this.carousel.slidesToScroll[device];
return Math.min( this._getSlidesCount(), +slides || 1 );
}
return 1;
},
_getSlidesToScrollDesktop: function() {
return this._getSlidesToScroll( 'desktop' );
},
_getSlidesToScrollTablet: function() {
return this._getSlidesToScroll( 'tablet' );
},
_getSlidesToScrollMobile: function() {
return this._getSlidesToScroll( 'mobile' );
},
_getSwiperOptions: function () {
var medium_breakpoint = this.carousel.breakpoint.medium,
responsive_breakpoint = this.carousel.breakpoint.responsive;
var options = {
navigation: {
prevEl: this.nodeClass + ' .pp-video-carousel-nav-prev',
nextEl: this.nodeClass + ' .pp-video-carousel-nav-next'
},
pagination: {
el: this.nodeClass + ' .swiper-pagination',
type: this.carousel.pagination,
clickable: true
},
grabCursor: true,
effect: this._getEffect(),
initialSlide: this._getInitialSlide(),
slidesPerView: this._getSlidesPerView(),
slidesPerGroup: this._getSlidesToScrollDesktop(),
spaceBetween: this._getSpaceBetween(),
loop: this.carousel.loop,
loopedSlides: this._getSlidesCount(),
speed: this.carousel.speed,
breakpoints: {}
};
if ( ! this.isBuilderActive && this.carousel.autoplay ) {
options.autoplay = this.carousel.autoplay;
}
options.breakpoints[medium_breakpoint] = {
slidesPerView: this._getSlidesPerViewTablet(),
slidesPerGroup: this._getSlidesToScrollTablet(),
spaceBetween: this._getSpaceBetweenTablet()
};
options.breakpoints[responsive_breakpoint] = {
slidesPerView: this._getSlidesPerViewMobile(),
slidesPerGroup: this._getSlidesToScrollMobile(),
spaceBetween: this._getSpaceBetweenMobile()
};
options.on = {
init: this._initVideo.bind(this),
//imagesReady: this._onResize.bind(this),
//resize: this._onResize.bind(this)
};
return options;
},
_onResize: function() {
var element = $(this.elements.swiper);
element.css( 'height', 'auto' );
var height = element.height() + element.find('.swiper-pagination').height();
element.height( (height + 22) );
},
_validClick: function(e) {
return (e.which == 1 || e.which == 13 || e.which == 32 || e.which == undefined) ? true : false;
}
};
})(jQuery); Zerion Mini Shell 1.0
Custom Staffing Solutions | Beyond A Resume
Skip to content
Distinguish Your Business From The Rest With The People That Make Up Your Team
We go Beyond a Resume to find high value, committed people
ready, willing, and able to add true value toward your organization's mission.
The right people make or break your business
We focus on resolving two types of challenges surrounding staffing and recruiting at Beyond a Resume: The first challenge comes when a business continues to grow, but does not have the full-time, internal, talent acquisition resources to hire the right people or talent necessary to keep up with their rate of progression as a company.
The second is a business that has a dedicated internal Human Resources Team, but requires outsourced assistance when the volume of people and talent needed exceeds short term internal capacity, OR the position(s) they seek to fill demand a specific skill set that is difficult to find, requiring added bandwidth.
In nearly any line of business, growth is a challenge in and of itself. Yet, the real problems arise in managing growth to ensure your progress remains profitable, sustainable, and repeatable. The biggest factor in this equation is usually found in your people. When you have the right people, success is unlimited. On the other hand, when you don’t have the right people in place or are having trouble finding enough of the right people, failure or stagnation is imminent.
The frustration that comes with the process of “hiring” can bring you to new levels of stress as the time cost involved eats away at your production elsewhere. If you have experienced this in the past, or are currently struggling with this issue, you’re certainly not alone. You may simply need the right partner to take the worst parts of this process off your plate so you can concentrate on your responsibilities, while we work diligently to reduce the noise and deliver only the ideal candidates worth your time and attention.
People can make or break your business and we go Beyond a Resume to find high value, committed people ready, willing, and able to add true value.
Primary Industry Experience
Healthcare and Home Healthcare
Talent Acquisition Solutions
Statement of Work Projects
Scroll To Top