Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #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&#8221;,
    “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&gt;
    <noscript>Bitte aktivieren Sie JavaScript und laden die Seite neu.</noscript>

    #1348329

    Hey 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,
    Mike

    #1348330

    Thank 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:”

    #1348331

    can I possibly not use this code in a code box?
    Unfortunately, I don’t know much about widgets.

    #1348333

    It works now! I’ve dealt with the widgets now

    #1348354

    Hi,
    Glad to hear, what was the correct code, or how did you correct it?

    Best regards,
    Mike

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.