Replies: 2 comments
-
Dear Urs,
Thanks for your generous instructions on integrating the health effects
figure. The 2nd option would be our choice. Of course, we will mention
LUDOK/SwissTPH as a source. When we launch our health page, we will send
you the link.
Also, our reviewers are working on the Mongolian translations. Once they
are done, I'll create a pull request with a new branch.
Thanks again for your cooperation.
Best Regards,
Nara
…On Sat, Aug 3, 2024 at 1:18 AM Urs Joss ***@***.***> wrote:
Dear @Nara1469 <https://github.com/Nara1469>
I'm taking your question
<#44 (comment)>
from the already closed PR into this discussion, as it may be of more
general interest.
Overview
In order to show the health effects figure in your own site, you have two
options:
1. Self-host the website somewhere in your network and integrate it
into your i-frame directly
2. Link your i-frame to the site already running at Swiss-TPH
The first option has the advantage that you can modify the sources to fit
your exact needs. E.g. if you only want to show the links for the Mongolian
and English localizations, you can modify the source code accordingly to
not show the links to the remaining languages. Also, you are in full
control of when your instance is available and when it is not. If you
modify it, you'll have to take care of integrating changes coming from this
repo, should you want to do it. Using git, this is not so difficult though,
if you implement your modifications in a branch of your fork and still pull
from upstream (i.e. this repo).
The second option has the advantage that you don't need to install your
own infrastructure. The disadvantage may be that you cannot customize it
(i.e. all languages will be available). Also, if our server reboots, you
will not see the diagram in your iframe. On the upsides, any updates to the
SwissTPH instance will be immediately visible in your site as well.
Integrating the SwissTPH instance
This was implemented e.g. here:
https://www.lunge-zuerich.ch/lunge-luft/luft/aussenluft/interaktive-grafik
In order to default to Mongolian, the src could pooint to
https://health-effects.swisstph.ch/index.html?a_lang=mn.
Hence the code to add the i-frame into your site could be something like
this:
<p><iframe class="info-graphik-iframe" frameborder="0" height="1400" id="serviceFrameSend" src="https://health-effects.swisstph.ch/index.html?a_lang=mn" width="1100"></iframe></p>
image.png (view on web)
<https://github.com/user-attachments/assets/0df3bafc-781e-481f-8b66-7e3b4f8343cc>
In any case, please mention LUDOK/SwissTPH as source (see imprint in the
figure itself).
—
Reply to this email directly, view it on GitHub
<#48>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AWSYEDV7QWDKH3VJD6TA6ADZPR75DAVCNFSM6AAAAABL5VXLYKVHI2DSMVQWIX3LMV43ERDJONRXK43TNFXW4OZXGAYDQNBRGQ>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
0 replies
-
Dear Nara Sounds great. Thanks a lot |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Dear @Nara1469
I'm taking your question from the already closed PR into this discussion, as it may be of more general interest.
Overview
In order to show the health effects figure in your own site, you have two options:
The first option has the advantage that you can modify the sources to fit your exact needs. E.g. if you only want to show the links for the Mongolian and English localizations, you can modify the source code accordingly to not show the links to the remaining languages. Also, you are in full control of when your instance is available and when it is not. If you modify it, you'll have to take care of integrating changes coming from this repo, should you want to do it. Using git, this is not so difficult though, if you implement your modifications in a branch of your fork and still pull from upstream (i.e. this repo).
The second option has the advantage that you don't need to install your own infrastructure. The disadvantage may be that you cannot customize it (i.e. all languages will be available). Also, if our server reboots, you will not see the diagram in your iframe. On the upsides, any updates to the SwissTPH instance will be immediately visible in your site as well.
Integrating the SwissTPH instance
This was implemented e.g. here: https://www.lunge-zuerich.ch/lunge-luft/luft/aussenluft/interaktive-grafik
In order to default to Mongolian, the src could point to https://health-effects.swisstph.ch/index.html?a_lang=mn.
Hence the code to add the i-frame into your site could be something like this:
In any case, please mention LUDOK/SwissTPH as source (see imprint in the figure itself).
Beta Was this translation helpful? Give feedback.
All reactions