DIR : /home/kozerus/public_html/pn/uize/site-source/js/Uize/Widgets/Buttons/Share/Widget.js
/home/kozerus/public_html/pn/uize/site-source/js/Uize/Widgets/Buttons/Share
/*______________
| ______ | U I Z E J A V A S C R I P T F R A M E W O R K
| / / | ---------------------------------------------------
| / O / | MODULE : Uize.Widgets.Buttons.Share.Widget Class
| / / / |
| / / / /| | ONLINE : http://www.uize.com
| /____/ /__/_| | COPYRIGHT : (c)2015-2016 UIZE
| /___ | LICENSE : Available under MIT License or GNU General Public License
|_______________| http://www.uize.com/license.html
*/
/* Module Meta Data
type: Class
importance: 1
codeCompleteness: 5
docCompleteness: 5
*/
/*?
Introduction
The =Uize.Widgets.Buttons.Share.Widget= module implements a widget class.
*DEVELOPERS:* `Chris van Rensburg`
*/
Uize.module ({
name:'Uize.Widgets.Buttons.Share.Widget',
superclass:'Uize.Widgets.Button.Square.Icon.Widget',
required:'Uize.Url',
builder:function (_superclass) {
'use strict';
return _superclass.subclass ({
instanceMethods:{
getShareUrl:function (_pageInfo) {
return '';
},
share:function () {
var
m = this,
_pageInfo = Uize.copy (m.callInherited ('getPageInfo') ({shareVia:m.Class.shareVia}))
;
_pageInfo.url = _pageInfo.urlToShare || _pageInfo.url;
m.callInherited ('launchPopup') ({url:Uize.Url.resolve (m.getShareUrl (_pageInfo))});
}
},
eventBindings:{
':Click':function () {this.share ()}
},
staticProperties:{
shareVia:''
}
});
}
});
//
koh5_pano
Drag mouse to navigate.
Navigation
- Left/Right Mouse drag: Changes camera heading.
- Up/Sown Mouse drag: Changes camera pitch.
- Scroll wheel: Changes camera field of view.
- I-Key: Displays Info panel with canvas size, image size and FPS.
17.Aug.2010, Martin Wengenmayer