Skip to content

Commit

Permalink
added voting notification
Browse files Browse the repository at this point in the history
  • Loading branch information
gautamkrishnar committed Jun 23, 2018
1 parent cc817bd commit fb9636d
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 1 deletion.
6 changes: 6 additions & 0 deletions Izi.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
<script src="https://buttons.github.io/buttons.js"></script>
<!-- For changing icon when share on facebook.-->
<meta property="og:image" content="http://www.nothingprivate.ml/private.jpg">

<script src="Izi.js" type="text/javascript"></script>
<link type="text/css" href="izi.css" rel="stylesheet">
<!--
Created with <3 By Gautam Krishna R
www.github.com/gautamkrishnar
Expand Down
6 changes: 6 additions & 0 deletions izi.css

Large diffs are not rendered by default.

28 changes: 28 additions & 0 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,34 @@ function savefingerprint(check) {
};
xhr.open("GET", url + param);
xhr.send();
iziToast.show({
id: 'show',
title: 'Hi, We need your help!',
icon: 'icon-drafts',
class: 'custom1',
message: 'Support <b>Nothing Private</b> by voting for a new logo on GitHub',
position: 'bottomCenter',
image: 'private.jpg',
balloon: false,
close: false,
progressBar: false,
timeout: 20 * 1000,
buttons: [
['<button>Vote</button>', function (instance, toast) {

//instance.hide({ transitionOut: 'fadeOutUp' }, toast);
window.open('https://github.com/gautamkrishnar/nothing-private/issues/45','_self');


}],
['<button>Not Now!</button>', function (instance, toast) {

instance.hide({ transitionOut: 'fadeOutUp' }, toast);


}]
]
});
}

function forgetme() {
Expand Down

0 comments on commit fb9636d

Please sign in to comment.