GithubHelp home page GithubHelp logo

bk_notify's Introduction

bk_notify

在网页中显示通知信息

需导入jquery

初始设置

$.notify.options.class_name=
$.notify.options.time=
$.notify.options.fade_in_speed=
$.notify.options.fade_out_speed=
$.notify.options.position=

添加通知

$.notify.add({
	title:标题,
	text:内容,
	image:图片src,
	position:出现位置,默认右上,可选择:top-left,bottom-right,bottom-left&&如果要出现在正**,设置class_name:notify-center,此时需注意每次提醒覆盖问题,需要清除上次提醒
	fade_in_speed:淡入时间,
	time:停留时间,
	fade_out_speed:淡出时间,
	fade_out_speed_close:关闭情况下淡出时间,
	fade_out_speed_mouse:鼠标离开后淡出时间,
	sticky:是否有静止,
	class_name:样式
})

删除通知

$.notify.remove(id,item)参数为id和对象,填id即可

**没有X关闭是由于未导入font-awesome.min.css

bk_notify's People

Contributors

brucekayle avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.