M.....a
M.....a
‹blockquote class="text-post-media" data-text-post-permalink="https://www.threads.net/@piotrksiazczak10/post/C262qJofqk" data-text-post-version="0" id="ig-tp-C262qJofqk" style=" background:#fff; border-width: 1px; border-style: solid; border-color: #00000026; border-radius: 16px; max-width:540px; margin: 1px; min-width:270px; padding:0; width:99.375%; width:-webkit-calc(100% - 2px); width:calc(100% - 2px);"> ‹a href="https://www.threads.net/@piotrksiazczak10/post/C262qJofqk" style=" background:#ffffff; line-height:0; padding:0 0; text-align:center; text-decoration:none; width:100%; font-family: -apple-system, BlinkMacSystemFont, sans-serif;" target="blank"> ‹div style=" padding: 40px; display: flex; flex-direction: column; align-items: center;">‹div style=" display:block; height:32px; width:32px; padding-bottom:20px;"> ‹svg aria-label="Threads"
0
krzysztof114
Mirki,
czemu jak zapiszę sobie ten kod do html to działa prawidłowo a po ustawieniu tego jako stopka ostatni div wyświetla się w tej samej linii co dwa pierwsze?

!alt

**Imię i nazwisko**
1
L.....s
L.....s
#javascript #programowanie i bardzo szybkie #pytanie

Jak do skryptu dodać sprawdzanie, czy styl jest nocny, czy dzienny? Chodzi mi rzecz jasna o wykopowy ceeses. Mam takie coś:

var style = ["‹style>.clearfix a:hover svg * {"];


if($("body").hasClass("night"))
3
  • Najlepsze
  • Wszystkie komentarze
P0lip
P0lip
@Linux__Shines: ( ͡° ͜ʖ ͡°)
2
P0lip
P0lip
@Linux__Shines:

var style = document.createElement("style");

style.innerHTML = ".clearfix a:hover svg * { fill:" + (document.body.className.indexOf("night") !== -1 ? " #999999" : "#d9e6ef") +
1