Skip to content

Commit 3ddd660

Browse files
committed
Update to v6.8.15, Update 4 files
2026-03-30 23:49 - Update: jaufarTafsirApp/app/src/main/assets/books/jaufarTafsir.html - Update: jaufarTafsirApp/app/src/main/assets/js/DT-inline.js - Update: js/navbar.js - Update: js/navbar.min.js
1 parent bb5beca commit 3ddd660

4 files changed

Lines changed: 116 additions & 140 deletions

File tree

jaufarTafsirApp/app/src/main/assets/books/jaufarTafsir.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
.navbar-page-title {
3939
display: block !important; /* Force show the title ONLY on this page */
4040
}
41+
#tableID > tbody > tr > td.dt-type-numeric {display: none !important;}
4142
</style>
4243
<link
4344
rel="stylesheet"

jaufarTafsirApp/app/src/main/assets/js/DT-inline.js

Lines changed: 113 additions & 138 deletions
Original file line numberDiff line numberDiff line change
@@ -649,7 +649,7 @@ let DTconfig = {
649649
layout: {
650650
top: [
651651
"search",
652-
"inputPaging",
652+
// "inputPaging",
653653
"search",
654654

655655
{
@@ -666,7 +666,7 @@ let DTconfig = {
666666
},
667667

668668
titleAttr: "copy",
669-
text: "⧉ ކޮޕީ",
669+
text: "ކޮޕީކުރޭ",
670670

671671
// Shown at the very top of the exported document
672672
// title: * (default) - Use the HTML page's title value.
@@ -747,142 +747,117 @@ let DTconfig = {
747747
},
748748
},
749749

750-
{
751-
extend: "collection",
752-
key: {
753-
key: "m",
754-
altKey: true,
755-
},
756-
text: "⌥ އިތުރު",
757-
background: false,
758-
759-
buttons: [
760-
{
761-
extend: "colvis",
762-
key: {
763-
key: "s",
764-
altKey: true,
765-
},
766-
767-
text: "☰ ދައްކާ/ފޮރުވާ",
768-
background: false,
769-
postfixButtons: [
770-
// https://datatables.net/forums/discussion/36516
771-
{
772-
extend: "colvisGroup",
773-
text: "ހުރިހާ ދައްކާ &nbsp; +",
774-
show: ":hidden",
775-
titleAttr: "show all",
776-
},
777-
// https://datatables.net/extensions/buttons/examples/column_visibility/restore.html
778-
{
779-
extend: "colvisRestore",
780-
text: "ރީސެޓްކުރޭ &nbsp; ↺",
781-
titleAttr: "reset toggle",
782-
},
783-
],
784-
},
785-
{
786-
extend: "searchBuilder",
787-
key: {
788-
key: "b",
789-
altKey: true,
790-
},
791-
titleAttr: "custom search",
792-
},
793-
{
794-
extend: "searchPanes",
795-
key: {
796-
key: "v",
797-
altKey: true,
798-
},
799-
800-
config: {
801-
cascadePanes: true,
802-
803-
viewTotal: true,
804-
805-
collapse: false,
806-
dtOpts: {
807-
select: {
808-
style: "multi+shift",
809-
},
810-
},
811-
},
812-
},
813-
{
814-
extend: "pageLength",
815-
key: {
816-
key: "p",
817-
altKey: true,
818-
},
819-
background: false,
820-
},
821-
//
822-
823-
// https://stackoverflow.com/questions/53600956/how-to-add-custom-button-in-r-shiny-datatable
824-
// https://datatables.net/extensions/buttons/examples/initialisation/customHTMLButtons.html
825-
826-
"<h3></h3>",
827-
//'<h3 class="not-top-heading">Column Visibility</h3>',
828-
// places css in DT inline css file
829-
830-
{
831-
text: "ސަފުހާގެ ލިންކު ކޮޕީކުރޭ", // Button label
832-
action: function (e, dt, node, config) {
833-
// Click handler. what should happen when the button is clicked
834-
// e: The click event. when and where the click happened
835-
// dt: The DataTable API instance. the DataTable table
836-
// node: The button element itself that was clicked
837-
// config: The button configuration. its settings
838-
//
839-
copyURLToClipButton(); // This will run
840-
841-
// alert("Button activated");
842-
// dt.ajax.reload();
843-
},
844-
},
845-
// https://datatables.net/extensions/buttons/custom
846-
847-
{
848-
text: "ފިލިތައް ފޮރުވާ/ދައްކާ",
849-
action: function (e, dt, node, config) {
850-
toggleTashkeel();
851-
},
852-
},
853-
854-
/*//
855-
{
856-
text: "⭐ ތަރުޖަމާތައް",
857-
autoClose: true,
858-
action: function (e, dt, node, config) {
859-
const dropdown = document.getElementById(
860-
"translationDropdown"
861-
);
862-
if (dropdown) {
863-
dropdown.classList.toggle("active");
864-
// console.log(
865-
// "Active class toggled:",
866-
// dropdown.classList.contains("active")
867-
// );
868-
// Prevent any default actions that might interfere
869-
e.preventDefault();
870-
e.stopPropagation();
871-
// without these doesnt work it seems
872-
} else {
873-
console.error("Translation dropdown element not found");
874-
}
875-
// closes the collection, detach works too
876-
$(".dt-button-collection").hide();
877-
},
878-
},
879-
//*/
880-
881-
"<h3></h3>",
882-
883-
//
884-
],
885-
},
750+
// {
751+
// extend: "collection",
752+
// key: {
753+
// key: "m",
754+
// altKey: true,
755+
// },
756+
// text: "⌥ އިތުރު",
757+
// background: false,
758+
759+
// buttons: [
760+
// {
761+
// extend: "colvis",
762+
// key: {
763+
// key: "s",
764+
// altKey: true,
765+
// },
766+
767+
// text: "☰ ދައްކާ/ފޮރުވާ",
768+
// background: false,
769+
// postfixButtons: [
770+
// // https://datatables.net/forums/discussion/36516
771+
// {
772+
// extend: "colvisGroup",
773+
// text: "ހުރިހާ ދައްކާ &nbsp; +",
774+
// show: ":hidden",
775+
// titleAttr: "show all",
776+
// },
777+
// // https://datatables.net/extensions/buttons/examples/column_visibility/restore.html
778+
// {
779+
// extend: "colvisRestore",
780+
// text: "ރީސެޓްކުރޭ &nbsp; ↺",
781+
// titleAttr: "reset toggle",
782+
// },
783+
// ],
784+
// },
785+
// {
786+
// extend: "searchBuilder",
787+
// key: {
788+
// key: "b",
789+
// altKey: true,
790+
// },
791+
// titleAttr: "custom search",
792+
// },
793+
// {
794+
// extend: "searchPanes",
795+
// key: {
796+
// key: "v",
797+
// altKey: true,
798+
// },
799+
800+
// config: {
801+
// cascadePanes: true,
802+
803+
// viewTotal: true,
804+
805+
// collapse: false,
806+
// dtOpts: {
807+
// select: {
808+
// style: "multi+shift",
809+
// },
810+
// },
811+
// },
812+
// },
813+
// {
814+
// extend: "pageLength",
815+
// key: {
816+
// key: "p",
817+
// altKey: true,
818+
// },
819+
// background: false,
820+
// },
821+
// //
822+
823+
// // https://stackoverflow.com/questions/53600956/how-to-add-custom-button-in-r-shiny-datatable
824+
// // https://datatables.net/extensions/buttons/examples/initialisation/customHTMLButtons.html
825+
826+
// "<h3></h3>",
827+
// //'<h3 class="not-top-heading">Column Visibility</h3>',
828+
// // places css in DT inline css file
829+
830+
// {
831+
// text: "ސަފުހާގެ ލިންކު ކޮޕީކުރޭ", // Button label
832+
// action: function (e, dt, node, config) {
833+
// // Click handler. what should happen when the button is clicked
834+
// // e: The click event. when and where the click happened
835+
// // dt: The DataTable API instance. the DataTable table
836+
// // node: The button element itself that was clicked
837+
// // config: The button configuration. its settings
838+
// //
839+
// copyURLToClipButton(); // This will run
840+
841+
// // alert("Button activated");
842+
// // dt.ajax.reload();
843+
// },
844+
// },
845+
// // https://datatables.net/extensions/buttons/custom
846+
847+
// {
848+
// text: "ފިލިތައް ފޮރުވާ/ދައްކާ",
849+
// action: function (e, dt, node, config) {
850+
// toggleTashkeel();
851+
// },
852+
// },
853+
854+
855+
856+
// "<h3></h3>",
857+
858+
// //
859+
// ],
860+
// },
886861

887862
/*{
888863
extend: "pageLength",

js/navbar.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// this was initially just navbar code, but then i added other snippets i needed on every page, but not the dt stuff
22

3-
var hmvVersionNo = "6.8.14";
3+
var hmvVersionNo = "6.8.15";
44
// changed from 4.1.43 to 6.2.88, to match number of commits
55

66
// cant be 4.0, has to be like 4.1 or 4.01, as empty zeros will get removes

0 commit comments

Comments
 (0)