diff --git a/assets/dbp-signature.html.ejs b/assets/dbp-signature.html.ejs index 8354bacb6f8bcf2c03ba3091d56ed62fe60205eb..fd36ba3b143e982caad48e7ec8e8d4e0e4ce9090 100644 --- a/assets/dbp-signature.html.ejs +++ b/assets/dbp-signature.html.ejs @@ -149,6 +149,59 @@ </dbp-translated> </div> </template> + <template id="dbp-signature-verification"> + <div slot="additional-information"> + <style> + .int-link-internal{ + transition: background-color 0.15s, color 0.15s; + border-bottom: 1px solid rgba(0,0,0,0.3); + } + + .int-link-internal:hover{ + background-color: black; + color: white; + } + + .int-link-internal:after{ + content: "\00a0\00a0\00a0"; + background-image: url('data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3Ardf%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2F02%2F22-rdf-syntax-ns%23%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20height%3D%228.6836mm%22%20width%3D%225.2043mm%22%20version%3D%221.1%22%20xmlns%3Acc%3D%22http%3A%2F%2Fcreativecommons.org%2Fns%23%22%20xmlns%3Adc%3D%22http%3A%2F%2Fpurl.org%2Fdc%2Felements%2F1.1%2F%22%20viewBox%3D%220%200%2018.440707%2030.768605%22%3E%3Cg%20transform%3D%22translate(-382.21%20-336.98)%22%3E%3Cpath%20style%3D%22stroke-linejoin%3Around%3Bstroke%3A%23000%3Bstroke-linecap%3Around%3Bstroke-miterlimit%3A10%3Bstroke-width%3A2%3Bfill%3Anone%22%20d%3D%22m383.22%20366.74%2016.43-14.38-16.43-14.37%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E'); + background-size: 73%; + background-repeat: no-repeat; + background-position: center center; + margin: 0 0 0 3px; + padding: 0 0 0.25% 0; + animation: 0.15s linkIconOut; + font-size: 103%; + } + + .int-link-internal:hover::after{ + content: "\00a0\00a0\00a0"; + background-image: url('data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3Ardf%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2F02%2F22-rdf-syntax-ns%23%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20height%3D%228.6836mm%22%20width%3D%225.2043mm%22%20version%3D%221.1%22%20xmlns%3Acc%3D%22http%3A%2F%2Fcreativecommons.org%2Fns%23%22%20xmlns%3Adc%3D%22http%3A%2F%2Fpurl.org%2Fdc%2Felements%2F1.1%2F%22%20viewBox%3D%220%200%2018.440707%2030.768605%22%3E%3Cg%20transform%3D%22translate(-382.21%20-336.98)%22%3E%3Cpath%20style%3D%22stroke-linejoin%3Around%3Bstroke%3A%23FFF%3Bstroke-linecap%3Around%3Bstroke-miterlimit%3A10%3Bstroke-width%3A2%3Bfill%3Anone%22%20d%3D%22m383.22%20366.74%2016.43-14.38-16.43-14.37%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E'); + background-size: 73%; + background-repeat: no-repeat; + background-position: center center; + margin: 0 0 0 3px; + padding: 0 0 0.25% 0; + animation: 0s linkIconIn; + font-size: 103%; + } + </style> + <dbp-translated subscribe="lang"> + <div slot="de"> + <a target="_blank" rel="noopener" class="int-link-internal" + href="https://security.tugraz.at/zertifikate/pruefung/adobe.shtml"> + Weitere Information zur Verifikation mit Adobe Reader + </a> + </div> + <div slot="en"> + <a target="_blank" rel="noopener" class="int-link-internal" + href="https://security.tugraz.at/zertifikate/pruefung/adobe.shtml"> + More information about verification with Adobe Reader + </a> + </div> + </dbp-translated> + </div> + </template> </template> <!-- Error handling for too old browsers --> diff --git a/src/base-element.js b/src/base-element.js index 01d03fb6e7c43d6e24ac9e2c6ad4e1816de45f02..3d81031af26fd55442d4492233918256af44ac7d 100644 --- a/src/base-element.js +++ b/src/base-element.js @@ -1,6 +1,6 @@ -import {AdapterLitElement} from "@dbp-toolkit/provider/src/adapter-lit-element"; +import DBPLitElement from "../vendor/toolkit/packages/common/dbp-lit-element"; -export class BaseLitElement extends AdapterLitElement { +export class BaseLitElement extends DBPLitElement { constructor() { super(); this.auth = {}; diff --git a/src/dbp-signature-verification.js b/src/dbp-signature-verification.js index fd1dbb27686cf22e2014004f1170420958ef3c68..7df7fadfa1c9e2e564f9e241bc5fdc44a8f4a771 100644 --- a/src/dbp-signature-verification.js +++ b/src/dbp-signature-verification.js @@ -117,7 +117,7 @@ class SignatureVerification extends ScopedElementsMixin(DBPSignatureLitElement) <p> ${i18n.t('signature-verification-extern.adobe-reader-text')} </p> - <a target="_blank" rel="noopener" class="int-link-internal" href="https://security.tugraz.at/zertifikate/pruefung/adobe.shtml">${i18n.t('signature-verification-extern.adobe-link-label')}</a> + <slot name="additional-information"></slot> `; } } diff --git a/src/dbp-signature-verification.metadata.json b/src/dbp-signature-verification.metadata.json index e5873eaf31bfdfa78b704a5d116fb30ba697c986..8a688b40d9c4a14668abefb3b545f4303938b856 100644 --- a/src/dbp-signature-verification.metadata.json +++ b/src/dbp-signature-verification.metadata.json @@ -14,5 +14,5 @@ "de": "Erlaubt das Verifizieren von signierten PDF-Dokumenten", "en": "Allows verification of signed PDF-documents" }, - "subscribe": "lang,entry-point-url,auth" + "subscribe": "lang,entry-point-url,auth,html-overrides" } diff --git a/src/i18n/de/translation.json b/src/i18n/de/translation.json index 5008e1536240f23424b14ded25f5d45312c1f45b..48be74fcfbbed230d6c4b2013ccc67ea84dc3cd1 100644 --- a/src/i18n/de/translation.json +++ b/src/i18n/de/translation.json @@ -104,8 +104,7 @@ "signature-verification-extern": { "description-text": "Um eine PDF-Signatur auf ihre Gültigkeit zu überprüfen, benutzen Sie bitte das Verifikationsservice der Rundfunk und Telekom Regulierungs-GmbH. Mit diesem Verifikationsservice können Sie überprüfen, ob das Dokument eine valide Signatur enthält.", "link-label": "Zum RTR Verifikationsservice wechseln", - "adobe-reader-text": "Des Weiteren besteht auch die Möglichkeit, das Dokument lokal mit dem Adobe Reader zu überprüfen.", - "adobe-link-label": "Weitere Information zur Verifikation mit Adobe Reader" + "adobe-reader-text": "Des Weiteren besteht auch die Möglichkeit, das Dokument lokal mit dem Adobe Reader zu überprüfen." }, "pdf-preview": { "first-page": "Erste Seite", diff --git a/src/i18n/en/translation.json b/src/i18n/en/translation.json index 0140f454ce99e8402cfd4f115aa1bad43e86d7c0..5e9227c067d67c09fcc9b9f4b8d1ca11e71e8bb7 100644 --- a/src/i18n/en/translation.json +++ b/src/i18n/en/translation.json @@ -104,8 +104,7 @@ "signature-verification-extern": { "description-text": "To check a PDF signature for validity, please use the verification service of the Rundfunk und Telekom Regulierungs-GmbH. This verification service allows you to check whether the document contains a valid signature.", "link-label": "Switch to the RTR verification service", - "adobe-reader-text": "Furthermore, it is also possible to verify the signature locally with the Adobe Reader.", - "adobe-link-label": "More information about verification with Adobe Reader" + "adobe-reader-text": "Furthermore, it is also possible to verify the signature locally with the Adobe Reader." }, "pdf-preview": { "first-page": "First page", diff --git a/vendor/toolkit b/vendor/toolkit index a780e8dc0e9bfa6a097e644823ca72a4ae1ed857..900ad15afe323e6082a144abc9ca4f0cb03494e0 160000 --- a/vendor/toolkit +++ b/vendor/toolkit @@ -1 +1 @@ -Subproject commit a780e8dc0e9bfa6a097e644823ca72a4ae1ed857 +Subproject commit 900ad15afe323e6082a144abc9ca4f0cb03494e0