1
/*
2
* Curtain.js - Create an unique page transitioning system
3
* ---
4
* Version: 2
5
* Copyright 2011, Victor Coulon (http://victorcoulon.fr)
6
* Released under the MIT Licence
7
*/
8
9
(function ( $, window, document, undefined ) {
10
11
var pluginName = 'curtain',
12
defaults = {
13
scrollSpeed: 400,
14
bodyHeight: 0,
15
linksArray: [],
16
mobile: false,
17
scrollButtons: {},
18
controls: null,
19
curtainLinks: '.curtain-links',
20
enableKeys: true,
21
easing: 'swing',
22
disabled: false,
23
nextSlide: function() {},
24
prevSlide: function() {}
25
};
26
27
// The actual plugin constructor
28
function Plugin( element, options ) {
29
var self = this;
30
31
// Public attributes
32
this.element = element;
33
this.options = $.extend( {}, defaults, options) ;
34
35
this._defaults = defaults;
36
this._name = pluginName;
37
this._ignoreHashChange = false;
38
39
this.init();
40
}
...
</html>