Skip to content

Instantly share code, notes, and snippets.

@nollac
nollac / mediaq
Created November 1, 2016 13:12
mediaq
@media only screen and (max-width:1281px) {
/* hi-res laptops and desktops */
}
@media only screen and (max-width:1025px) {
/* big landscape tablets, laptops, and desktops */
}
@media only screen and (max-width:961px) {
/* tablet, landscape iPad, lo-res laptops ands desktops */
@nollac
nollac / jq-slider
Created January 12, 2017 09:51
jq-slider
$('li').on('click', function() {
$('li').removeClass('active');
$(this).addClass('active');
});
@nollac
nollac / jq tabs
Created February 25, 2017 11:15
jq tabs
(function($){
jQuery.fn.lightTabs = function(options){
var createTabs = function(){
tabs = this;
i = 0;
showPage = function(i){
$(tabs).children("div").children("div").hide();
$(tabs).children("div").children("div").eq(i).show();