Skip to content

Commit

Permalink
p3x-robot sunday release 2018-5-15 12:16:32
Browse files Browse the repository at this point in the history
  • Loading branch information
p3x-robot committed May 15, 2018
1 parent a5c510c commit 11258f5
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 9 deletions.
2 changes: 1 addition & 1 deletion INSTALL.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ UrlToolkit {

---

[**P3X-GITLIST**](https://pages.corifeus.com/gitlist) Build v2.0.36-614
[**P3X-GITLIST**](https://pages.corifeus.com/gitlist) Build v2.0.37-616

[![Like Corifeus @ Facebook](https://img.shields.io/badge/LIKE-Corifeus-3b5998.svg)](https://www.facebook.com/corifeus.software) [![Donate for Corifeus / P3X](https://img.shields.io/badge/Donate-Corifeus-003087.svg)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=QZVM4V6HVZJW6) [![Contact Corifeus / P3X](https://img.shields.io/badge/Contact-P3X-ff9900.svg)](https://www.patrikx3.com/en/front/contact)

Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@



# 🤖 P3X Gitlist v2.0.36-614
# 🤖 P3X Gitlist v2.0.37-616

This is an open-source project. Star this repository if you like it, or even donate! Thank you so much! :)

Expand Down Expand Up @@ -145,7 +145,7 @@ npm run watch

---

[**P3X-GITLIST**](https://pages.corifeus.com/gitlist) Build v2.0.36-614
[**P3X-GITLIST**](https://pages.corifeus.com/gitlist) Build v2.0.37-616

[![Like Corifeus @ Facebook](https://img.shields.io/badge/LIKE-Corifeus-3b5998.svg)](https://www.facebook.com/corifeus.software) [![Donate for Corifeus / P3X](https://img.shields.io/badge/Donate-Corifeus-003087.svg)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=QZVM4V6HVZJW6) [![Contact Corifeus / P3X](https://img.shields.io/badge/Contact-P3X-ff9900.svg)](https://www.patrikx3.com/en/front/contact)

Expand Down
2 changes: 1 addition & 1 deletion artifacts/php-7.2-ubuntu.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ sudo apt upgrade -y

---

[**P3X-GITLIST**](https://pages.corifeus.com/gitlist) Build v2.0.36-614
[**P3X-GITLIST**](https://pages.corifeus.com/gitlist) Build v2.0.37-616

[![Like Corifeus @ Facebook](https://img.shields.io/badge/LIKE-Corifeus-3b5998.svg)](https://www.facebook.com/corifeus.software) [![Donate for Corifeus / P3X](https://img.shields.io/badge/Donate-Corifeus-003087.svg)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=QZVM4V6HVZJW6) [![Contact Corifeus / P3X](https://img.shields.io/badge/Contact-P3X-ff9900.svg)](https://www.patrikx3.com/en/front/contact)

Expand Down
2 changes: 1 addition & 1 deletion changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ require('codemirror/mode/yaml/yaml');

---

[**P3X-GITLIST**](https://pages.corifeus.com/gitlist) Build v2.0.36-614
[**P3X-GITLIST**](https://pages.corifeus.com/gitlist) Build v2.0.37-616

[![Like Corifeus @ Facebook](https://img.shields.io/badge/LIKE-Corifeus-3b5998.svg)](https://www.facebook.com/corifeus.software) [![Donate for Corifeus / P3X](https://img.shields.io/badge/Donate-Corifeus-003087.svg)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=QZVM4V6HVZJW6) [![Contact Corifeus / P3X](https://img.shields.io/badge/Contact-P3X-ff9900.svg)](https://www.patrikx3.com/en/front/contact)

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "p3x-gitlist",
"version": "2.0.36-614",
"version": "2.0.37-616",
"corifeus": {
"prefix": "p3x-",
"publish": false,
Expand Down
15 changes: 12 additions & 3 deletions public/js/global.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
const scrollIntoViewOptions = {
block: "center",
behavior: "instant",
block: "start",
inline: "start"
}
const navbarHeight = 80;
const scrollIntoView = (el) => {
el.scrollIntoView(scrollIntoViewOptions)
if ((window.innerHeight + window.scrollY) <= document.body.offsetHeight - navbarHeight ) {
window.scrollBy(0,-navbarHeight )
}
}

window.gitlist.isDark =(theme) => {
Expand Down Expand Up @@ -91,7 +100,7 @@ $(function () {
if (el === null) {
return;
}
el.scrollIntoView(scrollIntoViewOptions)
scrollIntoView(el);
pushHash(href)
}
})
Expand All @@ -111,7 +120,7 @@ global.gitlist.scrollHash = function(element, event) {
if (elfind === null) {
return true;
}
elfind.scrollIntoView(scrollIntoViewOptions)
scrollIntoView(elfind);

if (event !== undefined) {
event.preventDefault()
Expand Down

0 comments on commit 11258f5

Please sign in to comment.