docs: #352 persianizing numbers in the map and improving CSS
This commit is contained in:
parent
ca5109d21a
commit
f184b9032d
@ -15,7 +15,7 @@
|
||||
گنجور » نمایش خوانش
|
||||
</title>
|
||||
<link href="~/dist/skin/pink.flag/css/jplayer.pink.flag.min.css" rel="stylesheet" type="text/css" />
|
||||
<link href="~/css/p8.css?version=48" rel="stylesheet" type="text/css" />
|
||||
<link href="~/css/p8.css?version=49" rel="stylesheet" type="text/css" />
|
||||
<link rel="shortcut icon" href="/favicon.ico?version=1" type="image/x-icon" />
|
||||
<link rel="search" type="application/opensearchdescription+xml" title="گنجور" href="https://ganjoor.net/search.xml" />
|
||||
<script>
|
||||
@ -157,7 +157,7 @@
|
||||
</p>
|
||||
|
||||
<script src="~/lib/jquery/dist/jquery.min.js"></script>
|
||||
<script src="~/js/bk.js?version=33"></script>
|
||||
<script src="~/js/bk.js?version=34"></script>
|
||||
<script src="~/js/jplayersupport.js"></script>
|
||||
<script src="~/js/vaabd.js?version=2"></script>
|
||||
<script src="~/dist/jplayer/jquery.jplayer.min.js"></script>
|
||||
|
||||
@ -11,7 +11,7 @@
|
||||
<title>انتخاب قطعهٔ موسیقی مرتبط با شعر از بیپتونز</title>
|
||||
<meta name="robots" content="noindex, nofollow" />
|
||||
<link rel="shortcut icon" href="/favicon.ico?version=1" type="image/x-icon" />
|
||||
<link href="/css/p8.css?version=48" rel="stylesheet" type="text/css" />
|
||||
<link href="/css/p8.css?version=49" rel="stylesheet" type="text/css" />
|
||||
<link href="/css/spotify.css" rel="stylesheet" type="text/css" />
|
||||
|
||||
<script src="/lib/jquery/dist/jquery.min.js"></script>
|
||||
|
||||
@ -14,7 +14,7 @@
|
||||
@ViewData["Title"]
|
||||
</title>
|
||||
|
||||
<link href="/css/p8.css?version=48" rel="stylesheet" type="text/css" />
|
||||
<link href="/css/p8.css?version=49" rel="stylesheet" type="text/css" />
|
||||
<link rel="shortcut icon" href="/favicon.ico?version=1" type="image/x-icon" />
|
||||
<link rel="search" type="application/opensearchdescription+xml" title="گنجور" href="https://ganjoor.net/search.xml" />
|
||||
|
||||
|
||||
@ -12,11 +12,11 @@
|
||||
@ViewData["Title"]
|
||||
</title>
|
||||
|
||||
<link href="/css/p8.css?version=48" rel="stylesheet" type="text/css" />
|
||||
<link href="/css/p8.css?version=49" rel="stylesheet" type="text/css" />
|
||||
<link rel="shortcut icon" href="/favicon.ico?version=1" type="image/x-icon" />
|
||||
<link rel="search" type="application/opensearchdescription+xml" title="گنجور" href="https://ganjoor.net/search.xml" />
|
||||
<script src="/lib/jquery/dist/jquery.min.js"></script>
|
||||
<script src="/js/bk.js?version=33"></script>
|
||||
<script src="/js/bk.js?version=34"></script>
|
||||
<script>
|
||||
var cookieValue = getCookie("playerScrollLock");
|
||||
var playerScrollLock = cookieValue === "true";
|
||||
|
||||
@ -10,7 +10,7 @@
|
||||
<title>انتخاب قطعهای از برنامهٔ گلها مرتبط با این شعر</title>
|
||||
<meta name="robots" content="noindex, nofollow" />
|
||||
<link rel="shortcut icon" href="/favicon.ico?version=1" type="image/x-icon" />
|
||||
<link href="/css/p8.css?version=48" rel="stylesheet" type="text/css" />
|
||||
<link href="/css/p8.css?version=49" rel="stylesheet" type="text/css" />
|
||||
<link href="/css/spotify.css" rel="stylesheet" type="text/css" />
|
||||
<script src="/lib/jquery/dist/jquery.min.js"></script>
|
||||
<script src="~/js/golha.js"></script>
|
||||
|
||||
@ -14,11 +14,11 @@
|
||||
@ViewData["Title"]
|
||||
</title>
|
||||
|
||||
<link href="/css/p8.css?version=48" rel="stylesheet" type="text/css" />
|
||||
<link href="/css/p8.css?version=49" rel="stylesheet" type="text/css" />
|
||||
<link rel="shortcut icon" href="/favicon.ico?version=1" type="image/x-icon" />
|
||||
<link rel="search" type="application/opensearchdescription+xml" title="گنجور" href="https://ganjoor.net/search.xml" />
|
||||
<script src="/lib/jquery/dist/jquery.min.js"></script>
|
||||
<script src="/js/bk.js?version=33"></script>
|
||||
<script src="/js/bk.js?version=34"></script>
|
||||
<script>
|
||||
var cookieValue = getCookie("playerScrollLock");
|
||||
var playerScrollLock = cookieValue === "true";
|
||||
|
||||
@ -12,11 +12,11 @@
|
||||
<title>
|
||||
@Html.Raw(ViewData["Title"])
|
||||
</title>
|
||||
<link href="/css/p8.css?version=48" rel="stylesheet" type="text/css" />
|
||||
<link href="/css/p8.css?version=49" rel="stylesheet" type="text/css" />
|
||||
<link rel="shortcut icon" href="/favicon.ico?version=1" type="image/x-icon" />
|
||||
<link rel="search" type="application/opensearchdescription+xml" title="گنجور" href="https://ganjoor.net/search.xml" />
|
||||
<script src="/lib/jquery/dist/jquery.min.js"></script>
|
||||
<script src="/js/bk.js?version=33"></script>
|
||||
<script src="/js/bk.js?version=34"></script>
|
||||
<script>
|
||||
var cookieValue = getCookie("playerScrollLock");
|
||||
var playerScrollLock = cookieValue === "true";
|
||||
@ -111,9 +111,9 @@
|
||||
var popup = new L.Popup();
|
||||
oms.addListener('click', function(marker) {
|
||||
|
||||
var poemDesc = marker.order.toString() + ' - ' + marker.poemGeoTag.Location.Name + '<br /> <a href="' + marker.poemGeoTag.Poem.FullUrl + '">' + marker.poemGeoTag.Poem.FullTitle + '</a>';
|
||||
var poemDesc = marker.order + ' - ' + marker.poemGeoTag.Location.Name + '<br /> <a href="' + marker.poemGeoTag.Poem.FullUrl + '">' + marker.poemGeoTag.Poem.FullTitle + '</a>';
|
||||
if(marker.poemGeoTag.LunarYear != null){
|
||||
poemDesc += '<br /> سال ' + marker.poemGeoTag.LunarYear.toString() + ' قمری';
|
||||
poemDesc += '<br /> سال ' + persianizeNumerals(marker.poemGeoTag.LunarYear.toString()) + ' قمری';
|
||||
}
|
||||
popup.setContent(poemDesc);
|
||||
popup.setLatLng(marker.getLatLng());
|
||||
@ -131,7 +131,7 @@
|
||||
var poemGeoTag = poemGeoTags[i];
|
||||
marker = L.marker([poemGeoTag.Location.Latitude, poemGeoTag.Location.Longitude]);
|
||||
marker.poemGeoTag = poemGeoTag
|
||||
marker.order = i + 1;
|
||||
marker.order = persianizeNumerals((i + 1).toString());
|
||||
marker.addTo(layerGroup);
|
||||
oms.addMarker(marker);
|
||||
}
|
||||
|
||||
@ -13,7 +13,7 @@
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<meta name="robots" content="noindex, nofollow" />
|
||||
<link rel="shortcut icon" href="/favicon.ico?version=1" type="image/x-icon" />
|
||||
<link href="/css/p8.css?version=48" rel="stylesheet" type="text/css" />
|
||||
<link href="/css/p8.css?version=49" rel="stylesheet" type="text/css" />
|
||||
<script>
|
||||
(function(c, l, a, r, i, t, y) {
|
||||
c[a] = c[a] || function() { (c[a].q = c[a].q || []).push(arguments) };
|
||||
|
||||
@ -12,7 +12,7 @@
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<meta name="description" content="شاعران و نویسندگان گنجور روی نقشهٔ جغرافیایی" />
|
||||
<meta charset="utf-8" />
|
||||
<link href="/css/p8.css?version=48" rel="stylesheet" type="text/css" />
|
||||
<link href="/css/p8.css?version=49" rel="stylesheet" type="text/css" />
|
||||
<link rel="stylesheet" href="/css/leaflet.css" />
|
||||
<style>
|
||||
.leaflet-container {
|
||||
|
||||
@ -11,11 +11,11 @@
|
||||
<title>
|
||||
@Html.Raw(ViewData["Title"])
|
||||
</title>
|
||||
<link href="/css/p8.css?version=48" rel="stylesheet" type="text/css" />
|
||||
<link href="/css/p8.css?version=49" rel="stylesheet" type="text/css" />
|
||||
<link rel="shortcut icon" href="/favicon.ico?version=1" type="image/x-icon" />
|
||||
<link rel="search" type="application/opensearchdescription+xml" title="گنجور" href="https://ganjoor.net/search.xml" />
|
||||
<script src="/lib/jquery/dist/jquery.min.js"></script>
|
||||
<script src="/js/bk.js?version=33"></script>
|
||||
<script src="/js/bk.js?version=34"></script>
|
||||
<script>
|
||||
var cookieValue = getCookie("playerScrollLock");
|
||||
var playerScrollLock = cookieValue === "true";
|
||||
|
||||
@ -11,7 +11,7 @@
|
||||
<title>پیشنهاد شعر مرتبط با تصویر</title>
|
||||
<meta name="robots" content="noindex, nofollow" />
|
||||
<link rel="shortcut icon" href="/favicon.ico?version=1" type="image/x-icon" />
|
||||
<link href="/css/p8.css?version=48" rel="stylesheet" type="text/css" />
|
||||
<link href="/css/p8.css?version=49" rel="stylesheet" type="text/css" />
|
||||
<link href="/css/spotify.css" rel="stylesheet" type="text/css" />
|
||||
|
||||
<script src="/lib/jquery/dist//jquery.min.js"></script>
|
||||
|
||||
@ -12,7 +12,7 @@
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<meta name="robots" content="noindex, nofollow" />
|
||||
<title>اطلاعات رتبهبندی خوانشهای شعر</title>
|
||||
<link href="/css/p8.css?version=48" rel="stylesheet" type="text/css" />
|
||||
<link href="/css/p8.css?version=49" rel="stylesheet" type="text/css" />
|
||||
|
||||
</head>
|
||||
<body>
|
||||
|
||||
@ -11,7 +11,7 @@
|
||||
<meta name="robots" content="noindex, nofollow" />
|
||||
<title>درخواست حذف حاشیه</title>
|
||||
<script src="/lib/jquery/dist/jquery.min.js"></script>
|
||||
<link href="/css/p8.css?version=48" rel="stylesheet" type="text/css" />
|
||||
<link href="/css/p8.css?version=49" rel="stylesheet" type="text/css" />
|
||||
<style>
|
||||
label {
|
||||
width: 100px;
|
||||
|
||||
@ -13,7 +13,7 @@
|
||||
<meta name="robots" content="noindex, nofollow" />
|
||||
<title>گزارش خطا در خوانش</title>
|
||||
<script src="/lib/jquery/dist/jquery.min.js"></script>
|
||||
<link href="/css/p8.css?version=48" rel="stylesheet" type="text/css" />
|
||||
<link href="/css/p8.css?version=49" rel="stylesheet" type="text/css" />
|
||||
<style>
|
||||
label {
|
||||
width: 100px;
|
||||
|
||||
@ -11,7 +11,7 @@
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<meta name="robots" content="noindex, nofollow" />
|
||||
<link rel="shortcut icon" href="/favicon.ico?version=1" type="image/x-icon" />
|
||||
<link href="/css/p8.css?version=48" rel="stylesheet" type="text/css" />
|
||||
<link href="/css/p8.css?version=49" rel="stylesheet" type="text/css" />
|
||||
</head>
|
||||
<body class="bk-background">
|
||||
<div id="hdr">
|
||||
|
||||
@ -15,11 +15,11 @@
|
||||
@ViewData["Title"]
|
||||
</title>
|
||||
|
||||
<link href="/css/p8.css?version=48" rel="stylesheet" type="text/css" />
|
||||
<link href="/css/p8.css?version=49" rel="stylesheet" type="text/css" />
|
||||
<link rel="shortcut icon" href="/favicon.ico?version=1" type="image/x-icon" />
|
||||
<link rel="search" type="application/opensearchdescription+xml" title="گنجور" href="https://ganjoor.net/search.xml" />
|
||||
<script src="/lib/jquery/dist/jquery.min.js"></script>
|
||||
<script src="/js/bk.js?version=33"></script>
|
||||
<script src="/js/bk.js?version=34"></script>
|
||||
<script>
|
||||
var cookieValue = getCookie("playerScrollLock");
|
||||
var playerScrollLock = cookieValue === "true";
|
||||
|
||||
@ -10,7 +10,7 @@
|
||||
<link rel="stylesheet" href="~/lib/bootstrap/dist/css/bootstrap.min.css" />
|
||||
<link rel="stylesheet" href="~/css/site.css" />
|
||||
<link href="/dist/skin/blue.monday/css/jplayer.blue.monday.min.css" rel="stylesheet" type="text/css" />
|
||||
<link href="/css/p8.css?version=48" rel="stylesheet" type="text/css" />
|
||||
<link href="/css/p8.css?version=49" rel="stylesheet" type="text/css" />
|
||||
<link rel="shortcut icon" href="/favicon.ico?version=1" type="image/x-icon" />
|
||||
<link rel="search" type="application/opensearchdescription+xml" title="گنجور" href="https://ganjoor.net/search.xml" />
|
||||
<script src="~/lib/jquery/dist/jquery.min.js"></script>
|
||||
@ -32,7 +32,7 @@
|
||||
});
|
||||
</script>
|
||||
|
||||
<script src="/js/bk.js?version=33"></script>
|
||||
<script src="/js/bk.js?version=34"></script>
|
||||
<script>
|
||||
function editBanner(bannerId) {
|
||||
var url = '?handler=Edit';
|
||||
|
||||
@ -9,7 +9,7 @@
|
||||
</title>
|
||||
<link rel="stylesheet" href="~/lib/bootstrap/dist/css/bootstrap.min.css" />
|
||||
<link rel="stylesheet" href="~/css/site.css" />
|
||||
<link href="/css/p8.css?version=48" rel="stylesheet" type="text/css" />
|
||||
<link href="/css/p8.css?version=49" rel="stylesheet" type="text/css" />
|
||||
<link rel="shortcut icon" href="/favicon.ico?version=1" type="image/x-icon" />
|
||||
<link rel="search" type="application/opensearchdescription+xml" title="گنجور" href="https://ganjoor.net/search.xml" />
|
||||
<script src="~/lib/jquery/dist/jquery.min.js"></script>
|
||||
@ -29,7 +29,7 @@
|
||||
});
|
||||
</script>
|
||||
<script src="/lib/diff.js"></script>
|
||||
<script src="/js/bk.js?version=33"></script>
|
||||
<script src="/js/bk.js?version=34"></script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
@ -12,7 +12,7 @@
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<meta name="robots" content="noindex, nofollow" />
|
||||
<link rel="shortcut icon" href="/favicon.ico?version=1" type="image/x-icon" />
|
||||
<link href="/css/p8.css?version=48" rel="stylesheet" type="text/css" />
|
||||
<link href="/css/p8.css?version=49" rel="stylesheet" type="text/css" />
|
||||
<script>
|
||||
(function(c, l, a, r, i, t, y) {
|
||||
c[a] = c[a] || function() { (c[a].q = c[a].q || []).push(arguments) };
|
||||
|
||||
@ -13,11 +13,11 @@
|
||||
@ViewData["Title"]
|
||||
</title>
|
||||
|
||||
<link href="/css/p8.css?version=48" rel="stylesheet" type="text/css" />
|
||||
<link href="/css/p8.css?version=49" rel="stylesheet" type="text/css" />
|
||||
<link rel="shortcut icon" href="/favicon.ico?version=1" type="image/x-icon" />
|
||||
<link rel="search" type="application/opensearchdescription+xml" title="گنجور" href="https://ganjoor.net/search.xml" />
|
||||
<script src="/lib/jquery/dist/jquery.min.js"></script>
|
||||
<script src="/js/bk.js?version=33"></script>
|
||||
<script src="/js/bk.js?version=34"></script>
|
||||
<script>
|
||||
var cookieValue = getCookie("playerScrollLock");
|
||||
var playerScrollLock = cookieValue === "true";
|
||||
|
||||
@ -11,7 +11,7 @@
|
||||
<title>انتخاب قطعهٔ موسیقی مرتبط با شعر از اسپاتیفای</title>
|
||||
<meta name="robots" content="noindex, nofollow" />
|
||||
<link rel="shortcut icon" href="/favicon.ico?version=1" type="image/x-icon" />
|
||||
<link href="/css/p8.css?version=48" rel="stylesheet" type="text/css" />
|
||||
<link href="/css/p8.css?version=49" rel="stylesheet" type="text/css" />
|
||||
<link href="/css/spotify.css" rel="stylesheet" type="text/css" />
|
||||
|
||||
<script src="/lib/jquery/dist/jquery.min.js"></script>
|
||||
|
||||
@ -14,7 +14,7 @@
|
||||
گنجور » برگردانها و نویسهای شعر
|
||||
</title>
|
||||
<script src="~/lib/jquery/dist/jquery.min.js"></script>
|
||||
<link href="~/css/p8.css?version=48" rel="stylesheet" type="text/css" />
|
||||
<link href="~/css/p8.css?version=49" rel="stylesheet" type="text/css" />
|
||||
<link rel="shortcut icon" href="/favicon.ico?version=1" type="image/x-icon" />
|
||||
<link rel="search" type="application/opensearchdescription+xml" title="گنجور" href="https://ganjoor.net/search.xml" />
|
||||
</head>
|
||||
|
||||
@ -205,7 +205,7 @@
|
||||
|
||||
@if (Model.IsCatPage && Model.CategoryPoemGeoDateTags != null && Model.CategoryPoemGeoDateTags.Length > 0)
|
||||
{
|
||||
<div id="catmap" style="margin-top:50px;height:300px;"></div>
|
||||
<div id="catmap" class="inline-map"></div>
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -14,7 +14,7 @@
|
||||
@ViewData["Title"]
|
||||
</title>
|
||||
|
||||
<link href="/css/p8.css?version=48" rel="stylesheet" type="text/css" />
|
||||
<link href="/css/p8.css?version=49" rel="stylesheet" type="text/css" />
|
||||
<link rel="shortcut icon" href="/favicon.ico?version=1" type="image/x-icon" />
|
||||
<link rel="search" type="application/opensearchdescription+xml" title="گنجور" href="https://ganjoor.net/search.xml" />
|
||||
|
||||
|
||||
@ -15,7 +15,7 @@
|
||||
@ViewData["Title"]
|
||||
</title>
|
||||
|
||||
<link href="/css/p8.css?version=48" rel="stylesheet" type="text/css" />
|
||||
<link href="/css/p8.css?version=49" rel="stylesheet" type="text/css" />
|
||||
<link rel="shortcut icon" href="/favicon.ico?version=1" type="image/x-icon" />
|
||||
<link rel="search" type="application/opensearchdescription+xml" title="گنجور" href="https://ganjoor.net/search.xml" />
|
||||
|
||||
|
||||
@ -1852,3 +1852,8 @@ fieldset {
|
||||
-ms-transform: scale(-1, 1);
|
||||
transform: scale(-1, 1);
|
||||
}
|
||||
|
||||
.inline-map {
|
||||
margin-top: 50px;
|
||||
height: 300px;
|
||||
}
|
||||
@ -968,14 +968,18 @@ function MarkUserUpvotedRecitations(poemId) {
|
||||
}, 1);
|
||||
}
|
||||
|
||||
function persianizeNumerals(value) {
|
||||
return value.replace(/0/gi, "۰").replace(/1/gi, "۱").replace(/2/gi, "۲")
|
||||
.replace(/3/gi, "۳").replace(/4/gi, "۴").replace(/5/gi, "۵")
|
||||
.replace(/6/gi, "۶").replace(/7/gi, "۷").replace(/8/gi, "۸")
|
||||
.replace(/9/gi, "۹");
|
||||
}
|
||||
|
||||
function onInlineSearch(value, resultBlockId, itemsClass) {
|
||||
const foundPoetsNode = document.getElementById(resultBlockId);
|
||||
foundPoetsNode.innerHTML = '';
|
||||
if (value.length > 0) {
|
||||
let replaced = value.replace(/0/gi, "۰").replace(/1/gi, "۱").replace(/2/gi, "۲")
|
||||
.replace(/3/gi, "۳").replace(/4/gi, "۴").replace(/5/gi, "۵")
|
||||
.replace(/6/gi, "۶").replace(/7/gi, "۷").replace(/8/gi, "۸")
|
||||
.replace(/9/gi, "۹");
|
||||
let replaced = persianizeNumerals(value);
|
||||
var poets = document.getElementsByClassName(itemsClass);
|
||||
var foundOnes = [];
|
||||
for (var i = 0; i < poets.length; i++) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user