Skip to content

Instantly share code, notes, and snippets.

@e00dan
Created July 5, 2014 15:19
Show Gist options
  • Save e00dan/e34a06637ca771edeb02 to your computer and use it in GitHub Desktop.
Save e00dan/e34a06637ca771edeb02 to your computer and use it in GitHub Desktop.
@{
var i = 0;
foreach (var notify in @Model)
{
if (i > 0)
{
<text>setTimeout(function() {</text>
}
<text>
$.Notify({
caption: '@notify.Caption',
content: '@notify.Content',
style: { background: '@notify.Background', color: '@notify.Color' }
});
new Audio('@Url.Content(notify.Sound.Location)').play();
</text>
if (i > 0)
{
<text>}, 1000 * @i);</text>
}
i++;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment