diff --git a/GanjooRazor/Pages/Index.cshtml b/GanjooRazor/Pages/Index.cshtml
index b9296f1d..d6e1a525 100644
--- a/GanjooRazor/Pages/Index.cshtml
+++ b/GanjooRazor/Pages/Index.cshtml
@@ -23,6 +23,9 @@
cookieValue = getCookie("stickyEnabled");
var stickyEnabled = cookieValue != "false";
+
+ cookieValue = getCookie("lineNumbers");
+ var lineNumbers = cookieValue != "false";
@if (Model.GanjoorPage != null && Model.GanjoorPage.NoIndex)
@@ -42,7 +45,9 @@
@@ -244,7 +249,7 @@
}
}
-
+
}
diff --git a/GanjooRazor/wwwroot/js/bk.js b/GanjooRazor/wwwroot/js/bk.js
index 25d1e7ec..12fdb59f 100644
--- a/GanjooRazor/wwwroot/js/bk.js
+++ b/GanjooRazor/wwwroot/js/bk.js
@@ -92,6 +92,7 @@ function btshmr_internal(poemId) {
bnumdiv[i].remove();
}
document.getElementById("bnum-button").innerHTML = 'شمارهگذاریformat_list_numbered_rtl';
+ setCookie("lineNumbers", "false", 365);
return true;
}
document.getElementById("bnum-button").innerHTML = 'حذف شمارههاformat_list_numbered_rtl';
@@ -118,6 +119,7 @@ function btshmr_internal(poemId) {
j = 0;
}
}
+ setCookie("lineNumbers", "true", 365);
return true;
}