From 5210de89c7ff50288f193787c814ec75ba40c63b Mon Sep 17 00:00:00 2001 From: smoretti <sebastien.moretti@sib.swiss> Date: Wed, 14 Feb 2024 15:44:36 +0100 Subject: [PATCH] Add missing attribute in the schema.org datasets + Mastodon/Twitter buttons + Start removing onclick="ga()" --- htdocs/header.php | 150 ++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 144 insertions(+), 6 deletions(-) diff --git a/htdocs/header.php b/htdocs/header.php index 083f89195f..d1f570b7cc 100644 --- a/htdocs/header.php +++ b/htdocs/header.php @@ -98,6 +98,40 @@ * html .ui-autocomplete { height: 250px; } + #mastodon a { + position: absolute; + display: inline; + right: 180px; + top: 80px; + height: 20px; + background-color: #262e4b; + color: white; + padding: 0 12px; + border-radius: 9999px; + box-sizing: border-box; + text-decoration: none; + font-weight: 500; + font-size: 12px; + cursor: pointer; + z-index: 99; + } + #xtwitter a { + position: absolute; + display: inline; + right: 30px; + top: 80px; + height: 20px; + background-color: #1d9bf0; + color: white; + padding: 0 12px; + border-radius: 9999px; + box-sizing: border-box; + text-decoration: none; + font-weight: 500; + font-size: 12px; + cursor: pointer; + z-index: 99; + } </style> <!-- script language="javascript"> @@ -195,6 +229,12 @@ "name": "Attribution 4.0 International (CC BY 4.0)", "url": "https://creativecommons.org/licenses/by/4.0/" }, + "creator": [ + { + "@type": "Person", + "name": "The EPD team" + } + ], "provider": { "@type": "Organization", "name": "SIB Swiss Institute of Bioinformatics", @@ -213,6 +253,12 @@ "name": "Attribution 4.0 International (CC BY 4.0)", "url": "https://creativecommons.org/licenses/by/4.0/" }, + "creator": [ + { + "@type": "Person", + "name": "The EPD team" + } + ], "provider": { "@type": "Organization", "name": "SIB Swiss Institute of Bioinformatics", @@ -231,6 +277,12 @@ "name": "Attribution 4.0 International (CC BY 4.0)", "url": "https://creativecommons.org/licenses/by/4.0/" }, + "creator": [ + { + "@type": "Person", + "name": "The EPD team" + } + ], "provider": { "@type": "Organization", "name": "SIB Swiss Institute of Bioinformatics", @@ -249,6 +301,12 @@ "name": "Attribution 4.0 International (CC BY 4.0)", "url": "https://creativecommons.org/licenses/by/4.0/" }, + "creator": [ + { + "@type": "Person", + "name": "The EPD team" + } + ], "provider": { "@type": "Organization", "name": "SIB Swiss Institute of Bioinformatics", @@ -267,6 +325,12 @@ "name": "Attribution 4.0 International (CC BY 4.0)", "url": "https://creativecommons.org/licenses/by/4.0/" }, + "creator": [ + { + "@type": "Person", + "name": "The EPD team" + } + ], "provider": { "@type": "Organization", "name": "SIB Swiss Institute of Bioinformatics", @@ -285,6 +349,12 @@ "name": "Attribution 4.0 International (CC BY 4.0)", "url": "https://creativecommons.org/licenses/by/4.0/" }, + "creator": [ + { + "@type": "Person", + "name": "The EPD team" + } + ], "provider": { "@type": "Organization", "name": "SIB Swiss Institute of Bioinformatics", @@ -303,6 +373,12 @@ "name": "Attribution 4.0 International (CC BY 4.0)", "url": "https://creativecommons.org/licenses/by/4.0/" }, + "creator": [ + { + "@type": "Person", + "name": "The EPD team" + } + ], "provider": { "@type": "Organization", "name": "SIB Swiss Institute of Bioinformatics", @@ -321,6 +397,12 @@ "name": "Attribution 4.0 International (CC BY 4.0)", "url": "https://creativecommons.org/licenses/by/4.0/" }, + "creator": [ + { + "@type": "Person", + "name": "The EPD team" + } + ], "provider": { "@type": "Organization", "name": "SIB Swiss Institute of Bioinformatics", @@ -339,6 +421,12 @@ "name": "Attribution 4.0 International (CC BY 4.0)", "url": "https://creativecommons.org/licenses/by/4.0/" }, + "creator": [ + { + "@type": "Person", + "name": "The EPD team" + } + ], "provider": { "@type": "Organization", "name": "SIB Swiss Institute of Bioinformatics", @@ -357,6 +445,12 @@ "name": "Attribution 4.0 International (CC BY 4.0)", "url": "https://creativecommons.org/licenses/by/4.0/" }, + "creator": [ + { + "@type": "Person", + "name": "The EPD team" + } + ], "provider": { "@type": "Organization", "name": "SIB Swiss Institute of Bioinformatics", @@ -375,6 +469,12 @@ "name": "Attribution 4.0 International (CC BY 4.0)", "url": "https://creativecommons.org/licenses/by/4.0/" }, + "creator": [ + { + "@type": "Person", + "name": "The EPD team" + } + ], "provider": { "@type": "Organization", "name": "SIB Swiss Institute of Bioinformatics", @@ -393,6 +493,12 @@ "name": "Attribution 4.0 International (CC BY 4.0)", "url": "https://creativecommons.org/licenses/by/4.0/" }, + "creator": [ + { + "@type": "Person", + "name": "The EPD team" + } + ], "provider": { "@type": "Organization", "name": "SIB Swiss Institute of Bioinformatics", @@ -411,6 +517,12 @@ "name": "Attribution 4.0 International (CC BY 4.0)", "url": "https://creativecommons.org/licenses/by/4.0/" }, + "creator": [ + { + "@type": "Person", + "name": "The EPD team" + } + ], "provider": { "@type": "Organization", "name": "SIB Swiss Institute of Bioinformatics", @@ -429,6 +541,12 @@ "name": "Attribution 4.0 International (CC BY 4.0)", "url": "https://creativecommons.org/licenses/by/4.0/" }, + "creator": [ + { + "@type": "Person", + "name": "The EPD team" + } + ], "provider": { "@type": "Organization", "name": "SIB Swiss Institute of Bioinformatics", @@ -447,6 +565,12 @@ "name": "Attribution 4.0 International (CC BY 4.0)", "url": "https://creativecommons.org/licenses/by/4.0/" }, + "creator": [ + { + "@type": "Person", + "name": "The EPD team" + } + ], "provider": { "@type": "Organization", "name": "SIB Swiss Institute of Bioinformatics", @@ -465,6 +589,12 @@ "name": "Attribution 4.0 International (CC BY 4.0)", "url": "https://creativecommons.org/licenses/by/4.0/" }, + "creator": [ + { + "@type": "Person", + "name": "The EPD team" + } + ], "provider": { "@type": "Organization", "name": "SIB Swiss Institute of Bioinformatics", @@ -483,6 +613,12 @@ "name": "Attribution 4.0 International (CC BY 4.0)", "url": "https://creativecommons.org/licenses/by/4.0/" }, + "creator": [ + { + "@type": "Person", + "name": "The EPD team" + } + ], "provider": { "@type": "Organization", "name": "SIB Swiss Institute of Bioinformatics", @@ -493,7 +629,6 @@ ] } </script> - </head> <body> @@ -517,16 +652,19 @@ <div id="highlight"> <div class="hl-item"> <p> - <a class="hl-item-link" href="https://apply.refline.ch/499599/0076/pub/1/index.html" target="_blank" onclick="ga('send', 'event', 'banner', 'EPDjob');">Work with us!<br/ >There is an open position as EPD developer ↓<br /></a> + <a class="hl-item-link" href="https://apply.refline.ch/499599/0076/pub/1/index.html" target="_blank">Work with us!<br/ >There is an open position as EPD developer ↓<br /></a> </p> <p class="subtext"> - <a href="https://apply.refline.ch/499599/0076/pub/1/index.html" target="_blank"><img src="/img_epd/EPD_position_w250px.png" border="0" onclick="ga('send', 'event', 'banner', 'EPDjob');"/></a> + <a href="https://apply.refline.ch/499599/0076/pub/1/index.html" target="_blank"><img src="/img_epd/EPD_position_w250px.png" border="0"/></a> </p> </div> </div> --> -<div id="twitter"> - <a href="https://twitter.com/EPD_SIB" class="twitter-follow-button" data-show-count="false">Follow @EPD_SIB</a><script async src="//platform.twitter.com/widgets.js" charset="utf-8"></script> +<div id="mastodon"> + <a href="https://mstdn.science/@EPD" class="twitter-follow-button"><img src="/img_epd/Mastodon-Logo.png" alt="Mastodon logo" width="20" height="20" style="vertical-align:middle"> Follow @EPD</a> +</div> +<div id="xtwitter"> + <a href="https://twitter.com/EPD_SIB" class="twitter-follow-button"><img src="/img_epd/twitter_logo.png" alt="Twitter logo" width="20" height="20" style="vertical-align:middle"> Follow @EPD_SIB</a> </div> <div id='sib_header_medium'> @@ -570,7 +708,7 @@ <!-- <li class='epd_submenu'><a href="/epd/advance_search.php">Standard search</a></li> --> <li class='epd_submenu'><a href="/epd/EPDnew_select.php">Select / Download</a></li> <li class='epd_submenu'><a href="/epd/EPDnew_study.php">Promoter analysis tools</a></li> - <li class='epd_submenu'><a href="/ftp/epdnew/" onclick="ga('send', 'event', 'Outbound Link', 'ftp');" >FTP site</a></li> + <li class='epd_submenu'><a href="/ftp/epdnew/">FTP site</a></li> <!--<li class='epd_submenu'><a href="/epd/ucsclinks.php">UCSC Viewers</a></li>--> </ul> -- GitLab