new Date('2020-11-11T19:38:15+06:00').toISOString()
"2020-11-11T19:38:15+06:00".split("+")[0];
let dots = document.querySelectorAll(".main-reviews-content-dots-dot");
function slider(){
console.log(this);
}
for(let dot of dots){
dot.addEventListener("click", slider);
}
echo (int) ( (0.1+0.7) * 10 ); // выводит 7!
new Date(2019, 11, 16).toLocaleString('ru-Ru', { weekday: 'long' });
{% for banner in banners %}
<li data-target="#carousel" data-slide-to="{{ loop.index }}" {% if loop.index == 1 %} class="active" {% endif %} ></li>
{% endfor %}
$price = $this->currency->format($this->tax->calculate($result['price'], $result['tax_class_id'], $this->config->get('config_tax')), $this->session->data['currency']);
// указали данные
localStorage.setItem('val', '1');
// в нужном месте забрали
localStorage.getItem('val');
public function resize($width, $height) {
$new_image = imagecreatetruecolor($width, $height);
imagecopyresampled($new_image, $this->image, 0, 0, 0, 0, $width, $height, $this->width, $this->height);
$this->image = $new_image;
}
$image = new SimpleImage($filename);
$image->resize(240, 220);