From 1ff75c0f65369e6aa1d47d793cffbd27c2238dd7 Mon Sep 17 00:00:00 2001 From: ckonstanski Date: Sun, 6 Sep 2026 20:28:20 -0600 Subject: stuff --- .../resume/clojurescript/resume/src/resume/core.clj | 4 ++-- .../resume/clojurescript/resume/src/resume/core.cljs | 16 ++++++++-------- 2 files changed, 10 insertions(+), 10 deletions(-) (limited to 'lisp/webapps') diff --git a/lisp/webapps/resume/clojurescript/resume/src/resume/core.clj b/lisp/webapps/resume/clojurescript/resume/src/resume/core.clj index 146fa6c..2bf5fd5 100644 --- a/lisp/webapps/resume/clojurescript/resume/src/resume/core.clj +++ b/lisp/webapps/resume/clojurescript/resume/src/resume/core.clj @@ -75,7 +75,7 @@ (reset! ~(symbol (str component "-link-state")) jsonobj#)) (defn ~(symbol (str "comp-" component)) [] - [:div {:style {:display (cond (or (= @location-state ~(str "/resume/" component))) "block" :else "none")}} + [:div {:style {:display (cond (= @location-state ~(str "/resume/" component)) "block" :else "none")}} [:h3 {:style {:text-align "center"}} (get (deref ~(symbol (str component "-state"))) "title")] [~(symbol (str "comp-" component "-view"))] [:div {:id (str "modal-" ~component "-add") @@ -91,7 +91,7 @@ :data-dismiss "modal"} "X"]] [:div {:class "modal-body" - :style {:height "460px;"}} + :style {:height "460px"}} [~(symbol (str "comp-" component "-add"))]] [:div {:class "modal-footer"} [:button {:type "submit" diff --git a/lisp/webapps/resume/clojurescript/resume/src/resume/core.cljs b/lisp/webapps/resume/clojurescript/resume/src/resume/core.cljs index 5283292..8b382ba 100644 --- a/lisp/webapps/resume/clojurescript/resume/src/resume/core.cljs +++ b/lisp/webapps/resume/clojurescript/resume/src/resume/core.cljs @@ -349,7 +349,7 @@ ;; login (defn comp-login [] - [:div {:style {:display (cond (or (= @location-state "/login")) "block" :else "none")}} + [:div {:style {:display (cond (= @location-state "/login") "block" :else "none")}} [:h3 {:style {:text-align "center"}} (get @login-state "title")] [:div {:dangerouslySetInnerHTML (r/unsafe-html (ck-form/template-generic-form (get @login-state "form") (namespace ::x)))}] [:div {:style {:text-align "center"}} @@ -392,7 +392,7 @@ ;; profile (defn comp-profile [] - [:div {:style {:display (cond (or (= @location-state "/profile")) "block" :else "none")}} + [:div {:style {:display (cond (= @location-state "/profile") "block" :else "none")}} [:h3 {:style {:text-align "center"}} (get @profile-state "title")] [comp-profile-view] [:div {:id "modify-profile" @@ -507,7 +507,7 @@ ;; password (defn comp-password [jsonobj] - [:div {:style {:display (cond (or (= @location-state "/password")) "block" :else "none")}} + [:div {:style {:display (cond (= @location-state "/password") "block" :else "none")}} [:h3 {:style {:text-align "center"}} (get @password-state "title")] [:div {:dangerouslySetInnerHTML (r/unsafe-html (ck-form/template-generic-form (get @password-state "form") (namespace ::x)))}]]) @@ -540,7 +540,7 @@ ;; about-us (defn comp-about-us [] - [:div {:style {:display (cond (or (= @location-state "/home")) "block" :else "none")}} + [:div {:style {:display (cond (= @location-state "/home") "block" :else "none")}} [:h3 {:style {:text-align "center"}} (cond (= @about-us-category-state "home") "Home")] [comp-about-us-view] @@ -641,7 +641,7 @@ ;; contact-us (defn comp-contact-us [] - [:div {:style {:display (cond (or (= @location-state "/contact-us")) "block" :else "none")}} + [:div {:style {:display (cond (= @location-state "/contact-us") "block" :else "none")}} [:h3 {:style {:text-align "center"}} "Reach out to me by filling out the form."] [comp-contact-us-view] [:table {:width "100%"} @@ -702,7 +702,7 @@ ;; messages (defn comp-messages [] - [:div {:style {:display (cond (or (= @location-state "/messages")) "block" :else "none")}} + [:div {:style {:display (cond (= @location-state "/messages") "block" :else "none")}} [:h3 {:style {:text-align "center"}} (get @messages-state "title")] [:div {:dangerouslySetInnerHTML (r/unsafe-html (ck-form/template-generic-form (get @messages-state "form") (namespace ::x)))}] [comp-messages-view]]) @@ -791,7 +791,7 @@ ;; users (defn comp-users [] - [:div {:style {:display (cond (or (= @location-state "/users")) "block" :else "none")}} + [:div {:style {:display (cond (= @location-state "/users") "block" :else "none")}} [:h3 {:style {:text-align "center"}} (get @users-state "title")] [comp-users-view] [:div {:id "modal-users-add" @@ -932,7 +932,7 @@ ;; users-register (defn comp-users-register [] - [:div {:style {:display (cond (or (= @location-state "/users/register")) "block" :else "none")}} + [:div {:style {:display (cond (= @location-state "/users/register") "block" :else "none")}} [:h3 {:style {:text-align "center"}} (get @users-register-state "title")] [comp-users-register-form]]) -- cgit v1.3