File: application/webfan/node_modules/webfan/my-webfan-menu.js

Recommend this page to a friend!
  Classes of Till Wehowski   µ.Flow   application/webfan/node_modules/webfan/my-webfan-menu.js   Download  
File: application/webfan/node_modules/webfan/my-webfan-menu.js
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: µ.Flow
General purpose library of objects
Author: By
Last change:
Date: 8 years ago
Size: 4,245 bytes
 

Contents

Class file image Download
(function(){ webfan.$Async(function(){ var jDialogBox = $('#'+frdl.wd().o.doms.DialogBoxModal.substr(1,frdl.wd().o.doms.DialogBoxModal.length)); var w = /*window.top||*/ window; var isTabs = function(){ return ('function' === typeof w.Tabs) ? true : false; }; frdl.wd().Menu.add('menu_top_desktop', { title :'<hr />', on : function(){ }, url : null }, frdl.wd().Menu.getMenu('menu_top_desktop').items.length * -1); frdl.wd().Menu.add('menu_top_desktop', { title :'<span class="icon-attach-apps">Apps</span>', on : function(){ if(arguments)var url = Array.prototype.slice.call(arguments)[0]; window.openComponent('Apps', 'webfan/webapps', 'icon-attach-apps'); }, url : false }, frdl.wd().Menu.getMenu('menu_top_desktop').items.length * -1); frdl.wd().Menu.add('menu_top_desktop', { title :'<span class="icon-attach-widgets">Widgets</span>', on : function(){ if(arguments)var url = Array.prototype.slice.call(arguments)[0]; window.openComponent('Widgets', 'webfan/marketplace', 'icon-attach-widgets'); }, url : false }, frdl.wd().Menu.getMenu('menu_top_desktop').items.length * -1); frdl.wd().Menu.add('menu_top_desktop', { title :'<span class="icon-attach-user-dark">Account</span>', on : function(){ var url = Array.prototype.slice.call(arguments)[0]; if(true === isTabs()){ w.Tabs().addTab('Account', url, frdl.base64_decode(window.__Helper_profileHtml64), 'browser', true, undefined, true, true, 'icon-attach-user-dark'); }else{ jDialogBox.wd_dialogs({loadUrl : url, title : 'search'}); } }, url : 'http://www.webfan.de/mydata.html' }, frdl.wd().Menu.getMenu('menu_top_desktop').items.length * -1); frdl.wd().Menu.add('menu_top_program', { title :'<span class="icon-attach-search">Search</span>', on : function(){ var url = Array.prototype.slice.call(arguments)[0]; if(true === isTabs()){ w.Tabs().addTab('search', url, null, 'browser', true, undefined, true, true, 'icon-attach-search'); }else{ jDialogBox.wd_dialogs({loadUrl : url, title : 'search'}); } }, url : 'http://suche.webfan.de' }); frdl.wd().Menu.add('menu_top_program', { title :'<span class="icon-attach-users">Contacts</span>', on : function(){ var url = Array.prototype.slice.call(arguments)[0]; if(true === isTabs()){ w.Tabs().addTab('Contacts', url, null, 'browser', true, undefined, true); }else{ jDialogBox.wd_dialogs({loadUrl : url, title : 'search'}); } }, url : 'http://www.webfan.de/kontakte.html' }); frdl.wd().Menu.add('menu_top_program', { title :'<span class="icon-attach-app-icon">Portal</span>', on : function(){ var url = Array.prototype.slice.call(arguments)[0]; if(true === isTabs()){ w.Tabs().addTab('Portal', url, null, 'browser', true, undefined, true); }else{ jDialogBox.wd_dialogs({loadUrl : url, title : 'search'}); } }, url : 'http://www.webfan.de/#fromapp' }); frdl.wd().Menu.add('menu_top_program', { title :'<span>Homepagesystem</span>', on : function(){ var url = Array.prototype.slice.call(arguments)[0]; if(true === isTabs()){ w.Tabs().addTab('Homepagesystem', url, null, 'browser', true, undefined, true); }else{ jDialogBox.wd_dialogs({loadUrl : url, title : 'search'}); } }, url : 'http://www.webfan.de/Userblog-op-home.html' }); }, 1); }());