From a5c510c3ec510337c0be2a192905c7a9c323910c Mon Sep 17 00:00:00 2001 From: patrikx3 Date: Tue, 15 May 2018 12:03:58 +0200 Subject: [PATCH] p3x-robot sunday release 2018-5-15 12:03:58 --- INSTALL.md | 2 +- README.md | 4 ++-- artifacts/php-7.2-ubuntu.md | 2 +- changelog.md | 2 +- package.json | 2 +- public/js/global.js | 15 +++++---------- 6 files changed, 11 insertions(+), 16 deletions(-) diff --git a/INSTALL.md b/INSTALL.md index e929750c..d3206310 100644 --- a/INSTALL.md +++ b/INSTALL.md @@ -116,7 +116,7 @@ UrlToolkit { --- -[**P3X-GITLIST**](https://pages.corifeus.com/gitlist) Build v2.0.34-610 +[**P3X-GITLIST**](https://pages.corifeus.com/gitlist) Build v2.0.36-614 [![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) diff --git a/README.md b/README.md index 902c3d79..817656d0 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ -# 🤖 P3X Gitlist v2.0.34-610 +# 🤖 P3X Gitlist v2.0.36-614 This is an open-source project. Star this repository if you like it, or even donate! Thank you so much! :) @@ -145,7 +145,7 @@ npm run watch --- -[**P3X-GITLIST**](https://pages.corifeus.com/gitlist) Build v2.0.34-610 +[**P3X-GITLIST**](https://pages.corifeus.com/gitlist) Build v2.0.36-614 [![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) diff --git a/artifacts/php-7.2-ubuntu.md b/artifacts/php-7.2-ubuntu.md index 561c303b..f20f57e6 100644 --- a/artifacts/php-7.2-ubuntu.md +++ b/artifacts/php-7.2-ubuntu.md @@ -20,7 +20,7 @@ sudo apt upgrade -y --- -[**P3X-GITLIST**](https://pages.corifeus.com/gitlist) Build v2.0.34-610 +[**P3X-GITLIST**](https://pages.corifeus.com/gitlist) Build v2.0.36-614 [![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) diff --git a/changelog.md b/changelog.md index ff491673..d2a8cdbb 100644 --- a/changelog.md +++ b/changelog.md @@ -137,7 +137,7 @@ require('codemirror/mode/yaml/yaml'); --- -[**P3X-GITLIST**](https://pages.corifeus.com/gitlist) Build v2.0.34-610 +[**P3X-GITLIST**](https://pages.corifeus.com/gitlist) Build v2.0.36-614 [![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) diff --git a/package.json b/package.json index 3231494a..fd6f9f02 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "p3x-gitlist", - "version": "2.0.34-610", + "version": "2.0.36-614", "corifeus": { "prefix": "p3x-", "publish": false, diff --git a/public/js/global.js b/public/js/global.js index 9318acea..1d7e5821 100755 --- a/public/js/global.js +++ b/public/js/global.js @@ -1,3 +1,6 @@ +const scrollIntoViewOptions = { + block: "center", +} window.gitlist.isDark =(theme) => { for(var i = 0; i < window.gitlist.dark.length; i++ ) { @@ -88,11 +91,7 @@ $(function () { if (el === null) { return; } - el.scrollIntoView({ - behavior: 'smooth', - block: "center", - - }) + el.scrollIntoView(scrollIntoViewOptions) pushHash(href) } }) @@ -112,11 +111,7 @@ global.gitlist.scrollHash = function(element, event) { if (elfind === null) { return true; } - elfind.scrollIntoView({ - behavior: 'smooth', - block: "center", - - }) + elfind.scrollIntoView(scrollIntoViewOptions) if (event !== undefined) { event.preventDefault()