Skip to content

Commit 749f764

Browse files
committed
Minor ui tweaks and cleanups
1 parent 673d7c3 commit 749f764

File tree

7 files changed

+25
-18
lines changed

7 files changed

+25
-18
lines changed

mkdocs/docs/playground/index.html

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,21 +13,18 @@
1313

1414
<body class="h-100" onresize="fit()" onload="fit();updateGutterVisibility();">
1515
<div id="preloader"><img src="images/preloader.gif" width="100px"><div id="preloader-message"></div></div>
16-
<!-- <div id="liveShareBar" style="position:absolute;top:0px;left:60px;padding:4px;width:100px;height:30px;background-color:#41A030;color:white;z-index: 1000">Live Sharing</div> -->
1716
<div id="navview" data-role="navview" style="display:none">
1817
<div class="navview-pane">
1918
<button class="pull-button">
2019
<span class="default-icon-menu" id="toggleNavViewPane"></span>
2120
</button>
2221
<ul class="navview-menu">
23-
<li class="item-header">Epsilon Playground</li>
24-
<li class="item-separator"></li>
25-
<li id="liveShareStatus">
26-
<a href="#" onclick="showLiveShare(event)">
27-
<span class="icon"><span class="mif-example-16 mif-liveshare"></span></span>
28-
<span class="caption">Live Sharing</span>
29-
</a>
22+
<li class="item-header">Epsilon Playground
23+
<span class="badges" style="display:none;float:right;position:relative;top:-2px" id="liveShareTitleBadges">
24+
<span class="badge inline" style="font-size:12px; background-color:#41A030;color:white">LIVE</span>
25+
</span>
3026
</li>
27+
<li class="item-separator"></li>
3128
<li class="item-separator" id="examplesEnd"></li>
3229
<li>
3330
<a href="#" onclick="showLiveShare(event)" id="liveShare">

mkdocs/docs/playground/js/DownloadDialog.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,8 @@ class DownloadDialog {
111111
caption: "Cancel",
112112
cls: "js-dialog-close"
113113
}
114-
]
114+
],
115+
closeButton: true
115116
});
116117
}
117118

mkdocs/docs/playground/js/LiveShareDialog.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ class LiveShareDialog {
3939
cls: "js-dialog-close"
4040
}
4141

42-
]
42+
],
43+
closeButton: true
4344
});
4445
});
4546
}

mkdocs/docs/playground/js/LiveShareManager.js

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,16 @@ class LiveShareManager {
5151

5252
showLiveShareStatus(status) {
5353
var liveShareBadges = document.getElementById("liveShareBadges");
54-
if (status) liveShareBadges.style.display = "block";
55-
else liveShareBadges.style.display = "none";
56-
57-
var liveShareStatus = document.getElementById("liveShareStatus");
58-
liveShareStatus.style.display = liveShareBadges.style.display;
54+
var liveShareTitleBadges = document.getElementById("liveShareTitleBadges");
55+
56+
if (status) {
57+
liveShareBadges.style.display = "block";
58+
liveShareTitleBadges.style.display = "inline";
59+
}
60+
else {
61+
liveShareBadges.style.display = "none";
62+
liveShareTitleBadges.style.display = "none";
63+
}
5964
}
6065

6166
startSession() {

mkdocs/docs/playground/js/OutputPanel.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,8 @@ class OutputPanel extends ModelPanel {
7272
caption: "Cancel",
7373
cls: "js-dialog-close"
7474
}
75-
]
75+
],
76+
closeButton: true
7677
});
7778
}
7879

mkdocs/docs/playground/js/Playground.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,8 @@ function copyShortenedLink(event) {
140140
onclick: function(){
141141
copyToClipboard(baseUrl + "?" + json.shortened);
142142
}
143-
}]
143+
}],
144+
closeButton: true
144145
});
145146
}
146147
Metro.notify.killAll();

mkdocs/docs/playground/js/SettingsDialog.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@ class SettingsDialog {
4646
caption: "Cancel",
4747
cls: "js-dialog-close"
4848
}
49-
]
49+
],
50+
closeButton: true
5051
});
5152
}
5253

0 commit comments

Comments
 (0)