Skip to content

Commit

Permalink
make notify more firendly
Browse files Browse the repository at this point in the history
  • Loading branch information
xixilive committed Jul 28, 2014
1 parent 866d2f1 commit 2d59843
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion public/js/application.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
$(function(){
function notify(type, title, text){
new PNotify({title: title, text: text, type: type, icon: false, text_escape: true});
new PNotify({title: title, text: text, type: type, icon: false, text_escape: true, buttons: {closer: true, sticker: false, sticker_hover: false}});
}

function reset_button(btn){
Expand Down
5 changes: 5 additions & 0 deletions views/layout.erb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,11 @@
<title>WeCheat - Wechat faker</title>
<link rel="stylesheet" type="text/css" href="http://libs.baidu.com/bootstrap/3.0.3/css/bootstrap.min.css">
<link href="http://cdn.bootcss.com/pnotify/2.0.0/pnotify.core.min.css" rel="stylesheet">
<link href="http://cdn.bootcss.com/pnotify/2.0.0/pnotify.buttons.min.css" rel="stylesheet">
<link href="http://cdn.bootcss.com/font-awesome/4.1.0/css/font-awesome.min.css" rel="stylesheet">
<style type="text/css">
.ui-pnotify-text{ word-break: break-all; }
</style>
</head>
<body>

Expand All @@ -30,6 +34,7 @@
<script type="text/javascript" src="http://libs.baidu.com/jquery/2.0.0/jquery.js"></script>
<script type="text/javascript" src="http://libs.baidu.com/bootstrap/3.0.3/js/bootstrap.min.js"></script>
<script src="http://cdn.bootcss.com/pnotify/2.0.0/pnotify.core.min.js"></script>
<script src="http://cdn.bootcss.com/pnotify/2.0.0/pnotify.buttons.min.js"></script>
<script src="http://cdn.bootcss.com/jquery.qrcode/1.0/jquery.qrcode.min.js"></script>
<script type="text/javascript" src="/js/application.js"></script>
</body>
Expand Down

0 comments on commit 2d59843

Please sign in to comment.