Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter Bulletta

    (@bulletta)

    Hi Richard,
    here we are again.

    We have made some changes to the code (HTML and CSS) and now we are closer to a solution, we just need a look to current solution to understand what we are missing, in particular:
    – “details” button (“Impostazioni” in italian) does not toggle on/off the div with details (div#CybotCookiebotDialogDetail)
    – the CSS style of div#CybotCookiebotDialog does not follow the window resolution

    At the end: are there some functions to perform these operations or should we write our owns?

    Thank you, kind regards,
    Gianfranco

    Thread Starter Bulletta

    (@bulletta)

    Hi Richard,
    thank you for the answer.

    We noticed the help button “?” and we read all the information in that window and in the developer documentation page, but it does not solve our problem.

    In the HTML box of custom cookie bar we wrote:

    <div id="cookiebanner" lang="[#LANGUAGE#]" dir="[#TEXTDIRECTION#]" ng-non-bindable>
      <div id="c-left">
        <p class="c-header">[#TITLE#]</p>
        <p class="c-message">[#TEXT#]</p>
      </div>
      <div id="c-right">
        <a href="javascript:void(0)" onclick="Cookiebot.dialog.submitConsent()" class="c-button">Acconsento</a>
        <a href="javascript:void(0)">[#DETAILS#]</a>
      </div>
      <div style="clear:both"></div>
    </div>

    and in the javascript function box we have:

    var cookieBannerSliderPos = 0;
    
    function showCookieBanner() {
        var cookiebanner = document.getElementById("cookiebanner");
        var dialogHeight = parseInt(cookiebanner.offsetHeight);
        cookiebanner.style.bottom = (cookieBannerSliderPos - dialogHeight) + "px";
        cookieBannerSliderPos += 4;
        if (cookieBannerSliderPos < dialogHeight) {
            setTimeout(function () {
                showCookieBanner();
            }, 1);
        } else {
            cookieBannerSliderPos = 0;
            cookiebanner.style.bottom = "0px";
        }
    }
    
    function hideCookieBanner() {
        var cookiebanner = document.getElementById("cookiebanner");
        cookiebanner.style.display = "none";
    }
    
    window.addEventListener('CookiebotOnDialogInit', function (e) {
      CookiebotDialog.multiAcceptText = "Acconsento a tutti";
    }, false);

    As you can note seeing the site page staging.beperfectlifestyle.com, by clicking the button “Impostazioni” (=”Details” toggle) we do not obtain any results, and we do not understand how this piece of code, in particular the metasyntactic html variable [#DETAILS#], can give us all the requested data (the table with list of cookie and the javascript code to show/hide that table).

    Hope this help you to better understand the issue.

    Thank you.
    Kind regards,
    Gianfranco

    Thread Starter Bulletta

    (@bulletta)

    Hi Hari,
    thank you for your answer.

    The “Purchase transactions” was checked, so I agree with you, it depends on the limitations of the plug-in.

    I’ll check the extension you reported.

    Kind regards,
    Gianfranco

    Thread Starter Bulletta

    (@bulletta)

    Please see here what I mean:

    http://marioartiolitavani.it/myportfolio/sculture-installazioni/

    The text I want to center is the description, in this case “Frammenti, 2013, metallo scolpito” below the picture.

    Thanx

    Thread Starter Bulletta

    (@bulletta)

    Done Cais, thank you.

Viewing 5 replies - 1 through 5 (of 5 total)