I'm Diego Betto!
- 😃 co-founder & CTO @ Papion
- 👨💻 senior full-stack engineer
- 💚 React/Vue.js/Node.js/Fastify lover
- 🏫 teacher @ ITS Alto Adriatico
also
- 🎶 music-dependent
- 📷 photography enthusiast
- 🐶 dogs lover
- 👨🍳 BBQ griller
- 🛠 DIY maker
addEventListener(document, "touchstart", function(e) {
console.log(e.defaultPrevented); // will be false
e.preventDefault(); // does nothing since the listener is passive
console.log(e.defaultPrevented); // still false
}, Modernizr.passiveeventlisteners ? {passive: true} : false);
<?php
// in functions.php
function inlineSvg($file)
{
<?php
// in functions.php
if (!is_admin()){
remove_action( 'rest_api_init', 'wp_oembed_register_route' );
function inlineSvg($file)
{
$theFile = get_template_directory().'/dist/images/'.$file.'.svg';
echo (is_file($theFile) ? file_get_contents(get_template_directory().'/dist/images/'.$file.'.svg') : '');
}