Welcome to mirror list, hosted at ThFree Co, Russian Federation.

main.js « js « static - github.com/g1eny0ung/hugo-theme-dream.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 7750a333464df93a60c70c266d4b28cd22d3f65c (plain)
1
"use strict";$(document).ready(function(){var o=$("body").overlayScrollbars({className:(window.backgroundDark||window.backgroundImageDark?"y"===localStore.getItem("hugo-theme-dream-is-dark"):window.darkNav)?"os-theme-light":"os-theme-dark",scrollbars:{autoHide:"scroll",clickScrolling:!0}}).overlayScrollbars();if(window.fixedNav){var a=$(".dream-nav");o.options("callbacks.onScroll",function(){0<this.scroll().position.y?(a.addClass("fixed").css("background","y"===window.isDark?window.backgroundDark:window.background),$(".dream-single-aside").css("top",54)):(a.removeClass("fixed").css("background","unset"),$(".dream-single-aside").css("top",0))})}window.overlayScrollbarsInstance=o,$(".dream-flip-toggle").click(function(){$(".flip-container").toggleClass("flip-it")})});