Skip to content

Commit 68cd850

Browse files
committed
u
1 parent 0a7bfd9 commit 68cd850

File tree

6 files changed

+64
-30
lines changed

6 files changed

+64
-30
lines changed

books/allAqida.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<!doctypehtml><html lang=dv><meta charset=utf-8><meta content="width=device-width,initial-scale=1"name=viewport><link href=https://hadithmv.github.io/books/allAqida.html rel=canonical><meta content=notranslate name=google><link href=../img/logo/logo.svg rel=icon type=image/svg+xml><meta content=#29434e name=theme-color><meta content=Hadithmv property=og:title><meta content=website property=og:type><meta content=https://hadithmv.github.io/books/allAqida.html property=og:url><meta content=https://hadithmv.github.io/img/logo/NewLogo7/hadithmv-logo-7.0-whiteBack-512px.png property=og:image><title>Hadithmv - All Aqeedah</title><meta content="The Maldivian Platform for Translations of the Sunnah | ސުންނަތުގެ ތަރުޖަމާ މަންސަ"name=description><link href=../css/COMB-nonCrit.min.css rel=preload as=style><link href=../css/COMB-nonCrit.min.css rel=stylesheet><script src=../js/resc/COMB-Crit.min.js defer></script><script src=../js/resc/COMB-nonCrit.min.js defer></script><script src=../js/json/usooluSunnah.js defer></script><script src=../js/json/barbahari.js defer></script><script src=../js/json/aqidatuRaziyain.js defer></script><script src=../js/json/kitabulEman.js defer></script><script src=../js/json/nawaqidulislam.js defer></script><script src=../js/json/qawaidulArbau.js defer></script><script src=../js/json/usooluSiththa.js defer></script><script src=../js/json/usooluThalaatha.js defer></script><script src=../js/allAqida-script.min.js defer></script><body translate=no><div id=page><div class="fixed header"onclick=drawer.open()><a href=#menu><span></span></a> <a href=index.html class=menuLeftIcon><img alt="hadith mv"class=hmvLogo1 loading=lazy src=../img/logo/logo.svg></a><span class=hideOnPhoneOnly>الجامع في العقائد – </span><span class=hideOnPhoneOnly>އެއްކުރަމުންދާ އަގީދާގެ ފޮތްތައް</span><nav id=menu><ul><li><a href=../books/index.html>● މައި ސަފުހާ</a><li><a href=../notes/info/contact.html>ކުށެއް/ހިޔާލެއް ހުށަހެޅުމަށް</a><li><a href=../notes/info/helpTranslate.html>ތަރުޖަމާގައި އެހީވެދިނުމަށް</a><li><a href=../notes/info/FAQ.html>ތަކުރާރުކޮށް ކުރެވޭ ސުވާލުތައް</a><li><a href=../notes/info/contributors.html>އެހީތެރިން</a><li class=hmvVer><a href=#>⚙️ އިސްދާރު: v3.10</a><li><a href=https://t.me/ashraafmv>ފަރުމާ ކުރީ: އަބޫ ޔަޙްޔާ، މުޙައްމަދު އަޝްރާފު އިބްރާހީމް</a><li class=madani><a href=#>މަދީނާގެ ޙަދީޘް ކުއްލިއްޔާގެ ދަރިވަރެއް</a><li><a onclick=window.location.reload()>🔄 މަޑު ރީލޯޑު</a><li><a onclick='window.location.href=window.location.href.split(".html")[0]+".html"'>ހަރު ރީލޯޑު</a></ul></nav></div><div class=content><main><table class="cards table"id=allAqidaTable></table><div class=hidden id=footer><button class=lowerButtons onclick=copyURLToClipButton()>  މިސަފުހާގެ ލިންކު ކޮޕީކުރޭ  </button> <button class=lowerButtons onclick=toggleFili(),filiString2(),scrollUpTop() id=toggleFiliButton2>  ފިލިތައް ދައްކާ  </button><script>function toggleFili(){var l=$("#allAqidaTable").DataTable().column(3).visible(),l=($("#allAqidaTable").DataTable().column(3).visible(!l),$("#allAqidaTable").DataTable().column(4).visible());$("#allAqidaTable").DataTable().column(4).visible(!l)}</script><script>function filiString2(){var n=document.getElementById("toggleFiliButton2");"&nbsp; ފިލިތައް ދައްކާ &nbsp;"===n.innerHTML.trim()?n.innerHTML="&nbsp; ފިލިތައް ފޮރުވާ &nbsp;":n.innerHTML="&nbsp; ފިލިތައް ދައްކާ &nbsp;"}</script><button class=lowerButtons onclick=copyOneOnly()>  ފިއްޔާއެކު ކޮޕީ  </button><script>function copyOneOnly(){var l=$("#allAqidaTable").DataTable().column(3).visible(),a=$("#allAqidaTable").DataTable().column(4).visible();!l||a&&!l?($("#allAqidaTable").DataTable().column(3).visible(!0),$("#allAqidaTable").DataTable().column(4).visible(!1),$(".buttons-html5").click(),$("#allAqidaTable").DataTable().column(3).visible(!1),$("#allAqidaTable").DataTable().column(4).visible(!0)):l&&!a&&$(".buttons-html5").click()}</script><p class=justi>⚠️ ނޯޓު: މިއީ ޙަދީޘްއެމްވީގައިވާ އަގީދާ ފޮތްތައް އެއް ތަނަކުން ސާރޗް ކުރެވޭ ސަފުހާއެވެ.</p><br></div></main></div></div><script src="https://www.googletagmanager.com/gtag/js?id=G-HL24Q9NN24"async></script><script>function gtag(){dataLayer.push(arguments)}window.dataLayer=window.dataLayer||[],gtag("js",new Date),gtag("config","G-HL24Q9NN24")</script>
1+
<!doctypehtml><html lang=dv><meta charset=utf-8><meta content="width=device-width,initial-scale=1"name=viewport><link href=https://hadithmv.github.io/books/allAqida.html rel=canonical><meta content=notranslate name=google><link href=../img/logo/logo.svg rel=icon type=image/svg+xml><meta content=#29434e name=theme-color><meta content=Hadithmv property=og:title><meta content=website property=og:type><meta content=https://hadithmv.github.io/books/allAqida.html property=og:url><meta content=https://hadithmv.github.io/img/logo/NewLogo7/hadithmv-logo-7.0-whiteBack-512px.png property=og:image><title>Hadithmv - All Aqeedah</title><meta content="The Maldivian Platform for Translations of the Sunnah | ސުންނަތުގެ ތަރުޖަމާ މަންސަ"name=description><link href=../css/COMB-nonCrit.min.css rel=preload as=style><link href=../css/COMB-nonCrit.min.css rel=stylesheet><script src=../js/resc/COMB-Crit.min.js defer></script><script src=../js/resc/COMB-nonCrit.min.js defer></script><script src=../js/json/usooluSunnah.js defer></script><script src=../js/json/barbahari.js defer></script><script src=../js/json/aqidatuRaziyain.js defer></script><script src=../js/json/kitabulEman.js defer></script><script src=../js/json/nawaqidulislam.js defer></script><script src=../js/json/qawaidulArbau.js defer></script><script src=../js/json/usooluSiththa.js defer></script><script src=../js/json/usooluThalaatha.js defer></script><script src=../js/json/barbahariDFK.js defer></script><script src=../js/allAqida-script.min.js defer></script><body translate=no><div id=page><div class="fixed header"onclick=drawer.open()><a href=#menu><span></span></a> <a href=index.html class=menuLeftIcon><img alt="hadith mv"class=hmvLogo1 loading=lazy src=../img/logo/logo.svg></a><span class=hideOnPhoneOnly>الجامع في العقائد – </span><span class=hideOnPhoneOnly>އެއްކުރަމުންދާ އަގީދާގެ ފޮތްތައް</span><nav id=menu><ul><li><a href=../books/index.html>● މައި ސަފުހާ</a><li><a href=../notes/info/contact.html>ކުށެއް/ހިޔާލެއް ހުށަހެޅުމަށް</a><li><a href=../notes/info/helpTranslate.html>ތަރުޖަމާގައި އެހީވެދިނުމަށް</a><li><a href=../notes/info/FAQ.html>ތަކުރާރުކޮށް ކުރެވޭ ސުވާލުތައް</a><li><a href=../notes/info/contributors.html>އެހީތެރިން</a><li class=hmvVer><a href=#>⚙️ އިސްދާރު: v3.10</a><li><a href=https://t.me/ashraafmv>ފަރުމާ ކުރީ: އަބޫ ޔަޙްޔާ، މުޙައްމަދު އަޝްރާފު އިބްރާހީމް</a><li class=madani><a href=#>މަދީނާގެ ޙަދީޘް ކުއްލިއްޔާގެ ދަރިވަރެއް</a><li><a onclick=window.location.reload()>🔄 މަޑު ރީލޯޑު</a><li><a onclick='window.location.href=window.location.href.split(".html")[0]+".html"'>ހަރު ރީލޯޑު</a></ul></nav></div><div class=content><main><table class="cards table"id=allAqidaTable></table><div class=hidden id=footer><button class=lowerButtons onclick=copyURLToClipButton()>  މިސަފުހާގެ ލިންކު ކޮޕީކުރޭ  </button> <button class=lowerButtons onclick=toggleFili(),filiString2(),scrollUpTop() id=toggleFiliButton2>  ފިލިތައް ދައްކާ  </button><script>function toggleFili(){var l=$("#allAqidaTable").DataTable().column(3).visible(),l=($("#allAqidaTable").DataTable().column(3).visible(!l),$("#allAqidaTable").DataTable().column(4).visible());$("#allAqidaTable").DataTable().column(4).visible(!l)}</script><script>function filiString2(){var n=document.getElementById("toggleFiliButton2");"&nbsp; ފިލިތައް ދައްކާ &nbsp;"===n.innerHTML.trim()?n.innerHTML="&nbsp; ފިލިތައް ފޮރުވާ &nbsp;":n.innerHTML="&nbsp; ފިލިތައް ދައްކާ &nbsp;"}</script><button class=lowerButtons onclick=copyOneOnly()>  ފިއްޔާއެކު ކޮޕީ  </button><script>function copyOneOnly(){var l=$("#allAqidaTable").DataTable().column(3).visible(),a=$("#allAqidaTable").DataTable().column(4).visible();!l||a&&!l?($("#allAqidaTable").DataTable().column(3).visible(!0),$("#allAqidaTable").DataTable().column(4).visible(!1),$(".buttons-html5").click(),$("#allAqidaTable").DataTable().column(3).visible(!1),$("#allAqidaTable").DataTable().column(4).visible(!0)):l&&!a&&$(".buttons-html5").click()}</script><p class=justi>⚠️ ނޯޓު: މިއީ ޙަދީޘްއެމްވީގައިވާ އަގީދާ ފޮތްތައް އެއް ތަނަކުން ސާރޗް ކުރެވޭ ސަފުހާއެވެ.</p><br></div></main></div></div><script src="https://www.googletagmanager.com/gtag/js?id=G-HL24Q9NN24"async></script><script>function gtag(){dataLayer.push(arguments)}window.dataLayer=window.dataLayer||[],gtag("js",new Date),gtag("config","G-HL24Q9NN24")</script>

js/allAqida-script.js

Lines changed: 33 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,25 @@ $(document).ready(() => {
5858
});
5959
} //= =================== end if else
6060

61+
// PART 0
62+
// DFK BARBARI ONLY TEXT MERGE
63+
// Ensure both arrays have the same number of rows
64+
const numRows = Math.max(barbahari_DB.length, barbahariDFK_DB.length);
65+
//const resultbarbahariDFK = [];
66+
resultbarbahariDFK = [];
67+
for (let i = 0; i < numRows; i++) {
68+
const row1 = barbahari_DB[i] || [];
69+
const row2 = barbahariDFK_DB[i] || [];
70+
const col1 = row1[0] || "";
71+
const col5 = row1[4] || "";
72+
const col7 = row1[6] || "";
73+
const combinedRow = [col1, col5, col7, ...row2];
74+
resultbarbahariDFK.push(combinedRow);
75+
}
76+
// end barbahari text merge
77+
78+
//
79+
6180
// PART 1
6281
// cgpt code, this part removes the specified columns entirely
6382
// In this modified code, you can specify the columnsToRemove array at the end of the code, allowing you to easily change which columns you want to remove without modifying the function itself. This provides more flexibility when working with different 2D arrays and column selections.
@@ -73,6 +92,8 @@ $(document).ready(() => {
7392

7493
resultusooluSunnah = removeColumns(usooluSunnah_DB, [4, 5]);
7594
resultbarbahari = removeColumns(barbahari_DB, [1, 2, 3, 7, 8]);
95+
//resultbarbahariDFK = removeColumns(barbahariDFK_DB, []);
96+
7697
resultaqidatuRaziyain = removeColumns(aqidatuRaziyain_DB, [3]);
7798
resultkitabulEman = removeColumns(kitabulEman_DB, [3, 6, 7]);
7899
/* this actually has 8 columns, yet it forces me to choose 4 and subtract 4 of them for some reason
@@ -85,8 +106,10 @@ $(document).ready(() => {
85106
resultusooluThalaatha = removeColumns(usooluThalaatha_DB, [2, 6, 7, 8]);
86107

87108
//console.log(result);
109+
88110
//
89111

112+
// PART 2
90113
// cgpt code, this part inserts a specific value into the first column
91114
// In this code, the insertValueInFirstColumn function uses the map method to iterate through each row of the 2D array. For each row, it adds the specified valueToInsert ('hey') to the beginning of the row, effectively inserting a new column with the same value in the first column position of each row.
92115

@@ -101,6 +124,11 @@ $(document).ready(() => {
101124
resultbarbahari,
102125
"شرح السنة للبربهاري"
103126
);
127+
128+
resultbarbahariDFK = insertValueInFirstColumn(
129+
resultbarbahariDFK,
130+
"شرح السنة للبربهاري DFK"
131+
);
104132
resultaqidatuRaziyain = insertValueInFirstColumn(
105133
resultaqidatuRaziyain,
106134
"عقيدة الرازيين"
@@ -128,11 +156,9 @@ $(document).ready(() => {
128156
//console.log(result);
129157
// END BOOK
130158

131-
//
132-
//
133159
//
134160

135-
// PART 2
161+
// PART 3
136162
// cgpt code, appends a 2d array to the end of another 2d array, even if their columns/rows differ, and generates empty values
137163
// In this code, the appendRowsWithEmptyValues function calculates the maximum number of columns from both arrays and pads each row in arr2 with empty values (empty strings) as needed to match the number of columns in the merged array. This ensures that the resulting array has consistent dimensions with empty values where needed.
138164
function appendRowsWithEmptyValues(arr1, arr2) {
@@ -160,6 +186,8 @@ $(document).ready(() => {
160186
resultqawaidulArbau,
161187
resultusooluSiththa,
162188
resultusooluThalaatha,
189+
// below should always be last
190+
resultbarbahariDFK,
163191
];
164192

165193
// ADDED a json object with 6 rows to make this part work for allAqida as it did for allAthar. I dont think 6 is a necessity for it to work, as increasing in doesnt change the data entry.
@@ -256,7 +284,7 @@ $(document).ready(() => {
256284
},
257285
{
258286
data: 5,
259-
title: "އިތުރު ބަރި", // extra column i need for harawi
287+
title: "އިތުރު ބަރި", // extra column i need for harawi, dv footnotes?
260288
},
261289
],
262290

@@ -265,6 +293,7 @@ $(document).ready(() => {
265293
// adds footnote line for shurooh
266294
// if (data !== "") { } else { return data; } ONLY applies if string is not empty
267295
{
296+
// havent quite figured out how to get this right yet, so many different books have different layouts now
268297
targets: [], // 6, but non takhrij texts are there in this, unlike allAthar
269298
render: function (data, type, row) {
270299
if (data !== "") {

0 commit comments

Comments
 (0)