Skip to content

Commit

Permalink
chore: pimp demo
Browse files Browse the repository at this point in the history
  • Loading branch information
steve-lebleu committed Mar 30, 2024
1 parent 630d17b commit bbddb15
Show file tree
Hide file tree
Showing 7 changed files with 135 additions and 235 deletions.
19 changes: 17 additions & 2 deletions demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
<![endif]-->

<link href='https://fonts.googleapis.com/css?family=Lato|Open+Sans|Montserrat' rel='stylesheet' type='text/css' />
<link href="css/kompletr.demo.min.css" rel="stylesheet" type="text/css" media="screen" />

<!--[if lt IE 9]>
<script src="//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.2/html5shiv.min.js"></script>
Expand All @@ -25,7 +24,11 @@
<meta name="msapplication-TileColor" content="#da532c">
<meta name="theme-color" content="#ffffff">

<link href="css/kompletr.demo.min.css" rel="stylesheet" type="text/css" media="screen" />
<script type="module" src="./js/kompletr.min.js"></script>

<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/toastify-js/src/toastify.min.css" />
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/toastify-js"></script>
</head>

<body>
Expand Down Expand Up @@ -106,7 +109,19 @@
done(d);
},*/
onSelect: (selected) => {
console.log('cb.onSelect', selected);
Toastify({
text: `Hey, I'm your callback! There is something for you 👀 : "${selected.Name}"`,
duration: 5000,
newWindow: true,
close: false,
gravity: "bottom", // `top` or `bottom`
position: "center", // `left`, `center` or `right`
stopOnFocus: true, // Prevents dismissing of toast on hover
style: {
background: "#4cb56b",
color: '#fff'
},
}).showToast();
},
onError: (error) => {
console.log('cb.onError ', error);
Expand Down
188 changes: 23 additions & 165 deletions dist/main.js

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

2 changes: 1 addition & 1 deletion dist/main.js.map

Large diffs are not rendered by default.

16 changes: 14 additions & 2 deletions src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,20 @@
done(d);
},*/
onSelect: (selected) => {
console.log('cb.onSelect', selected);
},
Toastify({
text: `Hey, I'm your callback there is something for you ${selected.Name} 👀`,
duration: 5000,
newWindow: true,
close: false,
gravity: "bottom", // `top` or `bottom`
position: "center", // `left`, `center` or `right`
stopOnFocus: true, // Prevents dismissing of toast on hover
style: {
background: "#4cb56b",
color: '#fff'
},
}).showToast();
},
onError: (error) => {
console.log('cb.onError ', error);
},
Expand Down
6 changes: 4 additions & 2 deletions src/sass/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,10 @@ $color-1: #fff;
$color-2: #c0c0c0;
$color-3: #dfdfdf;
$color-4: #9e9e9e;
$color-5: #666;
$color-6: #333;
$color-5: #777;
$color-6: #666;
$color-7: #444;
$color-8: #333;

////
/// Fonts variables
Expand Down
Loading

0 comments on commit bbddb15

Please sign in to comment.