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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8" /> | |
<title>Shuffle.js</title> | |
</head> | |
<body class="home"> | |
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 | |
//functions.php | |
function boss_widgets_init() { | |
register_sidebar( array( | |
'name' => __( 'шаблон контакты позиция справа', 'boss' ), | |
'id' => 'sidebar-contacts-right', | |
'description' => __( '50% ширины от размера контента', 'boss' ), | |
'before_widget' => ' ', | |
'after_widget' => ' ', | |
'before_title' => '<strong>', |
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
.text-block { | |
height: 135px; | |
display: inline-table; | |
overflow: hidden; | |
} | |
.text-block p { | |
display: table-cell; | |
vertical-align: middle; | |
} |
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 | |
if ($foo); | |
echo "yep\n"; | |
elseif ($bar); | |
echo "almost\n"; | |
else; | |
echo "nope\n"; | |
endif; |
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 | |
//index.php | |
$defaults = array( | |
'theme_location' => 'menu', | |
'menu' => '', | |
'container' => '', | |
'container_class' => '', | |
'container_id' => '', | |
'menu_class' => 'menu', |
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
jQuery(function($) { | |
//Ajax contact | |
var form = $('.contact-form'); | |
form.submit(function () { | |
$this = $(this); | |
$.post($(this).attr('action'), function(data) { | |
$this.prev().text(data.message).fadeIn().delay(3000).fadeOut(); |
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 explode(){ | |
alert("Boom!"); | |
} | |
setTimeout(explode, 2000); | |
/***************************/ | |
var explode = function(){ | |
alert("Boom!"); | |
}; |
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
$(window).scroll(function() { | |
if ($(this).scrollTop() > 1){ | |
$('header').addClass("sticky"); | |
} | |
else{ | |
$('header').removeClass("sticky"); | |
} | |
}); |
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
::-webkit-input-placeholder {color:#000;} | |
::-moz-placeholder {color:#000;}/* Firefox 19+ */ | |
:-moz-placeholder {color:#000;}/* Firefox 18- */ | |
:-ms-input-placeholder {color:#000;} |
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
{ | |
-o-transition: all 1.4s ease; | |
-moz-transition: all 1.4s ease; | |
-webkit-transition: all 1.4s ease; | |
transition: all 1.4s ease; | |
} | |
сss | |
--------------------------- | |
.image { |
NewerOlder