N°7331 - Remove "example" (single) as well

This commit is contained in:
Molkobain
2024-03-11 16:42:16 +01:00
parent 43a8152de1
commit 700c4d0b04
6 changed files with 4 additions and 170 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 22 KiB

View File

@@ -1,95 +0,0 @@
* {
box-sizing: border-box;
}
html, body {
height: 100%;
}
body {
font-family: Helvetica, Arial, sans-serif;
background-size: 100%;
margin: 0;
padding: 0;
color: #424242;
}
.container {
overflow: hidden;
display: flex;
height: 100%;
justify-content: center;
flex-direction: column;
align-items: center;
background-color: whitesmoke;
background-image: url("./pattern.png");
}
.hidden {
display: none;
}
.docs {
display: flex;
justify-content: center;
flex-direction: column;
align-items: center;
background-color: white;
border: 1px solid #e3e3e3;
padding: 20px 20px;
width: 60%;
border-radius: 4px;
}
.docs h2 {
margin-top: 0px;
}
code p {
margin: 2px;
}
.pad-left {
padding-left: 20px;
}
.buttons {
margin: 20px;
display: flex;
flex-wrap: wrap;
justify-content: center;
}
.button {
overflow: hidden;
margin: 10px;
padding: 12px 12px;
cursor: pointer;
-webkit-transition: all 200ms ease-in-out;
transition: all 200ms ease-in-out;
text-align: center;
white-space: nowrap;
text-decoration: none;
text-transform: none;
text-transform: capitalize;
border-radius: 4px;
font-size: 13px;
font-weight: 500;
line-height: 1.3;
min-width: 100px;
display: inline-block;
box-shadow: 0 5px 20px rgba(22, 22, 22, 0.15);
color: #5477f5;
background-color: Snow;
border: 1px solid #5477f5;
}
.button:hover {
color: #FFFFFF;
background: linear-gradient(135deg, #73a5ff, #5477f5);
border: 1px solid transparent;
}
.repo {
margin: 10px;
}

View File

@@ -1,72 +0,0 @@
var bgColors = [
"linear-gradient(to right, #00b09b, #96c93d)",
"linear-gradient(to right, #ff5f6d, #ffc371)",
],
i = 0;
Toastify({
text: "Hi",
duration: 4500,
destination: "https://github.com/apvarun/toastify-js",
newWindow: true,
gravity: "top",
position: 'left',
}).showToast();
setTimeout(function() {
Toastify({
text: "Simple JavaScript Toasts",
gravity: "top",
position: 'center',
style: {
background: '#0f3443'
}
}).showToast();
}, 1000);
// Options for the toast
var options = {
text: "Happy toasting!",
duration: 2500,
callback: function() {
console.log("Toast hidden");
Toastify.reposition();
},
close: true,
style: {
background: "linear-gradient(to right, #00b09b, #96c93d)",
}
};
// Initializing the toast
var myToast = Toastify(options);
// Toast after delay
setTimeout(function() {
myToast.showToast();
}, 4500);
setTimeout(function() {
Toastify({
text: "Highly customizable",
gravity: "bottom",
position: 'left',
close: true,
style: {
background: "linear-gradient(to right, #ff5f6d, #ffc371)",
}
}).showToast();
}, 3000);
// Displaying toast on manual action `Try`
document.getElementById("new-toast").addEventListener("click", function() {
Toastify({
text: "I am a toast",
duration: 3000,
close: i % 3 ? true : false,
style: {
background: bgColors[i % 2],
}
}).showToast();
i++;
});