|
26 | 26 | <div id="navbar-placeholder"></div>
|
27 | 27 |
|
28 | 28 | <script>
|
29 |
| - function copyToClipboard(element) { |
30 |
| - var $temp = $("<textarea>"); |
31 |
| - $("body").append($temp); |
32 |
| - var x = $(element).text().trim().replace(/<br>/g, '\n').replace(/<\/?[^>]+>/g, ''); |
33 |
| - $temp.val(x).select(); |
34 |
| - document.execCommand("copy"); |
35 |
| - $temp.remove(); |
36 |
| - } |
| 29 | + function copyToClipboard(elementId) { |
| 30 | + // Selection of the input element l'élément input |
| 31 | + let text = document.getElementById(elementId).innerText; |
| 32 | + |
| 33 | + // Copy le text in clipboard |
| 34 | + navigator.clipboard.writeText(text) |
| 35 | + .then(() => { |
| 36 | + let message = document.getElementById("confirmationMessage"); |
| 37 | + message.style.display = "block"; // Print message |
| 38 | + setTimeout(() => message.style.display = "none", 2000); // Caching after 2 sec |
| 39 | + }) |
| 40 | + .catch(err => console.error("Copy error :", err)); |
| 41 | + } |
37 | 42 | </script>
|
38 | 43 |
|
39 | 44 | <p id="bibtex-proc" style="display:none;">
|
|
65 | 70 | </p>
|
66 | 71 |
|
67 | 72 | <p id="bibtex-paper" style="display:none;">
|
68 |
| -@article{gammapy:2023, |
69 |
| - author = {{Donath}, Axel and {Terrier}, R\'egis and {Remy}, Quentin and {Sinha}, Atreyee and {Nigro}, Cosimo and |
70 |
| - {Pintore}, Fabio and {Kh\'elifi}, Bruno and {Olivera-Nieto}, Laura and {Ruiz}, Jose Enrique and |
71 |
| - {Br\"ugge}, Kai and {Linhoff}, Maximilian and {Contreras}, Jose Luis and {Acero}, Fabio and |
72 |
| - {Aguasca-Cabot}, Arnau and {Berge}, David and {Bhattacharjee}, Pooja and {Buchner}, Johannes and |
73 |
| - {Boisson}, Catherine and {Carreto Fidalgo}, David and {Chen}, Andrew and {de Bony de Lavergne}, Mathieu and |
74 |
| - {de Miranda Cardoso}, Jos\'e Vinicius and {Deil}, Christoph and {F\"u\ss{}ling}, Matthias and |
75 |
| - {Funk}, Stefan and {Giunti}, Luca and {Hinton}, Jim and {Jouvin}, L\'ea and {King}, Johannes and |
76 |
| - {Lefaucheur}, Julien and {Lemoine-Goumard}, Marianne and {Lenain}, Jean-Philippe and {L\'opez-Coto}, Rub\'en |
77 |
| - and {Mohrmann}, Lars and {Morcuende}, Daniel and {Panny}, Sebastian and {Regeard}, Maxime and {Saha}, Lab |
78 |
| - and {Siejkowski}, Hubert and {Siemiginowska}, Aneta and {Sip"ocz}, Brigitta M. and {Unbehaun}, Tim |
79 |
| - and {van Eldik}, Christopher and {Vuillaume}, Thomas and {Zanin}, Roberta}, |
80 |
| - title = {Gammapy: A Python package for gamma-ray astronomy}, |
81 |
| - DOI= "10.1051/0004-6361/202346488", |
82 |
| - url= "https://doi.org/10.1051/0004-6361/202346488", |
83 |
| - journal = {A&A}, |
84 |
| - year = 2023, |
85 |
| - volume = 678, |
86 |
| - pages = "A157", |
87 |
| -} |
88 |
| -</p> |
| 73 | + @article{gammapy:2023, |
| 74 | + author = {{Donath}, Axel and {Terrier}, R\'egis and {Remy}, Quentin and {Sinha}, Atreyee and {Nigro}, Cosimo and |
| 75 | + {Pintore}, Fabio and {Kh\'elifi}, Bruno and {Olivera-Nieto}, Laura and {Ruiz}, Jose Enrique and |
| 76 | + {Br\"ugge}, Kai and {Linhoff}, Maximilian and {Contreras}, Jose Luis and {Acero}, Fabio and |
| 77 | + {Aguasca-Cabot}, Arnau and {Berge}, David and {Bhattacharjee}, Pooja and {Buchner}, Johannes and |
| 78 | + {Boisson}, Catherine and {Carreto Fidalgo}, David and {Chen}, Andrew and {de Bony de Lavergne}, Mathieu and |
| 79 | + {de Miranda Cardoso}, Jos\'e Vinicius and {Deil}, Christoph and {F\"u\ss{}ling}, Matthias and |
| 80 | + {Funk}, Stefan and {Giunti}, Luca and {Hinton}, Jim and {Jouvin}, L\'ea and {King}, Johannes and |
| 81 | + {Lefaucheur}, Julien and {Lemoine-Goumard}, Marianne and {Lenain}, Jean-Philippe and {L\'opez-Coto}, Rub\'en |
| 82 | + and {Mohrmann}, Lars and {Morcuende}, Daniel and {Panny}, Sebastian and {Regeard}, Maxime and {Saha}, Lab |
| 83 | + and {Siejkowski}, Hubert and {Siemiginowska}, Aneta and {Sip"ocz}, Brigitta M. and {Unbehaun}, Tim |
| 84 | + and {van Eldik}, Christopher and {Vuillaume}, Thomas and {Zanin}, Roberta}, |
| 85 | + title = {Gammapy: A Python package for gamma-ray astronomy}, |
| 86 | + DOI= "10.1051/0004-6361/202346488", |
| 87 | + url= "https://doi.org/10.1051/0004-6361/202346488", |
| 88 | + journal = {A&A}, |
| 89 | + year = 2023, |
| 90 | + volume = 678, |
| 91 | + pages = "A157", |
| 92 | + } |
| 93 | + </p> |
89 | 94 |
|
90 | 95 | <p id="bibtex-zenodo-11" style="display:none;">
|
91 | 96 | @software{gammapy:zenodo-1.1,
|
@@ -221,16 +226,12 @@ <h2 id="publication"><a href="#pub">In publications</a></h2>
|
221 | 226 | <ul>
|
222 | 227 | <li><a href="https://www.aanda.org/component/article?access=doi&doi=10.1051/0004-6361/202346488">Gammapy paper in A&A</a>
|
223 | 228 | (as a general citation)
|
224 |
| - <button class="button-fancy" |
225 |
| - onclick="copyToClipboard('#bibtex-paper'); alert('A&A BibTeX copied!');"> |
226 |
| - <small>Copy BibTeX to clipboard</small> |
227 |
| - </button> |
| 229 | + <button class="button-fancy" onclick="copyToClipboard('bibtex-paper'); alert('A&A BibTeX copied!');"> |
| 230 | + <small>Copy BibTeX to clipboard</small></button> |
228 | 231 | </li>
|
229 |
| -<!-- <li><a href="https://arxiv.org/abs/1709.01751">Gammapy paper</a> |
230 |
| - (<a href="https://ui.adsabs.harvard.edu/abs/2017ICRC...35..766D/abstract">ADS</a>) (as a general citation)</li> --> |
231 | 232 | <li><a href="https://doi.org/10.5281/zenodo.4701488">Gammapy on Zenodo</a> (with the specific version used)
|
232 | 233 | - e.g. for the v1.3: <button class="button-fancy"
|
233 |
| - onclick="copyToClipboard('#bibtex-zenodo-13'); alert('Zenodo v1.3 BibTeX copied!');"> |
| 234 | + onclick="copyToClipboard('bibtex-zenodo-13'); alert('Zenodo v1.3 BibTeX copied!');"> |
234 | 235 | <small>Copy BibTeX to clipboard</small>
|
235 | 236 | </button>
|
236 | 237 | </li>
|
|
0 commit comments