0
したがって、countDown.jsプラグインを使用して次のコールスケジュールを表示しています。CountDown.jsのコールバックで現在のcountdwon時間を取得する方法
endTimeの5分前、2分前、1秒前にpoupを作成したいと思います。
今のところ、終了時刻の1秒前にポップアップを表示することができます。私のコードは以下の通りです。
<script type="text/javascript">
$(function() {
var austDay = new Date(<?php echo strtotime(Date::Add($next_scheduled_call->next_call_time))*1000; ?>);
$('#defaultCountdown').countdown({until: austDay,onExpiry: callDue});
});
function callDue(){
@if($isSalesManagerGroup == 'no')
alert('Your Call is Get to Due , Please Update Soon.');
location.href= "{{ URL::to('/home/leads/history/'.$next_scheduled_call->leads_id.'')}}";
@endif
}
</script>
どのように私はいくつかのDate
機能により上記の要件