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() ) : while( have_posts() ) : the_post(); ?> | |
<?php endwhile; ?> | |
<?php else: ?> | |
<?php endif; ?> |
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
<button class="button video__play">Play</button> | |
<video width="305" height="170" poster="img/bg-video.jpg"> | |
<source src="#" type='video/ogg; codecs="theora, vorbis"'> | |
<source src="#" type='video/mp4; codecs="avc1.42E01E, mp4a.40.2"'> | |
<source src="img/9-7_RU-208934200_01.webm" type='video/webm; codecs="vp8, vorbis"'> | |
</video> | |
var startVideo = function() { | |
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 countdown(dateEnd) { | |
var timer, days, hours, minutes, seconds; | |
dateEnd = new Date(dateEnd[0], dateEnd[1] - 1, dateEnd[2], dateEnd[3], dateEnd[4], dateEnd[5]); | |
dateEnd = dateEnd.getTime(); | |
if ( isNaN(dateEnd) ) { | |
return; | |
} | |
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
if (!Element.prototype.closest) { | |
// реализуем | |
Element.prototype.closest = function(css) { | |
var node = this; | |
while (node) { | |
if (node.matches(css)) return node; | |
else node = node.parentElement; | |
} |
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
/*TEMPLATE CODE FOR SCROLL WINDOW TILL CONCRETE ELEMENT*/ | |
function scrollElement(event, arr, funcBottom, funcTop) { | |
for(var i = 0; i < arr[0].length; i++) { //Zero elememt of array is the main collaction of our func. | |
var cordsSkill = arr[0][i].getBoundingClientRect().top, | |
num = parseFloat(arr[0][i].textContent), | |
cordsScroll = window.pageYOffset + document.documentElement.clientHeight; | |
if(cordsScroll >= cordsSkill + window.pageYOffset) { | |
funcBottom(i, num); | |
} |
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
https://packagecontrol.io/installation#st3 | |
Keymap (Windows Users): | |
[ | |
{ "keys": ["alt+shift+f"], "command": "reindent" }, | |
] | |
Settings: | |
{ | |
"show_definitions": false, |
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
'use strict'; | |
var Calculator = function() { | |
var obj = this, a, b, c; | |
var allValue = { | |
'+': function() { | |
return a + b; | |
}, | |
'-': function() { |
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 doc = document; | |
var myName = doc.querySelector('#name'); | |
var kek = 0; | |
//ШРИФТ | |
(function() { | |
var style = doc.createElement('style'); | |
var impor = "@import 'https://fonts.googleapis.com/css?family=Lobster'"; | |
style.innerHTML = impor; |