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
new Cleave('.account', { | |
prefix: 'IEAT', | |
delimiter: '-', | |
blocks: [4,4], | |
uppercase: true | |
}); | |
new Cleave('.donation', { | |
numeral: true, | |
numeralThousandGroupStyle: 'thousand' | |
}) |
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 /* Template Name: Awesome Page */ | |
get_header(); | |
?> | |
<div class="latest-posts"></div> | |
<script> |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge" /> | |
<title>zzz dog</title> | |
</head> |
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
{ | |
"particles": { | |
"number": { | |
"value": 100, | |
"density": { | |
"enable": true, | |
"value_area": 800 | |
} | |
}, | |
"color": { |
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
<svg | |
class="curve" | |
xmlns="http://www.w3.org/2000/svg" | |
version="1.1" | |
width="100%" | |
height="100" | |
viewBox="0 0 100 100" | |
preserveAspectRatio="none" | |
> | |
<path d="M0 100 C 20 0 50 0 100 100 Z"></path> |
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
{ | |
"particles": { | |
"number": { | |
"value": 80, | |
"density": { | |
"enable": true, | |
"value_area": 800 | |
} | |
}, | |
"color": { |
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 apiData = { | |
url: 'https://pokeapi.co/api/v2/', | |
type: 'pokemon', | |
id: '25', | |
} | |
const {url, type, id} = apiData | |
const apiUrl = `${url}${type}/${id}` |
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 rgx = /^(\(\d{3}\)|\d{3})-?\d{3}-?\d{4}$/g | |
const phoneNumber = document.querySelector('.phone-number') | |
const phoneNumberInput = phoneNumber.querySelector('input') | |
const getNumbers = (event) => { | |
console.log(event) | |
if(rgx.test(event.target.value)){ | |
phoneNumberInput.classList.add('accepted') | |
} else { |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge" /> | |
<link | |
rel="stylesheet" | |
href="https://cdnjs.cloudflare.com/ajax/libs/normalize/8.0.1/normalize.min.css" | |
/> |
OlderNewer