@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.
@@ -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
- }