This repository has been archived by the owner on Jan 13, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.js
85 lines (70 loc) · 2.71 KB
/
config.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
(function (definition) {
'use strict';
// This file will function properly as a <script> tag, or a module
// using CommonJS and NodeJS or RequireJS module formats. In
// Common/Node/RequireJS, the module exports the saysnoop API and when
// executed as a simple <script>, it creates a saysnoop global instead.
var options = {};
// Montage Require
if (typeof bootstrap === 'function') {
bootstrap('Config', definition(options));
// CommonJS
} else if (typeof exports === 'object' && typeof module === 'object') {
module.exports = definition(options);
// RequireJS
} else if (typeof define === 'function' && define.amd) {
define(['options'], definition);
// SES (Secure EcmaScript)
} else if (typeof ses !== 'undefined') {
if (!ses.ok()) {
return;
} else {
ses.makeConfig = definition(options);
}
// <script>
} else if (typeof self !== 'undefined') {
self.Config = definition(options);
} else {
throw new Error('This environment was not anticipated by saysnoop. Please file a bug.');
}
})(function (options) {
var topOffset = 3,
leftOffset = 17,
defaultGreeting =
'\n ,-~~-.____.' + ' ' +
'\n / ()=(() \\' + ' ' +
'\n ( ( 0' + ' ' +
'\n \\._\\, ,-----' + "'" + ' ' +
'\n ##XXXxxxxxxx' + ' ' +
'\n / ---' + "'~;" + ' ' +
'\n / /~|- ' + ' ' +
'\n =( ~~ | ' + ' ' +
'\n /~~~~~~~~~~~~~~~~~~~~~\\' + ' ' +
'\n /_______________________\\' + ' ' +
'\n /_________________________\\' + ' ' +
'\n /___________________________\\' + ' ' +
'\n |_____________________|' + ' ' +
'\n |_____________________|' + ' ' +
'\n |_____________________|' + ' ' +
'\n |_____________________|' + ' ',
message = 'I have a new philosophy. \n I´m only going to dread one day at a time. \n\n Charles M. Schulz',
config = {};
if (options.topOffset) {
topOffset = options.topOffset;
}
if (options.leftOffset) {
leftOffset = options.leftOffset;
}
if (options.defaultGreeting) {
defaultGreeting = options.defaultGreeting;
}
if (options.message) {
message = options.message;
}
config.topOffset = topOffset;
config.leftOffset = leftOffset;
config.defaultGreeting = defaultGreeting;
config.message = message;
/*!*/
return config;
});