Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View stanleyvarga's full-sized avatar
:octocat:

Stanislav Varga stanleyvarga

:octocat:
  • ITERA
  • Bratislava
View GitHub Profile
#!/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
@stanleyvarga
stanleyvarga / sliderEnhance.js
Last active September 25, 2019 18:33
jQuery slider button background color changer
// 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));