These two methods can be used to convert IP addresses to and from a hash value.
See the codepen for instructions.
These two methods can be used to convert IP addresses to and from a hash value.
See the codepen for instructions.
| var body = document.body, | |
| html = document.documentElement; | |
| var height = Math.max(body.scrollHeight, body.offsetHeight, | |
| html.clientHeight, html.scrollHeight, html.offsetHeight); | |
| var bbox = document.body.getBoundingClientRect(); | |
| var svg = '<svg width="' + bbox.width + '" height="' + height + '" viewBox="0 0 ' + bbox.width + ' ' + height + '"><style>rect {-webkit-user-select: none; user-select: none; pointer-events: none; stroke: red; stroke-width: 2px; fill: rgba(0,0,0,.05);}</style>'; | |
| Array.prototype.forEach.call(document.querySelectorAll('*:not(.notMe)'), function(ele) { | |
| var style = getComputedStyle(ele); | |
| if (style.display.toLowerCase() !== 'none') { |
| data-reactid="[\.\d:\D]{1,23}" |
I am a curious sole, and when I saw that Apple had a map I wanted to see the API of it (at the time of writing it is not official).
I wrote this litle script which should be executed in the developer toolbar. It allows you to get json object of the properties, functions, methodes an structur of any javascript object.
Please do use it and please put GISTs of the objects you convert to JSON. May I suggest that you name them the name that is autogenerated from the script.
mapkit becomes
mapkitAsJSON.json
| function getArgs() { | |
| var argv = process.argv.join(' '); | |
| var result = {}; // reset | |
| for ( | |
| argv = argv.split(/\s*\B[\/-]+([\w-]+)[\s=]*/), | |
| i = 1; item = argv[i++]; result[item] = argv[i++] | |
| ); | |
| return result; | |
| } |
If you have an ASP.NET based UnoEuro account, these two files sendEmail.aspx and web.config can be the basic for a simple send e-mail pags.
sendEmail.aspx to fit your need| window.KeyCode = (window.KeyCode) ? window.KeyCode : { | |
| CANCEL: 3, | |
| HELP: 6, | |
| BACK_SPACE: 8, | |
| TAB: 9, | |
| CLEAR: 12, | |
| RETURN: 13, | |
| ENTER: 14, | |
| SHIFT: 16, | |
| CONTROL: 17, |
| $(function() { | |
| var eleMessage = document.querySelector("#message"), | |
| eleSendButton = document.querySelector("#sendButton"); | |
| eleMessage.addEventListener('keyup', function(evt) { | |
| if (evt.which === 13) { | |
| eleSendButton.click(); | |
| } | |
| }) | |
| }) |
Copy the code inside
congestCSS.jsand run it in the developer console. You get some information about the longestclassused on the website.
The longest classname is 516 chars long, contains 32 CSS classes
The longest classname is 43 chars long, contains 5 CSS classes
| var page = require('webpage').create(); | |
| //viewportSize being the actual size of the headless browser | |
| page.viewportSize = { width: 1024, height: 768 }; | |
| //the clipRect is the portion of the page you are taking a screenshot of | |
| page.clipRect = { top: 0, left: 0, width: 1024, height: 768 }; | |
| //the rest of the code is the same as the previous example | |
| page.open('http://www.netsi.dk/wordpress', function() { | |
| page.render('netsi.png'); | |
| phantom.exit(); | |
| }); |