Commit 8442f63f authored by Sylvain Schmitz's avatar Sylvain Schmitz

improve website rendering

parent 1567569e
......@@ -2,15 +2,25 @@
<html>
<head>
<meta charset="utf-8">
<title>XPath fragments in the benchmark</title>
<link rel="stylesheet" type="text/css" href="prettify.min.css">
<title>XPath Benchmark</title>
<!--link rel="stylesheet" type="text/css" href="prettify.min.css"-->
<link rel="stylesheet" type="text/css" href="xpp.min.css">
<link rel="stylesheet" type="text/css" href="chord.min.css">
<script type="text/javascript"
<!--script type="text/javascript"
src="https://cdn.rawgit.com/google/code-prettify/master/loader/prettify.js"></script>
<script type="text/javascript" src="lang-xpath.min.js"></script>
<script type="text/javascript" src="lang-xpath.min.js"></script-->
<script src="https://d3js.org/d3.v4.min.js" charset="utf-8"></script>
<script src="https://d3js.org/queue.v1.min.js"></script>
<!--script type="text/javascript" src="https://code.jquery.com/jquery-latest.min.js"></script>
<link rel="stylesheet" href="tinyscrollbar.min.css" type="text/css" media="screen"/>
<script type="text/javascript" src="jquery.tinyscrollbar.min.js"></script>
<script type="text/javascript">
$(document).ready(function()
{
var $scrollbar = $("#scrollbar1");
$scrollbar.tinyscrollbar();
});
</script-->
<body>
<h1>XPath fragments in @BENCHMARK@</h1>
<h2>(<span style="color:red">preliminary version</span>)</h2>
......@@ -34,7 +44,7 @@
<div id="left">
<aside style="position: relative; top:2px">
<p>Order: <select id="order">
<option value="count" selected>by Frequency</option>
<option value="count" selected>by Coverage</option>
<option value="name">by Name</option>
<option value="group">by Cluster</option>
</select>
......@@ -53,14 +63,16 @@ var width = 650,
height = 650,
outerRadius = Math.min(width, height) / 2 - 10,
innerRadius = outerRadius - 24;
logwidth = 200;
d3.select("body")
.style("width", width + matrixw + margin.left + margin.right +"px");
.style("width", width + matrixw + margin.left + margin.right + logwidth
+"px");
d3.select("#links")
.style("width", width + "px")
.style("height", height + "px");
d3.select("#log")
.style("width", matrixw + margin.left + margin.right +"px");
.style("width", matrixw + margin.left + margin.right + logwidth +"px");
d3.select("aside")
.style("left", matrixw + margin.left -20 +"px");
......
......@@ -143,7 +143,7 @@ function matrixgraph(fragments, matrix, maxentries) {
.attr("class", "prettyprint lang-xpath")
.text(d.replace("&quot;","'"));
});
PR.prettyPrint();
//PR.prettyPrint();
}
function mouseovercell(p) {
......@@ -381,7 +381,7 @@ function chordgraph(fragments, matrix, maxentries) {
.attr("class", "prettyprint lang-xpath")
.text(d.replace("&quot;","'"));
});
PR.prettyPrint();
//PR.prettyPrint();
}
}
......
......@@ -9,7 +9,7 @@ a { text-decoration: none; color: black }
a:hover { color: #666; text-decoration: underline; }
#links, #left {
float: left;
float: right;
}
#left { font-size: 10px; }
......@@ -28,6 +28,10 @@ a:hover { color: #666; text-decoration: underline; }
transition: opacity 0.5s ease-in-out;
background-color: white;
margin-bottom: 50px;
position: relative;
top: 2px;
}
#log ul { padding-left: 1em; }
#log li { margin-bottom: .3ex; }
\ No newline at end of file
#log div { overflow-y: auto; height: 370px; direction: rtl; }
#log p { direction: ltr; }
#log ul { padding-left: 1em; direction: ltr; }
#log li { margin-bottom: .3ex; }
\ No newline at end of file
......@@ -66,11 +66,13 @@
<xsl:text>{ "z": </xsl:text><xsl:value-of select="count($examples)"/>
<xsl:if test="$examples">
<xsl:text>, "examples": [</xsl:text>
<xsl:for-each select="$examples[position() &lt;= $nexamples]">
<!--xsl:for-each select="$examples[position() &lt;= $nexamples]"-->
<xsl:for-each select="$examples">
<xsl:text>"</xsl:text><xsl:value-of
select="replace(replace(normalize-space(current()/query),'&quot;',&quot;'&quot;),'\\','\\\\')"/>
<xsl:text>"</xsl:text>
<xsl:if test="position() != last() and position() &lt; $nexamples">
<!--xsl:if test="position() != last() and position() &lt; $nexamples"-->
<xsl:if test="position() != last()">
<xsl:text>,</xsl:text>
</xsl:if>
</xsl:for-each>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment