|
| 1 | +<!-- **************************************** |
| 2 | + |docname| - main template for this theme |
| 3 | + **************************************** --> |
1 | 4 | {% extends "basic/layout.html" %} |
2 | 5 |
|
3 | 6 | {% if dynamic_pages == 'True' %} |
|
232 | 235 | {% raw %} |
233 | 236 | eBookConfig.useRunestoneServices = true; |
234 | 237 | eBookConfig.host = ''; |
235 | | - eBookConfig.app = eBookConfig.host + '/' + '{{ request.application }}'; |
| 238 | + eBookConfig.app = eBookConfig.host + '/runestone'; |
236 | 239 | eBookConfig.course = '{{ course_name }}'; |
237 | 240 | eBookConfig.basecourse = '{{ base_course }}'; |
238 | 241 | eBookConfig.isLoggedIn = {{ is_logged_in}}; |
|
244 | 247 | eBookConfig.downloadsEnabled = {{downloads_enabled}}; |
245 | 248 | eBookConfig.allow_pairs = {{allow_pairs}} |
246 | 249 | eBookConfig.enableCompareMe = {{enable_compare_me}}; |
| 250 | + // _`new_server_prefix`: Defined by the server to be the path to the new server. |
| 251 | + eBookConfig.new_server_prefix = '{{ new_server_prefix }}'; |
247 | 252 | {% endraw %} |
248 | 253 | {% else %} |
249 | 254 | eBookConfig.useRunestoneServices = {% if use_services == 'true' -%}true{%- else -%}false{%- endif -%}; |
|
253 | 258 | eBookConfig.basecourse = '{{ basecourse }}'; |
254 | 259 | eBookConfig.isLoggedIn = false; |
255 | 260 | eBookConfig.enableCompareMe = eBookConfig.useRunestoneServices; |
| 261 | + eBookConfig.new_server_prefix = ''; |
256 | 262 | {% endif %} |
257 | 263 | eBookConfig.ajaxURL = eBookConfig.app+'/ajax/'; |
258 | 264 | eBookConfig.logLevel = {{loglevel}}; |
|
293 | 299 | <div class="container" id="continue-reading"></div> |
294 | 300 |
|
295 | 301 | <div class="container" id="main-content" role="main"> |
296 | | - |
| 302 | + |
297 | 303 | <!-- Ad Serving for Runestone Campaign --> |
298 | 304 | {% if dynamic_pages == 'True' %} |
299 | 305 | {% raw %} |
|
317 | 323 | </div> |
318 | 324 |
|
319 | 325 | {% include "subchapter.html" %} |
320 | | - |
| 326 | + |
321 | 327 | </div> |
322 | 328 | {%- endblock %} |
323 | 329 |
|
|
386 | 392 | {% endif %} |
387 | 393 | {% endif %} |
388 | 394 |
|
389 | | -<script> |
| 395 | +<script> |
390 | 396 | window.addEventListener('load', (event) => { |
391 | | - runestoneComponents.getSwitch(); |
| 397 | + runestoneComponents.getSwitch(); |
392 | 398 | }); |
393 | 399 | </script> |
394 | 400 |
|
|
0 commit comments