.top div.wrap {
width: 100%;
height: 100%;
position: absolute;
top: 0;
left: -5px;
min-height: 200px;
background: linear-gradient(45deg, rgba(255,209,17,0) 50%, rgba(255,209,17,0.8) 60%, rgba(255,209,17,.8) 80%) no-repeat, linear-gradient(135deg, rgba(255,209,17,0.8) 0, rgba(255,209,17,0.8) 40%, rgba(255,209,17,0) 50%) no-repeat;
background-size: 50% 100%, 50% 100%;
background-position: 1px 0px, 100% 0px;
}
myFormData.append('photos', $('#file')[0].files[0]);
var myFormData = [];
$.map($('#file')[0].files, function(element){
myFormData.push(element);
})
<img src="./assets/img/gallery/album_1/photo_28.jpg" alt="" class="photo rotate_90" id="photo" style="max-width: 960px;">
<img src="./assets/img/gallery/album_1/photo_28.jpg" alt="" class="photo" id="photo" style="max-width: 960px;">
<div class="col-md-10">
<h4>Упаковка</h4>
<select name="main-col1" class="form-control">
<option value="0" selected>Выберите кол-во</option>
<option value="ЦЕНА: 330 рублей" >30 таблеток(на месяц)</option>
<option value="ЦЕНА: 550 рублей" >60 таблеток(на 2 месяца)</option>
<option value="ЦЕНА: 850 рублей" >130 таблеток(на 4 месяца)</option>
</select>
<input type="text" name="price" class="form-control" value="">
</div>
<div class="col-md-10">
<h4>Упаковка</h4>
<select name="main-col2" class="form-control">
<option value="0" selected>Выберите кол-во</option>
<option value="ЦЕНА: 580 рублей" >30 таблеток(на месяц)</option>
<option value="ЦЕНА: 750 рублей" >90 таблеток(на 2 месяца)</option>
</select>
<input type="text" name="price" class="form-control" value="">
</div>
document.getElementsByName('main-col1')[0].addEventListener("change",function() {
document.getElementsByName('price')[0].value = this.options[this.selectedIndex].value;
});
document.getElementsByName('main-col2')[0].addEventListener("change",function() {
document.getElementsByName('price')[0].value = this.options[this.selectedIndex].value;
});
$i=0;
foreach($divan['divan'] as $key => $value) {
if($i == 3){
break;
}
$i++;
}
if(typeof(arr[i].frame)==='undefined'){
//do something
}
if(typeof(arr[i].frame)!='undefined'){
//do something
}
<div class="flex-container"><div class="flexslider">
<div class="flex-container"><div class="flexslider1">
$(document).ready(function () {
$('.flexslider').flexslider({animation: 'fade',controlsContainer: '.flexslider'});
$('.flexslider1').flexslider({animation: 'fade',controlsContainer: '.flexslider1'});
});