The URI of TUHH Docker Registry changed from "docker.rz.tu-harburg.de:5000" to "docker.rz.tu-harburg.de". Please update your gitlab-ci.yml files if you use images from this registry.

Commit 7a339ab6 authored by Tobias Zeumer's avatar Tobias Zeumer

Show @tubh tweets via icon bar link; h#32 + #33

parent c18a1fd6
......@@ -29,6 +29,7 @@
<ul class="main-menu cf">
<li id="menuIconRow">
<a href="." id="link_reload" class="inconizedLink" aria-label="tub.map"><svg><use xlink:href="res/symbols.svg#icon-home"></use></svg></a>
<a href="#" id="link_twitter" class="inconizedLink" aria-label="Tweets by @tubh"><svg><use xlink:href="res/symbols.svg#icon-twitter2"></use></svg></a>
</li>
<li><a href="http://journaltouch.tub.tuhh.de/" id="journaltouch" style="display: none">JournalTouch</a></li>
......
......@@ -121,6 +121,19 @@ $( document ).ready(function() {
}, 1000);
});
// Listen for Link: Twitter click
// @todo: Pretty inefficient to load the 35KB script each time. But it's
// hard to work around it, because the a tag is transformed to an
// iframe. The iframe cannot be "kept" in the modal (content gets
// replaced), but copying the iframe... errm - who will ever click
// here anway - more so if on cellular network...
$("#link_twitter").click(function(event) {
let frameHeight = document.documentElement.clientHeight * 0.80; //80vh to px
let twitter_tubbh = '<a class="twitter-timeline" data-height="'+frameHeight+'" data-dnt="true" href="https://twitter.com/tubhh?ref_src=twsrc%5Etfw">Tweets by tubhh</a> <script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>';
$("#modal-content").html(twitter_tubbh);
$("#modal").show();
});
// Listen for mapDetails change
$("#mapDetails").change(function(event) {
toggleDetail($(this).val());
......
......@@ -25,6 +25,10 @@
<title>cog</title>
<path d="M29.181 19.070c-1.679-2.908-0.669-6.634 2.255-8.328l-3.145-5.447c-0.898 0.527-1.943 0.829-3.058 0.829-3.361 0-6.085-2.742-6.085-6.125h-6.289c0.008 1.044-0.252 2.103-0.811 3.070-1.679 2.908-5.411 3.897-8.339 2.211l-3.144 5.447c0.905 0.515 1.689 1.268 2.246 2.234 1.676 2.903 0.672 6.623-2.241 8.319l3.145 5.447c0.895-0.522 1.935-0.82 3.044-0.82 3.35 0 6.067 2.725 6.084 6.092h6.289c-0.003-1.034 0.259-2.080 0.811-3.038 1.676-2.903 5.399-3.894 8.325-2.219l3.145-5.447c-0.899-0.515-1.678-1.266-2.232-2.226zM16 22.479c-3.578 0-6.479-2.901-6.479-6.479s2.901-6.479 6.479-6.479c3.578 0 6.479 2.901 6.479 6.479s-2.901 6.479-6.479 6.479z"></path>
</symbol>
<symbol id="icon-twitter2" viewBox="0 0 32 32">
<title>twitter2</title>
<path d="M32 7.075c-1.175 0.525-2.444 0.875-3.769 1.031 1.356-0.813 2.394-2.1 2.887-3.631-1.269 0.75-2.675 1.3-4.169 1.594-1.2-1.275-2.906-2.069-4.794-2.069-3.625 0-6.563 2.938-6.563 6.563 0 0.512 0.056 1.012 0.169 1.494-5.456-0.275-10.294-2.888-13.531-6.862-0.563 0.969-0.887 2.1-0.887 3.3 0 2.275 1.156 4.287 2.919 5.463-1.075-0.031-2.087-0.331-2.975-0.819 0 0.025 0 0.056 0 0.081 0 3.181 2.263 5.838 5.269 6.437-0.55 0.15-1.131 0.231-1.731 0.231-0.425 0-0.831-0.044-1.237-0.119 0.838 2.606 3.263 4.506 6.131 4.563-2.25 1.762-5.075 2.813-8.156 2.813-0.531 0-1.050-0.031-1.569-0.094 2.913 1.869 6.362 2.95 10.069 2.95 12.075 0 18.681-10.006 18.681-18.681 0-0.287-0.006-0.569-0.019-0.85 1.281-0.919 2.394-2.075 3.275-3.394z"></path>
</symbol>
<symbol id="icon-home" viewBox="0 0 24 24">
<title>home</title>
<path d="M9.984 20.016h-4.969v-8.016h-3l9.984-9 9.984 9h-3v8.016h-4.969v-6h-4.031v6z"></path>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment