<section class="fullwidth p-5 md:py-20 bg-mist-green text-racing-green">
    <article class="max-w-2xl mx-auto">

        <h1 class="text-center">Lorem ipsum dolor sit amet</h1>
        <p class="text-center">Lorem ipsum dolor sit amet</p>

        <section class="fullwidth p-5 md:py-20 bg-mist-green text-racing-green" id="signup">
            <article class="max-w-2xl mx-auto">

                <h1 class="text-center">Sign Up Now</h1>
                <p class="text-center">
                    Join us for two days of deep dives into video marketing, video production, the video organisation, video gear, formats, video studios, video ROI, video data, video analytics, storytelling in video, webinars, website video and social video.
                    <br>
                    Just 99EUR or enter voucher code below.
                </p>

                <!--[if lte IE 8]>
  <script charset="utf-8" type="text/javascript" src="//js.hsforms.net/forms/v2-legacy.js"></script>
<![endif]-->
                <script charset="utf-8" type="text/javascript" src="//js.hsforms.net/forms/v2.js"></script>
                <script>
                    var voucherInput = null;

                    function validateVoucher(voucher) {
                        let vouchersraw = [
                            "VD21Siemens",
                            "VD21WHO",
                            "VD21Nordea",
                            "VD21Unilever",
                            "VD21EsteeLauder",
                            "VD21KPMG",
                            "VD21Facebook",
                            "VD21GEA",
                            "VD21Partner",
                            "VD21Ann",
                            "VD21Matt",
                            "VD21Steve",
                            "VD21Ashley",
                            "VD21Puk",
                            "VD21Eric",
                            "VD21David",
                            "VD21Ekaterina",
                            "EverythingVideo",
                            "TwentyThreeFriends",
                            "VD2021",
                            "TwentyThree",
                            "VDay-23109WDD",
                            "NCP-23109VDay",
                            "FriendsOfWD",
                            "VideoLove2021",
                            "VideoDaysLove",
                            "FriendsOfAmelia",
                            "FriendsOfAna",
                            "FriendsOfAnton",
                            "FriendsOfAntonia",
                            "FriendsOfAsger",
                            "FriendsOfAske",
                            "FriendsOfAudur",
                            "FriendsOfAugust",
                            "FriendsOfCasperFrid",
                            "FriendsOfCasperPedersen",
                            "FriendsOfChristian",
                            "FriendsOfChristoffer",
                            "FriendsOfClaus",
                            "FriendsOfDaniel",
                            "FriendsOfElise",
                            "FriendsOfEmilie",
                            "FriendsOfGabriela",
                            "FriendsOfHamodi",
                            "FriendsOfHrefna",
                            "FriendsOfInes",
                            "FriendsOfJakob",
                            "FriendsOfJeremy",
                            "FriendsOfJohanna",
                            "FriendsOfJulius",
                            "FriendsOfKasperKronborg",
                            "FriendsOfKasperThuesen",
                            "FriendsOfKathryn",
                            "FriendsOfLaura",
                            "FriendsOfMagnus",
                            "FriendsOfMartinKracht",
                            "FriendsOfMichael",
                            "FriendsOfNada",
                            "FriendsOfNatalia",
                            "FriendsOfNiek",
                            "FriendsOfNiels",
                            "FriendsOfNoah",
                            "FriendsOfPavel",
                            "FriendsOfPeder",
                            "FriendsOfPeter",
                            "FriendsOfRasmus",
                            "FriendsOfRikke",
                            "FriendsOfSoujanya",
                            "FriendsOfSteffen",
                            "FriendsOfTeodora",
                            "FriendsOfThomas",
                            "FriendsOfUgne",
                            "FriendsOfVeselin",
                            "FriendsOfViorica",
                            "FriendsOfWill",
                            "FriendsOfYasmin"
                        ];
                        var vouchersclean = vouchersraw.map(item => item.toLowerCase());
                        let result = vouchersclean.includes(voucher.toLowerCase());
                        //
                        return result;
                    }
                    hbspt.forms.create({
                        region: "na1",
                        portalId: "3076550",
                        formId: "da8388a3-163d-4777-9adc-cee67c347d72",
                        cssRequired: '',
                        cssClass: 'hubspot',
                        onFormReady: function($form) {
                            voucherInput = $form.find('input[name=videodays_2021__used_voucher_code]');
                            voucherInput.keyup(function() {
                                voucherInput.css({
                                    color: (voucherInput.val().length == 0 || validateVoucher(voucherInput.val()) ? '' : 'red')
                                });
                            });
                        },
                        onFormSubmit: function($form) {
                            if (!validateVoucher(voucherInput.val())) {
                                voucherInput.val('');
                            }
                        }
                    })
                </script>

            </article>
        </section>

    </article>
</section>
<section class="fullwidth p-5 md:py-20 bg-mist-green text-racing-green">
  <article class="max-w-2xl mx-auto">

    <h1 class="text-center">{{ title }}</h1>
    <p class="text-center">{{ title }}</p>

    {# {% render '@collector' %} #}


    {% render '@hubspot' %}
  </article>
</section>
{
  "title": "Lorem ipsum dolor sit amet",
  "titlelong": "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor",
  "text": "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.",
  "date": "2. januar 2018",
  "data-small": "05/08/2019",
  "user": "Steve Jobs",
  "email": "steve@apple.com",
  "url": "https://thememachine.io",
  "streetaddress": "RÃ¥dhuspladsen 1",
  "zip": 1321,
  "city": "kbh",
  "phone": "+45 12 13 14 15",
  "labeltext": "Label",
  "linktext": "Click !",
  "items": [
    {
      "item": null,
      "title": "This is a title for an item",
      "url": "https://test.dk",
      "text": "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod"
    },
    {
      "item": null,
      "title": "This is sanother title for another item",
      "url": "https://test.dk",
      "text": "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod"
    },
    {
      "item": null,
      "title": "This is a third title",
      "url": "https://test.dk",
      "text": "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod"
    }
  ]
}

No notes defined.