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
if (matchMedia) { | |
var mq = window.matchMedia("(min-width: 768px)"); | |
mq.addListener(WidthChange); | |
WidthChange(mq); | |
} | |
function WidthChange(mq) { | |
if (mq.matches) { | |
// from 768 and wide | |
} else { |
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
// Get IE or Edge browser version | |
var version = detectIE(); | |
if (version === false) { | |
return; | |
} else if (version >= 12) { | |
console.log('Edge'); | |
} else { | |
console.log('ie'); | |
} |
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
// IE 10 11 | |
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) { | |
// props | |
} | |
// Moz | |
@-moz-document url-prefix() { |
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
import express from 'express'; | |
const app = express(); | |
app.get('/', (req, res) => { | |
res.send('hello from server'); | |
}); | |
const server = app.listen(8080, ()=> { | |
console.log('server is up and running on port 8080') |
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
git remote add origin git@bitbucket.org:bigdropinc/poem.git | |
git pull origin slice | |
Command: ssh lysikh.s@52.44.9.156 | |
Password: qsEABzVrpweL0eV | |
Vhost folder: /var/www/vhosts/206.bigdropinc.net | |
Dev server: 72.3.160.50 | |
User: lysikh.s |
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 { | |
list-style-type: none; /* Убираем исходные маркеры */ | |
counter-reset: item; /* Обнуляем счетчик списка */ | |
} | |
li:before { | |
content: counter(item) ') '; /* Добавляем к числам скобку */ | |
counter-increment: item; /* Задаём имя счетчика */ | |
} |
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
.video-wrap | |
position: relative | |
&:before | |
content: '' | |
display: block | |
padding-top: 56.25% | |
.video-wrap .iframe-box | |
position: absolute |
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
// | |
// Prototype | |
// | |
$.prototype.oneheight = function(he){ | |
$(this).children().height(he||$(this).height()); | |
}; | |
// |
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://jsfiddle.net/5rx5za3g/24/ -- parallax width | |
https://jsfiddle.net/5rx5za3g/26/ -- parallax height | |
https://jsfiddle.net/5rx5za3g/27/ | |
https://jsfiddle.net/g6z5074t/14/ -- hover | |
https://jsfiddle.net/2m1j2pzc/1/ -- slider | |
https://jsfiddle.net/n6dnyfpw/4/ -- e.targer example | |
https://jsfiddle.net/dfj7am4g/ -- css flip |
NewerOlder