generated from Hochfrequenz/go-template-repository
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Steuerbare und Technische Ressource (#137)
* WIP Add Steuerbare and technische Ressource to generators * All ids version with seperate checksums and confetti, not tested * update readme with actual URLs * fix build errors * fix tests by renaming * fix docstring * fix links to newly created azure ressources somehow lower case g now * extend readme * fix: "go: cannot write multiple packages to non-directory api" go build -o api cmd go: cannot write multiple packages to non-directory api * wip * fix key words in all-ids page * delete all-ids for now (not ready yet) cherry picked to another branch: bed5be6 --------- Co-authored-by: konstantin <konstantin.klein@hochfrequenz.de> Co-authored-by: Konstantin <konstantin.klein+github@hochfrequenz.de>
- Loading branch information
1 parent
21b2373
commit 07d4f0f
Showing
6 changed files
with
177 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
<!DOCTYPE html> | ||
<html lang="de"> | ||
<head> | ||
<meta charset="utf-8"> | ||
<title>Steuerbare Ressource Id-Generator (zufällige SR-IDs)</title> | ||
<meta name="author" content="Hochfrequenz Unternehmensberatung GmbH"> | ||
<meta name="description" content="Zufällig generierte SR-IDs mit gültiger Prüfziffer"> | ||
<meta name="keywords" content="SR, SR-ID, Steuerbare Ressource, Test, Test-SR-ID, Steuerbare Ressourcen-ID (SR-ID)"> | ||
<meta http-equiv="cache-control" content="no-cache"/> | ||
<!-- prevent safari from formatting numbers with good intentions: https://stackoverflow.com/a/30426346/10009545 --> | ||
<meta name="format-detection" content="telephone=no"/> | ||
<link rel="stylesheet" href="/style"> | ||
<link rel="icon" type="image/x-icon" href="/favicon"> | ||
<script> | ||
function copyToClipboard() { | ||
var textToCopy = document.querySelector('#content h1').textContent.trim(); | ||
navigator.clipboard.writeText(textToCopy) | ||
.then(function () { | ||
// alert('Text copied to clipboard: ' + textToCopy); // thanks, chatgpt, we don't need the alert ;) | ||
}) | ||
.catch(function (err) { | ||
console.error('Error copying text to clipboard: ', err); | ||
}); | ||
} | ||
</script> | ||
</head> | ||
<body class="whiteBackground"> | ||
{{ .recruitingMessage }}<!-- We pass the HTML comment / recruiting ad as a parameter because the HTML comment was stripped from the template --> | ||
<div id="content"> | ||
<h1 class="{{ .issuer }}" title="Eine zufällige Steuerbare Ressourcen-ID mit gültiger Prüfziffer"><div>{{ | ||
.srIdWithoutChecksum }}<span class="checksum" title="Prüfziffer {{ .checksum }}">{{ .checksum }}</span></div> | ||
</h1> | ||
<button onclick="copyToClipboard()">📋 Copy</button> | ||
</div> | ||
<br style="clear:both" /> | ||
<div id="footer">powered by <a href="https://hochfrequenz.de/">hochfrequenz</a> | <a href="https://www.hochfrequenz.de/impressum/">Impressum</a> | <a href="https://github.com/Hochfrequenz/malo-id-generator">GitHub</a></div> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
<!DOCTYPE html> | ||
<html lang="de"> | ||
<head> | ||
<meta charset="utf-8"> | ||
<title>Technische Ressource Id-Generator (zufällige TR-IDs)</title> | ||
<meta name="author" content="Hochfrequenz Unternehmensberatung GmbH"> | ||
<meta name="description" content="Zufällig generierte TR-IDs mit gültiger Prüfziffer"> | ||
<meta name="keywords" content="TR, TR-ID, Technische Ressource, Test, Test-TR-ID, Technische Ressourcen-ID (TR-ID)"> | ||
<meta http-equiv="cache-control" content="no-cache"/> | ||
<!-- prevent safari from formatting numbers with good intentions: https://stackoverflow.com/a/30426346/10009545 --> | ||
<meta name="format-detection" content="telephone=no"/> | ||
<link rel="stylesheet" href="/style"> | ||
<link rel="icon" type="image/x-icon" href="/favicon"> | ||
<script> | ||
function copyToClipboard() { | ||
var textToCopy = document.querySelector('#content h1').textContent.trim(); | ||
navigator.clipboard.writeText(textToCopy) | ||
.then(function () { | ||
// alert('Text copied to clipboard: ' + textToCopy); // thanks, chatgpt, we don't need the alert ;) | ||
}) | ||
.catch(function (err) { | ||
console.error('Error copying text to clipboard: ', err); | ||
}); | ||
} | ||
</script> | ||
</head> | ||
<body class="whiteBackground"> | ||
{{ .recruitingMessage }}<!-- We pass the HTML comment / recruiting ad as a parameter because the HTML comment was stripped from the template --> | ||
<div id="content"> | ||
<h1 class="{{ .issuer }}" title="Eine zufällige Technische Ressourcen-ID mit gültiger Prüfziffer"><div>{{ | ||
.trIdWithoutChecksum }}<span class="checksum" title="Prüfziffer {{ .checksum }}">{{ .checksum }}</span></div> | ||
</h1> | ||
<button onclick="copyToClipboard()">📋 Copy</button> | ||
</div> | ||
<br style="clear:both" /> | ||
<div id="footer">powered by <a href="https://hochfrequenz.de/">hochfrequenz</a> | <a href="https://www.hochfrequenz.de/impressum/">Impressum</a> | <a href="https://github.com/Hochfrequenz/malo-id-generator">GitHub</a></div> | ||
</body> | ||
</html> |