summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--index.php2
-rw-r--r--lfpe.js11
2 files changed, 12 insertions, 1 deletions
diff --git a/index.php b/index.php
index f694b72..3505eda 100644
--- a/index.php
+++ b/index.php
@@ -6,7 +6,7 @@
<link rel="stylesheet" type="text/css" href="lfpe.css" />
</head>
-<body onload="">
+<body onload="init()">
<!-- Wrapper -->
<div id="wrapper">
diff --git a/lfpe.js b/lfpe.js
index b10a265..83257c1 100644
--- a/lfpe.js
+++ b/lfpe.js
@@ -1,3 +1,14 @@
+function init()
+{
+ document.getElementById("target_textarea").value = "";
+ document.getElementById("raw_source_textarea").value = "";
+ document.getElementById("source").value = "";
+ document.getElementById("current_seg_id").value = "";
+ document.getElementById("paused").value = "";
+
+ return false;
+}
+
function CreateCORSRequest(method, url)
{
var xhr = new XMLHttpRequest();