$(window).width()
@media all and (orientation: landscape) {
/* Target device in landscape mode */
}
@media all and (orientation: portrait) {
/* Target device in portrait mode */
}
function addMarker(marker) {
var marker = new google.maps.Marker({
position: marker.position,
icon: icons[marker.type].icon,
map: map,
content: marker.content
});
marker.addListener('click', function() { });
var total;
$("select").change(function() {
total = 0;
$('select :selected').each(function(i,item){
total += Number( $(item).attr('data-price') );
});
$('#my-total').text(total);
})
$(window).resize(function(){
if($(window).width() > 768){
owlProjects.trigger('destroy.owl.carousel');
}
});
function is_touch_device() {
return !!('ontouchstart' in window);
}
function getWeekDay(date) {
var days = ['вс', 'пн', 'вт', 'ср', 'чт', 'пт', 'сб'];
return days[date.getDay()];
}
var date = new Date();
if(getWeekDay(date) == 'вт'){
alert("показать уведомление");
}