ZXCV
This requires NPM to be installed.
Getting node-sass to output a sourcemap took a bit of trial & error | |
Mostly because phpstorm does not allow for the same colon syntax that most sources reference, | |
specifically the Output paths to reference only took 1 argument | |
--- | |
Add File Watcher SCSS in settings | |
Watcher Settings | |
Program : | |
C:\Users\%username%\AppData\Roaming\npm\node-sass.cmd | |
Arguments : | |
--no-cache --update --source-map=$FileNameWithoutExtension$.css.map $FileName$ $FileNameWithoutExtension$.css |
const math = { | |
map: (x, a, b, c, d) => ((x - a) * (d - c)) / (b - a) + c, | |
lerp: (a, b, n) => (1 - n) * a + n * b | |
}; | |
const { body } = document; | |
// Window | |
let winsize; | |
const calcWinsize = () => { | |
winsize = { width: window.innerWidth, height: window.innerHeight }; |
$.fn.isInViewport = function() { | |
const elementTop = $(this).offset().top; | |
const elementBottom = elementTop + $(this).outerHeight(); | |
const viewportTop = $(window).scrollTop(); | |
const viewportBottom = viewportTop + $(window).height(); | |
return elementBottom > viewportTop && elementTop < viewportBottom; | |
}; |
<IfModule mod_expires.c> | |
ExpiresActive on | |
ExpiresDefault "access plus 1 month" | |
# CSS | |
ExpiresByType text/css "access plus 1 year" | |
# Data interchange | |
ExpiresByType application/atom+xml "access plus 1 hour" |
const template = document.createElement('template'); | |
template.innerHTML = ` | |
<style> | |
* { | |
font-size: 200%; | |
} | |
span { | |
width: 4rem; | |
display: inline-block; |
/* css-tricks.com/snippets/css/media-queries-for-standard-devices/ */ | |
/* Smartphones (portrait and landscape) ----------- */ | |
@media only screen | |
and (min-device-width : 320px) | |
and (max-device-width : 480px) { | |
/* Styles */ | |
} | |
/* Smartphones (landscape) ----------- */ |
/*jslint continue:true*/ | |
/** | |
* Adapted from {@link http://www.bulgaria-web-developers.com/projects/javascript/serialize/} | |
* Changes: | |
* Ensures proper URL encoding of name as well as value | |
* Preserves element order | |
* XHTML and JSLint-friendly | |
* Disallows disabled form elements and reset buttons as per HTML4 [successful controls]{@link http://www.w3.org/TR/html401/interact/forms.html#h-17.13.2} | |
* (as used in jQuery). Note: This does not serialize <object> | |
* elements (even those without a declare attribute) or |
<script type='text/javascript'> | |
(function(){ document.jivositeloaded=0;var widget_id = 's8C7P8lJSp';var d=document;var w=window;function l(){var s = d.createElement('script'); s.type = 'text/javascript'; s.async = true; s.src = '//code.jivosite.com/script/widget/'+widget_id; var ss = document.getElementsByTagName('script')[0]; ss.parentNode.insertBefore(s, ss);}//эта строка обычная для кода JivoSite | |
function zy(){ | |
//удаляем EventListeners | |
if(w.detachEvent){//поддержка IE8 | |
w.detachEvent('onscroll',zy); | |
w.detachEvent('onmousemove',zy); | |
w.detachEvent('ontouchmove',zy); | |
w.detachEvent('onresize',zy); | |
}else { |
<?php | |
################################################### | |
# Модуль склонения личных имен существительных по падежам | |
# Кодинг Иван Григорьев aka IvanSCM | |
# Склонения по падежам подготовил Лапин Алексей aka NuBiK |