Slider Arrows settings
328328
protected function createSliderArrow()
    {

        $skin = self::$arrowSkins[$this->arrowSkinId];
//$this->data['arrow']['top'] = 0;
// $this->data['arrow']['top'] = floor($this->data['slideHeight'] / 2);
        $this->data['arrow']['left'] = $skin['left'];
        $this->data['arrow']['right'] = $skin['right'];
        $skin['s']['$Class'] = '$JssorArrowNavigator$';
        $this->mergeSkinSettings($skin, '$ArrowNavigatorOptions');
    }
167525
public void setEnabled(boolean enabled) {
		this.enabled = enabled;
		if (enabled) {
			DOM.setElementProperty(lineElement, "className", SLIDER_LINE);
		} else {
			DOM.setElementProperty(lineElement, "className", SLIDER_LINE + " "
					+ SLIDER_LINE_DISABLED);
		}
		redraw();
	}
651534
function adjustThumbPosition(x) {
      var exactVal = percentToValue(positionToPercent(x));
      var closestVal = minMaxValidator(stepValidator(exactVal));
      setSliderPercent(positionToPercent(x));
      thumbText.text(closestVal);
    }
78788
function () {
    if (beatmap.timingPoints.length === 0) { return; }

    var maxCombo         = 0;
    var sliderMultiplier = parseFloat(beatmap.SliderMultiplier);
    var sliderTickRate   = parseInt(beatmap.SliderTickRate, 10);

    var timingPoints  = beatmap.timingPoints;
    var currentTiming = timingPoints[0];
    var nextOffset    = timingPoints[1] ? timingPoints[1].offset : Infinity;
    var i = 1;

    beatmap.hitObjects.forEach(function (hitObject) {
      if (hitObject.startTime >= nextOffset) {
        currentTiming = timingPoints[i++];
        nextOffset = timingPoints[i] ? timingPoints[i].offset : Infinity;
      }

      var osupxPerBeat = sliderMultiplier * 100 * currentTiming.velocity;
      var tickLength   = osupxPerBeat / sliderTickRate;

      switch (hitObject.objectName) {
        case 'spinner':
        case 'circle':
          maxCombo++;
          break;
        case 'slider':
          var tickPerSide = Math.ceil((Math.floor(hitObject.pixelLength / tickLength * 100) / 100) - 1);
          maxCombo += (hitObject.edges.length - 1) * (tickPerSide + 1) + 1;  // 1 combo for each tick and endpoint
      }
    });

    beatmap.maxCombo = maxCombo;
  }
715803
function toggleSlideEl (el) {
  var el_max_height = 0;

  if (el.getAttribute('data-max-height')) {
    // we've already used this before, so everything is setup
    if (el.style.maxHeight.replace('px', '').replace('%', '') === '0') {
      el.style.maxHeight = el.getAttribute('data-max-height');
      el.style.opacity = 1;
    } else {
      el.style.maxHeight = 0;
      el.style.opacity = 0;
    }
  } else {
    el_max_height = getHiddenElementHeight(el) + 'px';
    //el.style['-webkit-transition'] = 'background 0.5a linear, max-height 0.5s ease-in-out';
    el.style['-webkit-transition'] = 'opacity 0.5s ease-out, max-height 0.5s cubic-bezier(0.165, 0.84, 0.44, 1)';
    el.style.transition = 'opacity 0.5s ease-out, max-height 0.5s cubic-bezier(0.165, 0.84, 0.44, 1)';
    el.style.overflowY = 'hidden';
    el.style.maxHeight = '0';
    el.setAttribute('data-max-height', el_max_height);
    el.style.display = 'block';

    // we use setTimeout to modify maxHeight later than display (to we have the transition effect)
    setTimeout(function () {
      el.style.maxHeight = el_max_height;
      el.style.opacity = 1;
    }, 10);
  }
}
431620
function () {
            // Scroll or window resize
            $(window).on('resize scrollstop', _updateBoxes);

            // User entry
            $('input[type="number"]').on('keyup change click', events.onBoundaryChange); // 'click' is for spinners on input[number] control
            // Boundary toggle
            $showBoundsCheck.on('change', events.onBoundaryToggle);

            // Nudge controls
            // Only certain combinations of browsers/OSes allow capturing arrow key strokes, unfortunately
            // Windows: Firefox, Trident, Safari, Opera; Mac: Chrome, Safari, Opera; Not Firefox
            if ((navigator.oscpu && /Windows/.test(navigator.oscpu) && /Firefox|Trident|Safari|Presto/.test(navigator.userAgent)) || (/Macintosh/.test(navigator.userAgent) && /Chrome|Safari|Presto/.test(navigator.userAgent))) {
                $('#thresholds p').show();
                $('body').on('keydown', events.onNudge);
            }

            // Controls toggler
            $('#toggler').on('click', events.onControlsToggle);
        }
1144232
function(width, height, animate, layout) {
		var nav_pos, _layout;

		if(typeof layout === 'undefined'){
			_layout = this.options.layout;
		} else {
			_layout = layout;
		}

		this.options.layout = _layout;

		this.slide_spacing = this.options.width*2;

		if (width) {
			this.options.width = width;
		} else {
			this.options.width = this._el.container.offsetWidth;
		}

		if (height) {
			this.options.height = height;
		} else {
			this.options.height = this._el.container.offsetHeight;
		}

		//this._el.container.style.height = this.options.height;

		// position navigation
		nav_pos = (this.options.height/2);
		this._nav.next.setPosition({top:nav_pos});
		this._nav.previous.setPosition({top:nav_pos});


		// Position slides
		for (var i = 0; i < this._slides.length; i++) {
			this._slides[i].updateDisplay(this.options.width, this.options.height, _layout);
			this._slides[i].setPosition({left:(this.slide_spacing * i), top:0});

		};

		// Go to the current slide
		this.goToId(this.current_id, true, true);
	}
1156233
function( p, dir, desired, s, best ) {
        var result, r, diff, desiredForArrow = {}, tip = {};

        // If the arrow has no wiggle room along the edge of the popup, it cannot
        // be displayed along the requested edge without it sticking out.
        if ( s.arFull[ p.dimKey ] > s.guideDims[ p.dimKey ] ) {
            return best;
        }

        desiredForArrow[ p.fst ] = desired[ p.fst ] +
            ( s.arHalf[ p.oDimKey ] + s.menuHalf[ p.oDimKey ] ) * p.offsetFactor -
            s.contentBox[ p.fst ] + ( s.clampInfo.menuSize[ p.oDimKey ] - s.contentBox[ p.oDimKey ] ) * p.arrowOffsetFactor;
        desiredForArrow[ p.snd ] = desired[ p.snd ];

        result = s.result || this._calculateFinalLocation( desiredForArrow, s.clampInfo );
        r = { x: result.left, y: result.top };

        tip[ p.fst ] = r[ p.fst ] + s.contentBox[ p.fst ] + p.tipOffset;
        tip[ p.snd ] = Math.max( result[ p.prop ] + s.guideOffset[ p.prop ] + s.arHalf[ p.dimKey ],
            Math.min( result[ p.prop ] + s.guideOffset[ p.prop ] + s.guideDims[ p.dimKey ] - s.arHalf[ p.dimKey ],
                desired[ p.snd ] ) );

        diff = Math.abs( desired.x - tip.x ) + Math.abs( desired.y - tip.y );
        if ( !best || diff < best.diff ) {
            // Convert tip offset to coordinates inside the popup
            tip[ p.snd ] -= s.arHalf[ p.dimKey ] + result[ p.prop ] + s.contentBox[ p.snd ];
            best = { dir: dir, diff: diff, result: result, posProp: p.prop, posVal: tip[ p.snd ] };
        }

        return best;
    }
1189888
protected function createSlider()
    {
        $this->data['slideWidth'] = $this->sliderWidth;
        $this->data['slideHeight'] = $this->sliderHeight;
        $this->data['slidePosition'] = ['left' => 0, 'top' => 0];
        $this->data['arrowSkinId'] = $this->arrowSkinId;
        $this->data['navSkinId'] = $this->navSkinId;

        $this->createSliderContainer();

//Slider Arrows
        if ($this->arrowSkinId) {
            if (array_key_exists($this->arrowSkinId, self::$arrowSkins)) {
                $this->createSliderArrow();
            } else {
                throw new InvalidConfigException("The arrowSkinId '{$this->arrowSkinId}' does not exist.\n
                    Available arrow skins: " . implode(',', array_keys(self::$arrowSkins)));
            }
        }

//Slider Navigation (Bullet or Thumbnail)
        if ($this->navSkinId) {
            if (array_key_exists($this->navSkinId, self::$navSkins)) {
                if ($this->navSkinId[0] === 'b') {
                    $this->createSliderBullet();
                } elseif ($this->navSkinId[0] === 't') {
                    $this->createSliderThumb();
                }
            } else {
                throw new InvalidConfigException("The navSkinId '{$this->navSkinId}' does not exist.\n
                    Available arrow skins: " . implode(',', array_keys(self::$navSkins)));
            }
        }
    }
991581
public void slideTo()
	{
		int l = size().width() - SLIDER_WIDTH;
		int pos = MathHelper.clamp(mousePosition().x() - SLIDER_WIDTH / 2, 0, l);
		slideTo((float) pos / l);
	}
776354
def _slider_changed(self, n):
        
        self._button_save.setEnabled(True)

        self.modify_colorpoint(n, self._sliders[n].value()*0.001, self._colorpoint_list[n][1], self._colorpoint_list[n][2])
834666
function setGeckoEditingOptions() {
        function setOpts() {
          refreshContentEditable();

          setEditorCommandState("StyleWithCSS", false);
          setEditorCommandState("enableInlineTableEditing", false);

          if (!settings.object_resizing) {
            setEditorCommandState("enableObjectResizing", false);
          }
        }

        if (!settings.readonly) {
          editor.on('BeforeExecCommand MouseDown', setOpts);
        }
      }
750195
function() {
            var xDeg = parseInt(slider.value);
            var x = Math.sin(xDeg * (Math.PI / 180));
            wavesurfer.panner.setPosition(x, 0, 0);
        }
670969
function setup(options) {
        const config = Object.assign({}, DEFAULT_CONFIG, options);

        const $slider = config.$el;
        const $track = $slider.querySelector('.slider-track');
        const $after = $slider.querySelector('.slider-after-image');

        // Copy styles.
        $slider.style.width = getComputedStyle($after).getPropertyValue('width');
        $slider.style.height = getComputedStyle($after).getPropertyValue('height');

        $track.addEventListener('input', (evt) => {
            const percent = Number(evt.target.value);
            $after.style.width = `${percent}%`;
        });

        $track.value = config.defaultValue;
        $track.dispatchEvent(new Event('input'));
    }
749371
function() {
			slider.style['-webkit-transition-duration'] = '0';
			slider.style.webkitTransform = 'translate3d(' + (slideNumber * slider.offsetWidth) + 'px,0,0)';
			slider.removeEventListener('webkitTransitionEnd', fixedLoop);
		}
42597
protected function createSliderThumb()
    {
        $skin = self::$navSkins[$this->navSkinId];
        //Set default value for thumb positon becauce not all skins need this value
        $this->data['template'] = $skin['template'];
        if ($skin['position'] === 'bottom') {
            $this->data['thumb']['containerWidth'] = $this->sliderWidth;
            $this->data['thumb']['containerHeight'] = $skin['containerHeight'];
            if ($skin['calcSlide']) {
                $this->data['slideHeight'] = $this->data['slideHeight'] - $skin['containerHeight'];
            }
        } elseif ($skin['position'] === 'left') {
            $this->data['thumb']['containerHeight'] = $this->sliderHeight;
            $this->data['thumb']['containerWidth'] = $skin['containerWidth'];
            $this->data['slideWidth'] = $this->data['slideWidth'] - $skin['containerWidth'];
            $this->data['slidePosition'] = ['top' => 0, 'left' => $skin['containerWidth']];
        } elseif ($skin['position'] === 'right') {
            $this->data['thumb']['containerHeight'] = $this->sliderHeight;
            $this->data['thumb']['containerWidth'] = $skin['containerWidth'];
            $this->data['slideWidth'] = $this->data['slideWidth'] - $skin['containerWidth'];
        }

        $skin['s']['$Class'] = '$JssorThumbnailNavigator$';
        $this->mergeSkinSettings($skin, '$ThumbnailNavigatorOptions');
    }
453453
function acceptSlide(priv, slideElement) {
  slideElement.classList.add(Flag.UPGRADED);
  insertSlide(priv, slideElement);

  priv.phaser.addPhaseTrigger(slideElement.querySelector('.'+ Layout.CONTENT));

  if (priv.slides.length === 1) {
    priv.startCallback.call(null, priv.pub);
    // moving this to next tick is required in chromium for some reason
    window.setTimeout(moveToFirstSlide.bind(null, priv), 1);
  }
}