Skip to content

Commit 74bcc7e

Browse files
committed
added Help button to start page
1 parent a20d2ea commit 74bcc7e

4 files changed

Lines changed: 14 additions & 11 deletions

File tree

dist/assets/locales/de.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
"title": "Über uns",
3939
"description": "Die Masterclasses sind eintägige Workshops entwickelt vom Netzwerk Teilchenwelt für Schülerinnen und Schüler, um Ihnen einen Überblick in die Welt der Teilchenphysik, Datenanalyse zu geben, sowie erste Einblicke von der Forschung zu ermöglichen. Diese Software basiert auf dem Event-Display-Programm des CMS-Experiments am CERN. Sie wird in den Masterclasses verwendet, um Detektoraufnahmen von Proton-Proton-Kollisionen zu visualisieren. Ziel der Masterclass am Ende ist eine Massenbestimmung des Z- und Higgs-Bosons.",
4040
"sponsors": "Dieses Event-Display sowie die Masterclasses in Hamburg wurden durch folgende Institutionen ermöglicht:",
41-
"github": "Der Quellcode ist auf GitHub verfügbar: ",
41+
"github": "Der Quellcode ist auf GitHub verfügbar:",
4242
"origin": "Diese Software ist eine an Schüler und Schülerinnen angepasste Version des iSpy WebGL Event Displays für das CMS Experiment am CERN. Entwickelt wurde die Originalversion von F. Ali, L. Barnard, M. Hategan, S. Lee, C. Logrén, T. McCauley, P. Nguyen und M. Saunby.",
4343
"studyTitle": "Physikstudium an der Universität Hamburg",
4444
"studyText": "Interessierst du dich für ein Physikstudium? Warum nicht an der Universität Hamburg? 5 verschiedene Vertiefungsbereiche, große Vielfalt an Forschungsthemen, sowie das DESY-Forschungscampus in unmittelbarer Nähe. Hier findest du weitere Informationen dazu.",
@@ -54,7 +54,8 @@
5454
"links": "Nützliche Links und Physikangebote:",
5555
"start": "Event-Display starten",
5656
"impressum": "Impressum",
57-
"contentresponsible": "Kontakt"
57+
"contentresponsible": "Kontakt",
58+
"help": "Hilfe und Anleitung kannst du über diesen Button oder oben rechts aufrufen:"
5859
},
5960
"help": {
6061
"title": "Hilfe",
@@ -134,4 +135,4 @@
134135
"nSelected": "Gesamtzahl der Ereignisse, die die Auswahl in den geladenen Datei erfüllen.",
135136
"firstSelected": "Indizes der ersten 5 Ereignisse, die die Auswahl erfüllen"
136137
}
137-
}
138+
}

dist/assets/locales/en.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
"title": "About us",
3939
"description": "The masterclasses are one-day workshops developed by the Netzwerk Teilchenwelt for students, providing an overview of particle physics and data analysis, as well as initial insights into research. This software is based on the event display program of the CMS experiment at CERN. It is used in the masterclasses to visualize detector recordings of proton-proton collisions. The goal of the masterclass is to determine the mass of the Z and Higgs bosons.",
4040
"sponsors": "This Event-Display as well as the Masterclasses in Hamburg are made possible by the following institutions:",
41-
"github": "The source code is available on GitHub: ",
41+
"github": "The source code is available on GitHub:",
4242
"origin": "This software is a version of the iSpy WebGL event display for the CMS experiment at CERN, adapted for students. The original version was developed by F. Ali, L. Barnard, M. Hategan, S. Lee, C. Logrén, T. McCauley, P. Nguyen, and M. Saunby.",
4343
"studyTitle": "Study physics at the University of Hamburg",
4444
"studyText": "Are you interested in studying physics? Why not at the University of Hamburg? 5 different specialization fields, a wide variety of research topics, and the DESY research campus in close proximity. Here you can find more information about it.",
@@ -54,7 +54,8 @@
5454
"links": "Useful links and physics offers:",
5555
"start": "Start Event Display",
5656
"impressum": "Legal Notice",
57-
"contentresponsible": "Contact"
57+
"contentresponsible": "Contact",
58+
"help": "Help and instructions can be accessed via this button or at the top right:"
5859
},
5960
"help": {
6061
"title": "Help",
@@ -134,4 +135,4 @@
134135
"nSelected": "Total Number of events passing the selection within the loaded file.",
135136
"firstSelected": "Indices of the first 5 events passing the selection"
136137
}
137-
}
138+
}

index.html

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
<header class="bg-primary" id="js-titlebar"><span id="application-name">Masterclass @ Hamburg</span><span id="js-event-loaded" class="header-event"></span>
2525
<div class="btn-toolbar header-nav">
2626
<div class="btn-group btn-group-sm" id="tutorial-view" role="group">
27-
<a class="btn btn-info active" role="button" id="js-about-btn"><i class="fas fa-info-circle"></i></a><button class="btn btn-primary" id="js-event-display" type="button"><i class="fas fa-cubes"></i></button><a class="btn btn-info" role="button" id="js-help-btn"><i class="fas fa-question-circle"></i></a>
27+
<a class="btn btn-info active" role="button" id="js-about-btn"><i class="fas fa-info-circle"></i></a><button class="btn btn-primary" id="js-event-display" type="button"><i class="fas fa-cubes"></i></button><a class="btn btn-info js-btn-help" role="button" id="js-help-btn"><i class="fas fa-question-circle"></i></a>
2828
</div>
2929
<div class="btn-group btn-group-sm" id="tutorial-display" role="group">
3030
<button class="btn btn-primary display-mode" id="js-display-mode" type="button" title="Toggle Light/Dark Mode"><i class="fas fa-sun"></i><i class="fas fa-moon"></i></button>
@@ -93,9 +93,10 @@ <h1 class="text-info">Masterclasses @ Hamburg</h1>
9393
<h2 data-i18n="about.title"></h2>
9494
<p data-i18n="about.description"></p>
9595
<div id="js-start-event" class="start-btn">
96-
<p data-i18n="about.start"></p>
96+
<p data-i18n="about.start"></p>
9797
</div>
98-
<p><span data-i18n="about.github"></span><a class="btn btn-primary" role="button" href="https://github.com/uhh-cms-tutorials/masterclasses" target="_blank" rel="noopener noreferrer"><i class="fab fa-github"></i>&nbsp;uhh-cms-tutorials/masterclasses</a></p>
98+
<p><span data-i18n="about.help"></span>&nbsp;<a class="btn btn-info js-btn-help" role="button"><i class="fas fa-question-circle"></i></a></p>
99+
<p><span data-i18n="about.github"></span>&nbsp;<a class="btn btn-primary" role="button" href="https://github.com/uhh-cms-tutorials/masterclasses" target="_blank" rel="noopener noreferrer"><i class="fab fa-github"></i>&nbsp;uhh-cms-tutorials/masterclasses</a></p>
99100
<p><span data-i18n="about.sponsors"></span><br><a href="https://www.uni-hamburg.de/" target="_blank" rel="noopener noreferrer"><img src="assets/img/up-uhh-logo-u-2010-u-png.png" loading="lazy" alt="UHH Logo" height="70px" id="uhh-light" title="Universität Hamburg" data-bs-toggle="tooltip"><img src="assets/img/uhh-logo-2010-farbnegativ-rgb.png" loading="lazy" alt="UHH Logo" height="70px" id="uhh-dark" title="Universität Hamburg" data-bs-toggle="tooltip"></a><a href="https://www.desy.de/" target="_blank" rel="noopener noreferrer"><img src="https://pr.desy.de/common/desy_logo_3c_web.svg" loading="lazy" title="Deutsches Elektronen-Synchrotron, Standort Hamburg" alt="DESY Logo" height="70" data-bs-toggle="tooltip"></a><br><span class="img-remark">Logos: (<span data-i18n="about.left"></span>) &copy; UHH (<span data-i18n="about.right"></span>) &copy; DESY</span></p>
100101

101102
</div>

ts/controls.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -498,7 +498,7 @@ export function setupControls() {
498498
const jsCsvWp = getHTMLObject("js-csv-wp");
499499
const jsCsvWm = getHTMLObject("js-csv-wm");
500500
const jsAboutBtn = getHTMLObject("js-about-btn");
501-
const jsHelpBtn = getHTMLObject("js-help-btn");
501+
const jsHelpBtns = document.querySelectorAll<HTMLButtonElement>(".js-btn-help");
502502
const jsDisplayBtn = getHTMLObject("js-event-display");
503503
const jsLangEN = getHTMLObject<HTMLSelectElement>("js-lang-en");
504504
const jsLangDE = getHTMLObject<HTMLSelectElement>("js-lang-de");
@@ -524,7 +524,7 @@ export function setupControls() {
524524
// connect functions to the buttons
525525
jsStartBtn.addEventListener("click", () => switchMain("display"));
526526
jsAboutBtn.addEventListener("click", () => switchMain("about"));
527-
jsHelpBtn.addEventListener("click", () => switchMain("help"));
527+
jsHelpBtns.forEach(btn => btn.addEventListener("click", () => switchMain("help")));
528528
jsDisplayBtn.addEventListener("click", () => switchMain("display"));
529529

530530
jsLangEN.addEventListener("click", () => setLanguage("en"));

0 commit comments

Comments
 (0)