|
1 | | -{{ define "main" }} {{- partial "navbar_temp.html" . -}} |
2 | | -<script |
| 1 | +{{ define "main" }} |
| 2 | + {{- partial "navbar_temp.html" . -}} |
| 3 | + <script |
3 | 4 | src="https://code.jquery.com/jquery-3.5.1.min.js" |
4 | 5 | integrity="sha256-9/aliU8dGd2tb6OSsuzixeV4y/faTqgFtohetphbbj0=" |
5 | 6 | crossorigin="anonymous" |
6 | | -></script> |
7 | | -<script> |
| 7 | + ></script> |
| 8 | + <script> |
8 | 9 | $(document).ready(function () { |
9 | | - shuffle(".president-candidates"); |
10 | | - shuffle(".operations-candidates"); |
11 | | - shuffle(".finance-candidates"); |
12 | | - shuffle(".academics-candidates"); |
13 | | - shuffle(".social-candidates"); |
14 | | - shuffle(".content-creation-candidates"); |
15 | | - shuffle(".industry-candidates"); |
| 10 | + shuffle(".president-candidates"); |
| 11 | + shuffle(".operations-candidates"); |
| 12 | + shuffle(".finance-candidates"); |
| 13 | + shuffle(".academics-candidates"); |
| 14 | + shuffle(".social-candidates"); |
| 15 | + shuffle(".content-creation-candidates"); |
| 16 | + shuffle(".industry-candidates"); |
16 | 17 |
|
17 | | - function shuffle(parent) { |
18 | | - $(parent).each(function () { |
19 | | - var divs = $(this).find(".position"); |
20 | | - for (var i = 0; i < divs.length; i++) $(divs[i]).remove(); |
21 | | - var i = divs.length; |
22 | | - if (i == 0) return false; |
23 | | - while (--i) { |
24 | | - var j = Math.floor(Math.random() * (i + 1)); |
25 | | - var tempi = divs[i]; |
26 | | - var tempj = divs[j]; |
27 | | - divs[i] = tempj; |
28 | | - divs[j] = tempi; |
29 | | - } |
30 | | - for (var i = 0; i < divs.length; i++) $(divs[i]).appendTo(this); |
31 | | - }); |
32 | | - } |
| 18 | + function shuffle(parent) { |
| 19 | + $(parent).each(function () { |
| 20 | + var divs = $(this).find(".position"); |
| 21 | + for (var i = 0; i < divs.length; i++) $(divs[i]).remove(); |
| 22 | + var i = divs.length; |
| 23 | + if (i == 0) return false; |
| 24 | + while (--i) { |
| 25 | + var j = Math.floor(Math.random() * (i + 1)); |
| 26 | + var tempi = divs[i]; |
| 27 | + var tempj = divs[j]; |
| 28 | + divs[i] = tempj; |
| 29 | + divs[j] = tempi; |
| 30 | + } |
| 31 | + for (var i = 0; i < divs.length; i++) $(divs[i]).appendTo(this); |
| 32 | + }); |
| 33 | + } |
33 | 34 | }); |
34 | | -</script> |
35 | | -<div class="platforms-page"> |
| 35 | + </script> |
| 36 | + <div class="platforms-page"> |
36 | 37 | <div class="platforms-page-content"> |
37 | | - <h1>{{ .Params.title }}</h1> |
38 | | - <i>Written By: {{ .Params.author }}</i> |
39 | | - {{ .Content }} |
40 | | - <h1>The Candidates are:</h1> |
41 | | - <h3>President:</h3> |
42 | | - <ul> |
43 | | - {{ range (where (where (where .Site.RegularPages "Section" |
44 | | - "elections") ".Params.position" "President") ".Params.year" |
45 | | - .Params.year) }} |
46 | | - <li><div>{{ .Params.name }}</div></li> |
47 | | - {{ end }} |
48 | | - </ul> |
49 | | - <h3>Director of Operations:</h3> |
50 | | - <ul> |
51 | | - {{ range (where (where (where .Site.RegularPages "Section" |
52 | | - "elections") ".Params.position" "Director of Operations") |
53 | | - ".Params.year" .Params.year) }} |
54 | | - <li><div>{{ .Params.name }}</div></li> |
55 | | - {{ end }} |
56 | | - </ul> |
57 | | - <h3>Director of Finance:</h3> |
58 | | - <ul> |
59 | | - {{ range (where (where (where .Site.RegularPages "Section" |
60 | | - "elections") ".Params.position" "Director of Finance") |
61 | | - ".Params.year" .Params.year) }} |
62 | | - <li><div>{{ .Params.name }}</div></li> |
63 | | - {{ end }} |
64 | | - </ul> |
65 | | - <h3>Director of Academics:</h3> |
66 | | - <ul> |
67 | | - {{ range (where (where (where .Site.RegularPages "Section" |
68 | | - "elections") ".Params.position" "Director of Academics") |
69 | | - ".Params.year" .Params.year) }} |
70 | | - <li><div>{{ .Params.name }}</div></li> |
71 | | - {{ end }} |
72 | | - </ul> |
73 | | - <h3>Director of Social:</h3> |
74 | | - <ul> |
75 | | - {{ range (where (where (where .Site.RegularPages "Section" |
76 | | - "elections") ".Params.position" "Director of Social") ".Params.year" |
77 | | - .Params.year) }} |
78 | | - <li><div>{{ .Params.name }}</div></li> |
79 | | - {{ end }} |
80 | | - </ul> |
81 | | - <h3>Director of Industry Initiatives:</h3> |
82 | | - <ul> |
83 | | - {{ range (where (where (where .Site.RegularPages "Section" |
84 | | - "elections") ".Params.position" "Director of Industry Initiatives") |
85 | | - ".Params.year" .Params.year) }} |
86 | | - <li><div>{{ .Params.name }}</div></li> |
87 | | - {{ end }} |
88 | | - </ul> |
89 | | - <h3>Director of Content Creation:</h3> |
90 | | - <ul> |
91 | | - {{ range (where (where (where .Site.RegularPages "Section" |
92 | | - "elections") ".Params.position" "Director of Content Creation") |
93 | | - ".Params.year" .Params.year) }} |
94 | | - <li><div>{{ .Params.name }}</div></li> |
95 | | - {{ end }} |
96 | | - </ul> |
97 | | - <h1 style="margin-top: 4rem">The Campaign Platforms:</h1> |
98 | | - <div class="president-candidates"> |
99 | | - {{ range (where (where (where .Site.RegularPages "Section" |
100 | | - "elections") ".Params.position" "President") ".Params.year" |
101 | | - .Params.year) }} |
102 | | - <div class="position president"> |
103 | | - <h2 id="{{ .File.BaseFileName }}"> |
104 | | - {{ .Params.name }} - {{ .Params.position }} |
105 | | - </h2> |
106 | | - <p>{{ .Content }}</p> |
107 | | - <hr /> |
108 | | - </div> |
109 | | - {{ end }} |
110 | | - </div> |
111 | | - <div class="operations-candidates"> |
112 | | - {{ range (where (where (where .Site.RegularPages "Section" |
113 | | - "elections") ".Params.position" "Director of Operations") |
114 | | - ".Params.year" .Params.year) }} |
115 | | - <div class="position operations"> |
116 | | - <h2 id="{{ .File.BaseFileName }}"> |
117 | | - {{ .Params.name }} - {{ .Params.position }} |
118 | | - </h2> |
119 | | - <p>{{ .Content }}</p> |
120 | | - <hr /> |
121 | | - </div> |
122 | | - {{ end }} |
123 | | - </div> |
124 | | - <div class="finance-candidates"> |
125 | | - {{ range (where (where (where .Site.RegularPages "Section" |
126 | | - "elections") ".Params.position" "Director of Finance") |
127 | | - ".Params.year" .Params.year) }} |
128 | | - <div class="position finance"> |
129 | | - <h2 id="{{ .File.BaseFileName }}"> |
130 | | - {{ .Params.name }} - {{ .Params.position }} |
131 | | - </h2> |
132 | | - <p>{{ .Content }}</p> |
133 | | - <hr /> |
134 | | - </div> |
135 | | - {{ end }} |
136 | | - </div> |
137 | | - <div class="academics-candidates"> |
138 | | - {{ range (where (where (where .Site.RegularPages "Section" |
139 | | - "elections") ".Params.position" "Director of Academics") |
140 | | - ".Params.year" .Params.year) }} |
141 | | - <div class="position academics"> |
142 | | - <h2 id="{{ .File.BaseFileName }}"> |
143 | | - {{ .Params.name }} - {{ .Params.position }} |
144 | | - </h2> |
145 | | - <p>{{ .Content }}</p> |
146 | | - <hr /> |
147 | | - </div> |
148 | | - {{ end }} |
149 | | - </div> |
150 | | - <div class="social-candidates"> |
151 | | - {{ range (where (where (where .Site.RegularPages "Section" |
152 | | - "elections") ".Params.position" "Director of Social") ".Params.year" |
153 | | - .Params.year) }} |
154 | | - <div class="position social"> |
155 | | - <h2 id="{{ .File.BaseFileName }}"> |
156 | | - {{ .Params.name }} - {{ .Params.position }} |
157 | | - </h2> |
158 | | - <p>{{ .Content }}</p> |
159 | | - <hr /> |
160 | | - </div> |
161 | | - {{ end }} |
162 | | - </div> |
163 | | - <div class="industry-candidates"> |
164 | | - {{ range (where (where (where .Site.RegularPages "Section" |
165 | | - "elections") ".Params.position" "Director of Industry Initiatives") |
166 | | - ".Params.year" .Params.year) }} |
167 | | - <div class="position industry"> |
168 | | - <h2 id="{{ .File.BaseFileName }}"> |
169 | | - {{ .Params.name }} - {{ .Params.position }} |
170 | | - </h2> |
171 | | - <p>{{ .Content }}</p> |
172 | | - <hr /> |
173 | | - </div> |
174 | | - {{ end }} |
175 | | - </div> |
176 | | - <div class="content-creation-candidates"> |
177 | | - {{ range (where (where (where .Site.RegularPages "Section" |
178 | | - "elections") ".Params.position" "Director of Content Creation") |
179 | | - ".Params.year" .Params.year) }} |
180 | | - <div class="position content-creation"> |
181 | | - <h2 id="{{ .File.BaseFileName }}"> |
182 | | - {{ .Params.name }} - {{ .Params.position }} |
183 | | - </h2> |
184 | | - <p>{{ .Content }}</p> |
185 | | - <hr /> |
186 | | - </div> |
187 | | - {{ end }} |
188 | | - </div> |
| 38 | + <h1>{{ .Params.title }}</h1> |
| 39 | + <i>Written By: {{ .Params.author }}</i> |
| 40 | + {{ .Content }} |
| 41 | + <h1>The Candidates are:</h1> |
| 42 | + <h3>President:</h3> |
| 43 | + <ul> |
| 44 | + {{ range (where (where (where .Site.RegularPages "Section" "elections") ".Params.position" "President") ".Params.year" .Params.year) }} |
| 45 | + <li><div>{{ .Params.name }}</div></li> |
| 46 | + {{ end }} |
| 47 | + </ul> |
| 48 | + <h3>Director of Operations:</h3> |
| 49 | + <ul> |
| 50 | + {{ range (where (where (where .Site.RegularPages "Section" "elections") ".Params.position" "Director of Operations") ".Params.year" .Params.year) }} |
| 51 | + <li><div>{{ .Params.name }}</div></li> |
| 52 | + {{ end }} |
| 53 | + </ul> |
| 54 | + <h3>Director of Finance:</h3> |
| 55 | + <ul> |
| 56 | + {{ range (where (where (where .Site.RegularPages "Section" "elections") ".Params.position" "Director of Finance") ".Params.year" .Params.year) }} |
| 57 | + <li><div>{{ .Params.name }}</div></li> |
| 58 | + {{ end }} |
| 59 | + </ul> |
| 60 | + <h3>Director of Academics:</h3> |
| 61 | + <ul> |
| 62 | + {{ range (where (where (where .Site.RegularPages "Section" "elections") ".Params.position" "Director of Academics") ".Params.year" .Params.year) }} |
| 63 | + <li><div>{{ .Params.name }}</div></li> |
| 64 | + {{ end }} |
| 65 | + </ul> |
| 66 | + <h3>Director of Social:</h3> |
| 67 | + <ul> |
| 68 | + {{ range (where (where (where .Site.RegularPages "Section" "elections") ".Params.position" "Director of Social") ".Params.year" .Params.year) }} |
| 69 | + <li><div>{{ .Params.name }}</div></li> |
| 70 | + {{ end }} |
| 71 | + </ul> |
| 72 | + <h3>Director of Industry Initiatives:</h3> |
| 73 | + <ul> |
| 74 | + {{ range (where (where (where .Site.RegularPages "Section" "elections") ".Params.position" "Director of Industry Initiatives") ".Params.year" .Params.year) }} |
| 75 | + <li><div>{{ .Params.name }}</div></li> |
| 76 | + {{ end }} |
| 77 | + </ul> |
| 78 | + <h3>Director of Content Creation:</h3> |
| 79 | + <ul> |
| 80 | + {{ range (where (where (where .Site.RegularPages "Section" "elections") ".Params.position" "Director of Content Creation") ".Params.year" .Params.year) }} |
| 81 | + <li><div>{{ .Params.name }}</div></li> |
| 82 | + {{ end }} |
| 83 | + </ul> |
| 84 | + <h1 style="margin-top: 4rem">The Campaign Platforms:</h1> |
| 85 | + <div class="president-candidates"> |
| 86 | + {{ range (where (where (where .Site.RegularPages "Section" "elections") ".Params.position" "President") ".Params.year" .Params.year) }} |
| 87 | + <div class="position president"> |
| 88 | + <h2 id="{{ .File.BaseFileName }}"> |
| 89 | + {{ .Params.name }} - {{ .Params.position }} |
| 90 | + </h2> |
| 91 | + <p>{{ .Content }}</p> |
| 92 | + <hr /> |
| 93 | + </div> |
| 94 | + {{ end }} |
| 95 | + </div> |
| 96 | + <div class="operations-candidates"> |
| 97 | + {{ range (where (where (where .Site.RegularPages "Section" "elections") ".Params.position" "Director of Operations") ".Params.year" .Params.year) }} |
| 98 | + <div class="position operations"> |
| 99 | + <h2 id="{{ .File.BaseFileName }}"> |
| 100 | + {{ .Params.name }} - {{ .Params.position }} |
| 101 | + </h2> |
| 102 | + <p>{{ .Content }}</p> |
| 103 | + <hr /> |
| 104 | + </div> |
| 105 | + {{ end }} |
| 106 | + </div> |
| 107 | + <div class="finance-candidates"> |
| 108 | + {{ range (where (where (where .Site.RegularPages "Section" "elections") ".Params.position" "Director of Finance") ".Params.year" .Params.year) }} |
| 109 | + <div class="position finance"> |
| 110 | + <h2 id="{{ .File.BaseFileName }}"> |
| 111 | + {{ .Params.name }} - {{ .Params.position }} |
| 112 | + </h2> |
| 113 | + <p>{{ .Content }}</p> |
| 114 | + <hr /> |
| 115 | + </div> |
| 116 | + {{ end }} |
| 117 | + </div> |
| 118 | + <div class="academics-candidates"> |
| 119 | + {{ range (where (where (where .Site.RegularPages "Section" "elections") ".Params.position" "Director of Academics") ".Params.year" .Params.year) }} |
| 120 | + <div class="position academics"> |
| 121 | + <h2 id="{{ .File.BaseFileName }}"> |
| 122 | + {{ .Params.name }} - {{ .Params.position }} |
| 123 | + </h2> |
| 124 | + <p>{{ .Content }}</p> |
| 125 | + <hr /> |
| 126 | + </div> |
| 127 | + {{ end }} |
| 128 | + </div> |
| 129 | + <div class="social-candidates"> |
| 130 | + {{ range (where (where (where .Site.RegularPages "Section" "elections") ".Params.position" "Director of Social") ".Params.year" .Params.year) }} |
| 131 | + <div class="position social"> |
| 132 | + <h2 id="{{ .File.BaseFileName }}"> |
| 133 | + {{ .Params.name }} - {{ .Params.position }} |
| 134 | + </h2> |
| 135 | + <p>{{ .Content }}</p> |
| 136 | + <hr /> |
| 137 | + </div> |
| 138 | + {{ end }} |
| 139 | + </div> |
| 140 | + <div class="industry-candidates"> |
| 141 | + {{ range (where (where (where .Site.RegularPages "Section" "elections") ".Params.position" "Director of Industry Initiatives") ".Params.year" .Params.year) }} |
| 142 | + <div class="position industry"> |
| 143 | + <h2 id="{{ .File.BaseFileName }}"> |
| 144 | + {{ .Params.name }} - {{ .Params.position }} |
| 145 | + </h2> |
| 146 | + <p>{{ .Content }}</p> |
| 147 | + <hr /> |
| 148 | + </div> |
| 149 | + {{ end }} |
| 150 | + </div> |
| 151 | + <div class="content-creation-candidates"> |
| 152 | + {{ range (where (where (where .Site.RegularPages "Section" "elections") ".Params.position" "Director of Content Creation") ".Params.year" .Params.year) }} |
| 153 | + <div class="position content-creation"> |
| 154 | + <h2 id="{{ .File.BaseFileName }}"> |
| 155 | + {{ .Params.name }} - {{ .Params.position }} |
| 156 | + </h2> |
| 157 | + <p>{{ .Content }}</p> |
| 158 | + <hr /> |
| 159 | + </div> |
| 160 | + {{ end }} |
| 161 | + </div> |
189 | 162 | </div> |
190 | | -</div> |
| 163 | + </div> |
191 | 164 | {{ end }} |
0 commit comments