Use a js
or no-js
variant depending on the availability of JavaScript, e.g. no-js:hidden
or js:bg-blue-500
.
const plugin = require('tailwindcss/plugin');
module.exports = {
/* is not a touch device */ | |
@media (hover: hover) { | |
body { text-rendering: optimizeLegibility; } | |
} | |
/* is a touch device */ | |
@media (hover: none) { | |
body { text-rendering: optimizeSpeed; } | |
} |
MIX_JS_DEBUG="${APP_DEBUG}" |
axios.interceptors.response.use(response => { | |
return response; | |
}, error => { | |
if (error.response.status === 401) { | |
Swal.fire({ | |
title: 'Session expired', | |
text: 'Please sign in again!', | |
type: 'error', | |
}).then(result => { | |
if (result.value) { |
<?php | |
namespace App\Traits; | |
trait FormattedDate | |
{ | |
public function initializeFormattedDate() | |
{ | |
$this->append('formatted_created_at'); | |
$this->append('formatted_created_at_date'); |
#!/bin/bash | |
if [ "$EUID" -ne 0 ] | |
then echo "Please run as root" | |
exit | |
fi | |
apt-get install pkg-config libmagickwand-dev -y | |
cd /tmp | |
wget https://pecl.php.net/get/imagick-3.4.4.tgz | |
tar xvzf imagick-3.4.4.tgz |
function isIE() { | |
var ua = window.navigator.userAgent; | |
var msie = ua.indexOf('MSIE '); | |
var trident = ua.indexOf('Trident/'); | |
return (msie > 0 || trident > 0); | |
} | |
if (isIE()) { | |
document.getElementById('ie-notice').style.display = 'block'; |
#!/bin/bash | |
if [ "$EUID" -ne 0 ] | |
then echo "Please run as root" | |
exit | |
fi | |
apt-get install pkg-config libmagickwand-dev -y | |
cd /tmp | |
wget https://pecl.php.net/get/imagick-3.4.3.tgz | |
tar xvzf imagick-3.4.3.tgz |