-
Notifications
You must be signed in to change notification settings - Fork 43
/
replace_head_and_foot.sh
executable file
·280 lines (265 loc) · 18.2 KB
/
replace_head_and_foot.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
for i in *.html; do
# Change number of top bar options
sed -i '/var numofitems = 7;/c\var numofitems = 3;' $i
# Change top bar options
sed -i '/<!-- Start nav bar -->/,/<!-- End nav bar -->/c\<!-- Start nav bar -->\
<div id="masthead">\
<h1 id="siteName"><big><b>C</b></big>omputational <big><b>L</b></big>aboratory for <big><b>E</b></big>nergy <big><b>A</b></big>nd <big><b>N</b></big>anoscience</h1>\
<div id="globalNav">\
<img alt="" src="gblnav_left.gif" height="32" width="4" id="gnl"> <img alt="" src="glbnav_right.gif" height="32" width="4" id="gnr">\
<div id="globalLink">\
<a href="http://www.uottawa.ca" target="_blank" class="glink" id="gl1" onmouseover="ehandler(event,menuitem1);">University of Ottawa</a>\
<a href="https://uwaterloo.ca/" target="_blank" class="glink" id="gl2" onmouseover="ehandler(event,menuitem2);">University of Waterloo</a>\
<a href="https://www.google.com/maps/place/Parliament+Hill/@45.4230759,-75.6995602,14.5z/data=!4m5!3m4!1s0x0:0x26bb54f60c29f6e!8m2!3d45.4235937!4d-75.700929" target="_blank" id="gl3" class="glink" onmouseover="ehandler(event,menuitem3);">Ottawa, Ontario, Canada</a>\
</div>\
<!--end globalLinks-->\
</div>\
<!-- end globalNav -->\
<div id="subglobal1" class="subglobalNav">\
<a href="http://www.uottawa.ca" target="_blank">University Homepage</a> |\
<a href="https://science.uottawa.ca/physics/" target="_blank">Department of Physics</a>\
</div>\n\
<div id="subglobal2" class="subglobalNav">\
<a href="https://uwaterloo.ca/" target="_blank">University Homepage</a> |\
<a href="https://uwaterloo.ca/electrical-computer-engineering/" target="_blank">Department of Electrical and Computer Engineering</a>\
</div>\n\
<div id="subglobal3" class="subglobalNav">\
<a href="https://www.google.com/maps/place/Parliament+Hill/@45.4230759,-75.6995602,14.5z/data=!4m5!3m4!1s0x0:0x26bb54f60c29f6e!8m2!3d45.4235937!4d-75.700929" target="_blank">Map it</a> |\
<a href="http://www.ottawa.ca/" target="_blank">City of Ottawa</a> |\
<a href="http://www.cbc.ca/ottawa/" target="_blank">Regional News</a> |\
<a href="https://weather.gc.ca/city/pages/on-118_metric_e.html" target="_blank">Local Weather</a> |\
<a href="http://www.gc.ca/" target="_blank">Government of Canada</a>\
</div>\
</div>\
<!-- End nav bar -->' $i
# Change side bar options
sed -i '/<!-- Start side bar -->/,/<!-- End side bar -->/c\<!-- Start side bar -->\
<div id="pageNav">\
<div id="sectionLinks">\
<a href="index.html">Home</a>\
<a href="research.html">Research</a>\
<a href="group/index.html">Group Members</a>\
<a href="collaborators.html">Collaborators</a>\
<a href="codes.html">Codes and Computing</a>\
<a href="datasets/index.html">Datasets</a>\
<a href="teaching.html">Teaching</a>\
<a href="funding.html">Funding</a>\
<a href="publications.html">Publications</a>\
<a href="blog.html">Blog Posts</a>\
<a href="prospective_students.html">Prospective Students</a>\
<a href="classroom_tech.html">Classroom Tech</a>\
<a href="policy.html">Policy</a>\
</div>\
</div>\
<!-- End side bar -->' $i
# Change bottom logos
sed -i '/<!-- Start logos -->/,/<!-- End logos -->/c\<!-- Start logos -->\
<div id="siteInfo">\
<img src="images/space.GIF" width="25" height="31"> <img src="images/clean_logo.png" alt="UOIT" border="0" height="50"> <img src="images/space.GIF" width="25" height="31">\
<a href="http://www.uottawa.ca" target="_blank"><img src="images/uottawa.png" alt="uOttawa" border="0" height="50"></a> <img src="images/space.GIF" width="25" height="31">\
<a href="http://uwaterloo.ca" target="_blank"><img src="images/uwaterloo.jpg" alt="uWaterloo" border="0" height="100"></a> <img src="images/space.GIF" width="25" height="31">\
<a href="http://www.uoit.ca" target="_blank"><img src="images/uoit.jpg" alt="UOIT" border="0"></a> <img src="images/space.GIF" width="25" height="31">\
<a href="http://www.nserc.gc.ca" target="_blank" border="0"><img src="images/nserc.gif" width="75" height="31" border="0"></a> <img src="images/space.GIF" width="25" height="31">\
<a href="http://computecanada.ca" target="_blank"><img src="images/compute_canada.png" height="31"> <a href="http://www.computecanada.org"></a><img src="images/space.GIF" width="25" height="31">\
<a href="https://vectorinstitute.ai/" target="_blank" border="0"><img src="images/vector_logo.png" height="31" border="0"></a> <img src="images/space.GIF" width="25" height="31">\
</div>\
<!-- End logos -->' $i
done
for i in datasets/*.html; do
# Change number of top bar options
sed -i '/var numofitems = 7;/c\var numofitems = 3;' $i
# Change top bar options
sed -i '/<!-- Start nav bar -->/,/<!-- End nav bar -->/c\<!-- Start nav bar -->\
<div id="masthead">\
<h1 id="siteName"><big><b>C</b></big>omputational <big><b>L</b></big>aboratory for <big><b>E</b></big>nergy <big><b>A</b></big>nd <big><b>N</b></big>anoscience</h1>\
<div id="globalNav">\
<img alt="" src="../gblnav_left.gif" height="32" width="4" id="gnl"> <img alt="" src="../glbnav_right.gif" height="32" width="4" id="gnr">\
<div id="globalLink">\
<a href="http://www.uottawa.ca" target="_blank" class="glink" id="gl1" onmouseover="ehandler(event,menuitem1);">University of Ottawa</a>\
<a href="https://uwaterloo.ca/" target="_blank" class="glink" id="gl2" onmouseover="ehandler(event,menuitem2);">University of Waterloo</a>\
<a href="https://www.google.com/maps/place/Parliament+Hill/@45.4230759,-75.6995602,14.5z/data=!4m5!3m4!1s0x0:0x26bb54f60c29f6e!8m2!3d45.4235937!4d-75.700929" target="_blank" id="gl3" class="glink" onmouseover="ehandler(event,menuitem3);">Ottawa, Ontario, Canada</a>\
</div>\
<!--end globalLinks-->\
</div>\
<!-- end globalNav -->\
<div id="subglobal1" class="subglobalNav">\
<a href="http://www.uottawa.ca" target="_blank">University Homepage</a> |\
<a href="https://science.uottawa.ca/physics/" target="_blank">Department of Physics</a>\
</div>\n\
<div id="subglobal2" class="subglobalNav">\
<a href="https://uwaterloo.ca/" target="_blank">University Homepage</a> |\
<a href="https://uwaterloo.ca/electrical-computer-engineering/" target="_blank">Department of Electrical and Computer Engineering</a>\
</div>\n\
<div id="subglobal3" class="subglobalNav">\
<a href="https://www.google.com/maps/place/Parliament+Hill/@45.4230759,-75.6995602,14.5z/data=!4m5!3m4!1s0x0:0x26bb54f60c29f6e!8m2!3d45.4235937!4d-75.700929" target="_blank">Map it</a> |\
<a href="http://www.ottawa.ca/" target="_blank">City of Ottawa</a> |\
<a href="http://www.cbc.ca/ottawa/" target="_blank">Regional News</a> |\
<a href="https://weather.gc.ca/city/pages/on-118_metric_e.html" target="_blank">Local Weather</a> |\
<a href="http://www.gc.ca/" target="_blank">Government of Canada</a>\
</div>\
</div>\
<!-- End nav bar -->' $i
# Change side bar options
sed -i '/<!-- Start side bar -->/,/<!-- End side bar -->/c\<!-- Start side bar -->\
<div id="pageNav">\
<div id="sectionLinks">\
<a href="../index.html">Home</a>\
<a href="../research.html">Research</a>\
<a href="../group/index.html">Group Members</a>\
<a href="../collaborators.html">Collaborators</a>\
<a href="../codes.html">Codes and Computing</a>\
<a href="index.html">Datasets</a>\
<a href="../teaching.html">Teaching</a>\
<a href="../funding.html">Funding</a>\
<a href="../publications.html">Publications</a>\
<a href="../prospective_students.html">Prospective Students</a>\
<a href="../classroom_tech.html">Classroom Tech</a>\
<a href="../policy.html">Policy</a>\
</div>\
</div>\
<!-- End side bar -->' $i
# Change bottom logos
sed -i '/<!-- Start logos -->/,/<!-- End logos -->/c\<!-- Start logos -->\
<div id="siteInfo">\
<img src="../images/space.GIF" width="25" height="31"> <img src="../images/clean_logo.png" alt="UOIT" border="0" height="50"> <img src="../images/space.GIF" width="25" height="31">\
<a href="http://www.uottawa.ca" target="_blank"><img src="../images/uottawa.png" alt="uOttawa" border="0" height="50"></a> <img src="../images/space.GIF" width="25" height="31">\
<a href="http://uwaterloo.ca" target="_blank"><img src="../images/uwaterloo.jpg" alt="uWaterloo" border="0" height="100"></a> <img src="../images/space.GIF" width="25" height="31">\
<a href="http://www.uoit.ca" target="_blank"><img src="../images/uoit.jpg" alt="UOIT" border="0"></a> <img src="../images/space.GIF" width="25" height="31">\
<a href="http://www.nserc.gc.ca" target="_blank" border="0"><img src="../images/nserc.gif" width="75" height="31" border="0"></a> <img src="../images/space.GIF" width="25" height="31">\
<a href="http://computecanada.ca" target="_blank"><img src="../images/compute_canada.png" height="31"> <a href="http://www.computecanada.org"></a><img src="../images/space.GIF" width="25" height="31">\
<a href="https://vectorinstitute.ai/" target="_blank" border="0"><img src="../images/vector_logo.png" height="31" border="0"></a> <img src="../images/space.GIF" width="25" height="31">\
</div>\
<!-- End logos -->' $i
done
for i in group/*.html; do
# Change number of top bar options
sed -i '/var numofitems = 7;/c\var numofitems = 3;' $i
# Change top bar options
sed -i '/<!-- Start nav bar -->/,/<!-- End nav bar -->/c\<!-- Start nav bar -->\
<div id="masthead">\
<h1 id="siteName"><big><b>C</b></big>omputational <big><b>L</b></big>aboratory for <big><b>E</b></big>nergy <big><b>A</b></big>nd <big><b>N</b></big>anoscience</h1>\
<div id="globalNav">\
<img alt="" src="../gblnav_left.gif" height="32" width="4" id="gnl"> <img alt="" src="../glbnav_right.gif" height="32" width="4" id="gnr">\
<div id="globalLink">\
<a href="http://www.uottawa.ca" target="_blank" class="glink" id="gl1" onmouseover="ehandler(event,menuitem1);">University of Ottawa</a>\
<a href="https://uwaterloo.ca/" target="_blank" class="glink" id="gl2" onmouseover="ehandler(event,menuitem2);">University of Waterloo</a>\
<a href="https://www.google.com/maps/place/Parliament+Hill/@45.4230759,-75.6995602,14.5z/data=!4m5!3m4!1s0x0:0x26bb54f60c29f6e!8m2!3d45.4235937!4d-75.700929" target="_blank" id="gl3" class="glink" onmouseover="ehandler(event,menuitem3);">Ottawa, Ontario, Canada</a>\
</div>\
<!--end globalLinks-->\
</div>\
<!-- end globalNav -->\
<div id="subglobal1" class="subglobalNav">\
<a href="http://www.uottawa.ca" target="_blank">University Homepage</a> |\
<a href="https://science.uottawa.ca/physics/" target="_blank">Department of Physics</a>\
</div>\n\
<div id="subglobal2" class="subglobalNav">\
<a href="https://uwaterloo.ca/" target="_blank">University Homepage</a> |\
<a href="https://uwaterloo.ca/electrical-computer-engineering/" target="_blank">Department of Electrical and Computer Engineering</a>\
</div>\n\
<div id="subglobal3" class="subglobalNav">\
<a href="https://www.google.com/maps/place/Parliament+Hill/@45.4230759,-75.6995602,14.5z/data=!4m5!3m4!1s0x0:0x26bb54f60c29f6e!8m2!3d45.4235937!4d-75.700929" target="_blank">Map it</a> |\
<a href="http://www.ottawa.ca/" target="_blank">City of Ottawa</a> |\
<a href="http://www.cbc.ca/ottawa/" target="_blank">Regional News</a> |\
<a href="https://weather.gc.ca/city/pages/on-118_metric_e.html" target="_blank">Local Weather</a> |\
<a href="http://www.gc.ca/" target="_blank">Government of Canada</a>\
</div>\
</div>\
<!-- End nav bar -->' $i
# Change side bar options
sed -i '/<!-- Start side bar -->/,/<!-- End side bar -->/c\<!-- Start side bar -->\
<div id="pageNav">\
<div id="sectionLinks">\
<a href="../index.html">Home</a>\
<a href="../research.html">Research</a>\
<a href="index.html">Group Members</a>\
<a href="../collaborators.html">Collaborators</a>\
<a href="../codes.html">Codes and Computing</a>\
<a href="../datasets/index.html">Datasets</a>\
<a href="../teaching.html">Teaching</a>\
<a href="../funding.html">Funding</a>\
<a href="../publications.html">Publications</a>\
<a href="../prospective_students.html">Prospective Students</a>\
<a href="../classroom_tech.html">Classroom Tech</a>\
<a href="../policy.html">Policy</a>\
</div>\
</div>\
<!-- End side bar -->' $i
# Change bottom logos
sed -i '/<!-- Start logos -->/,/<!-- End logos -->/c\<!-- Start logos -->\
<div id="siteInfo">\
<img src="../images/space.GIF" width="25" height="31"> <img src="../images/clean_logo.png" alt="UOIT" border="0" height="50"> <img src="../images/space.GIF" width="25" height="31">\
<a href="http://www.uottawa.ca" target="_blank"><img src="../images/uottawa.png" alt="uOttawa" border="0" height="50"></a> <img src="../images/space.GIF" width="25" height="31">\
<a href="http://uwaterloo.ca" target="_blank"><img src="../images/uwaterloo.jpg" alt="uWaterloo" border="0" height="100"></a> <img src="../images/space.GIF" width="25" height="31">\
<a href="http://www.uoit.ca" target="_blank"><img src="../images/uoit.jpg" alt="UOIT" border="0"></a> <img src="../images/space.GIF" width="25" height="31">\
<a href="http://www.nserc.gc.ca" target="_blank" border="0"><img src="../images/nserc.gif" width="75" height="31" border="0"></a> <img src="../images/space.GIF" width="25" height="31">\
<a href="http://computecanada.ca" target="_blank"><img src="../images/compute_canada.png" height="31"> <a href="http://www.computecanada.org"></a><img src="../images/space.GIF" width="25" height="31">\
<a href="https://vectorinstitute.ai/" target="_blank" border="0"><img src="../images/vector_logo.png" height="31" border="0"></a> <img src="../images/space.GIF" width="25" height="31">\
</div>\
<!-- End logos -->' $i
done
for i in publications/*.html; do
# Change number of top bar options
sed -i '/var numofitems = 7;/c\var numofitems = 3;' $i
# Change top bar options
sed -i '/<!-- Start nav bar -->/,/<!-- End nav bar -->/c\<!-- Start nav bar -->\
<div id="masthead">\
<h1 id="siteName"><big><b>C</b></big>omputational <big><b>L</b></big>aboratory for <big><b>E</b></big>nergy <big><b>A</b></big>nd <big><b>N</b></big>anoscience</h1>\
<div id="globalNav">\
<img alt="" src="../gblnav_left.gif" height="32" width="4" id="gnl"> <img alt="" src="../glbnav_right.gif" height="32" width="4" id="gnr">\
<div id="globalLink">\
<a href="http://www.uottawa.ca" target="_blank" class="glink" id="gl1" onmouseover="ehandler(event,menuitem1);">University of Ottawa</a>\
<a href="https://uwaterloo.ca/" target="_blank" class="glink" id="gl2" onmouseover="ehandler(event,menuitem2);">University of Waterloo</a>\
<a href="https://www.google.com/maps/place/Parliament+Hill/@45.4230759,-75.6995602,14.5z/data=!4m5!3m4!1s0x0:0x26bb54f60c29f6e!8m2!3d45.4235937!4d-75.700929" target="_blank" id="gl3" class="glink" onmouseover="ehandler(event,menuitem3);">Ottawa, Ontario, Canada</a>\
</div>\
<!--end globalLinks-->\
</div>\
<!-- end globalNav -->\
<div id="subglobal1" class="subglobalNav">\
<a href="http://www.uottawa.ca" target="_blank">University Homepage</a> |\
<a href="https://science.uottawa.ca/physics/" target="_blank">Department of Physics</a>\
</div>\n\
<div id="subglobal2" class="subglobalNav">\
<a href="https://uwaterloo.ca/" target="_blank">University Homepage</a> |\
<a href="https://uwaterloo.ca/electrical-computer-engineering/" target="_blank">Department of Electrical and Computer Engineering</a>\
</div>\n\
<div id="subglobal3" class="subglobalNav">\
<a href="https://www.google.com/maps/place/Parliament+Hill/@45.4230759,-75.6995602,14.5z/data=!4m5!3m4!1s0x0:0x26bb54f60c29f6e!8m2!3d45.4235937!4d-75.700929" target="_blank">Map it</a> |\
<a href="http://www.ottawa.ca/" target="_blank">City of Ottawa</a> |\
<a href="http://www.cbc.ca/ottawa/" target="_blank">Regional News</a> |\
<a href="https://weather.gc.ca/city/pages/on-118_metric_e.html" target="_blank">Local Weather</a> |\
<a href="http://www.gc.ca/" target="_blank">Government of Canada</a>\
</div>\
</div>\
<!-- End nav bar -->' $i
# Change side bar options
sed -i '/<!-- Start side bar -->/,/<!-- End side bar -->/c\<!-- Start side bar -->\
<div id="pageNav">\
<div id="sectionLinks">\
<a href="../index.html">Home</a>\
<a href="../research.html">Research</a>\
<a href="../group/index.html">Group Members</a>\
<a href="../collaborators.html">Collaborators</a>\
<a href="../codes.html">Codes and Computing</a>\
<a href="../datasets/index.html">Datasets</a>\
<a href="../teaching.html">Teaching</a>\
<a href="../funding.html">Funding</a>\
<a href="../publications.html">Publications</a>\
<a href="../prospective_students.html">Prospective Students</a>\
<a href="../classroom_tech.html">Classroom Tech</a>\
<a href="../policy.html">Policy</a>\
</div>\
</div>\
<!-- End side bar -->' $i
# Change bottom logos
sed -i '/<!-- Start logos -->/,/<!-- End logos -->/c\<!-- Start logos -->\
<div id="siteInfo">\
<img src="../images/space.GIF" width="25" height="31"> <img src="../images/clean_logo.png" alt="UOIT" border="0" height="50"> <img src="../images/space.GIF" width="25" height="31">\
<a href="http://www.uottawa.ca" target="_blank"><img src="../images/uottawa.png" alt="uOttawa" border="0" height="50"></a> <img src="../images/space.GIF" width="25" height="31">\
<a href="http://uwaterloo.ca" target="_blank"><img src="../images/uwaterloo.jpg" alt="uWaterloo" border="0" height="100"></a> <img src="../images/space.GIF" width="25" height="31">\
<a href="http://www.uoit.ca" target="_blank"><img src="../images/uoit.jpg" alt="UOIT" border="0"></a> <img src="../images/space.GIF" width="25" height="31">\
<a href="http://www.nserc.gc.ca" target="_blank" border="0"><img src="../images/nserc.gif" width="75" height="31" border="0"></a> <img src="../images/space.GIF" width="25" height="31">\
<a href="http://computecanada.ca" target="_blank"><img src="../images/compute_canada.png" height="31"> <a href="http://www.computecanada.org"></a><img src="../images/space.GIF" width="25" height="31">\
<a href="https://vectorinstitute.ai/" target="_blank" border="0"><img src="../images/vector_logo.png" height="31" border="0"></a> <img src="../images/space.GIF" width="25" height="31">\
</div>\
<!-- End logos -->' $i
done