Files
2022-11-04 13:24:24 +02:00

66 lines
2.0 KiB
HTML
Executable File

<!DOCTYPE html>
<html>
<head>
<title>API</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 class="configurator">
<div class="header">Configurator</div>
<div class="box-col">
<h4>API Functions</h4>
<ul class="options">
<li>
<button id="showNotification" class="k-button k-primary">Show</button>
<button id="hideAllNotifications" class="k-button">Hide All</button>
</li>
</ul>
</div>
</div>
<div id="example">
<span id="notification" style="display:none;"></span>
<script>
$(document).ready(function() {
var notification = $("#notification").kendoNotification({
width: "12em",
templates: [{
type: "time",
template: "<div style='padding: .6em 1em'>Time is: <span class='timeWrap'>#: time #</span></div>"
}]
}).data("kendoNotification");
$("#showNotification").click(function(){
var d = new Date();
notification.show({ time: kendo.toString(d, 'HH:MM:ss.') + kendo.toString(d.getMilliseconds(), "000") }, "time");
});
$("#hideAllNotifications").click(function(){
notification.hide();
});
});
</script>
</div>
</body>
</html>