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
.css3-radios label { | |
display: inline-block; | |
vertical-align: middle; | |
} | |
.css3-radios input[type="radio"] + span { | |
display: inline-block; | |
vertical-align: middle; | |
} | |
.css3-radios input[type="radio"] + span::before { | |
display: inline-block; |
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
/** | |
* jQuery.responsiveVideo | |
* Version 1.1 | |
* Copyright (c) 2014 c.bavota - http://bavotasan.com | |
* Dual licensed under MIT and GPL. | |
* Date: 01/16/2014 | |
**/ | |
( function($) { | |
$.fn.responsiveVideo = function() { | |
// Add CSS to head |
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
$.fn.getIndex = function(){ | |
var $p=$(this).parent().children(); | |
return $p.index(this); | |
} | |
/* | |
// DEMO | |
ul | |
li | |
li | |
li.active |
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 strpos($smarty.server.HTTP_USER_AGENT, "Speed Insights" ) == false} | |
// hidden for Speed Insights | |
{/if} |
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
'use strict'; | |
//npm install gulp gulp-minify-css gulp-uglify gulp-clean gulp-cleanhtml gulp-jshint gulp-strip-debug gulp-zip --save-dev | |
var gulp = require('gulp'), | |
clean = require('gulp-clean'), | |
cleanhtml = require('gulp-cleanhtml'), | |
minifycss = require('gulp-minify-css'), | |
jshint = require('gulp-jshint'), | |
stripdebug = require('gulp-strip-debug'), |
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
$('select.styler').styler({ | |
onSelectOpened:function() { | |
var el = $(this), | |
scrollTop = $(window).scrollTop(), | |
windowHeight = $(window).height(), | |
offset = el.offset(), | |
height = el.height() + el.find('.jq-selectbox__dropdown').height() + 20; | |
if((height + offset.top) > (scrollTop + windowHeight)) | |
{ |
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
<script type="text/javascript"> | |
(function () { | |
"use strict"; | |
// once cached, the css file is stored on the client forever unless | |
// the URL below is changed. Any change will invalidate the cache | |
var css_href = './index_files/web-fonts.css'; | |
// a simple event handler wrapper | |
function on(el, ev, callback) { | |
if (el.addEventListener) { | |
el.addEventListener(ev, callback, false); |
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
ssl_session_cache shared:ssl_session_cache:10m; | |
server { | |
server_name domen.com www.domen.com; | |
listen xxx.xxx.xxx.xxx:80; | |
return 301 https://domen.com$request_uri; | |
} | |
server { | |
server_name domen.com www.domen.com; | |
listen 443 ssl spdy; |
NewerOlder