A Pen by Ranjithkumar on CodePen.
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
<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> |
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
# Install meilisearch to usr/bin/meilisearch/target/release/meilisearch to use with | |
# | |
# Laravel 9.x | |
# PHP 8.1 | |
# Meilisearch 0.27.1 | |
# meilisearch/meilisearch-php 0.23.3 | |
# | |
# Using Meilisearch 0.27.1 does not require `GLIBC_2.xx' not found | |
# as root or sudo |
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
// every second your audio element is playing | |
$(audioElement).on('timeupdate', function() { | |
var vol = 1, | |
interval = 200; // 200ms interval | |
if (Math.floor(audioElement.currentTime) == 15) { | |
if (audioElement.volume == 1) { | |
var intervalID = setInterval(function() { | |
// Reduce volume by 0.05 as long as it is above 0 | |
// This works as long as you start with a multiple of 0.05! | |
if (vol > 0) { |
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
<?php | |
/** | |
* Shorten large numbers into abbreviations (i.e. 1,500 = 1.5k) | |
* | |
* @param int $number Number to shorten | |
* @return String A number with a symbol | |
*/ | |
function numberAbbreviation($number) { | |
$abbrevs = array(12 => "T", 9 => "B", 6 => "M", 3 => "K", 0 => ""); |