diff --git a/src/modal.js b/src/modal.js
index 497dc45..c3e07c3 100644
--- a/src/modal.js
+++ b/src/modal.js
@@ -7,9 +7,10 @@ $(() => {
$('#btn-get-code').on('click', openDialog);
//All the 'copy' buttons
- $('.btn-copy').on('click', (btn) => {
- const tgtSelector = $(btn).data('target');
+ $('.btn-copy').on('click', (event) => {
+ const tgtSelector = $(event.target).data('target');
if (tgtSelector) {
+ console.log($(tgtSelector).val());
navigator.clipboard.writeText($(tgtSelector).val()).then(
() => {},
() => {
@@ -59,11 +60,23 @@ $(() => {
.join('\n');
$ctrlCodeHtml.val(
- ``
+ ``
);
$ctrlCodeCss.val(`.bg-texture {
+ position: relative;
+}
+.bg-texture::after {
+ content: '';
+ position: absolute;
+ left: 0;
+ top: 0;
+ height: 100%;
+ width: 100%;
+ z-index: -1;
+
${textureStylesStr}
}
.hidden-svg {