mirror of
https://github.com/hanzoai/jube-fork.git
synced 2026-11-02 14:29:36 +00:00
127 lines
4.8 KiB
HTML
Executable File
127 lines
4.8 KiB
HTML
Executable File
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<title>Images</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">
|
|
|
|
<h4>Menu with images</h4>
|
|
|
|
<ul id="menu-images"></ul>
|
|
|
|
</div>
|
|
|
|
<script>
|
|
$("#menu-images").kendoMenu({
|
|
dataSource: [
|
|
{
|
|
text: "Baseball", imageUrl: "../content/shared/icons/sports/baseball.png",
|
|
items: [
|
|
{ text: "Top News", imageUrl: "../content/shared/icons/16/star.png" },
|
|
{ text: "Photo Galleries", imageUrl: "../content/shared/icons/16/photo.png" },
|
|
{ text: "Videos Records", imageUrl: "../content/shared/icons/16/video.png" },
|
|
{ text: "Radio Records", imageUrl: "../content/shared/icons/16/speaker.png" }
|
|
]
|
|
},
|
|
{
|
|
text: "Golf", imageUrl: "../content/shared/icons/sports/golf.png",
|
|
items: [
|
|
{ text: "Top News", imageUrl: "../content/shared/icons/16/star.png" },
|
|
{ text: "Photo Galleries", imageUrl: "../content/shared/icons/16/photo.png" },
|
|
{ text: "Videos Records", imageUrl: "../content/shared/icons/16/video.png" },
|
|
{ text: "Radio Records", imageUrl: "../content/shared/icons/16/speaker.png" }
|
|
]
|
|
},
|
|
{
|
|
text: "Swimming", imageUrl: "../content/shared/icons/sports/swimming.png",
|
|
items: [
|
|
{ text: "Top News", imageUrl: "../content/shared/icons/16/star.png" },
|
|
{ text: "Photo Galleries", imageUrl: "../content/shared/icons/16/photo.png" }
|
|
]
|
|
}
|
|
]
|
|
});
|
|
</script>
|
|
|
|
<div class="demo-section k-content">
|
|
|
|
<h4>Menu with sprites</h4>
|
|
|
|
<div id="menu-sprites"></div>
|
|
|
|
</div>
|
|
|
|
<script>
|
|
$("#menu-sprites").kendoMenu({
|
|
dataSource: [{
|
|
text: "Brazil", spriteCssClass: "brazilFlag", items: [
|
|
{ text: "History", spriteCssClass: "historyIcon" },
|
|
{ text: "Geography", spriteCssClass: "geographyIcon" },
|
|
]
|
|
},
|
|
{
|
|
text: "India", spriteCssClass: "indiaFlag", items: [
|
|
{ text: "History", spriteCssClass: "historyIcon" },
|
|
{ text: "Geography", spriteCssClass: "geographyIcon" },
|
|
]
|
|
},
|
|
{
|
|
text: "Netherlands", spriteCssClass: "netherlandsFlag", items: [
|
|
{ text: "History", spriteCssClass: "historyIcon" },
|
|
{ text: "Geography", spriteCssClass: "geographyIcon" },
|
|
]
|
|
}]
|
|
});
|
|
</script>
|
|
|
|
<style>
|
|
#menu-sprites .k-sprite {
|
|
background-image: url("../content/shared/styles/flags.png");
|
|
}
|
|
.brazilFlag {
|
|
background-position: 0 0;
|
|
}
|
|
.indiaFlag {
|
|
background-position: 0 -32px;
|
|
}
|
|
.netherlandsFlag {
|
|
background-position: 0 -64px;
|
|
}
|
|
.historyIcon {
|
|
background-position: 0 -96px;
|
|
}
|
|
.geographyIcon {
|
|
background-position: 0 -128px;
|
|
}
|
|
</style>
|
|
</div>
|
|
|
|
|
|
|
|
</body>
|
|
</html>
|