Browse Source

Better labelling

master
Pete Shadbolt 8 years ago
parent
commit
df978f2f9e
3 changed files with 4 additions and 3 deletions
  1. +1
    -1
      static/index.html
  2. +2
    -1
      static/main.css
  3. +1
    -1
      static/main.js

+ 1
- 1
static/index.html View File

@@ -3,7 +3,7 @@
<html lang="en">
<head>
<meta charset="utf-8">
<title>Title</title>
<title>abp</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=1" />
<link rel="stylesheet" href="main.css">
</head>


+ 2
- 1
static/main.css View File

@@ -1,6 +1,7 @@
html, body { margin: 0; padding: 0; overflow: hidden; font-size: 10pt; font-family: "courier new"; }
#infoholder {
background: black; color:white; padding: 5px; margin:0px; position: absolute; top:5px; left:5px; font-family:"courier new"; text-align: center; font-size:10pt; width:200px; height:15px;
background: black; color:white; padding: 5px; margin:0px; position: absolute; top:5px; left:5px; font-family:"courier new"; text-align: center; font-size:10pt;
height:15px;
border-radius:3px;
}



+ 1
- 1
static/main.js View File

@@ -52,7 +52,7 @@ function makeScene(){
var vertex = new THREE.Vector3(i-5, j-5, 0);
nodeGeometry.vertices.push(vertex);
nodeGeometry.colors.push(new THREE.Color(0.5, 0.5, 0.5));
nodeGeometry.labels.push(i + " " + j + " ");
nodeGeometry.labels.push("Click to add a qubit at (" + i + ", " + j + ")");
}
}



Loading…
Cancel
Save