|
|
|
|
@ -3,21 +3,51 @@ if (EXPO.about) { |
|
|
|
|
console.warn('WARNING: EXPO.eventsFeed is already defined!'); |
|
|
|
|
} else { |
|
|
|
|
EXPO.about = (function () { |
|
|
|
|
// variables
|
|
|
|
|
/** |
|
|
|
|
* private (visible inside this module only) variables |
|
|
|
|
*/ |
|
|
|
|
/** |
|
|
|
|
* @type {Object} - module API interafce realization |
|
|
|
|
*/ |
|
|
|
|
var that = {}; |
|
|
|
|
//default module setting
|
|
|
|
|
/** |
|
|
|
|
* @type {Object} default setting |
|
|
|
|
*/ |
|
|
|
|
that.opt = {}; |
|
|
|
|
//dependence's
|
|
|
|
|
/** |
|
|
|
|
* dependencies.Place where you can switch on dependencies for module |
|
|
|
|
* @type {EXPO.common|*} - mostly used in project functions and data (block.common.js) |
|
|
|
|
*/ |
|
|
|
|
var com = EXPO.common; |
|
|
|
|
//private
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* tabs object constructor |
|
|
|
|
* @param options - options (id's and classes to specifie HTML elements) |
|
|
|
|
* @constructor |
|
|
|
|
*/ |
|
|
|
|
var Tabs = function (options) { |
|
|
|
|
this.opt = options; |
|
|
|
|
var self = this, |
|
|
|
|
opt = this.opt, |
|
|
|
|
tabClass = opt.tabClass, |
|
|
|
|
activeClass = opt.activeClass; |
|
|
|
|
/** |
|
|
|
|
* tabs navigation menu |
|
|
|
|
* @type {*|jQuery|HTMLElement} |
|
|
|
|
* @public |
|
|
|
|
*/ |
|
|
|
|
this.$tabsList = $('#'+opt.listId); |
|
|
|
|
/** |
|
|
|
|
* tabs body container |
|
|
|
|
* @type {*|jQuery|HTMLElement} |
|
|
|
|
* @public |
|
|
|
|
*/ |
|
|
|
|
this.$tabs = $('#'+opt.tabsId); |
|
|
|
|
/** |
|
|
|
|
* short peview for content of each tabs |
|
|
|
|
* @type {*|jQuery|HTMLElement} |
|
|
|
|
* @public |
|
|
|
|
*/ |
|
|
|
|
this.$tabsOpenings = $('#'+opt.tabsOpeningId); |
|
|
|
|
|
|
|
|
|
$('a',this.$tabsList).on('click', function () { |
|
|
|
|
@ -31,9 +61,11 @@ if (EXPO.about) { |
|
|
|
|
|
|
|
|
|
}; |
|
|
|
|
Tabs.prototype = { |
|
|
|
|
initTabs: function () { |
|
|
|
|
|
|
|
|
|
}, |
|
|
|
|
/** |
|
|
|
|
* make specified tab visible |
|
|
|
|
* @param tabId - tab DOM id pararmeter |
|
|
|
|
* @public |
|
|
|
|
*/ |
|
|
|
|
setActive: function (tabId) { |
|
|
|
|
var activeClass = this.opt.activeClass, |
|
|
|
|
tabClass = this.opt.tabClass, |
|
|
|
|
@ -47,6 +79,10 @@ if (EXPO.about) { |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
}; |
|
|
|
|
/** |
|
|
|
|
* current module general initialization |
|
|
|
|
* @param {Object} options - options recieved from web page view |
|
|
|
|
*/ |
|
|
|
|
that.init = function (options) { |
|
|
|
|
// settings extending
|
|
|
|
|
$.extend(this.opt, options); |
|
|
|
|
|