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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Document</title> | |
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous"> | |
<style> | |
.has-success + input { | |
border-color: green !important; /* Стили для input при успешной валидации*/ | |
} |
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
Ограничение доступа к панели WordPress с помощью кода для всех кроме администратора | |
functions.php | |
add_action( 'init', 'blockusers_init' ); | |
function blockusers_init() { | |
if ( is_admin() && ! current_user_can( 'administrator' ) && | |
! ( defined( 'DOING_AJAX' ) && DOING_AJAX ) ) { | |
wp_redirect( home_url() ); | |
exit; |
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
#map | |
width: 100% | |
height: 500px | |
+ ymaps | |
width: 100% | |
height: 500px | |
.list-group-item | |
.list-group | |
margin-top: 20px | |
.submenu |
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
*********************** | |
groups.js | |
*********************** | |
// Группы объектов | |
var items = [ | |
{ | |
name: "Монумент "Родина-Мать"", | |
style: "islands#redIcon", | |
center: [50.426472, 30.563022] | |
}, |
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 | |
$true_page = 'myparameters.php'; // это часть URL страницы, рекомендую использовать строковое значение, т.к. в данном случае не будет зависимости от того, в какой файл вы всё это вставите | |
/* | |
* Функция, добавляющая страницу в пункт меню Настройки | |
*/ | |
function true_options() { | |
global $true_page; | |
add_options_page( 'Параметры', 'Параметры', 'manage_options', $true_page, 'true_option_page'); | |
} |
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
#phone-button-module | |
.pbm-wrap | |
.pbm-outside | |
button.pbm-button | |
img.pbm-icon(src='/img/pbm-icon.png', alt='phone-icon') | |
p.pbm-text Заказать звонок |
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
<!-- Chrome, Firefox OS and Opera --> | |
<meta name="theme-color" content="#4285f4"> | |
<!-- Windows Phone --> | |
<meta name="msapplication-navbutton-color" content="#4285f4"> | |
<!-- iOS Safari --> | |
<meta name="apple-mobile-web-app-status-bar-style" content="#4285f4"> |
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
@-webkit-keyframes infinite { | |
0%, 100% { | |
-webkit-transform: translateX(0); | |
} | |
50% { | |
-webkit-transform: translateX(-100%); | |
} | |
} | |
@keyframes infinite { | |
0%, 100% { |
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
$("table.price tr").on( | |
"click", | |
function() { | |
if ($(this).find('a').attr('href')) | |
document.location.href = $(this).find('a') | |
.attr('href'); | |
}); |
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
.slider { | |
display: flex; | |
overflow-x: auto; | |
-webkit-overflow-scrolling: touch; | |
scroll-snap-points-x: repeat(300px); | |
scroll-snap-type: mandatory; | |
} | |
.slider > div { | |
flex-shrink: 0; |
OlderNewer