-
Notifications
You must be signed in to change notification settings - Fork 0
/
chart_highlights.html
202 lines (168 loc) · 4.68 KB
/
chart_highlights.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
<!-- Code from d3-graph-gallery.com -->
<!DOCTYPE html>
<meta charset="utf-8">
<!-- Load d3.js -->
<script src="https://d3js.org/d3.v4.min.js"></script>
<!-- Load the sankey.js function -->
<!-- <script src="https://cdn.jsdelivr.net/gh/holtzy/D3-graph-gallery@master/LIB/sankey.js"></script> -->
<script src="sankey_uniform.js"></script>
<!-- Open Sans & CSS -->
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Amatic+SC&display=swap" rel="stylesheet">
<!-- <link href="https://fonts.googleapis.com/css?family=Open+Sans:700,400,300" rel='stylesheet' type='text/css'> -->
<style>
body {
font-family: 'Amatic SC', cursive;
font-size: 18px;
font-weight: 400;
color: #525252;
text-align: center;
}
text {
cursor: pointer;
font-size: 25px;
}
.title{
font-size: 60px;
}
/* .link { почему если это не убрать, то вылазят вспомогательные линки?
fill: none;
stroke: #000;
stroke-opacity: .2;
}*/
.link:hover {
cursor: pointer;
}
.node circle {
cursor: pointer;
fill-opacity: .9;
shape-rendering: crispEdges;
}
.node text {
pointer-events: none;
text-shadow: 0 1px 0 #fff;
}
/* The switch - the box around the slider */
.switch {
position: relative;
display: inline-block;
width: 100px;
height: 34px;
}
/* Hide default HTML checkbox */
.switch input {
opacity: 0;
width: 0;
height: 0;
}
/* The slider */
.slider {
position: absolute;
cursor: pointer;
top: 0;
left: 0;
right: 0;
bottom: 0;
content: "";
background-color: #FFCD8E;
/*background: url(short.svg);*/
-webkit-transition: .4s;
transition: .4s;
}
.slider:before {
position: absolute;
content: "short";
height: 26px;
width: 36px;
left: 4px;
bottom: 4px;
background-color: white;
-webkit-transition: .4s;
transition: .4s;
}
input:checked + .slider {
background-color: #C384DB;
/*background: url(long.svg)*/
}
/*input:focus + .slider {
box-shadow: 0 0 1px #2196F3;
}*/
input:checked + .slider:before {
-webkit-transform: translateX(56px);
-ms-transform: translateX(56px);
transform: translateX(56px);
content: "long";
}
/* Rounded sliders */
.slider.round {
border-radius: 34px;
}
.slider.round:before {
border-radius: 34px;
}
}
</style>
<div id="intro">
<h1>
20 лет студчров
</h1>
<p>
Можно кликать на команды и смотреть, что получается.
</p>
<p>
Можно наводить курсор на линк и тоже смотреть, что получается.
</p>
<p>
Как исправить то, что после выбора узла перестаёт работать его подсветка при наведении на линк, я пока хз.
</p>
<div>
<label class="switch">
<input id='toggle' type="checkbox">
<span class="slider round"></span>
</label>
</div>
</div>
<!-- <div id="nav">
<a href="#" id="short" name="short"> short </a>
<a href="#" id="long" name="long"> long </a> -->
<!-- <a href="#" id="video" name="video" onclick=choose(this.name)>Video Game Data Set</a>
<a href="#" id="movie" name="movie" onclick=choose(this.name)>Movies Data Set</a>
<a href="#" id="kick" name="kick" onclick=choose(this.name)>Kickstarter Data Set</a> -->
<!-- <a href="#" id="video" name="video">Video Game Data Set</a>
<a href="#" id="movie" name="movie">Movies Data Set</a>
<a href="#" id="kick" name="kick">Kickstarter Data Set</a> -->
<!-- <button id="video" name="video">Video Game Data Set</button>
<button id="movie" name="movie">Movies Data Set</button>
<button id="kick" name="kick">Kickstarter Data Set</button> -->
<!-- </div> -->
<!-- <script>
var isChecked=document.getElementById("togVersion").checked;
console.log(document.getElementById("togVersion"));
</script>
-->
<!-- Create a div where the graph will take place -->
<div id="my_dataviz">
<script src="chart_highlights.js">
// function update() {
// loadScript("chart_short_highlights.js")
// }
// function changeExpression(src){
// var heat = document.createElement("script");
// heat.src = main_heat.js;
// document.body.appendChild(heat);
// var prop = document.createElement("script");
// prop.src = main.js;
// document.body.appendChild(prop);
// if (src === "heat"){
// loadScript("main_heat.js")
// } else if (src === "prop"){
// loadScript("main.js");
// }
// };
</script>
</div>
<div id="ending">
<p>
@astrofyz
</p>
</div>