Skip to content

Instantly share code, notes, and snippets.

@Robin-bob
Robin-bob / theme.liquid
Created October 8, 2019 11:24
add Program To Favorites After Purchase
<script>
function addProgramToFavoritesAfterPurchase() {
var button = document.querySelector('.favorite.s-button');
var notClicked = true;
if (button && notClicked) {
if (document.referrer.includes('orders/success')) {
document.querySelector('.favorite.s-button').click();
notClicked = false;
}
} else {
@Robin-bob
Robin-bob / script.js
Last active September 20, 2019 08:43
rename Authors to Something...
function renameAuthors() {
// console.log('renameAuthors')
var author = document.querySelector('.cbt-tabs--author-area .cbt-tabs--subtitle');
if (author) {
author.innerText ='Director'
} else {
setTimeout(function(){
renameAuthors()
}, 100)
}
@Robin-bob
Robin-bob / _gdpr.liquid
Last active March 9, 2023 15:03
GDPR/cookies popup
<section class="gdpr">
<p>
WE VALUE YOUR PRIVACY KOTV Limited uses cookies to help us deliver our services and improve your user experience. Click “Agree” to accept our use of cookies or you can choose to opt out of our use of cookies by following the instructions in our Privacy Policy and Cookie Notice.
</p>
<div class="gdpr--actions">
<button class="gdpr--button js-gdpr-ok">Agree</button>
<a href="https://kotvboxing.uscreen.io/pages/privacy-policy" target="_blank" class="gdpr--button">Read More</a>
</div>
</section>
@Robin-bob
Robin-bob / style.css
Last active July 7, 2019 10:06
Uscreen new catalog full width overwrite styles
@media (min-width: 1200px){
.container,
.cbt-tabs .container {
max-width: 1920px !important;
}
}
.categories-home-page--inner {
max-width: 1920px !important;
}
@Robin-bob
Robin-bob / _related_video.liquid
Last active November 23, 2018 13:25
This is code example of how to add "Related video" for themes "Summer Triangle", "Polaris", "Vela", "Phoenix", "Chameleon"
$(function(){
$('.js-use-cases-pages--slider').slick({
dots: true,
fade: true,
cssEase: 'linear',
autoplay: true,
autoplaySpeed: 5000,
pauseOnHover: false
})
.container-left-alignment {
max-width: 1300px;
padding: 0 15px;
box-sizing: border-box;
}
.use-cases-pages {
position: relative;
overflow: hidden;
@Robin-bob
Robin-bob / .css
Created July 31, 2018 15:58
cateogry dropdown in the menu
.page-header__nav {
overflow: visible;
}
.tutorials-select__header {
font-size: 1.5rem;
font-weight: 300;
color: #39b6b3;
}
@Robin-bob
Robin-bob / main.css
Last active February 9, 2017 05:41
Uscreen Foundation Themes typography
/* -------------------- Theme typography -------------------- */
em,
i {
font-style: italic;
line-height: inherit; }
strong,
b {
font-weight: bold;
@Robin-bob
Robin-bob / _slider.liquid
Last active January 17, 2017 13:29
New banner Uscren
{% comment %}
Slider
{% endcomment %}
<section class="slider-first-screen">
<div class="main-slider slick-slider"
data-slick='{"autoplay": {{ slider.settings.autoplay }}, "infinite": true, "slidesToScroll": 1, "slidesToShow": 1, "autoplaySpeed": {{ slider.settings.autoplay_speed }},"fade": {{ slider.settings.fade }}, "arrows": true, "dots": false }'>
{% for slide in slider.slides %}
<div>
{% unless slide.video_url == nil %}