Commit 1d5f1c9d authored by Jan Köster's avatar Jan Köster Committed by Jan Koester
Browse files

pagespeed

parent 3c39e9c8
Loading
Loading
Loading
Loading
+3 −0
Changes for editor/widgets/slider/slider.cpp: 3 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -490,10 +490,13 @@ extern "C" {

                    for (int i = 0; i < slideCount; i++) {
                        libhtmlpp::HtmlElement dot("button");
                        dot.setAttribute("type", "button");
                        dot.setAttribute("style",
                            "width: 12px; height: 12px; border-radius: 50%;"
                            " border: 2px solid white; background: rgba(255,255,255,0.4);"
                            " cursor: pointer; padding: 0;");
                        dot.setAttribute("aria-label",
                            (std::string("Slide ") + std::to_string(i + 1) + " von " + std::to_string(slideCount)).c_str());
                        dot.setAttribute("onclick",
                            (std::string("(function(){var s=document.getElementById('") + sliderId +
                             "');s._blogiSlider&&s._blogiSlider.goTo(" + std::to_string(i) + ")})()").c_str());