@digital-ai/dot-illustrations 2.0.10 → 2.0.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/demo/script.js +4 -0
- package/illustrations/dark/global/commitrepo.svg +10 -0
- package/illustrations/dark/global/error-fivehundredthree.svg +29 -0
- package/illustrations/dark/global/error-fourhundredthree.svg +23 -0
- package/illustrations/dark/global/research.svg +49 -0
- package/illustrations/light/global/commitrepo.svg +14 -0
- package/illustrations/light/global/error-fivehundredthree.svg +29 -0
- package/illustrations/light/global/error-fourhundredthree.svg +23 -0
- package/illustrations/light/global/research.svg +49 -0
- package/index.css +32 -0
- package/integrations/demo/script.js +1 -0
- package/integrations/index.css +4 -0
- package/integrations/slack.svg +6 -0
- package/package.json +1 -1
- package/illustrations/dark/global/404.svg +0 -51
- package/illustrations/dark/global/500.svg +0 -111
- package/illustrations/light/global/404.svg +0 -51
- package/illustrations/light/global/500.svg +0 -111
- package/integrations/demo.css +0 -128
- package/integrations/index.html +0 -991
- package/integrations/script.js +0 -51
package/integrations/script.js
DELETED
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
function myFunction() {
|
|
2
|
-
var input, filter, divs, i, div, txtValue;
|
|
3
|
-
input = document.getElementById('myInput');
|
|
4
|
-
filter = input.value.toUpperCase();
|
|
5
|
-
divs = document.querySelectorAll('div');
|
|
6
|
-
|
|
7
|
-
for (i = 0; i < divs.length; i++) {
|
|
8
|
-
div = divs[i];
|
|
9
|
-
txtValue = div.textContent || div.innerText;
|
|
10
|
-
if (txtValue.toUpperCase().indexOf(filter) > -1) {
|
|
11
|
-
divs[i].style.display = "";
|
|
12
|
-
} else {
|
|
13
|
-
divs[i].style.display = "none";
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
function copyText(button) {
|
|
19
|
-
// Find the closest div parent of the clicked button
|
|
20
|
-
var parentDiv = button.closest('div');
|
|
21
|
-
|
|
22
|
-
// Find the span within the same parent div
|
|
23
|
-
var copyText = parentDiv.querySelector('.illustrationID');
|
|
24
|
-
|
|
25
|
-
// Get the text content of the span
|
|
26
|
-
var textToCopy = copyText.textContent;
|
|
27
|
-
|
|
28
|
-
// Use the Clipboard API to copy the text
|
|
29
|
-
navigator.clipboard.writeText(textToCopy).then(function() {
|
|
30
|
-
// Alert the copied text
|
|
31
|
-
alert("Copied the text: " + textToCopy);
|
|
32
|
-
}, function(err) {
|
|
33
|
-
console.error('Failed to copy text: ', err);
|
|
34
|
-
});
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
function copyCode() {
|
|
38
|
-
// Get the code block element
|
|
39
|
-
var copyCode = document.getElementById("myCodeBlock");
|
|
40
|
-
|
|
41
|
-
// Get the text content of the code block
|
|
42
|
-
var codeToCopy = copyCode.textContent;
|
|
43
|
-
|
|
44
|
-
// Use the Clipboard API to copy the text
|
|
45
|
-
navigator.clipboard.writeText(codeToCopy).then(function() {
|
|
46
|
-
// Alert the copied code
|
|
47
|
-
alert("Copied the code block");
|
|
48
|
-
}, function(err) {
|
|
49
|
-
console.error('Failed to copy code block: ', err);
|
|
50
|
-
});
|
|
51
|
-
}
|