Skip to content

Commit e453bab

Browse files
committed
fixed some display issues in examples
1 parent dc402ca commit e453bab

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

css/examples.css

+2-2
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ section#titlechart {
5353
min-width: 100%;
5454
height: 100vh;
5555
}
56-
.horizontal section {
56+
.horizontal section, .horizontal section#titlechart{
5757
display: inline-block;
5858
vertical-align: top;
5959
height: 100%;
@@ -519,7 +519,7 @@ ul#menu ul li a:hover {
519519
min-height: 51px;
520520
border-bottom-left-radius: 8px;
521521
border-bottom-right-radius: 8px;
522-
z-index: 998;
522+
z-index: 99999;
523523
text-align: center;
524524
transition: top 0.5s;
525525
-webkit-transition: top 0.5s; /* Safari */

examples/basic/scene_manipulation.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -188,4 +188,4 @@ <h2>Scenes can be completely updated on the fly.</h2>
188188
</div>
189189
<script type="text/javascript" src="../../js/tracking.js"></script>
190190
</body>
191-
</html>
191+
</html>

examples/expert/manipulating_tweens.html

+2-4
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,12 @@ <h2>Flexible tweening targets.</h2>
4848
<div>
4949
<label for="scaleX">scaleX</label>
5050
<div class="slider liveupdate"></div>
51-
<input type="text" id="scaleX" size="3" value="1" min="0.1" max="3" step="0.1">
51+
<input type="text" id="scaleX" size="3" value="1.0" min="0.1" max="3" step="0.1">
5252
</div>
5353
<div>
5454
<label for="scaleY">scaleY</label>
5555
<div class="slider liveupdate"></div>
56-
<input type="text" id="scaleY" size="3" value="1" min="0.1" max="3" step="0.1">
56+
<input type="text" id="scaleY" size="3" value="1.0" min="0.1" max="3" step="0.1">
5757
</div>
5858
</fieldset>
5959
</form>
@@ -78,8 +78,6 @@ <h2>Flexible tweening targets.</h2>
7878
.addIndicators() // add indicators (requires plugin)
7979
.addTo(controller);
8080

81-
$("div.slider+input").change(); // trigger change to init sliders.
82-
8381
$("#tweenparams input").on("change", function () {
8482
var params = {css: {
8583
scaleX: parseFloat($("input#scaleX").val()),

js/examples.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,9 @@ $(document).ready(function () {
289289
})
290290
.prev()
291291
.append("<div class=\"trackbar\"></div>")
292-
.append("<div class=\"handle\"></div>");
292+
.append("<div class=\"handle\"></div>")
293+
.end()
294+
.change(); // trigger to init
293295

294296

295297
// add tooltips to badges

0 commit comments

Comments
 (0)