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="video-responsive"> | |
<iframe width="auto" height="auto" src="ссылка на видео" frameborder="0" allowfullscreen></iframe> | |
</div> | |
.video-responsive { | |
position: relative; | |
padding-bottom: 56.25%; | |
height: 0; |
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).resize(function () { | |
changingElPos(); | |
makeHeaderFixed(); | |
}).resize(); |
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
<script type="text/javascript"> | |
history.replaceState(null, null, 'custom url'); | |
</script> |
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
<ol class="posts_list"> | |
<li class="post_holder"></li> | |
</ol> | |
.posts_list { | |
margin-top: 0; | |
margin-bottom: 20px; | |
list-style: none; | |
-webkit-column-count: 4; | |
-moz-column-count: 4; |
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
'lang' => pll_current_language() | |
$args = array( | |
'numberposts' => 3, | |
'category_name' => 'events', | |
'lang' => pll_current_language() | |
); |
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
//Перехід по якорям | |
$('a[href^="#"]').click(function(){ | |
//Сохраняем значение атрибута href в переменной: | |
var target = $(this).attr('href'); | |
$('html, body').animate({scrollTop: $(target).offset().top}, 800); | |
return false; | |
}); | |
//Перехід по якорям при переході на сторінку | |
if (window.location.hash) { |
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
$.fn.equivalent = function (){ | |
//запишем значение jQuery выборки к которой будет применена эта функция в локальную переменную $blocks | |
var $blocks = $(this), | |
//примем за максимальную высоту - высоту первого блока в выборке и запишем ее в переменную maxH | |
maxH = $blocks.eq(0).height(); | |
//делаем сравнение высоты каждого блока с максимальной | |
$blocks.each(function(){ | |
maxH = ( $(this).height() > maxH ) ? $(this).height() : maxH; | |
/* |
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 | |
$servername = "localhost"; | |
$username = "root"; | |
$password = "root"; | |
$dbname = "bsmu"; | |
// Create connection | |
$conn = new mysqli($servername, $username, $password, $dbname); | |
// Check connection |
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 Masked Input Plugin | |
Copyright (c) 2007 - 2015 Josh Bush (digitalbush.com) | |
Licensed under the MIT license (http://digitalbush.com/projects/masked-input-plugin/#license) | |
Version: 1.4.1 | |
change by author plugin contact form 7 mask field | |
*/ | |
!function(factory) { | |
"function" == typeof define && define.amd ? define([ "jquery" ], factory) : factory("object" == typeof exports ? require("jquery") : jQuery); |
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
#rc-imageselect, .g-recaptcha { | |
transform: scale(0.77); | |
-webkit-transform: scale(0.77); | |
transform-origin: 0 0; | |
-webkit-transform-origin: 0 0; | |
} |