Skip to content

Commit 1f98123

Browse files
authored
Merge pull request #1 from uhh-cms-tutorials/help_text
Help text
2 parents 3ee9d3c + 6dc6154 commit 1f98123

7 files changed

Lines changed: 21 additions & 18 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ Then, follow these commands:
2222
```bash
2323
# Clone the repository using git clone.
2424
# (Adjust the URL if you're using a fork)
25-
$ git clone git@github.com:haddadanas/Masterclass_UHH.git masterclass
26-
$ cd masterclass/
25+
$ git clone git@github.com:uhh-cms-tutorials/masterclasses.git
26+
$ cd masterclasses/
2727

2828
# Installing Dependencies
2929
$ npm update

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>

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "masterclass-hamburg",
33
"type": "module",
4-
"version": "v3.1.1-HH",
4+
"version": "v3.1.2-HH",
55
"description": "A browser-based event display for the CMS experiment at the LHC, adjusted for the Masterclass in Hamburg.",
66
"scripts": {
77
"build": "tsc -p tsconfig.json && webpack --config webpack.config.js --mode production",
@@ -13,15 +13,15 @@
1313
},
1414
"repository": {
1515
"type": "git",
16-
"url": "git+https://github.com/haddadanas/Masterclass_UHH.git"
16+
"url": "git+https://github.com/uhh-cms-tutorials/masterclasses"
1717
},
1818
"author": "anas.haddad@uni-hamburg.de",
1919
"private": true,
2020
"license": "SEE LICENSE IN LICENSE",
2121
"bugs": {
22-
"url": "https://github.com/haddadanas/Masterclass_UHH/issues"
22+
"url": "https://github.com/uhh-cms-tutorials/masterclasses/issues"
2323
},
24-
"homepage": "https://github.com/haddadanas/Masterclass_UHH#readme",
24+
"homepage": "https://github.com/uhh-cms-tutorials/masterclasses/#readme",
2525
"devDependencies": {
2626
"@types/bootstrap": "ts5.8",
2727
"@types/jquery": "^3.5.32",

ts/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export {
4444

4545
export const ispy: Ispy = {
4646
// Metadata and versioning
47-
version: "v3.1.1-HH",
47+
version: "v3.1.2-HH",
4848
lang: "en",
4949
event_list: [],
5050
ig_data: null,

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)