This file contains hidden or 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
<button class="login">login</button> | |
<div class="modal-content"> | |
<h2>Личный кабинет</h2> | |
<p>Введите пожалуйста свой логин и пароль</p> | |
<form action="action"> | |
<input class="login-field" type="text" name="login" placeholder="Login"> | |
<input class="password-field" type="password" name="password" placeholder="Password" > | |
<input type="checkbox" name="remember" id="remember"> | |
<label for="remember"><span></span>Remember me</label> |
This file contains hidden or 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
//css | |
.disable-hover, | |
.disable-hover * { | |
pointer-events: none !important; | |
} | |
//js | |
var body = document.body, | |
timer; | |
This file contains hidden or 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
// https://tympanus.net/Development/CreativeLinkEffects/ | |
<h1>Эффектные ссылки</h1> | |
<div class="effect-1"> | |
<a href="#">Апельсин</a> | |
</div> | |
<div class="effect-2"> | |
<a href="#">Виноград</a> | |
</div> | |
<div class="effect-3"> |
This file contains hidden or 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(){ | |
var timerId; | |
var mytimer; | |
function countdown() { | |
var minutes = Math.floor((mytimer % (1000 * 60 * 60)) / (1000 * 60)); | |
var seconds = Math.floor((mytimer % (1000 * 60)) / 1000); |
This file contains hidden or 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
/* Link Transition */ | |
$('a.link-transition').on('click', function(e){ | |
e.preventDefault(); | |
linkLocation = this.href; | |
$('body').fadeOut(700, redirectPage); | |
}); | |
function redirectPage() { | |
window.location = linkLocation; | |
} |
This file contains hidden or 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
//Каждый раз отсчет показывает одно и то же время | |
<div class="timer timer-showed" data-time="324494"> | |
<div class="timer-d"> | |
<span>3</span> | |
<span>дня</span> | |
</div> | |
<div class="timer-h"> | |
<span>18</span> | |
<span>часов</span> |
This file contains hidden or 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
// Необходимые плагины | |
Advanced Custom Fields | |
Custom Post Types UI (можно делать вручную через register_post_type()) | |
Contact Form 7 | |
Jquery Validation For Contact Form 7 | |
Yoast SEO | |
WP Super Cache | |
1. | |
header и footer перемещаем в отдельные файлы header.php и footer.php |
This file contains hidden or 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
<div class="mouse-icon"><div class="wheel"></div></div> | |
<style> | |
/* ---------------------------------------------- /* | |
* Mouse animate icon | |
/* ---------------------------------------------- */ | |
.mouse-icon { | |
border: 2px solid #000; | |
border-radius: 16px; |
This file contains hidden or 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
//Easy Form Validator | |
//Example: $("form").evalid("Error message"); | |
(function($) { | |
$.fn.evalid = function(req_text) { | |
$(this).find("input[type], textarea").each(function() { | |
$(this).after("<p class='form_error_message'>" + req_text + "").next().hide(); | |
}); |
This file contains hidden or 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 | |
// Only process POST reqeusts. | |
if ($_SERVER["REQUEST_METHOD"] == "POST") { | |
// Get the form fields and remove whitespace. | |
$name = strip_tags(trim($_POST["name"])); | |
$name = str_replace(array("\r","\n"),array(" "," "),$name); | |
$email = filter_var(trim($_POST["email"]), FILTER_SANITIZE_EMAIL); | |
$message = trim($_POST["message"]); |