forked from troopjs-contrib/troopjs-contrib-audio5js-player
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbootstrap.js
100 lines (95 loc) · 1.91 KB
/
bootstrap.js
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
require({
"waitSeconds": 15,
"packages": [
{
"name": "bootstrap",
"location": "bower_components/bootstrap/dist"
},
{
"name": "jquery",
"location": "bower_components/jquery/dist",
"main": "jquery"
},
{
"name": "poly",
"location": "bower_components/poly",
"main": "es5"
},
{
"name": "when",
"location": "bower_components/when",
"main": "when"
},
{
"name": "requirejs-text",
"location": "bower_components/requirejs-text"
},
{
"name": "require-css",
"location": "bower_components/require-css"
},
{
"name": "moment",
"location": "bower_components/moment",
"main": "min/moment.min"
},
{
"name": "audio5js",
"location": "bower_components/audio5js",
"main": "audio5.min"
},
{
"name": "troopjs",
"location": "bower_components/troopjs",
"main": "maxi"
},
{
"name": "troopjs-contrib-audio5js",
"location": "bower_components/troopjs-contrib-audio5js",
"main": "widget"
},
{
"name": "troopjs-contrib-audio5js-player",
"location": "."
}
],
"shim": {
"bootstrap/js/bootstrap": {
"deps": [ "jquery" ]
}
},
"map": {
"*": {
"json": "troopjs-requirejs/json",
"shadow": "troopjs-requirejs/shadow",
"text": "requirejs-text/text",
"css": "require-css/css.min",
"mu": "mu-template/plugin"
}
},
"deps": [
"require",
"jquery",
"troopjs",
"css!bootstrap/css/bootstrap",
"bootstrap/js/bootstrap"
],
"callback": function (localRequire, jQuery) {
// Require additional modules and start TroopJS
localRequire([
"troopjs-dom/application/widget"
], function (Application) {
jQuery(function ($) {
Application($("html"), "bootstrap").start();
});
});
jQuery(function ($) {
// Chrome allows you to click `forbidden` elements inside buttons
$(document.body).on("click", "button > span", function ($event) {
return $($event.target)
.parent()
.click();
});
});
}
});