Skip to content

Instantly share code, notes, and snippets.

View alexermakov's full-sized avatar

ermakovalexey alexermakov

View GitHub Profile
<script src="https://code.jquery.com/jquery-2.1.4.min.js"></script>
@alexermakov
alexermakov / normalize.css
Last active March 11, 2017 11:03
normalize.css
/*! normalize.css v3.0.3 | MIT License | github.com/necolas/normalize.css */
/**
* 1. Set default font family to sans-serif.
* 2. Prevent iOS and IE text size adjust after device orientation change,
* without disabling user zoom.
*/
html {
.clearfix:after {
visibility: hidden;
display: block;
content: " ";
height: 0;
font-size: 0;
clear: both
}
<?php
if ($_POST){
function mime_header_encode($str, $data_charset, $send_charset) {
if($data_charset != $send_charset)
$str=iconv($data_charset,$send_charset.'//IGNORE',$str);
return ('=?'.$send_charset.'?B?'.base64_encode($str).'?=');
}
class TEmail {
@alexermakov
alexermakov / ancor-scroll.js
Last active April 11, 2016 08:22
scroll for ancors
$('a[href^="#"], a[href^="."]').click( function(){
var scroll_el = $(this).attr('href');
if ($(scroll_el).length != 0) {
$('html, body').animate({ scrollTop: $(scroll_el).offset().top }, 1000);
}
return false;
});