$("form").submit(function (e) {
e.preventDefault();
var thanksWindow = window.open('thank-you.html', '_blank');
var openThanksWindowFunction = function() {
thanksWindow.location;
}
$.ajax({
type: "POST",
url: "send.php",
data: th.serialize()
}).done(function () {
th.trigger("reset");
openThanksWindowFunction();
});
return false;
});
/* After week date on page */
function echo_date( date ){
months = ["января","февраля","марта","апреля","мая","июня","июля","августа","сентября","октября","ноября","декабря"];
echo_date = function(date){
date = new Date( date );
return {
"date" : date,
"month" : months[ date.getMonth() ],
"day_num" : date.getDate()
};
}
return echo_date(date);
};
var weekForward = echo_date( Date.now()+168*60*60*1000 );
$(function(){
$('#timedisplay').html(weekForward.day_num + ' ' + weekForward.month);
});
/* After week date on page */
wp_enqueue_style(
'calc',
get_template_directory_uri() . '/css/calc.css',
array()
);
<link rel="stylesheet" href="<?php echo get_template_directory_uri(); ?>/css/calc.css" />
/*========== Desktop First Method ==========*/
/* Large Devices, Wide Screens */
@media only screen and (max-width : 1200px) {
}
/* Medium Devices, Desktops */
@media only screen and (max-width : 992px) {
}
/* Small Devices, Tablets */
@media only screen and (max-width : 768px) {
}
/* Extra Small Devices, Phones */
@media only screen and (max-width : 480px) {
}
/* Custom, iPhone Retina */
@media only screen and (max-width : 320px) {
}
/*========== Mobile First Method ==========*/
/* Custom, iPhone Retina */
@media only screen and (min-width : 320px) {
}
/* Extra Small Devices, Phones */
@media only screen and (min-width : 480px) {
}
/* Small Devices, Tablets */
@media only screen and (min-width : 768px) {
}
/* Medium Devices, Desktops */
@media only screen and (min-width : 992px) {
}
/* Large Devices, Wide Screens */
@media only screen and (min-width : 1200px) {
}