<script>
$(function () {
$().notify({
data: [
{
// This message will appear 1 sec. after document is loaded
"name": "Hello World 1",
"body": " This is only example message ",
"time": (Math.floor(Date.now() / 1000) + 1)
},
{
// This message will appear 5 sec after document is loaded
"name": "Hello World 2",
"body": " This is only example message ",
"time": (Math.floor(Date.now() / 1000) + 5)
},
{
// This message will appear 10 sec after document is loaded
"name": "Hello World 3",
"body": " This is only example message ",
"time": (Math.floor(Date.now() / 1000) + 10)
}
]
});
});
</script>
<script>
$(function () {
$().notify({
url: 'path/to/file.json'
query: {uid: '<?=$user_id?>'}
});
});
</script>