Skip to content

Instantly share code, notes, and snippets.

View shawncrigger's full-sized avatar

Shawn Crigger shawncrigger

View GitHub Profile
@shawncrigger
shawncrigger / whichones.js
Created December 22, 2020 23:26 — forked from scottjehl/whichones.js
which elements are wider than the viewport?
var list = [];
document.querySelectorAll("body *")
.forEach(function(elem){
if(elem.getBoundingClientRect().width > document.body.getBoundingClientRect().width){
list.push(elem.outerHTML.split('>')[0] + '>');
}
});
confirm( "these elements are wider than the viewport:\n\n " + list.join("\n") )
<?php
/**
* Main class that interacts with the EscapiaAPI.
*/
class EscapiaAPI {
const API_VERSION = '1.030';
const MAX_RESPONSES = 10000;
const SOAP_NAMESPACE = 'http://www.escapia.com/EVRN/2007/02';