moreservice.js 723 B

12345678910111213141516171819202122232425
  1. /**
  2. * @fileOverview
  3. *
  4. * 搜索节点功能
  5. *
  6. * @author: yangxiaohu
  7. * @copyright: Baidu FEX, 2014
  8. */
  9. KityMinder.registerUI('topbar/moreservice', function(minder) {
  10. var $service;
  11. var $link = $('<link>').attr('href', "http://baiduoffice.duapp.com/public/assets/style/moreService.css").attr('rel', "stylesheet");
  12. $('head').append($link);
  13. $.getScript('http://baiduoffice.duapp.com/public/widget/moreService.js', startService);
  14. $service = $('<div id="moreservice"></div>');
  15. function startService(){
  16. $service.prependTo('#panel').moreService({button: {float: 'left', width: '40px', height: '40px', 'border-right': '1px solid rgba(255, 255, 255, .5)'}});
  17. };
  18. return $service;
  19. });