mirror of
https://github.com/hanzoai/jube-fork.git
synced 2026-11-02 14:29:36 +00:00
163 lines
5.1 KiB
HTML
Executable File
163 lines
5.1 KiB
HTML
Executable File
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<title>Playlist</title>
|
|
<meta charset="utf-8">
|
|
<link href="../content/shared/styles/examples-offline.css" rel="stylesheet">
|
|
<link href="../../styles/kendo.common.min.css" rel="stylesheet">
|
|
<link href="../../styles/kendo.rtl.min.css" rel="stylesheet">
|
|
<link href="../../styles/kendo.default.min.css" rel="stylesheet">
|
|
<link href="../../styles/kendo.default.mobile.min.css" rel="stylesheet">
|
|
<script src="../../js/jquery.min.js"></script>
|
|
<script src="../../js/jszip.min.js"></script>
|
|
<script src="../../js/kendo.all.min.js"></script>
|
|
<script src="../content/shared/js/console.js"></script>
|
|
<script>
|
|
|
|
</script>
|
|
|
|
|
|
</head>
|
|
<body>
|
|
|
|
<a class="offline-button" href="../index.html">Back</a>
|
|
|
|
<div id="example">
|
|
<div class="demo-section k-content wide" style="max-width: 925px;">
|
|
<div id="mediaplayer" style="height:360px"></div>
|
|
<div class="k-list-container playlist"><ul id="listView" class="k-list"></ul></div>
|
|
</div>
|
|
<script type="text/javascript">
|
|
$(document).ready(function () {
|
|
|
|
$("#mediaplayer").kendoMediaPlayer({
|
|
autoPlay: true
|
|
});
|
|
|
|
var videos = new kendo.data.DataSource({
|
|
data: [{
|
|
title: "Build HIPAA-Compliant Healthcare Apps Fast",
|
|
poster: "https://img.youtube.com/vi/_S63eCewxRg/1.jpg",
|
|
source: "https://www.youtube.com/watch?v=dyvxivS5EcI"
|
|
},
|
|
{
|
|
title: "ProgressNEXT 2018 Highlights",
|
|
poster: "https://img.youtube.com/vi/DYsiJRmIQZw/1.jpg",
|
|
source: "https://www.youtube.com/watch?v=Gp7tcOcSKAU"
|
|
},
|
|
{
|
|
title: "Kendo UI Testimonial",
|
|
poster: "https://img.youtube.com/vi/gNlya720gbk/1.jpg",
|
|
source: "https://www.youtube.com/watch?v=itoKeywVNBI"
|
|
},
|
|
{
|
|
title: "Introducing Test Studio DevEdition",
|
|
poster: "https://img.youtube.com/vi/rLtTuFbuf1c/1.jpg",
|
|
source: "https://www.youtube.com/watch?v=A2rmIx9rPG0"
|
|
},
|
|
{
|
|
title: "Progress Application Server OpenEdge",
|
|
poster: "https://i.ytimg.com/vi/CpHKm2NruYc/1.jpg",
|
|
source: "https://www.youtube.com/watch?v=3Ce11N9udR4&list=PLC679RvCan2BJ9HCdUyZhnhHKActnrape"
|
|
}
|
|
]
|
|
});
|
|
|
|
var listView = $("#listView").kendoListView({
|
|
dataSource: videos,
|
|
selectable: true,
|
|
scrollable: false,
|
|
template: kendo.template($("#template").html()),
|
|
change: onChange,
|
|
dataBound: onDataBound
|
|
});
|
|
|
|
function onChange() {
|
|
var index = this.select().index();
|
|
var dataItem = this.dataSource.view()[index];
|
|
$("#mediaplayer").data("kendoMediaPlayer").media(dataItem);
|
|
}
|
|
|
|
function onDataBound(e) {
|
|
this.select(this.content.children().first());
|
|
}
|
|
|
|
});
|
|
</script>
|
|
<script type="text/x-kendo-template" id="template">
|
|
<li class="k-item k-state-default" onmouseover="$(this).addClass('k-state-hover')"
|
|
onmouseout="$(this).removeClass('k-state-hover')">
|
|
<span>
|
|
<img src="#:poster#" />
|
|
<h5>#:title#</h5>
|
|
</span>
|
|
</li>
|
|
</script>
|
|
<style>
|
|
.k-mediaplayer {
|
|
float: left;
|
|
box-sizing: border-box;
|
|
width: 70%;
|
|
}
|
|
|
|
.playlist {
|
|
float: left;
|
|
height: 360px;
|
|
overflow: auto;
|
|
width: 30%;
|
|
}
|
|
media(max-width: 800px)
|
|
{
|
|
.playlist,
|
|
.k-mediaplayer {
|
|
width: 100%;
|
|
}}
|
|
|
|
.playlist ul, .playlist li {
|
|
list-style-type: none;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
.playlist .k-item {
|
|
border-bottom-style: solid;
|
|
border-bottom-width: 1px;
|
|
padding: 14px 15px;
|
|
}
|
|
|
|
.playlist .k-item:last-child {
|
|
border-bottom-width: 0;
|
|
}
|
|
|
|
.playlist span {
|
|
cursor: pointer;
|
|
display: block;
|
|
overflow: hidden;
|
|
text-decoration: none;
|
|
}
|
|
|
|
.playlist span img {
|
|
border: 0 none;
|
|
display: block;
|
|
height: 56px;
|
|
object-fit: cover;
|
|
width: 100px;
|
|
float: left;
|
|
}
|
|
|
|
.playlist h5 {
|
|
display: block;
|
|
font-weight: normal;
|
|
margin: 0;
|
|
overflow: hidden;
|
|
padding-left: 10px;
|
|
text-align: left;
|
|
}
|
|
</style>
|
|
</div>
|
|
|
|
|
|
|
|
</body>
|
|
</html>
|