This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var i = -1, bghead = ["bg", "bg1", "bg2", "bg3", "bg4", "bg5"] ; | |
$(".butt-next").click(function () { | |
$("header").removeClass(bghead[i % bghead.length]) | |
$("header").addClass(bghead[++i% bghead.length]) | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function emailConfirm(){ | |
var sheet = SpreadsheetApp.getActiveSheet(); | |
var numRows = sheet.getLastRow(); | |
var dataRange = sheet.getRange(1, 1, numRows, 6) | |
var data = dataRange.getValues(); | |
for (var i = 0; i < data.length; ++i) | |
{ | |
var row = data[i]; | |
var name = row[1]; | |
var phone = row[2]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type="text/javascript">var submitted=false;</script> | |
//This is where thank you page/message is loaded. Replace onload function with jQuery hide/show or page redirect to separate page {window.location='thankyou.html';}. | |
<iframe name="hidden_iframe" id="hidden_iframe" style="display:none;" onload="if(submitted) {$('#formblock').hide(); $('#thankyou').fadeIn('fast');}"></iframe> | |
//replace form key with actual key from Google Docs | |
<form action="https://docs.google.com/a/betterment.com/spreadsheet/formResponse?formkey=dGlUczJTRUNjaHExOGtqZkVCYjVtR3c6MQ&ifq" method="post" target="hidden_iframe" id="commentForm" onsubmit="submitted=true;"> | |
<div id="formblock"> | |
//recreate form fields and validation if needed |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$to = ''; | |
$subject = '=?utf-8?B?'.base64_encode('Новое сообщение!').'?='; | |
$headers = 'From: =?UTF-8?B?' . base64_encode($name) . '?= <=?UTF-8?B?' . base64_encode($name) . "?=>\r\n"; | |
$headers .= 'Return-path: <' . $email . ">\r\n"; | |
$headers .= 'Content-type: text/plain; charset=utf-8' . "\r\n"; | |
$headers .= 'Content-Transfer-Encoding: quoted-printable' . "\r\n\r\n"; | |
$message = "Новый запрос!\n\nИмя: $name\n\nEmail: $email\n\nТелефон: $tel\n\n"; | |
$mail = mail($to, $subject, $message, $headers); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php if ( have_posts() ) : query_posts('p=1'); | |
while (have_posts()) : the_post(); ?> | |
<?php the_title(); ?> | |
<?php the_content(); ?> | |
<?php the_post_thumbnail(array(100, 100)); ?> | |
<? endwhile; endif; wp_reset_query(); ?> |