From e1b4f1393cfa6eb65620b0723a93ac5013210018 Mon Sep 17 00:00:00 2001 From: partisan Date: Sat, 10 Aug 2024 14:10:38 +0200 Subject: [PATCH] fix logo mobile background overlap --- node.go | 16 +++------------- printing.go | 20 -------------------- static/css/style.css | 1 + 3 files changed, 4 insertions(+), 33 deletions(-) diff --git a/node.go b/node.go index c317946..e95ab08 100644 --- a/node.go +++ b/node.go @@ -8,16 +8,13 @@ import ( "io/ioutil" "log" "net/http" - "sync" "time" ) var ( - authCode string - peers []string - authMutex sync.Mutex - authenticated = make(map[string]bool) - hostID string + authCode string + peers []string + hostID string ) type Message struct { @@ -27,13 +24,6 @@ type Message struct { VisitedNodes []string `json:"visitedNodes"` } -type CrawlerConfig struct { - ID string - Host string - Port int - AuthCode string -} - func loadNodeConfig() { config := loadConfig() authCode = config.AuthCode diff --git a/printing.go b/printing.go index 1a547c1..88abfbd 100644 --- a/printing.go +++ b/printing.go @@ -48,23 +48,3 @@ func logMessage(level string, format string, args ...interface{}) { fmt.Printf("[%s] %s\n", timestamp, message) } } - -///////////// - -func printErrf(format string, args ...interface{}) { - if config.LogLevel >= 1 { - logMessage("ERROR", fmt.Sprintf(format, args...)) - } -} - -func printWarnf(format string, args ...interface{}) { - if config.LogLevel >= 2 { - logMessage("WARN", fmt.Sprintf(format, args...)) - } -} - -func printInfof(format string, args ...interface{}) { - if config.LogLevel >= 3 { - logMessage("INFO", fmt.Sprintf(format, args...)) - } -} diff --git a/static/css/style.css b/static/css/style.css index 33fb56b..c421b98 100644 --- a/static/css/style.css +++ b/static/css/style.css @@ -1680,6 +1680,7 @@ body, h1, p, a, input, button { margin-top: 0px; top: 0px; left: 0px; + background-color: var(--search-bg); } .mobile-none {