Skip to content

Commit

Permalink
u
Browse files Browse the repository at this point in the history
  • Loading branch information
hadithmv committed Jan 5, 2024
1 parent 6634fd7 commit 8030627
Show file tree
Hide file tree
Showing 16 changed files with 77 additions and 38 deletions.
2 changes: 1 addition & 1 deletion books/aqidahNawawi.html

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion books/radheef.html
Original file line number Diff line number Diff line change
@@ -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/radheef.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/radheef.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 - Dhivehi, Arabic & English Dictionary Compilation</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/radheef.js defer></script><script src=../js/json/eegaal.js defer></script><script src=../js/radheef-script.min.js defer></script><style>@media screen and (max-width:900px){.dataTable tr td.rCol1,.dataTable tr td.rCol2,.dataTable tr td.rCol3,.dataTable tr td.rCol4,.dataTable tr td.rCol7{text-align:center}}.dataTable tr td.rCol4,.dataTable tr td.rCol7{direction:ltr}@media screen and (min-width:900px){.dataTable tr td.rCol1,.dataTable tr td.rCol5{text-align:right}.dataTable tr td.rCol3,.dataTable tr td.rCol6{text-align:right}.dataTable tr td.rCol4,.dataTable tr td.rCol7{text-align:left}}.dataTable>thead>tr>th{text-align:right!important}.dataTable>thead>tr>th.rCol4{text-align:left!important}#datatables_buttons_info,.cards tbody tr{box-shadow:0 5px 15px 0 rgba(0,0,0,.24)}</style><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>އެއްކުރަމުންދާ ރަދީފު<nav id=menu><ul><li><a href=../books/index.html>● މައި ސަފުހާ</a><li><a href=../books/eegaal.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.06</a><li><a href=https://t.me/ashraafmv>ފަރުމާ ކުރީ: އަބޫ ޔަޙްޔާ، މުޙައްމަދު އަޝްރާފު އިބްރާހީމް</a><li class=madani><a href=#>މަދީނާގެ ޙަދީޘް ކުއްލިއްޔާގެ ދަރިވަރެއް</a></ul></nav></div><div class=content><main><table class="stripe table"id=radheefTable></table><div class=hidden id=footer><button class=lowerButtons onclick=copyURLToClipButton()>  މިސަފުހާގެ ލިންކު ކޮޕީކުރޭ  </button> <button class=lowerButtons onclick=toggleFili()>  ފިލި ފޮރުވާ/ދައްކާ  </button><script>function toggleFili(){var a=$("#radheefTable").DataTable().column(0).visible(),a=($("#radheefTable").DataTable().column(0).visible(!a),$("#radheefTable").DataTable().column(1).visible());$("#radheefTable").DataTable().column(1).visible(!a)}</script><p>⚠️ މި ރަދީފުގައި ލައްކައެއްހައި ލަފްޒު ހިމެނުނަކަސް، އަދި މުޅިން ފުރިހަމައަށް އެކުލަވާލެވި މުރާޖާކޮށް ނުއެއް ނިމެއެވެ. އަދި ބައެއް ލަފްޒުތަކުގައި މައްސަލަވެސް އުޅޭނެއެވެ.</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>
<!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/radheef.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/radheef.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 - Dhivehi, Arabic & English Dictionary Compilation</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/radheef.js defer></script><script src=../js/json/eegaal.js defer></script><script src=../js/json/radheefManiku.js defer></script><script src=../js/radheef-script.min.js defer></script><style>@media screen and (max-width:900px){.dataTable tr td.rCol1,.dataTable tr td.rCol2,.dataTable tr td.rCol3,.dataTable tr td.rCol4,.dataTable tr td.rCol7{text-align:center}}.dataTable tr td.rCol4,.dataTable tr td.rCol7{direction:ltr}@media screen and (min-width:900px){.dataTable tr td.rCol1,.dataTable tr td.rCol5{text-align:right}.dataTable tr td.rCol3,.dataTable tr td.rCol6{text-align:right}.dataTable tr td.rCol4,.dataTable tr td.rCol7{text-align:left}}.dataTable>thead>tr>th{text-align:right!important}.dataTable>thead>tr>th.rCol4{text-align:left!important}#datatables_buttons_info,.cards tbody tr{box-shadow:0 5px 15px 0 rgba(0,0,0,.24)}</style><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>އެއްކުރަމުންދާ ރަދީފު<nav id=menu><ul><li><a href=../books/index.html>● މައި ސަފުހާ</a><li><a href=../books/eegaal.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.06</a><li><a href=https://t.me/ashraafmv>ފަރުމާ ކުރީ: އަބޫ ޔަޙްޔާ، މުޙައްމަދު އަޝްރާފު އިބްރާހީމް</a><li class=madani><a href=#>މަދީނާގެ ޙަދީޘް ކުއްލިއްޔާގެ ދަރިވަރެއް</a></ul></nav></div><div class=content><main><table class="stripe table"id=radheefTable></table><div class=hidden id=footer><button class=lowerButtons onclick=copyURLToClipButton()>  މިސަފުހާގެ ލިންކު ކޮޕީކުރޭ  </button> <button class=lowerButtons onclick=toggleFili()>  ފިލި ފޮރުވާ/ދައްކާ  </button><script>function toggleFili(){var a=$("#radheefTable").DataTable().column(0).visible(),a=($("#radheefTable").DataTable().column(0).visible(!a),$("#radheefTable").DataTable().column(1).visible());$("#radheefTable").DataTable().column(1).visible(!a)}</script><p>⚠️ މި ރަދީފުގައި ލައްކައެއްހައި ލަފްޒު ހިމެނުނަކަސް، އަދި މުޅިން ފުރިހަމައަށް އެކުލަވާލެވި މުރާޖާކޮށް ނުއެއް ނިމެއެވެ. އަދި ބައެއް ލަފްޒުތަކުގައި މައްސަލަވެސް އުޅޭނެއެވެ.</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>
12 changes: 6 additions & 6 deletions js/allAthar-script.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,11 +118,11 @@ $(document).ready(() => {
}

// const result = appendRowsWithEmptyValues(radheef_DB, eegaal_DB);
allResult = appendRowsWithEmptyValues(allAthar_DB, resultNawawi);
allResult = appendRowsWithEmptyValues(allResult, resultUmdah);
allResult = appendRowsWithEmptyValues(allResult, resultBulugh);
allResult = appendRowsWithEmptyValues(allResult, resultMuwatta);
allResult = appendRowsWithEmptyValues(allResult, resultHisnul);
combResult = appendRowsWithEmptyValues(allAthar_DB, resultNawawi);
combResult = appendRowsWithEmptyValues(combResult, resultUmdah);
combResult = appendRowsWithEmptyValues(combResult, resultBulugh);
combResult = appendRowsWithEmptyValues(combResult, resultMuwatta);
combResult = appendRowsWithEmptyValues(combResult, resultHisnul);
//console.log(result);
// end merge

Expand All @@ -131,7 +131,7 @@ $(document).ready(() => {
// NOT DataTable();

// CHANGE123 JSON
data: allResult, // https://datatables.net/manual/ajax
data: combResult, // https://datatables.net/manual/ajax

columns: [
{
Expand Down
6 changes: 3 additions & 3 deletions js/allAthar-script.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

45 changes: 42 additions & 3 deletions js/radheef-script.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,45 @@ $(document).ready(() => {
});
} //= =================== end if else

// PART 1
// PART 1 remove cols from maniku
// cgpt code, this part removes the specified columns entirely
// 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.

function removeColumns(arr, columnIndices) {
return arr.map((row) => {
return row.filter((_, index) => !columnIndices.includes(index));
});
}

//const result = removeColumns(twoDArray, columnsToRemove); // [1, 3];
resultradheefManiku = removeColumns(radheefManiku_DB, [0, 2]);

// PART 2 move second column to the sixth column
// Step 1: Add an empty column before the first column
// jsonArray.forEach
resultradheefManiku.forEach(function (row) {
row.unshift("");
});

// Step 2: Add 3 more columns after the third column
resultradheefManiku.forEach(function (row) {
for (var i = 0; i < 3; i++) {
row.push("");
}
});

// Step 3: Switch the places of the third and last columns
resultradheefManiku.forEach(function (row) {
var thirdColumnValue = row[2];
var lastColumnValue = row[row.length - 1];

row[2] = lastColumnValue;
row[row.length - 1] = thirdColumnValue;
});

// ...

// PART 1 EEGAL
// cgpt code, this takes a split 2 2d nested arrays and joins them together rowwise, then generates empty values where needed, then flattens them, so now the db can be broken down and reused

// remove rows from begining
Expand Down Expand Up @@ -139,7 +177,8 @@ $(document).ready(() => {
}

// const result = appendRowsWithEmptyValues(radheef_DB, eegaal_DB);
const result = appendRowsWithEmptyValues(radheef_DB, resultEegaal);
combResult = appendRowsWithEmptyValues(radheef_DB, resultEegaal);
combResult = appendRowsWithEmptyValues(combResult, resultradheefManiku);
//console.log(result);
// end merge

Expand All @@ -148,7 +187,7 @@ $(document).ready(() => {
// NOT DataTable();

// CHANGE123 JSON
data: result, // https://datatables.net/manual/ajax
data: combResult, // https://datatables.net/manual/ajax

//order: [[0, 'asc']], // CHANGE 123 - FOR RADHEEF ONLY

Expand Down
Loading

0 comments on commit 8030627

Please sign in to comment.