HOŞ GELDİNİZ!

Tüm özelliklerimize erişmek için şimdi bize katılın. Kaydolup giriş yaptıktan sonra konu oluşturabilir, mevcut konulara yanıt gönderebilir, diğer üyelerinize itibar kazandırabilir, kendi özel mesajlaşma programınızı edinebilir ve çok daha fazlasını yapabileceksiniz. Aynı zamanda hızlı ve tamamen ücretsizdir, peki daha ne bekliyorsunuz?

xenForo Dark Mode (Gece Modu) Nasıl Yapılır?

  • Konuyu Başlatan
  • Moderatör
  • #1

admin

FRMKLAS.COM.TR
Moderatör
Kayıtlı Üye
1
Katılım
4 Ağustos 2024
Konular
119
Mesajlar
182
Reaksiyon puanı
25
Puanları
28
Konum
Adana
Web sitesi
www.frmklas.com.tr
Merhaba, xenForo forumları için Dark Mode (Gece Modu Tema) işleminin nasıl yapıldığı hakkında işlemleri anlatmak istiyorum. Umarım faydalı ve anlaşılır bir anlatım olur.

Aşağıdaki vermiş olduğum kod Dark moduna geçiş için gerekli buton ve javascript kodlarıdır. Temanızda PAGE_CONTANIER şablonunda butonu göstermek istediğiniz alana ekleyebilirsiniz.

HTML:
    <div class="theme-switch-wrapper">
    <label class="theme-switch" for="checkbox">
    <input type="checkbox" id="checkbox" />
    <div class="slider round"><i class="gece_temasi" title="Gece Modu" data-original-title="Gece Modu"></i><i class="gunduz_temasi" title="Gündüz Modu" data-original-title="Gündüz Modu"></i></div>
    </label>
        <script type="text/javascript">
        const toggleSwitch = document.querySelector('.theme-switch input[type="checkbox"]');
const currentTheme = localStorage.getItem('theme');

if (currentTheme) {
    document.documentElement.setAttribute('data-theme', currentTheme);
 
    if (currentTheme === 'dark') {
        toggleSwitch.checked = true;
         document.body.classList.toggle('dark');
    }
}

function switchTheme(e) {
    if (e.target.checked) {
        document.documentElement.setAttribute('data-theme', 'dark');
        localStorage.setItem('theme', 'dark');
         document.body.classList.toggle('dark');
    }
    else {        document.documentElement.setAttribute('data-theme', 'light');
          localStorage.setItem('theme', 'light');
           document.body.classList.toggle('dark');
    }   
}

toggleSwitch.addEventListener('change', switchTheme, false);
        </script> </div>

Aşağıdaki kodu extra.less şablonuna ekleyebilirsiniz.

CSS:
.theme-switch-wrapper {
    display: flex;
    align-items: center;
    padding:0px;
}


.theme-switch input {
    display: none
}

.slider {
    cursor: pointer;
    padding: 0px 10px;
}

.gunduz_temasi:after {
    font-family: 'Font Awesome 5 Pro';
    font-style: normal;
    font-weight: 900;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    display: inline-block;
    min-width: 1.2em;
    text-align: center;
    content: "\f185";
    color: #ffff00;
}

[data-theme="light"] .gunduz_temasi:after {
    display: none !important
}

[data-theme="light"] .gece_temasi:after {
    font-style: normal;
    font-weight: 300;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    display: inline-block;
    min-width: 1.2em;
    text-align: center;
    font-family: 'Font Awesome 5 Pro';
    content: "\f186";
    color: #fff
}

Bunların ardından temanızın dark modunu göstermek için aşığıdaki kodu exta.less şablonuna ekleyerek temanız için gerekli düzenlemeleri yapmanız gerekmektedir.

CSS:
[data-theme="light"] {

buraya temanızın dark modu için css kodlarını yazmanız gerekmektedir.

Örnek:

.overlay-title {
background: #000;
}

Gibi eklemeler yapmanız gerekmektedir.

}
 
Thinking over my time in digital wagering, I’ve observed that modern platforms have completely transformed the method we experience tables. To be fair, it seems like the house edge tend to be super random, which makes me think proper budget management matters most in this hobby. On another note, I found this useful resource https://telegra.ph/Beyond-the-Headlines-Real-Time-Updates-Shaping-Online-Entertainment-News-04-14
https://telegra.ph/Beyond-the-Headlines-Real-Time-Updates-Shaping-Online-Entertainment-News-04-14 where users share various betting tips , and it’s been really helpful to keep my risks low . One thing I regularly tell newbies is to avoid trying to track losses , because that’s usually how things goes wrong . Over the last few weeks, I've also started questioning whether the real-time dealer options truly offer a more authentic vibe than standard digital versions. What are your thoughts on this, and have you found any solid trends recently? Let's get a start a here below !
 
Thinking back around virtual gambling, I’ve noticed that current sites have completely transformed the method users enjoy games . In my opinion, it feels like the odds are often totally volatile, which is why proper budget management is the real key nowadays . Anyway, I stumbled upon this cool platform https://telegra.ph/Beyond-the-Headlines-Real-Time-Updates-Shaping-Online-Entertainment-News-04-14
https://telegra.ph/Beyond-the-Headlines-Real-Time-Updates-Shaping-Online-Entertainment-News-04-14 where players discuss different betting systems, and it has quite helpful to keep my risks down . Something I regularly advise newbies is to never run after bad runs, because that tends to be when everything goes wrong . Over the last few weeks, I've also started questioning if the real-time dealer options truly offer a fairer vibe compared to regular RNG software . What are your opinions on this, do you stick to slots or cards ? Let’s chat going below !
 
Thinking about it, in online wagering, I’ve noticed that modern platforms have completely transformed the way users enjoy tables. In my opinion, it seems that the odds tend to be quite unpredictable, which makes me think careful bankroll management is incredibly crucial in this hobby. On another note, I checked out this useful platform https://telegra.ph/Beyond-the-Headlines-Real-Time-Updates-Shaping-Online-Entertainment-News-04-14
https://telegra.ph/Beyond-the-Headlines-Real-Time-Updates-Shaping-Online-Entertainment-News-04-14 where people share different tactical strategies , and I found it quite helpful to keep my losses down . One thing I constantly remind newbies is to never run after bad runs, because it's almost always how everything turns bad. Lately, I've also wondered if the live croupier tables actually provide a better vibe compared to regular digital software . How do you all feel about that, and have you noticed any solid trends lately ? Let’s debate going in this thread!
 
Thinking on my experience, in digital wagering, I’ve noticed how the latest sites are shifting how players enjoy games . Personally, it seems like the house edge can be totally volatile, which makes me think proper bankroll management is absolutely crucial these days . That said, I ran into this cool source https://telegra.ph/Beyond-the-Headlines-Real-Time-Updates-Shaping-Online-Entertainment-News-04-14
https://telegra.ph/Beyond-the-Headlines-Real-Time-Updates-Shaping-Online-Entertainment-News-04-14 where players talk about various betting systems, and it’s been quite valuable for keeping my losses under control. A major point I regularly remind newbies is to avoid trying to run after losses , because that’s usually how the fun turns bad. Over the last few weeks, I've also started questioning if the stream dealer tables genuinely offer a better experience than regular RNG versions. What’s your take on this whole thing, and have you found any reliable patterns recently? Would love to discussion going in this thread!
 
Thinking over my time around online gaming, I've recently noticed that current casinos have completely transformed the way we enjoy slots . Honestly, I think that the house edge tend to be all over the place, which is why proper bankroll management matters most in this hobby. On another note, I checked out this useful review page https://telegra.ph/Beyond-the-Headlines-Real-Time-Updates-Shaping-Online-Entertainment-News-04-14
https://telegra.ph/Beyond-the-Headlines-Real-Time-Updates-Shaping-Online-Entertainment-News-04-14 where users talk about various winning tips , and I found it quite insightful for keeping my spending down . A major point I regularly tell myself is to never run after losses , because it's almost always how the fun goes wrong . Lately, I've also wondered if the live croupier options truly give a fairer experience compared to regular RNG software . How do you all feel about that, and did you noticed any good patterns lately ? Let’s chat here in this thread!
 
Thinking over my time with digital betting, I have come to see how new casinos are really changing the method we experience tables. Honestly, I think like the odds tend to be all over the place, which makes me think careful budget management is absolutely crucial in this hobby. On another note, I checked out this interesting platform https://telegra.ph/Beyond-the-Headlines-Real-Time-Updates-Shaping-Online-Entertainment-News-04-14
https://telegra.ph/Beyond-the-Headlines-Real-Time-Updates-Shaping-Online-Entertainment-News-04-14 where players discuss various winning tips , and I found it quite helpful to keep my losses down . A major point I always remind myself is to never run after losses , because that’s usually when things turns bad. Lately, I've also been thinking if the real-time dealer options genuinely offer a fairer vibe compared to standard RNG software . What are your thoughts on this, do you stick to machines or tables? Let’s start a going in this thread!
 
Thinking over my time around virtual betting, I've recently realized how current sites are really changing how players enjoy tables. Honestly, I think that the odds are often super random, which proves that proper budget management is the real key these days . On another note, I found this interesting source https://telegra.ph/Beyond-the-Headlines-Real-Time-Updates-Shaping-Online-Entertainment-News-04-14
https://telegra.ph/Beyond-the-Headlines-Real-Time-Updates-Shaping-Online-Entertainment-News-04-14 where people share various winning systems, and I found it quite helpful to keep my risks down . One thing I constantly tell newbies is to never chase bad runs, because that tends to be how everything goes wrong . Lately, I've also been thinking if the live croupier tables genuinely provide a better vibe compared to regular RNG software . How do you all feel about that, and have you noticed any good patterns recently? Would love to start a here in this thread!
 
Thinking on my experience, in digital betting, I've recently observed that current sites have completely transformed the method we enjoy games . In my opinion, it seems that the house edge tend to be quite unpredictable, which is why smart bankroll control is absolutely crucial these days . Anyway, I stumbled upon this useful platform https://telegra.ph/Beyond-the-Headlines-Real-Time-Updates-Shaping-Online-Entertainment-News-04-14
https://telegra.ph/Beyond-the-Headlines-Real-Time-Updates-Shaping-Online-Entertainment-News-04-14 where users discuss different winning tips , and it’s been quite valuable to keep my losses low . A major point I always advise myself is to avoid trying to track bad runs, because that tends to be how everything goes wrong . Recently, I've also started questioning if the stream croupier options genuinely provide a more authentic chance than regular digital versions. What’s your take on this whole thing, do you stick to slots or tables? Let's get a discussion here in this thread!
 
Thinking on my experience, around virtual wagering, I have realized how new sites have completely transformed the way players experience slots . To be fair, I think that the house edge tend to be all over the place, which is why proper budget management matters most these days . Anyway, I ran into this awesome review page https://telegra.ph/Beyond-the-Headlines-Real-Time-Updates-Shaping-Online-Entertainment-News-04-14
https://telegra.ph/Beyond-the-Headlines-Real-Time-Updates-Shaping-Online-Entertainment-News-04-14 where users talk about different betting systems, and it’s been surprisingly insightful for keeping my risks down . One thing I regularly remind newbies is to never run after losses , because it's almost always how things gets messy . Lately, I've also wondered whether the live dealer tables genuinely offer a more authentic chance compared to regular digital versions. What’s your take on this whole thing, do you prefer machines or tables? Let's get a discussion going in the comments !
 
Flatcast radyolarına port açarken ihtiyacınız olan port numarası: 40123
  • Geri
    Üst