Breaking News

House

House

0 0

200 ) { textual content = textual content.substring( 0, 199 ) + “…”; } $containerTextArea.html( textual content ); var containerHeight = $container.top() + 10 + 12; // 10 = 5px padding; 12 = callout offset $container.css( { left: offSet.left – 20, high: offSet.high – containerHeight } ).present(); }; this.conceal = perform () { $container.conceal(); }; }; jQuery( doc ).prepared( perform () { var $window = jQuery( window ); var $moduleContainer = jQuery( “#dnn_ctr1201_ModuleContent” ); var $slideshowContainer = $moduleContainer.discover( “.slideshow-2” ); var $slideshowCollectionElements = $moduleContainer.discover( “.slideshow-2-collectiontitle,.slideshow-2-collectiondescription” ); var $slideshowSlideContainer = $slideshowContainer.kids( “.slideContainer” ); var $slideshowPagerContainer = $slideshowContainer.kids( “.pagerContainer” ); var $slideshowPagerPrevious = $slideshowContainer.kids( “.pagerPrevious” ); var $slideshowPagerNext = $slideshowContainer.kids( “.pagerNext” ); var windowResizeTimeout = null; var windowResizeTimeoutInterval = 500; var pager = { currentIndex: 0, isVisible: false, slidesInView: 0, top: 0, manualClick: false, slideHeight: 65, // consists of border and margin activeArrow: jQuery( “” ),
slides: $slideshowPagerContainer.kids( “.slide” ),
slideCount: 0,
tooltip: new slideshow2Tooltip(),
setSelected: perform ( idx ) {
pager.slides.eq( idx ).append( pager.activeArrow );
},
animatePager: perform() {
var nextScrollTop = pager.currentIndex * pager.slideHeight;
$slideshowPagerContainer.animate( { scrollTop: nextScrollTop
}, 1000 );
pager.updatePagerButtons( nextScrollTop );
},
updatePagerButtons: perform ( scrollTop ) {
var scrollHeight = $slideshowPagerContainer[0].scrollHeight;
var canClickPrevious = scrollTop > 0 && scrollHeight > pager.top;
var canClickNext = scrollTop + pager.top 1199 ) {
SetPagerVariablesAndUpdateSlideContainerOnResize( true, 9, 582, “slideshow-2-minimum slideshow-2-pager-7 slideshow-2-pager-8”, “slideshow-2-pager-9” );
}
else if ( windowWidth > 991 ) {
SetPagerVariablesAndUpdateSlideContainerOnResize( true, 7, 452, “slideshow-2-minimum slideshow-2-pager-8 slideshow-2-pager-9”, “slideshow-2-pager-7” );
}
else if ( windowWidth > 767 ) {
SetPagerVariablesAndUpdateSlideContainerOnResize( true, 8, 517, “slideshow-2-minimum slideshow-2-pager-7 slideshow-2-pager-9”, “slideshow-2-pager-8” );
} else {
SetPagerVariablesAndUpdateSlideContainerOnResize( false, 0, 0, “slideshow-2-pager-7 slideshow-2-pager-8 slideshow-2-pager-9”, “slideshow-2-minimum” );
}
$slideshowPagerContainer.scrollTop( pager.currentIndex * pager.slideHeight );
pager.updatePagerButtons( pager.currentIndex * pager.slideHeight );
}

perform SetPagerVariablesAndUpdateSlideContainerOnResize( isVisible, slidesInView, top, removeClasses, addClass ) {
$slideshowContainer.removeClass( removeClasses ).addClass( addClass );
$slideshowCollectionElements.removeClass( removeClasses ).addClass( addClass );
pager.isVisible = isVisible;
pager.slidesInView = slidesInView;
pager.top = top;
}

perform AddEvents() {
$window.on( “resize.slideshow-2”, perform () {
clearTimeout( windowResizeTimeout );
windowResizeTimeout = setTimeout( WindowResize, windowResizeTimeoutInterval );
});

$slideshowPagerContainer.on( “click on”, “.slide”, perform () {
var idx = $( this ).index();
pager.manualClick = true;
$slideshowSlideContainer.cycle( “goto”, idx );
return false;
});

$slideshowPagerPrevious.on( “click on”, perform () {
if ( !$slideshowPagerPrevious.hasClass( “pagerDisabled” ) ) {
var previousIndex = pager.currentIndex – pager.slidesInView;
if ( previousIndex pager.slideCount – 1 ) {
nextIndex = pager.slideCount – 1;
}
pager.currentIndex = nextIndex;
pager.animatePager();
if(false) {
$slideshowSlideContainer.cycle(‘pause’);
}
}
return false;
});

$slideshowPagerContainer.on( “mouseenter”, “.slide”, perform () {
pager.tooltip.present( $( this ) );
}).on( “mouseleave”, “.slide”, perform () {
pager.tooltip.conceal();
});
}

perform Init() {
AddEvents();
WindowResize();
$slideshowSlideContainer.cycle( {
slides: “> .slide”,
fx: “fade”,
pace: 1000,
timeout: 5000,
pauseOnHover: true,
swipe: true,
prev: “> .slidePrevious”,
subsequent: “> .slideNext”,
log: false
}).on( “cycle-before”, perform ( occasion, optionHash, outgoingSlideEl, incomingSlideEl, forwardFlag ) {
pager.setSelected( optionHash.nextSlide );
});
pager.slideCount = pager.slides.measurement();
pager.setSelected( 0 );
pager.updatePagerButtons( 0 );
$slideshowContainer.css( “visibility”, “seen” );

}

Init();
});

Happy
Happy
0 %
Sad
Sad
0 %
Excited
Excited
0 %
Sleepy
Sleepy
0 %
Angry
Angry
0 %
Surprise
Surprise
0 %

Average Rating

5 Star
0%
4 Star
0%
3 Star
0%
2 Star
0%
1 Star
0%

Leave a Reply

Your email address will not be published. Required fields are marked *