Files
jube-fork/Jube.App/wwwroot/kendo/examples/scrollview/events.html
2022-11-04 13:24:24 +02:00

115 lines
3.2 KiB
HTML
Executable File

<!DOCTYPE html>
<html>
<head>
<title>Events</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" style="margin:auto; width:70%">
<div id="scrollView" style="width: 660px; height: 420px; max-width: 100%; margin: auto;">
<div class="photo photo1" data-role="page">
</div><div class="photo photo2" data-role="page">
</div><div class="photo photo3" data-role="page">
</div><div class="photo photo4" data-role="page">
</div><div class="photo photo5" data-role="page">
</div><div class="photo photo6" data-role="page">
</div><div class="photo photo7" data-role="page">
</div><div class="photo photo8" data-role="page">
</div><div class="photo photo9" data-role="page">
</div><div class="photo photo10" data-role="page">
</div>
</div>
<script>
$(document).ready(function () {
function onChange(e) {
kendoConsole.log("page " + e.nextPage);
}
function onRefresh(e) {
kendoConsole.log("Total: " + e.pageCount + " Current: " + e.page);
}
$("#scrollView").kendoScrollView({
enablePager: true,
contentHeight: "100%",
change: onChange,
refresh: onRefresh
});
});
</script>
</div>
<style>
#scrollview-home .photo {
display: inline-block;
background-size: cover;
background-repeat: no-repeat;
background-position: center center;
}
.photo1 {
background-image: url("../content/shared/images/photos/11.jpg");
}
.photo2 {
background-image: url("../content/shared/images/photos/12.jpg");
}
.photo3 {
background-image: url("../content/shared/images/photos/13.jpg");
}
.photo4 {
background-image: url("../content/shared/images/photos/14.jpg");
}
.photo5 {
background-image: url("../content/shared/images/photos/15.jpg");
}
.photo6 {
background-image: url("../content/shared/images/photos/16.jpg");
}
.photo7 {
background-image: url("../content/shared/images/photos/17.jpg");
}
.photo8 {
background-image: url("../content/shared/images/photos/18.jpg");
}
.photo9 {
background-image: url("../content/shared/images/photos/19.jpg");
}
.photo10 {
background-image: url("../content/shared/images/photos/20.jpg");
}
</style>
</body>
</html>