divan/GanjooRazor/Pages/_CategoryWordsCountPartial.cshtml
Hamid Reza Mohammadi f7720446b7 notranslate tag
2024-07-15 14:14:41 +03:30

32 lines
2.1 KiB
Plaintext

@model GanjooRazor.Pages._CategoryWordsCountPartialModel
@using DNTPersianUtils.Core
@{
}
@if (Model.WordCounts.Length > 0)
{
<div class="related-images-frame" id="wordcounts">
<div class="century" id="wordcounts-section-controller">
بسامد واژگان <a role="button" class="w3tooltip 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><span class="w3tooltiptext">جمع شود / باز شود</span></a>
</div>
<div id="wordcounts-section">
<p>
در متن @Model.ThisPart @RMuseum.Services.Implementation.LanguageUtils.FormatMoney(Model.TotalWordCount) واژه را شمرده‌ایم (در تعریفمان از واژه ایرادات جدی وجود دارد، <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>
</div>
}