Neler yeni
İslami Forum, Dini Forum, islami site, islami sohbet, radyo, islami bilgiler

İslam-tr.org'a hoş geldiniz! Hemen üye olun ve kendi konularınızı, düşüncelerinizi paylaşarak bu platforma katılın. Oturum açtıktan sonra, İslam dini, tarih ve güncel konularla ilgili paylaşımlarda bulunabilirsiniz.

Ummu İmara
Tepkime Puanı
2,026

Son aktivite Gönderiler Hakkında

  • Haber akışı şu anda bulunmamaktadır.
  • Yükleniyor…
  • Yükleniyor…
Üst Ana Sayfa Alt
store the red, green, blue values in separate variables color = color.match(/^rgba?\((\d+),\s*(\d+),\s*(\d+)(?:,\s*(\d+(?:\.\d+)?))?\)$/); r = color[1]; g = color[2]; b = color[3]; } else { // If RGB --> Convert it to HEX: http://gist.github.com/983661 color = +("0x" + color.slice(1).replace( color.length < 5 && /./g, '$&$&' )); r = color >> 16; g = color >> 8 & 255; b = color & 255; } // HSP equation from http://alienryderflex.com/hsp.html hsp = Math.sqrt( 0.299 * (r * r) + 0.587 * (g * g) + 0.114 * (b * b) ); // Using the HSP value, determine whether the color is light or dark if (hsp > 127.5) { return 'light'; } else { return 'dark'; } } window.addEventListener("load", function() { var isDarkTheme = document.querySelector("html[data-style-id='9']"); if (isDarkTheme) { var textElements = document.querySelectorAll(".block-body .message-content [style]"); for (var i = 0; i < textElements.length; i++) { var textColor = textElements[i].style.color; if (textColor && lightOrDark(textColor) == "dark") { textElements[i].style.color = "#ffffff"; } } } }); -->