Upload 5 files
Browse files- index.html +5 -2
- terms.js +17 -0
index.html
CHANGED
@@ -1,8 +1,11 @@
|
|
1 |
<!DOCTYPE html>
|
|
|
|
|
2 |
<html>
|
3 |
|
4 |
<head>
|
5 |
-
<
|
|
|
6 |
<script type="text/javascript" src="https://unpkg.com/vis-network/standalone/umd/vis-network.min.js"></script>
|
7 |
<style>
|
8 |
#network {
|
@@ -41,7 +44,7 @@
|
|
41 |
</head>
|
42 |
|
43 |
<body>
|
44 |
-
<h2>MoeSpeech
|
45 |
<!-- 鍒╃敤瑕忕磩銇ㄥ悓鎰忋儨銈裤兂 -->
|
46 |
<div id="terms-container">
|
47 |
<h3>Terms of use</h3>
|
|
|
1 |
<!DOCTYPE html>
|
2 |
+
<!-- encoding utf8 -->
|
3 |
+
|
4 |
<html>
|
5 |
|
6 |
<head>
|
7 |
+
<meta charset="utf-8">
|
8 |
+
<title>MoeSpeech Similarity Map</title>
|
9 |
<script type="text/javascript" src="https://unpkg.com/vis-network/standalone/umd/vis-network.min.js"></script>
|
10 |
<style>
|
11 |
#network {
|
|
|
44 |
</head>
|
45 |
|
46 |
<body>
|
47 |
+
<h2>MoeSpeech Similarity Map</h2>
|
48 |
<!-- 鍒╃敤瑕忕磩銇ㄥ悓鎰忋儨銈裤兂 -->
|
49 |
<div id="terms-container">
|
50 |
<h3>Terms of use</h3>
|
terms.js
ADDED
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
document.addEventListener("DOMContentLoaded", function () {
|
2 |
+
var agreeButton = document.getElementById("agree-button");
|
3 |
+
var agreeCheckbox = document.getElementById("agree-checkbox");
|
4 |
+
// var termsContainer = document.getElementById("terms-container");
|
5 |
+
var mainContent = document.getElementById("main-content");
|
6 |
+
|
7 |
+
agreeCheckbox.addEventListener("change", function () {
|
8 |
+
agreeButton.disabled = !agreeCheckbox.checked;
|
9 |
+
});
|
10 |
+
|
11 |
+
agreeButton.addEventListener("click", function () {
|
12 |
+
if (agreeCheckbox.checked) {
|
13 |
+
// termsContainer.style.display = "none";
|
14 |
+
mainContent.style.display = "block";
|
15 |
+
}
|
16 |
+
});
|
17 |
+
});
|