forked from eclifford/bronson
-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.html
27 lines (26 loc) · 892 Bytes
/
test.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<!DOCTYPE html>
<html>
<head>
<title>Bronson Demo</title>
<script src='javascripts/vendor/jquery/jquery.js'></script>
<script src='javascripts/vendor/requirejs/require.js'></script>
<script src='javascripts/vendor/requirejs/require-conf.js'></script>
<script>
require(['bronson'], function(Bronson) {
Bronson.Api.loadModule('apps/lib/logger/loggerModule', (function() { }), { el: '#log'}, true);
});
$(function() {
$('#btnAddLogEvent').click(function() {
Bronson.Api.publish('logevent', { msg: $('#txtLogEvent').val() });
});
});
</script>
</head>
<body>
<div>
<input id='txtLogEvent' type='text'></input>
<button id='btnAddLogEvent' value='add'></button>
</div>
<div id='log'></div>
</body>
</html>