-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
57 lines (52 loc) · 1.54 KB
/
index.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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<!doctype>
<html>
<head>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css">
<link rel="stylesheet" href="css/main.css">
</head>
<body>
<script src="bower_components/jquery/dist/jquery.min.js"></script>
<script src="bower_components/react/react.js"></script>
<script>
window.Dispatcher = (function(){
var reg = {};
var register = function(name, f) {
if(reg[name]) {
reg[name].push(f);
} else {
reg[name] = [f];
}
};
var trigger = function(name, data) {
var fs = reg[name] || [];
fs.map(function(f) { f(data)(); });
};
return {register:register, trigger:trigger}
})();
</script>
<div id="container">
<div id="login" class=""></div>
<nav id="nav" class="navbar navbar-default clear" role="navigation"></nav>
<div id="create" class="col-xs-12 row"></div>
<div id="speakers"></div>
<div id="sessions"></div>
<div id="custom_"></div>
</div>
<script src="js/widgets.js"></script>
<script>
$(function() {
var i = setInterval(function() {
var $el = $('nav li').first();
if($el) {
$('nav a').on('click', function(){
$('nav').find('.active').removeClass('active');
$(this).parent().addClass('active');
});
clearInterval(i);
}
}, 10);
});
PS.Main.main();
</script>
</body>
</html>