瀏覽代碼

Better labelling

master
Pete Shadbolt 8 年之前
父節點
當前提交
df978f2f9e
共有 3 個文件被更改,包括 4 次插入3 次删除
  1. +1
    -1
      static/index.html
  2. +2
    -1
      static/main.css
  3. +1
    -1
      static/main.js

+ 1
- 1
static/index.html 查看文件

@@ -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 查看文件

@@ -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 查看文件

@@ -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…
取消
儲存