130 bytes, that's what it takes.
"header footer section aside nav article figure figcaption hgroup time main".replace(/\w+/g,function(a){document.createElement(a)})| /* | |
| paste it in your console | |
| */ | |
| (function(t,a,b){return(b=document.body),(a=(b.innerText||b.textContent).match(/\S+/g))&&t.replace("%",a.length)})("% words on this page") |
| /* | |
| v.js | |
| Is the version that I use ahead from the one I expected ? | |
| 123 bytes | |
| ## Usage | |
| v(actual, expected) | |
| e.g. | |
| v("1.2.3", "1.7.3") // false |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>Todo List</title> | |
| <link rel="stylesheet" href="style.css"> | |
| </head> | |
| <body> | |
| <h1>Todo List</h1> | |
| <input type="text" value="" id="add" placeholder="Add a new item and hit enter" name="add"> |
Awesome PHP has been relocated permanently to its own Github repository. No further updates will made to this gist.
Please open an issue for any new suggestions.