Experiments to create forms with components. The idea is to use this with the Wordpress block editor.
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
const validator = { | |
/** | |
* Validates Portuguese citizen card | |
* @param {string} value For example 15697354 5 ZZ1 | |
* @returns {boolean} | |
*/ | |
portugueseCitizenCard: function (value) { | |
const letterValue = { | |
A: 10, B: 11, C: 12, D: 13, E: 14, F: 15, G: 16, H: 17, I: 18, J: 19, |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Animate CSS</title> | |
<!-- https://animate.style/ --> | |
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css" /> | |
</head> |
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
" Vim defaults | |
set nocp | |
" syntax highlighting | |
syntax on | |
" Show line numbers | |
set number | |
" Enable mouse |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Example of simple javascript testing in the browser</title> | |
</head> |
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 | |
/** | |
* Añade capacidades a editores y admins | |
*/ | |
function editor_unfiltered_upload( $caps, $cap, $user_id ) { | |
if ( "unfiltered_upload" === $cap && user_can( $user_id, "editor" ) ) { | |
$caps = array( "unfiltered_upload" ); | |
} |
Source code of software produced specifically for Greenpeace. This list includes public and private repositories. Please check the repository's license before you use it.
More info...
Adobe Illustrator will give you something like this, but you must add the width and height attributes based in the viewBox.
<?xml version="1.0" encoding="utf-8"?>
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8" /> | |
<title>Responsive elements based on parent column width</title> | |
</head> | |
<body> |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8" /> | |
<title>Embedded html document</title> | |
<style> | |
html, | |
body { | |
margin: 0; |
NewerOlder