Skip to content

Commit 687c272

Browse files
committed
Fix documentation anchor points due to new fixed navbar
1 parent b113ee3 commit 687c272

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

public/css/custom.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ html {
44
}
55

66
.navbarContainer {
7-
background-color:rgba(255,255,255,0.8);
7+
background-color:rgba(255,255,255,0.95);
88
position: fixed;
99
margin: -65px auto 0px auto;
1010
padding-top: 10px;

src/js/documentation.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ $(() => {
66
target = target.length ? target : $('[name=' + this.hash.slice(1) +']');
77
if (target.length) {
88
$('html,body').animate({
9-
scrollTop: target.offset().top - 25
9+
scrollTop: target.offset().top - 75
1010
}, 500);
1111
return false;
1212
}

utils.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const settings = require('./settings.json');
66
const stripe = require("stripe")(settings.stripe.secretKey);
77

88
redis.config('SET', 'maxmemory', settings.general.redisMaxMemory);
9-
redis.on('error', err => module.exports.logger(err));
9+
redis.on('error', err => module.exports.logger(err) && module.exports.syslog(err));
1010

1111
module.exports = {
1212
pad(n, width, z) {
@@ -34,7 +34,7 @@ module.exports = {
3434
try {
3535
throw new Error();
3636
} catch (e) {
37-
fs.appendFileSync('./RandomAPI.log', "[" + moment().format('LTS') + "] " + msg + "\n" + e.stack.toString() + "\n" + JSON.stringify(req.session) + "\n");
37+
fs.appendFileSync('./RandomAPI.log', "[" + moment().format() + "] " + msg + "\n" + e.stack.toString() + "\n" + JSON.stringify(req.session) + "\n");
3838
}
3939
},
4040
random(mode, length) {

0 commit comments

Comments
 (0)