@if (image != null)
{
string isActiveClass = isActive ? "active" : "";
isActive = !isActive" class="@isActiveClass" src="@($"{@image.ImageLocation}?size=258x258")" alt="No Image found" />
}
@for (var y = 0; y < comment.Content.Split("\n").Length; y++)
{
var s = comment.Content.Split("\n")[y];
var className = "";
@if (s.StartsWith(">") && !Regex.IsMatch(s, "^>{2,}"))
{
className = "greenText";
}
@for (var x = 0; x < s.Split(" ").Length; x++)
{
var line = s.Split(" ")[x];
@if (@Regex.IsMatch(line, ">>\\d+"))
{
var className2 = "";
var x1 = x;
var y1 = y;
var commentNumber = int.Parse(Regex.Match(s, ">>(\\d+)").Value.Substring(2));
className2 = "redText";
onHover(x1, y1, commentNumber)"
@onmouseleave="() => onHover(x1, y1, -1)" class="threadMsg @className2"
>
@line
@if (hoveringOver.p != -1 && hoveringOver == (x, y, commentNumber) && (hoverComment.ContainsKey(commentNumber) || hoverPost.ContainsKey(commentNumber)))
{
@if (isComment[commentNumber])
{
}
else
{
}
}
}
else
{
@line
}
}
}