Skip to content

Instantly share code, notes, and snippets.

function createCORSRequest(method, url) {
var xhr = new XMLHttpRequest();
if ("withCredentials" in xhr) {
// Check if the XMLHttpRequest object has a "withCredentials" property.
// "withCredentials" only exists on XMLHTTPRequest2 objects.
xhr.open(method, url, true);
} else if (typeof XDomainRequest != "undefined") {
function createCORSRequest(method, url) {
var xhr = new XMLHttpRequest();
if ("withCredentials" in xhr) {
// Check if the XMLHttpRequest object has a "withCredentials" property.
// "withCredentials" only exists on XMLHTTPRequest2 objects.
xhr.open(method, url, true);
} else if (typeof XDomainRequest != "undefined") {
(function () {
const url = 'https://www.summitlearning.org/health_check';
if (window.location.href !== url) {
window.location.href.replace(url);
} else {
const frag = document.createDocumentFragment();
document.addEventListener('click', (e) => {
const el = document.getElementById(e.target.name);
if (!el || el.nodeName !== 'IFRAME') {
return;
{
"blocks": [
{
"key": "f3ce3",
"text": "Spanish American War Peer Feedback form Name: _________________________",
"type": "unstyled",
"depth": 0,
"inlineStyleRanges": [
{
"offset": 0,
<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="content-type">
<style type="text/css">
.lst-kix_h6yrv5fn5i5l-1>li {
counter-increment: lst-ctn-kix_h6yrv5fn5i5l-1
}
.lst-kix_h6yrv5fn5i5l-7>li {
<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="content-type">
<style type="text/css">
.lst-kix_cltxvbspaoez-7>li {
counter-increment: lst-ctn-kix_cltxvbspaoez-7
}
.lst-kix_cltxvbspaoez-1>li {
{
"entityMap": {
"0": {
"type": "DOCS_TABLE",
"mutability": "IMMUTABLE",
"data": {
"cell_0_0": {
"blocks": [
{
"key": "agvvr",
<!doctype>
<html>
<head>
<style>
body {
font-family: monospace;
font-size: 11px;
margin: 40px;
}
<!doctype>
<html>
<head>
<style>
body {
margin: 40px;
}
* {
<h1>iframe</h1>
<iframe src="https://goo.gl/2ctSDv"></iframe>