JSFiddle - React, Tailwind, and code Playground
by Ilia Lesnykh
HTML
<form action="/issues" method="post">
<div style="margin:0;padding:0;display:inline">
<input name="authenticity_token" type="hidden" value="kUdryDSkMn9YheGBoBu5fUZADge17gPi94oZ7X/IRFw=" />
</div>
<input name="back_url" type="hidden" value="/issues?query_id=160" />
<div class="autoscroll">
<table class="list issues">
<thead>
<tr>
<th class="checkbox hide-when-print"><a href="/issues" onclick="toggleIssuesSelection(Element.up(this, "form")); return false;" title="Отметить все/Очистить"><img alt="Toggle_check" src="/images/toggle_check.png?1340051065" /></a>
</th>
<th title="Сортировать по "#""><a href="/issues?query_id=160&sort=id" class="sort desc">#</a>
</th>
<th title="Сортировать по "Время д.""><a href="/issues?query_id=160&sort=cf_10%2Cid%3Adesc">Время д.</a>
</th>
<th title="Сортировать по "Назначена""><a href="/issues?query_id=160&sort=assigned_to%2Cid%3Adesc">Назначена</a>
</th>
<th title="Сортировать по "Тема""><a href="/issues?query_id=160&sort=subject%2Cid%3Adesc">Тема</a>
</th>
<th title="Сортировать по "Готовность""><a href="/issues?query_id=160&sort=done_ratio%2Cid%3Adesc">Готовность</a>
</th>
<th title="Сортировать по "Проект""><a href="/issues?query_id=160&sort=project%2Cid%3Adesc">Проект</a>
</th>
<th title="Сортировать по "Автор""><a href="/issues?query_id=160&sort=author%2Cid%3Adesc">Автор</a>
</th>
<th title="Сортировать по "Дедлайн""><a href="/issues?query_id=160&sort=cf_2%2Cid%3Adesc">Дедлайн</a>
</th>
...
JavaScript
function fillBeforeToday() {
$('td.cf_2.date').each(function(){
var $this = $(this);
var date = $this.text().split('.');
var date = new Date(date[2], date[1]-1, date[0]);
if (date.getTime() > (new Date()).getTime()) {
return false;
}
$this.css('color', 'red');
});
}
fillBeforeToday();