summaryrefslogtreecommitdiffstats
path: root/SunSpider/resources/TEMPLATE.html
diff options
context:
space:
mode:
Diffstat (limited to 'SunSpider/resources/TEMPLATE.html')
-rw-r--r--SunSpider/resources/TEMPLATE.html12
1 files changed, 10 insertions, 2 deletions
diff --git a/SunSpider/resources/TEMPLATE.html b/SunSpider/resources/TEMPLATE.html
index 926150d..3dc3f2f 100644
--- a/SunSpider/resources/TEMPLATE.html
+++ b/SunSpider/resources/TEMPLATE.html
@@ -1,5 +1,8 @@
<!DOCTYPE html>
<head>
+
+<meta charset=utf8>
+
<!--
Copyright (C) 2007 Apple Inc. All rights reserved.
@@ -26,15 +29,20 @@
-->
<title>SunSpider @NAME@</title>
-<link rel="stylesheet" href="sunspider.css"></link>
+<link rel="stylesheet" href="../sunspider.css">
</head>
<body>
<h3>@NAME@</h3>
<div id="console">
</div>
-<script src="sunspider-record-result.js"></script>
<script>
+function record(time) {
+ document.getElementById("console").innerHTML = time + "ms";
+ if (window.parent) {
+ parent.recordResult(time);
+ }
+}
var _sunSpiderStartDate = new Date();