Lines Matching refs:_self
5 var _self = this;
79 …erOffsetRight)) / 2), 'margin-top': this.root.width() * 0.02 + 30}).click(_self.scrollerClick).app…
83 …r_cap_left').appendTo(this.scrollbar).bind('mousedown', { direction: -1 }, _self.scrollerSideDown);
84 …'<div/>').addClass('imageflow_slider').appendTo(this.scrollbar).bind('mousedown', _self.dragStart);
85 …r_cap_right').appendTo(this.scrollbar).bind('mousedown', { direction: 1 }, _self.scrollerSideDown);
87 $(document).bind('mouseup', _self.scrollerSideUp);
96 if ( _self.debug ) {
110 _self[fkt](e, this);
124 _self.loadingbar.show(); // Show loader Bar
127 _self.timeOut('initImages', 500);
145 _self.checkedImages.push(imgRep);
200 _self.moveTo(_self.current); // Force repaint
204 this.image.attr('src', _self.intermediateImageSrc);
214 …__self.pc = _self.xstep * (((__self.width + 1) > (__self.height / (_self.reflectionHeight + 1))) ?…
235 _self.addMoveElementToQueue(itemNr);
236 var imageElement = _self.checkedImages[itemNr];
237 _self.specialClick.call(imageElement.image, {target: imageElement.image});
313 'mousewheel': _self.globalEvent,
314 'mousemove': _self.drag
318 'keydown': _self.globalEvent,
319 'mouseup': _self.dragStop
337 imageElement.image.click(_self.elementClick);
338 imageElement.image.dblclick(_self.specialClick);
339 imageElement.image.bind('mousedown', _self.dragStart);
358 var zIndex = _self.checkedImages.length;
359 var size = _self.root.width() * 0.5;
362 for ( var img = 0; img < _self.checkedImages.length; img++ ) {
363 var imageElement = _self.checkedImages[img];
366 …if ( img < _self.current - _self.focusedElememtsPerSide || img > _self.current + _self.focusedElem…
371 var movement = (img - _self.current) * _self.xstep;
382 if ( new_img_h > _self.maxheight ) {
383 new_img_h = _self.maxheight;
387 … var new_img_top = ((new_img_h / (_self.reflectionHeight + 1)) * _self.reflectionHeight);
388 if ( _self.bottomLine !== false ) { new_img_top += (_self.bottomLine - new_img_h); }
394 …_self.dbgMessage(imageElement.image.offset().left + "|" + imageElement.image.offset().top + " " + …
399 if ((img - _self.current) < 0) {
409 imageElement.image.unbind('click').click(_self.specialClick);
411 imageElement.image.unbind('click').click(_self.elementClick);
417 _self.current = whereToMove;
420 …if (_self.checkedImages[origWhereToMoveIndex]) { _self.buildCaptionForElement(_self.checkedImages[…
421 _self.setSliderPosition();
440 … var new_slider_pos = (_self.scrollbarwidth * (_self.current/(_self.checkedImages.length-1)));
441 …if ( new_slider_pos >= 0 && new_slider_pos <= _self.scrollbarwidth && ( _self.scrollerStartDragOf…
442 … _self.dbgMessage('slider-margin-left:' + (new_slider_pos - (_self.scroller.width() / 2)));
443 _self.scroller.css('margin-left', new_slider_pos - (_self.scroller.width() / 2));
450 … if ( whereToMove >= _self.checkedImages.length ) { whereToMove = _self.checkedImages.length-1; }
454 var devident = (_self.whereToMoveQueue.length > 1 ? 1 : _self.xstep); // check distance
455 … if ( whereToMove < _self.current - 1/devident || whereToMove > _self.current + 1/devident )
457 … _self.moveTo(_self.current + (whereToMove-_self.current)/3, whereToMove); // move in three steps
458 _self.timeOutAction = setTimeout(function(){ _self.glideTo(whereToMove); }, 50);
462 _self.current = whereToMove;
464 … if ( _self.whereToMoveQueue.length > 1 ) { // Asume, the first entry is the first moving step
465 _self.timeOutAction = setTimeout(function() {
466 _self.glideTo(parseInt(_self.whereToMoveQueue.splice(1,1))); }, 50);
470 … _self.moveTo(_self.current, _self.current); // If the above got interrupted, set the new distance
472 _self.timeOutAction = null; // Reset Timeout
473 _self.whereToMoveQueue = new Array();
479 …if ( whereToMove >= _self.checkedImages.length ) { whereToMove = _self.checkedImages.length-1; } /…
480 …if ( _self.whereToMoveQueue[_self.whereToMoveQueue.length -1] != whereToMove )_self.whereToMoveQue…
481 _self.glideTo(whereToMove);
488 var whereToMove = _self.current;
489 if ( _self.timeOutAction ) {
491 _self.timeOutAction = null;
492 whereToMove = parseInt(_self.whereToMoveQueue[_self.whereToMoveQueue.length - 1]);
493 _self.whereToMoveQueue = new Array();
497 if ( _self.addMoveElementToQueue(whereToMove) ) { return whereToMove; }
502 if ( !_self.dragStartPosition ) { return; } // Dragging not inited
505 var direction = _self.scrollerIsDragging ? 1 : -1;
507 var move = direction * (posx - _self.dragStartPosition);
509 if ( !_self.scrollerIsDragging ) { // Dragging at the image
511 _self.dbgMessage("dragging image");
513 …if ( _self.scrollerStartDragOffset === false || isNaN(_self.scrollerStartDragOffset.target) || isN…
514 _self.scrollerStartDragOffset = {};
515 _self.scrollerStartDragOffset.target = _self.getClickImage(e);
516 _self.scrollerStartDragOffset.current = _self.current;
518 …_self.dbgMessage("setting StartDragOffset (" + _self.scrollerStartDragOffset.target + " / " + _sel…
521 var s = _self.images.width()/2;
522 …var movement = (_self.scrollerStartDragOffset.target - _self.scrollerStartDragOffset.current) * _s…
526 _self.dbgMessage("move1: " + move);
528 _self.dbgMessage("move2: " + move);
533 movement = (200 * s * ( xs -s ) / ( (2*s - xs) * xs )) / _self.xstep;
534 _self.dbgMessage("movement1: " + movement);
535 _self.dbgMessage("xs: " + xs);
538 … if ( movement > _self.focusedElememtsPerSide ) { movement = _self.focusedElememtsPerSide; }
539 … if ( movement < -_self.focusedElememtsPerSide ) { movement = -_self.focusedElememtsPerSide; }
541 …movement += _self.scrollerStartDragOffset.current + (_self.scrollerStartDragOffset.target - _self.…
543 _self.dbgMessage("movement2: " + movement);
544 _self.moveTo(movement, Math.round(movement));
545 _self.mouseDownByDrag = true;
551 _self.dbgMessage("dragging scroller");
553 var deltaPercent = move * 100 / _self.scrollbarwidth;
554 var delta = Math.round(_self.checkedImages.length / 100 * deltaPercent);
556 if (_self.scrollerDragOffset - delta != 0) {
557 _self.handle(delta - _self.scrollerDragOffset);
558 _self.scrollerDragOffset = delta;
562 _self.setSliderPosition(true);
569 if ( _self.timeOutAction !== null ) { return; }
571 _self.dbgMessage("Drag Start " + e.target);
574 _self.dragStartPosition = e.clientX;
575 _self.scrollerIsDragging = e.target == _self.scroller.get(0);
576 … _self.scrollerStartDragOffset = _self.scrollerIsDragging ? _self.scroller.offset().left : false;
581 if ( _self.dragStartPosition === false ) { return; }
585 _self.dbgMessage("Drag Stop " + e.target);
586 …if ( _self.scrollerIsDragging === false && typeof _self.scrollerStartDragOffset == 'object' && isF…
588 _self.addMoveElementToQueue(Math.round(_self.current));
591 _self.dragStartPosition = false;
592 _self.scrollerStartDragOffset = false;
593 _self.scrollerIsDragging = false;
594 _self.scrollerDragOffset = 0;
595 _self.setSliderPosition();
596 setTimeout( function() { _self.mouseDownByDrag = false; }, 100);
601 if ( _self.mouseDownByDrag ) { return; }
602 if ( ((e.target) ? e.target : e.srcElement) != _self.scroller.parentNode) { return; }
605 _self.mouseDownByDrag = true;
607 _self.dragStartPosition = _self.scroller.offset().left + _self.scroller.width()/2;
608 _self.scrollerStartDragOffset = false;
609 _self.scrollerIsDragging = true;
611 _self.drag(e);
612 _self.dragStop(e);
613 _self.mouseDownByDrag = false;
620 if ( _self.scrollerDownIntervall !== false ) { return; }
621 _self.dbgMessage("Side Down");
623 _self.handle(e.data.direction);
624 …_self.scrollerDownIntervall = window.setInterval( function() { _self.handle(e.data.direction); }, …
628 if ( _self.scrollerDownIntervall === false ) { return; }
629 _self.dbgMessage("Side Up");
631 window.clearInterval(_self.scrollerDownIntervall);
632 _self.scrollerDownIntervall = false;
637 if ( _self.mouseDownByDrag ) { return; }
644 if ( (whereToMove = _self.getClickImage(e)) === false ) { return; }
646 var whereToImage = _self.checkedImages[whereToMove];
647 … jQuery.popupviewer().init(_self.checkedImages).presentViewerWithContent.call(whereToImage);
652 if ( _self.mouseDownByDrag ) { return; }
653 if ( (whereToMove = _self.getClickImage(e)) === false ) { return; }
655 if ( _self.timeOutAction ) {
656 clearTimeout(_self.timeOutAction);
657 _self.timeOutAction = null;
658 _self.whereToMoveQueue = new Array();
661 _self.addMoveElementToQueue(whereToMove);
667 $.grep(_self.checkedImages, function(elem, index){
710 _self.handle(delta > 0 ? 1 : -1);