Skip to content

Instantly share code, notes, and snippets.

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