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

Unified Diff: samples/total/client/Adminz.js

Issue 10635015: Delete proxy and total samples, which have bit-rotted. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 6 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
« no previous file with comments | « samples/total/bin/start-total ('k') | samples/total/client/CSVReader.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: samples/total/client/Adminz.js
===================================================================
--- samples/total/client/Adminz.js (revision 9011)
+++ samples/total/client/Adminz.js (working copy)
@@ -1,51 +0,0 @@
-// Copyright (c) 2011, 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.
-
-var restartz = document.getElementById("restartServer");
-restartz.onclick = restartServer;
-
-var stopz = document.getElementById("stopServer");
-stopz.onclick = stopServer;
-
-var adminzReq;
-var adminzStatus = document.getElementById("adminzStatus");
-
-var statuzTimer;
-
-function showStatus() {
- if (adminzReq.readyState == 4) {
- if (adminzReq.status == 200) {
- adminzStatus.value = adminzReq.responseText;
- } else {
- adminzStatus.value = "Error " + adminzReq.status;
- }
- }
- clearTimer();
- statuzTimer = window.setTimeout("adminzStatus.value=''", 2000);
-}
-
-function clearTimer() {
- if (statuzTimer) {
- window.clearTimeout(statuzTimer);
- statuzTimer = null;
- }
-}
-
-function restartServer(event) {
- clearTimer();
- adminzReq = new XMLHttpRequest();
- adminzReq.onreadystatechange = showStatus;
- adminzReq.open("POST", "/adm/restart");
- adminzStatus.value = "Restarting...";
- adminzReq.send();
-}
-
-function stopServer(event) {
- clearTimer();
- adminzReq = new XMLHttpRequest();
- adminzReq.onreadystatechange = showStatus;
- adminzReq.open("POST", "/adm/stop");
- adminzStatus.value = "Stopping...";
- adminzReq.send();
-}
« no previous file with comments | « samples/total/bin/start-total ('k') | samples/total/client/CSVReader.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698