mirror of
https://github.com/Unkn0wnCat/KevinK.dev.js.git
synced 2025-07-13 06:37:29 +02:00
Normalize Code Style
This commit is contained in:
parent
f62930067b
commit
75c52c744d
36 changed files with 508 additions and 526 deletions
|
@ -1,12 +1,12 @@
|
|||
/* eslint-disable no-undef */
|
||||
let $ = require("jquery");
|
||||
|
||||
$(function() {
|
||||
$(window).on("scroll", function() {
|
||||
$(function () {
|
||||
$(window).on("scroll", function () {
|
||||
performUpdate();
|
||||
});
|
||||
|
||||
$(window).on("navigate", function() {
|
||||
$(window).on("navigate", function () {
|
||||
performUpdate();
|
||||
});
|
||||
|
||||
|
@ -14,7 +14,7 @@ $(function() {
|
|||
});
|
||||
|
||||
function performUpdate() {
|
||||
if(window.scrollY < 15) {
|
||||
if (window.scrollY < 15) {
|
||||
$(".topBar").addClass("homeBarTransparent");
|
||||
} else {
|
||||
$(".topBar").removeClass("homeBarTransparent");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue