Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
84 lines (80 sloc) 2.27 KB
<link href="" rel="stylesheet">
<link href="" rel="stylesheet">
/* Info template */
.new-mail {
width: 300px;
height: 100px;
font-size: .9em;
.new-mail h3 {
font-size: 1.1em;
padding: 25px 10px 5px 0px;
.new-mail img {
float: left;
margin: 30px 15px 30px 30px;
<span id="emailNotification" style="display:none"></span>
<button id="messages">Check for Messages</button>
<script src=""></script>
<script src="js/jquery.mockjax.js"></script>
<script src=""></script>
<script src="js/blip.js"></script>
<script id="emailTemplate" type="text/x-kendo-template">
<div class="new-mail">
<img src="images/envelope.png" />
<h3>#= title #</h3>
<p>From: #= from #</p>
var ping,
emailNotification = $("#emailNotification").kendoNotification(
show: onEmailReceived,
templates: [{
type: "email",
template: $("#emailTemplate").html()
messages = $('#messages').kendoButton({enable: false, click: checkMessages}).data("kendoButton");
url: "/api/loademail",
responseTime: 300,
responseText: {
from: "Burke Holland",
title: "Your promotion to VP",
body: "Comes with a big raise too!"
'notification': 'audio/marimba.wav'
function audioLoaded() {
notification = blip.clip().sample('notification');
function checkMessages(e) {
$.getJSON( "/api/loademail", function(data) {{
title: data.title,
from: data.from,
}, "email");
function onEmailReceived(e) {,{rate:1});