
-
AuthorPosts
-
April 13, 2022 at 3:07 pm #1348252
Hallo,
ich habe den Code von openPetition in ein Code-Block Element eingefügt, es wird aber leier nichts angezeigt.
Was mache ich hier falsch ?<script>
var OPWIDGET = {
“base_url”: “https://www.openpetition.de”,
“api_key”: “3864e7409744603ac4147f7756deac6fcdee2be45a4c7d2deb6efa43591168f7”,
“options”: {
“primarycolor”: “#e07d28”, // andere Farben: https://www.w3schools.com/colors/colors_picker.asp
“secondarycolor”: “#6c6c6c”,
“backgroundcolor”: “#ffffff”,
“mainfontsize”: “12px”,
“language”: “de_DE.utf8″
}
};
</script>
<script src=”https://www.openpetition.de/javascript/widget.js”></script>
<noscript>Bitte aktivieren Sie JavaScript und laden die Seite neu.</noscript>April 14, 2022 at 12:33 am #1348329Hey rkshorty,
Thanks for the code but in my test I get the error OPWIDGET is not defined I tried to research on the openpetition.de site but couldn’t find a code example, are you sure this code is correct?<script src="https://www.openpetition.de/javascript/widget.js"></script> <noscript>Bitte aktivieren Sie JavaScript und laden die Seite neu.</noscript> <script> var OPWIDGET = { "base_url": "https://www.openpetition.de", "api_key": "3864e7409744603ac4147f7756deac6fcdee2be45a4c7d2deb6efa43591168f7", "options": { "primarycolor": "#e07d28", "secondarycolor": "#6c6c6c", "backgroundcolor": "#ffffff", "mainfontsize": "12px", "language": "de_DE.utf8" } }; </script>
Best regards,
MikeApril 14, 2022 at 12:41 am #1348330Thank you for your prompt reply. Yes the code is generated there.
“Embed a widget on your own website
The widget is called from the URL https://www.kiesgrube.pro-waghaeusel.de.
Your displayed name/organization: proWaghäusel
The widget code to embed is:”
April 14, 2022 at 12:43 am #1348331can I possibly not use this code in a code box?
Unfortunately, I don’t know much about widgets.April 14, 2022 at 1:03 am #1348333It works now! I’ve dealt with the widgets now
April 14, 2022 at 12:02 pm #1348354 -
AuthorPosts
- You must be logged in to reply to this topic.