This file contains hidden or 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
const playButton = document.querySelector('#playButton') | |
const playButtonIcon = document.querySelector('#playButtonIcon') | |
const waveform = document.querySelector('#waveform') | |
const volumeIcon = document.querySelector('#volumeIcon') | |
const volumeSlider = document.querySelector('#volumeSlider') | |
const currentTime = document.querySelector('#currentTime') | |
const totalDuration = document.querySelector('#totalDuration') | |
const ctx = document.createElement('canvas').getContext('2d') | |
const linGrad = ctx.createLinearGradient(0, 0, 0, 140) |
This file contains hidden or 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
FROM php:7.3.10-fpm-alpine AS PHP | |
# persistent / runtime deps | |
RUN apk add --no-cache \ | |
acl \ | |
fcgi \ | |
file \ | |
gettext \ | |
git \ | |
; |
This file contains hidden or 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 | |
namespace Acme\Controller; | |
use EasyCorp\Bundle\EasyAdminBundle\Controller\AdminController as BaseAdminController; | |
use EasyCorp\Bundle\EasyAdminBundle\Exception\ForbiddenActionException; | |
use Symfony\Component\HttpFoundation\{RedirectResponse, Request, Response}; | |
use Symfony\Component\Routing\Annotation\Route; | |
/** |
This file contains hidden or 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
// Convert PX to REM | |
$browser-context: 16; // Default | |
@function rem($pixels, $context: $browser-context) { | |
@return #{$pixels/$context}rem; | |
} | |
// Margin/Padding helpers | |
$step : 5; | |
$from : 0; | |
$through : ceil( 100 /$step); |