to jest poczatek zrodla wtyczki:
/* ===========================================================
* pagepiling.js 0.0.8 (Beta)
*
* <a href="https://github.com/alvarotrigo/pagePiling.js" target="_blank">https://github.com/alvarotrigo/pagePiling.js</a>
* MIT licensed
*
* Copyright (C) 2013 alvarotrigo.com - A project by Alvaro Trigo
*
* ========================================================== */
(function ($) {
$.fn.pagepiling = function (options) {
var container = $(this);
var lastScrolledDestiny;
var lastAnimation = 0;
var isTouch = (('ontouchstart' in window) || (navigator.msMaxTouchPoints > 0));
var touchStartY = touchStartX = touchEndY = touchEndX = 0;
//Defines the delay to take place before being able to scroll to the next section
//BE CAREFUL! Not recommened to change it under 400 for a good behavior in laptops and
//Apple devices (laptops, mouses...)
var scrollDelay = 600;
// Create some defaults, extending them with any options that were provided
options = $.extend({
direction: 'vertical',
menu: null,
verticalCentered: true,
sectionsColor: [],
anchors: [],
scrollingSpeed: 700,
easing: 'swing',
loopBottom: false,
loopTop: false,
css3: true,
navigation: {
'textColor': '#000',
'bulletsColor': '#000',
'position': 'right',
'tooltips': ['section1', 'section2', 'section3', 'section4']
},
normalScrollElements: null,
normalScrollElementTouchThreshold: 5,
touchSensitivity: 5,
keyboardScrolling: true,
sectionSelector: '.section',
animateAnchor: false,
//events
afterLoad: null,
onLeave: null,
afterRender: null
}, options);
[...]
jest tam object options wiec dziwne ze nie lapie...
Cytat
Nie wiem czy nie ma błędu logicznego w Twojej potrzebie modyfikacji.
co masz na mysli? Zle podejscie?