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> | |
$('.fotorama') | |
.on('fotorama:fullscreenenter fotorama:fullscreenexit', function (e, fotorama) { | |
if (e.type === 'fotorama:fullscreenenter') { | |
// Options for the fullscreen | |
fotorama.setOptions({ | |
fit: 'cover' | |
}); | |
} else { |
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
Preferences -> Package Settings -> LiveReload -> Settings User | |
{ | |
"enabled_plugins": [ | |
"SimpleReloadPlugin", | |
"SimpleRefresh" | |
] | |
} | |
http://livereload.com/extensions/ |
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
$(document).ready(function() { | |
var scrollTop = 0; | |
$(window).on('scroll', function() { | |
var scrollNow = $(window).scrollTop(); | |
if(scrollNow > scrollTop && scrollNow > 20){ | |
$('.header').addClass('setout'); | |
} else { | |
$('.header').removeClass('setout'); |
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
$(function (){ | |
$("#scrollup").hide(); | |
$(window).scroll(function (){ | |
if ($(this).scrollTop() > 700){ | |
$("#scrollup").fadeIn(500); | |
} else{ | |
$("#scrollup").fadeOut(500); | |
} | |
}); |
NewerOlder