Skip to content
This repository has been archived by the owner on Nov 21, 2017. It is now read-only.

Latest commit

 

History

History
85 lines (54 loc) · 1.49 KB

plugins.md

File metadata and controls

85 lines (54 loc) · 1.49 KB

tooltips

usage:

  • html

    <input type="button"
     name="name"
     value="button"
     ydj-role="tooltips"
     title="tips left"  
     pos="right" />
    • ydj-role="tooltips": 自动实例化插件的属性标记

    • title: 提示文字

    • pos: 提示位置, left/top/right/bottom

  • javascript

    $(el).tooltips(option);
    • option.content: 提示文字

    • option.pos: 提示位置 left/right/top/bottom

fullpage

第三方fullpage插件, 基于jquery

github地址

demo地址

CDN地址:

http://s1.yidejia.com/YDJ/fullPage.min.js

http://s1.yidejia.com/YDJ/fullPage.min.css

toast

toast提示插件

usage:


$.toast(options);

// options DEFAULTS
//{
//  text: '',
//  heading: '',
//  showHideTransition: 'fade',
//  allowToastClose: true,
//  hideAfter: 3000,
//  loader: false,
//  loaderBg: '#9EC600',
//  stack: 5,
//  position: 'mid-center',
//  bgColor: false,
//  textColor: false,
//  textAlign: 'left',
//  icon: false,
//  beforeShow: function() {},
//  afterShown: function() {},
//  beforeHide: function() {},
//  afterHidden: function() {}
//}

options可以是string,array,object, 如果是string,则以默认的options提示string内容, array则以ul形式展示提示内容