Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1686)

Unified Diff: site/try/iframe.js

Issue 2232273004: Delete site/try (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« dart.gyp ('K') | « site/try/iframe.html ('k') | site/try/index.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: site/try/iframe.js
diff --git a/site/try/iframe.js b/site/try/iframe.js
deleted file mode 100644
index d1460fd6a3e623f4daea91df507a11ddcd4be43f..0000000000000000000000000000000000000000
--- a/site/try/iframe.js
+++ /dev/null
@@ -1,51 +0,0 @@
-// Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-function dartPrint(msg) {
- window.parent.postMessage(String(msg), "*");
-}
-
-window.onerror = function (message, url, lineNumber) {
- window.parent.postMessage(
- ["error", {message: message, url: url, lineNumber: lineNumber}], "*");
-};
-
-function onMessageReceived(event) {
- var data = event.data;
- if (data instanceof Array) {
- if (data.length == 2 && data[0] == 'source') {
- var script = document.createElement('script');
- script.innerHTML = data[1];
- script.type = 'application/javascript';
- document.head.appendChild(script);
- return;
- }
- }
-}
-
-window.addEventListener("message", onMessageReceived, false);
-
-(function () {
- function postScrollHeight() {
- window.parent.postMessage(
- ["scrollHeight", document.documentElement.scrollHeight], "*");
- }
-
- var mutationObserverConstructor =
- window.MutationObserver ||
- window.WebKitMutationObserver ||
- window.MozMutationObserver;
-
- var observer = new mutationObserverConstructor(function(mutations) {
- postScrollHeight()
- window.setTimeout(postScrollHeight, 500);
- });
-
- observer.observe(
- document.body,
- { attributes: true,
- childList: true,
- characterData: true,
- subtree: true });
-})();
« dart.gyp ('K') | « site/try/iframe.html ('k') | site/try/index.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698