mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-12 23:14:18 +01:00
N°7331 - Remove "example" (single) as well
This commit is contained in:
BIN
node_modules/toastify-js/example/pattern.png
generated
vendored
BIN
node_modules/toastify-js/example/pattern.png
generated
vendored
Binary file not shown.
|
Before Width: | Height: | Size: 22 KiB |
95
node_modules/toastify-js/example/script.css
generated
vendored
95
node_modules/toastify-js/example/script.css
generated
vendored
@@ -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;
|
||||
}
|
||||
72
node_modules/toastify-js/example/script.js
generated
vendored
72
node_modules/toastify-js/example/script.js
generated
vendored
@@ -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++;
|
||||
});
|
||||
Reference in New Issue
Block a user