Skip to content

Commit

Permalink
Deploy preview for PR 42 🛫
Browse files Browse the repository at this point in the history
  • Loading branch information
brauliorivas committed Jun 25, 2024
1 parent 4d4636f commit f543477
Show file tree
Hide file tree
Showing 11 changed files with 44 additions and 8 deletions.
Binary file not shown.
Binary file not shown.
Binary file not shown.
2 changes: 1 addition & 1 deletion pr-preview/pr-42/css/filter.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
min-width: 100px;
position: fixed;
flex-direction: column;
background-color: #f5f5f5;
background-color: #e1e1e1;
border-radius: 5px;
padding: 10px;
top: 10px;
Expand Down
2 changes: 1 addition & 1 deletion pr-preview/pr-42/css/toggle.css
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
left: 0;
right: 0;
bottom: 0;
background-color: #ccc;
background-color: #e1e1e1;
-webkit-transition: 0.4s;
transition: 0.4s;
}
Expand Down
Binary file added pr-preview/pr-42/img/braulio-email.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added pr-preview/pr-42/img/juraj-email.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added pr-preview/pr-42/img/thomas-email.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
29 changes: 23 additions & 6 deletions pr-preview/pr-42/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

<link rel="stylesheet" href="css/main.css">
<link rel="stylesheet" href="css/dmx-logo.css">
<link rel="stylesheet" href="css/dmx-logo.css">
<link rel="stylesheet" href="css/canvas.css">
<link rel="stylesheet" href="css/modal.css">
<link rel="stylesheet" href="css/toggle.css">
Expand All @@ -24,6 +25,7 @@

<p>Welcome to <span id="logo">
<span class="logo-d">d</span><span class="logo-m">m</span><span class="logo-x">X</span>
<span class="logo-d">d</span><span class="logo-m">m</span><span class="logo-x">X</span>
</span></p>

<div id="input-message">
Expand Down Expand Up @@ -95,32 +97,46 @@
<span class="logo-d">d</span><span class="logo-m">m</span><span class="logo-x">X</span>
<p>Welcome to dmX, an Event Data Explorer for EDM4hep. Learn more about dmX on the <a
href="https://github.com/key4hep/dmx/wiki" target="_blank" rel="noopener noreferrer">wiki</a>.
Want to learn more about EDM4hep? Check out the <a href="https://edm4hep.web.cern.ch" target="_blank"
rel="noopener noreferrer">EDM4hep</a> website.
</p>
<p>
Found a bug or have a feature request? Open a new <a href="https://github.com/key4hep/dmx/issues"
target="_blank" rel="noopener noreferrer">issue</a>.
</p>
<p>Contact:</p>
<ul>
<li class="contact-element">Juraj Smiesko:<address class="email"><a
href="mailto:[email protected]">[email protected]</a></address>
<li class="contact-element">Juraj Smiesko:
<address class="email">
<a href="mailto:[email protected]">
<img src="img/juraj-email.png" alt="juraj-email" height="21px" />
</a>
</address>
<button class="copy-email-button" data-email="[email protected]">
<abbr title="Copy to Clipboard">
<img src="img/copy.svg" alt="Copy" width="16" height="16" />
</abbr>
</button>

</li>
<li class="contact-element">Thomas Madlener:<address class="email"><a
href="mailto:[email protected]">[email protected]</a></address>
<li class="contact-element">Thomas Madlener:
<address class="email">
<a href="mailto:[email protected]">
<img src="img/thomas-email.png" alt="thomas-email" height="21px" />
</a>
</address>
<button class="copy-email-button" data-email="[email protected]">
<abbr title="Copy to Clipboard">
<img src="img/copy.svg" alt="Copy" width="16" height="16" />
</abbr>
</button>
</li>
<li class="contact-element">Braulio Rivas:<address class="email"><a
href="mailto:[email protected]">[email protected]</a></address>
<li class="contact-element">Braulio Rivas:
<address class="email">
<a href="mailto:[email protected]">
<img src="img/braulio-email.png" alt="braulio-email" height="21px" />
</a>
</address>
<button class="copy-email-button" data-email="[email protected]">
<abbr title="Copy to Clipboard">
<img src="img/copy.svg" alt="Copy" width="16" height="16" />
Expand All @@ -137,6 +153,7 @@
<script type="module" src="js/main.js"></script>
<script type="module" src="js/menu/filter/filter.js"></script>
<script type="module" src="js/information.js"></script>
<script type="module" src="js/information.js"></script>
</body>

</html>
13 changes: 13 additions & 0 deletions pr-preview/pr-42/js/information.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,16 @@ const hideModal = () => {

infoIcon.addEventListener("click", showModal);
closeIcon.addEventListener("click", hideModal);

window.addEventListener("click", (event) => {
const modal = document.getElementById("information-modal");

if (
event.target !== modal &&
!modal.contains(event.target) &&
event.target !== infoIcon &&
modal.style.display === "flex"
) {
hideModal();
}
});
6 changes: 6 additions & 0 deletions pr-preview/pr-42/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,12 @@ document
.getElementById("visualize-button")
.addEventListener("click", (event) => {
event.preventDefault();

if (jsonData.data === undefined) {
errorMsg("No data loaded!");
return;
}

const eventNum = document.getElementById("event-number").value;

hideInputModal();
Expand Down

0 comments on commit f543477

Please sign in to comment.