forked from alainyog/JavaScript.com
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhome.js
More file actions
37 lines (28 loc) · 882 Bytes
/
Copy pathhome.js
File metadata and controls
37 lines (28 loc) · 882 Bytes
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
// *************************************
//
// Home
// -> Dispatch events
//
// *************************************
JS.Pages.Home = function() {
// -------------------------------------
// Modules
// -------------------------------------
JS.Modules.Console.init();
JS.Modules.Newsletter.init();
JS.Modules.Video.init({ vendor: true, ytVideo: true });
// -------------------------------------
// Services
// -------------------------------------
JS.Services.expel({
$toggle : $('.js-alert-close'),
elementNode : '.js-alert'
});
// -------------------------------------
// Local
// -------------------------------------
$('.js-inlineConsole-btn').on('click', function(event) {
var name = $('.js-inlineConsole-input').val().replace(/['";]/g, '');
document.cookie = JS.Globals.userNameCookie + '=' + name;
});
};