<link rel="stylesheet" type="text/css" href="js/etersoft/timersplash.css?15_04_2020" />

<div style="display: none;" id="useremail" class="[% user.email FILTER html %]"></div>
<div style="display: none;" id="assigntoemail" class="[% bug.assigned_to.email FILTER html %]"></div>

<!-- Таймер -->
<div id="timerblock" title="Время на странице">
  <img src="js/etersoft/control_pause.gif" id="timer_pause" onclick="timer.togglePause()" title="Пауза" />
  <img src="js/etersoft/control_right.gif" id="timer_play" onclick="timer.togglePause()" title="Продолжить" />
  <img src="js/etersoft/control_stop.gif" id="timer_stop" onclick="if (confirm('Вы точно хотите сбросить таймер?')) {timer.reset();}" title="Сбросить таймер" />
  <input type="text" size="10" title="Время на странице" id='timespent' name="timespent" value="" readonly="readonly">
</div>

<!-- Сохранение времени -->
<div id="timeQuestionDiv">
<div class="container">
<div class="workTime">
    <h3>Укажите отработанное время</h3>
    <fieldset>
      Отработанное время:
      <div class="workTimeInner">
        <input class="workTime__input" id="realworktime" name="realworktime" data-time="" placeholder="в минутах" title="Общее время, потраченное на задачу." type="text" tabindex="1" required>
        <button class="workTime__button" data-time="1" onclick="document.querySelector('#realworktime').value=this.dataset['time']" tabindex="2">1</button>
        <button class="workTime__button" data-time="5" onclick="document.querySelector('#realworktime').value=this.dataset['time']" tabindex="3">5</button>
        <button class="workTime__button" data-time="15" onclick="document.querySelector('#realworktime').value=this.dataset['time']" tabindex="4">15</button>
        <button class="workTime__button" data-time="30" onclick="document.querySelector('#realworktime').value=this.dataset['time']" tabindex="5">30</button>
      </div>
    </fieldset>
    <fieldset>
      Продуктивное время:
      <div class="workTimeInner">
        <input class="workTime__input" id="ProductTime" placeholder="в минутах" title="Время, которое вы бы потратили на задачу, зная как её решать." type="text" tabindex="6" required>
	<button class="workTime__button" data-time="1" onclick="document.querySelector('#ProductTime').value=this.dataset['time']" tabindex="7">1</button>
	<button class="workTime__button" data-time="5" onclick="document.querySelector('#ProductTime').value=this.dataset['time']" tabindex="8">5</button>
	<button class="workTime__button" data-time="15" onclick="document.querySelector('#ProductTime').value=this.dataset['time']" tabindex="9">15</button>
	<button class="workTime__button" data-time="30" onclick="document.querySelector('#ProductTime').value=this.dataset['time']" tabindex="10">30</button>
      </div>
    </fieldset>
    <fieldset>
      <button class="workTime__button--save" id="saveTime" tabindex="11">Сохранить</button>
    </fieldset>
    <button onclick="closeDiv();" class="close" tabindex="12">&times;</button>
  </div>
</div>
</div>

<script language="javascript" type="text/javascript" src="js/etersoft/focusManager.js"></script>
<script language="javascript" type="text/javascript" src="js/etersoft/timer_common.js?25_10_2017"></script>
<script language="javascript" type="text/javascript" src="js/etersoft/timer.js?15_04_2020"></script>
