Skip to content

Commit f978408

Browse files
committed
small fixes for getting web demo into blog
1 parent a5f7517 commit f978408

File tree

3 files changed

+19
-19
lines changed

3 files changed

+19
-19
lines changed

web/index.html

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,6 @@
55
<title>Few-Shot Learning</title>
66
<link rel="stylesheet" href="style.css" type="text/css">
77
<script src="build/app.js"></script>
8-
<script>
9-
window.onload = function() {
10-
document.body.appendChild(new UI().element);
11-
};
12-
</script>
138
</head>
149
<body>
1510
<div class="few-shot-container"></div>

web/src/ui.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,4 +113,8 @@
113113

114114
window.UI = UI;
115115

116+
window.onload = function() {
117+
new UI();
118+
};
119+
116120
})();

web/style.css

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
1-
body {
2-
font-family: sans-serif;
3-
margin: 10px 0;
4-
}
5-
61
.few-shot-container {
72
width: 310px;
83
display: block;
@@ -30,17 +25,22 @@ body {
3025
}
3126

3227
.few-shot-container-controls button {
33-
position: absolute;
34-
width: 92px;
35-
height: 30px;
36-
left: 4px;
28+
position: absolute !important;
29+
width: 92px !important;
30+
height: 30px !important;
31+
left: 4px !important;
32+
min-height: 0 !important;
3733

38-
border: none;
34+
border: none !important;
3935

40-
background-color: #65bcd4;
41-
color: white;
42-
font-size: 16px;
43-
cursor: pointer;
36+
background-color: #65bcd4 !important;
37+
color: white !important;
38+
font-size: 16px !important;
39+
cursor: pointer !important;
40+
41+
letter-spacing: 0 !important;
42+
text-transform: none !important;
43+
border-radius: none !important;
4444
}
4545

4646
.few-shot-container-clear {
@@ -124,6 +124,7 @@ body {
124124

125125
.few-shot-predictions-percent-label {
126126
margin-left: 10px;
127+
font-size: 16px;
127128
}
128129

129130
.few-shot-predictions-bar-container {

0 commit comments

Comments
 (0)