Skip to content

Commit 84d2d76

Browse files
First commit.
0 parents  commit 84d2d76

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed

Diff for: index.html

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Hello. This is not a public website, it is used for techical issues only.

Diff for: online-editor-custom-messages.json

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
[
2+
{
3+
"id": "R1-just-a-message",
4+
"regex": "https://editor.jsight.io/r/YLDDWLd/1",
5+
"content": "<div><p>Just a message!<p></div>"
6+
},
7+
{
8+
"id": "R2-google-form",
9+
"regex": "editor",
10+
"content": "<iframe src=\"https://docs.google.com/forms/d/e/1FAIpQLSfyULgnW-gyL3hO4jE7senf9fchPl3fMxAzljjc26HNoDmvrA/viewform?embedded=true\" width=\"640\" height=\"683\" frameborder=\"0\" marginheight=\"0\" marginwidth=\"0\">Loading…</iframe>"
11+
},
12+
{
13+
"id": "R3-jotform-script",
14+
"regex": "editor",
15+
"content": "<script type=\"text/javascript\" src=\"https://form.jotform.com/jsform/230443298094358\"></script>"
16+
},
17+
{
18+
"id": "R3-jotform-iframe",
19+
"regex": "jsight",
20+
"content": "<iframe id=\"JotFormIFrame-230443298094358\" title=\"JSight AI\" onload=\"window.parent.scrollTo(0,0)\" allowtransparency=\"true\" allowfullscreen=\"true\" allow=\"geolocation; microphone; camera\" src=\"https://form.jotform.com/230443298094358\" frameborder=\"0\" style=\"min-width:100%;max-width:100%;height:539px;border:none;\" scrolling=\"no\" > </iframe> <script type=\"text/javascript\"> var ifr = document.getElementById(\"JotFormIFrame-230443298094358\"); if (ifr) { var src = ifr.src; var iframeParams = []; if (window.location.href && window.location.href.indexOf(\"?\") > -1) { iframeParams = iframeParams.concat(window.location.href.substr(window.location.href.indexOf(\"?\") + 1).split('&')); } if (src && src.indexOf(\"?\") > -1) { iframeParams = iframeParams.concat(src.substr(src.indexOf(\"?\") + 1).split(\"&\")); src = src.substr(0, src.indexOf(\"?\")) } iframeParams.push(\"isIframeEmbed=1\"); ifr.src = src + \"?\" + iframeParams.join('&'); } window.handleIFrameMessage = function(e) { if (typeof e.data === 'object') { return; } var args = e.data.split(\":\"); if (args.length > 2) { iframe = document.getElementById(\"JotFormIFrame-\" + args[(args.length - 1)]); } else { iframe = document.getElementById(\"JotFormIFrame\"); } if (!iframe) { return; } switch (args[0]) { case \"scrollIntoView\": iframe.scrollIntoView(); break; case \"setHeight\": iframe.style.height = args[1] + \"px\"; if (!isNaN(args[1]) && parseInt(iframe.style.minHeight) > parseInt(args[1])) { iframe.style.minHeight = args[1] + \"px\"; } break; case \"collapseErrorPage\": if (iframe.clientHeight > window.innerHeight) { iframe.style.height = window.innerHeight + \"px\"; } break; case \"reloadPage\": window.location.reload(); break; case \"loadScript\": if( !window.isPermitted(e.origin, ['jotform.com', 'jotform.pro']) ) { break; } var src = args[1]; if (args.length > 3) { src = args[1] + ':' + args[2]; } var script = document.createElement('script'); script.src = src; script.type = 'text/javascript'; document.body.appendChild(script); break; case \"exitFullscreen\": if (window.document.exitFullscreen) window.document.exitFullscreen(); else if (window.document.mozCancelFullScreen) window.document.mozCancelFullScreen(); else if (window.document.mozCancelFullscreen) window.document.mozCancelFullScreen(); else if (window.document.webkitExitFullscreen) window.document.webkitExitFullscreen(); else if (window.document.msExitFullscreen) window.document.msExitFullscreen(); break; } var isJotForm = (e.origin.indexOf(\"jotform\") > -1) ? true : false; if(isJotForm && \"contentWindow\" in iframe && \"postMessage\" in iframe.contentWindow) { var urls = {\"docurl\":encodeURIComponent(document.URL),\"referrer\":encodeURIComponent(document.referrer)}; iframe.contentWindow.postMessage(JSON.stringify({\"type\":\"urls\",\"value\":urls}), \"*\"); } }; window.isPermitted = function(originUrl, whitelisted_domains) { var url = document.createElement('a'); url.href = originUrl; var hostname = url.hostname; var result = false; if( typeof hostname !== 'undefined' ) { whitelisted_domains.forEach(function(element) { if( hostname.slice((-1 * element.length - 1)) === '.'.concat(element) || hostname === element ) { result = true; } }); return result; } }; if (window.addEventListener) { window.addEventListener(\"message\", handleIFrameMessage, false); } else if (window.attachEvent) { window.attachEvent(\"onmessage\", handleIFrameMessage); } </script>"
21+
},
22+
{
23+
"id": "R5",
24+
"regex": "12e12ji12301jdij1209e",
25+
"content": "This message should never show"
26+
}
27+
]

0 commit comments

Comments
 (0)