Created
July 5, 2014 15:19
-
-
Save e00dan/e34a06637ca771edeb02 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@{ | |
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