This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
import time | |
import logging | |
import threading | |
logging.basicConfig(format="[%(asctime)s]: %(message)s", level=logging.INFO, datefmt="%H:%M:%S") | |
class STATE: | |
def __init__(self): | |
self.condition = None |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Each carousel item | |
jQuery('.carousel-inner').find('.item').each(function (i, item) { | |
// item's h4>span bg color | |
let elBg = jQuery(item).find('h4 span').css('background-color'); | |
// btn of slide | |
let btn = jQuery(item).find('.qbutton'); | |
// applying styles to button | |
btn.css('background-color', rgb2hex(elBg)); |