Skip to content

Instantly share code, notes, and snippets.

@flumono
flumono / Media.css
Last active September 6, 2017 19:36
Media.css
/*========== Desktop First Method ==========*/
/* Large Devices, Wide Screens */
@media only screen and (max-width : 1280px) {
}
@media only screen and (max-width : 1200px) {
}
@flumono
flumono / mobile-menu.html
Last active September 6, 2017 19:35
mobile-menu
<!-- HTML -->
<a href="#" class="toggle-mnu hidden-lg"><span></span></a>
<!-- SASS -->
.toggle-mnu
display: block
width: 28px
height: 28px
margin-top: 14px
@flumono
flumono / uniMail
Last active September 6, 2017 19:36
uniMail
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>uniMail</title>
</head>
<body>
<form>
@flumono
flumono / Waypoints + Animate.css
Last active September 17, 2017 00:23
Waypoints + Animate.css
$(".element").waypoint(function() {
$(this).addClass("animated zoomInUp");
}, {
offset: "70%"
});
.element:nth-child(1) {
-webkit-animation-delay: 0s;
-o-animation-delay: 0s;
animation-delay: 0s;
@flumono
flumono / Disallow robots.txt
Last active September 17, 2017 00:24
Disallow robots.txt
User-agent: *
Disallow: /
@flumono
flumono / CSSReset
Last active September 17, 2017 00:24
CSSReset
/* v2.0 | 20110126
http://meyerweb.com/eric/tools/css/reset/
License: none (public domain)
*/
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
@flumono
flumono / <head>
Last active September 17, 2017 00:24
<head>
QQ Mobile Browser
<!— Блокирует изменение ориентации страницы, устанавливая указанную —>
<meta name="x5-orientation" content="landscape/portrait">
<!— Страница будет показана в полноэкранном режиме —>
<meta name="x5-fullscreen" content="true">
<!— Страница будет отображаться в режиме "Приложение" —>
<meta name="x5-page-mode" content="app">
@flumono
flumono / Подробнее = Скрыть (текст)
Last active September 17, 2017 00:24
Подробнее = Скрыть (текст)
<div>
<script language="javascript" type="text/javascript">
function popUp($id){
$div=document.getElementById($id);
if ($div.style.display=='none') $div.style.display='block';
else $div.style.display='none';
}
function show_more(){
document.getElementById('show_more').style.display='none';
}
@flumono
flumono / telephone mask (маска ввода номера)
Last active September 17, 2017 00:25
telephone mask (маска ввода номера)
jQuery(function($){
$(".maskphone input:eq(3)").mask("+38 (999) 999-99-99",{
onBeforeMask:function(t,e){return t.replace(/^38/g,"")},
onBeforePaste:function(t,e){return t.replace(/^38/g,"")}});
}
);
///.maskphone input:eq(3) - подставить свой класс или идентификатор.
@flumono
flumono / Java Script in .php files
Last active September 17, 2017 00:25
Java Script in .php files
<?php
JHtml::script('/plugins/telmask-source.js');
JHtml::script('/plugins/tel-mask.js');
?>
('/путь к скрипту')