#451 more improvements

This commit is contained in:
Hamid Reza Mohammadi 2024-12-22 09:49:16 +03:30
parent dd3a3250ce
commit cc35295524
2 changed files with 27 additions and 32 deletions

View File

@ -5,28 +5,26 @@
@if (Model.WordCounts.Length > 0)
{
<div class="related-images-frame" id="wordcounts">
<div class="century" id="wordcounts-section-controller">
بسامد واژگان <a role="button" title="جمع شود / باز شود" class="cursor-pointer" onclick="switch_section('wordcounts-section', 'wordcounts-section-collapse-button')"><i class="notranslate info-buttons expand_circle_down" id="wordcounts-section-collapse-button"></i></a>
<h2>
بسامد واژگان
</h2>
<div id="wordcounts-section">
<p>
در متن @Model.ThisPart @RMuseum.Services.Implementation.LanguageUtils.FormatMoney(Model.TotalWordCount) واژه را شمرده‌ایم (در تعریفمان از <i>واژه</i> ایرادات جدی وجود دارد، <a href="https://blog.ganjoor.net/1403/04/06/words-frequency/" target="_blank">اینجا</a> را ببینید). شمار واژگان یاد شده به شکل غیرتکراری برابر با @RMuseum.Services.Implementation.LanguageUtils.FormatMoney(Model.UniqueWordCount) واژه است.
</p>
@if (Model.RemStopWords)
{
<p id="remStopWords">جهت مشاهدهٔ آمار با واژگان کم‌هوادار <a href="javascript:reloadWordCounts(@Model.CatId, @Model.PoetId, false)">اینجا</a> کلیک کنید.</p>
}
else
{
<p id="remStopWords">جهت مشاهدهٔ آمار بدون واژگان کم‌هوادار <a href="javascript:reloadWordCounts(@Model.CatId, @Model.PoetId, true)">اینجا</a> کلیک کنید.</p>
}
<div class="clear-both">
<input type="text" id="wordcountterm" placeholder="جستجوی واژه" value="" onkeyup="onSearchWordCounts(@Model.CatId, @Model.PoetId, @Model.TotalWordCount)">
</div>
<div id="wordcounts-section">
<p>
در متن @Model.ThisPart @RMuseum.Services.Implementation.LanguageUtils.FormatMoney(Model.TotalWordCount) واژه را شمرده‌ایم (در تعریفمان از <i>واژه</i> ایرادات جدی وجود دارد، <a href="https://blog.ganjoor.net/1403/04/06/words-frequency/" target="_blank">اینجا</a> را ببینید). شمار واژگان یاد شده به شکل غیرتکراری برابر با @RMuseum.Services.Implementation.LanguageUtils.FormatMoney(Model.UniqueWordCount) واژه است.
</p>
@if(Model.RemStopWords)
{
<p id="remStopWords">جهت مشاهدهٔ آمار با واژگان کم‌هوادار <a href="javascript:reloadWordCounts(@Model.CatId, @Model.PoetId, false)">اینجا</a> کلیک کنید.</p>
}
else
{
<p id="remStopWords">جهت مشاهدهٔ آمار بدون واژگان کم‌هوادار <a href="javascript:reloadWordCounts(@Model.CatId, @Model.PoetId, true)">اینجا</a> کلیک کنید.</p>
}
<div class="clear-both">
<input type="text" id="wordcountterm" placeholder="جستجوی واژه" value="" onkeyup="onSearchWordCounts(@Model.CatId, @Model.PoetId, @Model.TotalWordCount)">
</div>
<div id="wordcounts-table">
<partial name="_CategoryWordsCountTablePartial" model="Model.TableModel">
</div>
<div id="wordcounts-table">
<partial name="_CategoryWordsCountTablePartial" model="Model.TableModel">
</div>
</div>
}

View File

@ -245,14 +245,13 @@
{
<div class="tab" id="tab-items">
<button class="tablinks active" onclick="switchTab(event, 'tools')">اطّلاعات</button>
<button class="tablinks" onclick="switchTab(event, 'wordscount')">بسامد واژگان</button>
@if (Model.CategoryHasRecitations)
{
<button class="tablinks" onclick="switchTab(event, 'recitations')">خوانش‌ها</button>
}
@if (Model.IsPoetPage)
{
<button class="tablinks" onclick="switchTab(event, 'photos')">تصاویر</button>
<button class="tablinks" onclick="switchTab(event, 'photos')">تصویر چهره</button>
if (Model.GanjoorPage.SecondPoet == null && Model.GanjoorPage.PoetOrCat.Cat.PaperSources != null && Model.GanjoorPage.PoetOrCat.Cat.PaperSources.Any())
{
<button class="tablinks" onclick="switchTab(event, 'papersources')">منابع کاغذی</button>
@ -262,15 +261,6 @@
</div>
<div class="tabcontent related-images-frame" id="tools" style="display:block">
@if (
Model.CategoryPoemGeoDateTags != null && Model.CategoryPoemGeoDateTags.Length > 0
)
{
<div id="catmap"></div>
}
</div>
<div class="tabcontent" id="wordscount">
<div id="wordcounts-placeholder">
@if (Model.CategoryWordsCounts != null)
{
@ -279,7 +269,14 @@
</text>
}
</div>
@if (
Model.CategoryPoemGeoDateTags != null && Model.CategoryPoemGeoDateTags.Length > 0
)
{
<div id="catmap"></div>
}
</div>
@if (Model.CategoryHasRecitations)
{
<div class="tabcontent related-images-frame" id="recitations">