Skip to content

Commit

Permalink
u
Browse files Browse the repository at this point in the history
  • Loading branch information
hadithmv committed Jan 12, 2024
1 parent 3b400a6 commit 9979dd3
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 14 deletions.
2 changes: 1 addition & 1 deletion books/quranBakurube.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion books/quranSoabuni.html

Large diffs are not rendered by default.

15 changes: 9 additions & 6 deletions uc/quranBakurube.html
Original file line number Diff line number Diff line change
Expand Up @@ -1194,17 +1194,20 @@
$("#quranTable").DataTable().column(6).visible(!isVisible);
}

// Simulate copy button click
document
.querySelector(
"#quranTable_wrapper > div.dTop > div.dt-buttons > button.dt-button.buttons-copy.buttons-html5"
)
.click();
// trigger click on copy button, works on mobile
$(".buttons-html5").click();

// Restore visibility to its original state
if (isVisible) {
$("#quranTable").DataTable().column(6).visible(true);
}

// old Simulate copy button click, didnt work except on desktop
/*document
.querySelector(
"#quranTable_wrapper > div.dTop > div.dt-buttons > button.dt-button.buttons-copy.buttons-html5"
)
.click();*/
}

/*OLD CODE BELOW:
Expand Down
8 changes: 2 additions & 6 deletions uc/quranSoabuni.html
Original file line number Diff line number Diff line change
Expand Up @@ -1168,12 +1168,8 @@
$("#quranTable").DataTable().column(6).visible(!isVisible);
}

// Simulate copy button click
document
.querySelector(
"#quranTable_wrapper > div.dTop > div.dt-buttons > button.dt-button.buttons-copy.buttons-html5"
)
.click();
// trigger click on copy button, works on mobile
$(".buttons-html5").click();

// Restore visibility to its original state
if (isVisible) {
Expand Down

0 comments on commit 9979dd3

Please sign in to comment.