var isSomeFileTooBig = Object.values(theInputFile.files).some(function(file){
<?php
class ControllerExtensionPaymentCod extends Controller {
public function index() {
return $this->load->view('extension/payment/cod');
}
public function confirm() {
$json = array();
if (is_array($this->session->data['payment_method']['code'] == 'cod')) {
$this->load->model('checkout/order');
$this->model_checkout_order->addOrderHistory($this->session->data['order_id'], $this->config->get('payment_cod_order_status_id'));
$json['redirect'] = $this->url->link('checkout/success');
}
$this->response->addHeader('Content-Type: application/json');
$this->response->setOutput(json_encode($json));
}
}
onReady: initialize
function initialize(){
$('#currentTime').text('00:00');
var intervalTime = function() {
$('#currentTime').text(formatTime(player.getCurrentTime()));
}
setInterval(intervalTime, 1000);
}