Skip to content

Commit

Permalink
Code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
datdamnzotz committed Dec 21, 2020
1 parent d4e0050 commit dd3a8c2
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions src/cljs/orcpub/dnd/e5/views.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -3575,7 +3575,6 @@

(defn character-page []
(let [expanded? (r/atom false)]
;(js/window.scrollTo 0,0) ;//Force a scroll to top of page.
(fn [{:keys [id] :as arg}]
(let [id (js/parseInt id)
frame? (= "true" (get-in arg [:query "frame"]))
Expand Down Expand Up @@ -4960,7 +4959,6 @@

(defn feat-builder []
(let [feat @(subscribe [::feats/builder-item])]
;(js/window.scrollTo 0,0) ;//Force a scroll to top of page.
[:div.p-20.main-text-color
[:div.m-b-20.flex.flex-wrap
[feat-input-field
Expand Down Expand Up @@ -5344,7 +5342,6 @@
classes @(subscribe [::classes/classes])
class-map @(subscribe [::classes/class-map])
mobile? @(subscribe [:mobile?])]
;(js/window.scrollTo 0,0) ;//Force a scroll to top of page.
[:div.p-20.main-text-color
[:div.flex.flex-wrap
[:div.m-b-20.flex-grow-1
Expand Down Expand Up @@ -5648,7 +5645,6 @@
class-key (get subclass :class)
classes @(subscribe [::classes/classes])
mobile? @(subscribe [:mobile?])]
;(js/window.scrollTo 0,0) ;//Force a scroll to top of page.
[:div.p-20.main-text-color
[:div.flex.flex-wrap
[:div.m-b-20
Expand Down Expand Up @@ -5792,7 +5788,6 @@
race @(subscribe [::races/race race-key])
races @(subscribe [::races/races])
mobile? @(subscribe [:mobile?])]
;(js/window.scrollTo 0,0) ;//Force a scroll to top of page.
[:div.p-20.main-text-color
[:div.flex.flex-wrap
[:div.m-b-20
Expand Down Expand Up @@ -5918,7 +5913,6 @@

(defn race-builder []
(let [race @(subscribe [::races/builder-item])]
;(js/window.scrollTo 0,0) ;//Force a scroll to top of page.
[:div.p-20.main-text-color
[:div.m-b-20.flex.flex-wrap
[race-input-field
Expand Down Expand Up @@ -6068,7 +6062,6 @@

(defn background-builder []
(let [background @(subscribe [::bg/builder-item])]
;(js/window.scrollTo 0,0) ;//Force a scroll to top of page.
[:div.p-20.main-text-color
[:div.m-b-20.flex.flex-wrap
[background-input-field
Expand Down Expand Up @@ -6101,7 +6094,6 @@

(defn selection-builder []
(let [selection @(subscribe [::selections/builder-item])]
;(js/window.scrollTo 0,0) ;//Force a scroll to top of page.
[:div.p-20.main-text-color
[:div.flex.w-100-p.flex-wrap
[selection-input-field
Expand Down Expand Up @@ -6148,7 +6140,6 @@

(defn language-builder []
(let [language @(subscribe [::langs/builder-item])]
;(js/window.scrollTo 0,0) ;//Force a scroll to top of page.
[:div.p-20.main-text-color
[:div.flex.w-100-p.flex-wrap
[language-input-field
Expand All @@ -6170,7 +6161,6 @@

(defn boon-builder []
(let [boon @(subscribe [::classes/boon-builder-item])]
;(js/window.scrollTo 0,0) ;//Force a scroll to top of page.
[:div.p-20.main-text-color
[:div.flex.w-100-p.flex-wrap
[boon-input-field
Expand All @@ -6192,7 +6182,6 @@

(defn invocation-builder []
(let [invocation @(subscribe [::classes/invocation-builder-item])]
;(js/window.scrollTo 0,0) ;//Force a scroll to top of page.
[:div.p-20.main-text-color
[:div.flex.w-100-p.flex-wrap
[invocation-input-field
Expand Down Expand Up @@ -6237,7 +6226,6 @@
actions
legendary-actions] :as monster}
@(subscribe [::monsters/builder-item])]
;(js/window.scrollTo 0,0) ;//Force a scroll to top of page.
[:div.p-20.main-text-color
[:div.flex.w-100-p.flex-wrap
[monster-input-field
Expand Down Expand Up @@ -6930,7 +6918,6 @@

(defn encounter-builder []
(let [{:keys [creatures] :as encounter} @(subscribe [::encounters/builder-item])]
;(js/window.scrollTo 0,0) ;//Force a scroll to top of page.
[:div.p-20.main-text-color
[:div.flex.w-100-p.flex-wrap
[encounter-input-field
Expand All @@ -6957,7 +6944,6 @@

(defn spell-builder []
(let [{:keys [:level :school] :as spell} @(subscribe [::spells/builder-item])]
;(js/window.scrollTo 0,0) ;//Force a scroll to top of page.
[:div.p-20.main-text-color
[:div.flex.w-100-p.flex-wrap
[spell-input-field
Expand Down Expand Up @@ -7044,7 +7030,6 @@
@(subscribe [::mi/builder-item])
item-types @(subscribe [::mi/item-types])
item-rarities @(subscribe [::mi/rarities])]
;(js/window.scrollTo 0,0) ;//Force a scroll to top of page.
[:div.p-20.main-text-color
[:div.flex.w-100-p.flex-wrap
[:div.flex-grow-1.m-b-20
Expand Down

0 comments on commit dd3a8c2

Please sign in to comment.