mirror of
https://github.com/webrecorder/pywb.git
synced 2025-03-28 00:25:21 +01:00
(js, css, xml) to be able to distinguish between embeds and non-embeds more conclusively wbrequest: add is_embed(), is_identity() properties update tests don't insert html banner if detected as an embed
20 lines
691 B
HTML
20 lines
691 B
HTML
<!-- WB Insert -->
|
|
{% if rule.js_rewrite_location %}
|
|
<script src='{{ wbrequest.host_prefix }}/static/default/wombat.js'> </script>
|
|
<script>
|
|
WB_wombat_init("{{wbrequest.wb_prefix}}",
|
|
"{{cdx['timestamp']}}",
|
|
"{{cdx['original'] | host}}",
|
|
"{{ cdx.timestamp | format_ts('%s') }}");
|
|
</script>
|
|
{% endif %}
|
|
<script>
|
|
wbinfo = {}
|
|
wbinfo.capture_str = "{{ cdx.timestamp | format_ts }}";
|
|
wbinfo.is_embed = {{"true" if wbrequest.is_embed else "false"}};
|
|
</script>
|
|
<script src='{{ wbrequest.host_prefix }}/static/default/wb.js'> </script>
|
|
<link rel='stylesheet' href='{{ wbrequest.host_prefix }}/static/default/wb.css'/>
|
|
<!-- End WB Insert -->
|
|
|