From 2e9bdf0635327ff0ec86b33d23be645179dc3812 Mon Sep 17 00:00:00 2001 From: Karl Fessel Date: Tue, 24 Nov 2020 19:56:31 +0100 Subject: [PATCH] doc: add jquerry.scrollTo for less timers in html doc see #15503 add jquerry.scrollTo add the code to copy and load scrollTo --- doc/doxygen/header.html | 1 + doc/doxygen/riot.doxyfile | 1 + doc/doxygen/src/js/jquery.scrollTo.min.js | 7 +++++++ 3 files changed, 9 insertions(+) create mode 100644 doc/doxygen/src/js/jquery.scrollTo.min.js diff --git a/doc/doxygen/header.html b/doc/doxygen/header.html index 7eeb6838af..edc643e0b2 100644 --- a/doc/doxygen/header.html +++ b/doc/doxygen/header.html @@ -12,6 +12,7 @@ + $treeview diff --git a/doc/doxygen/riot.doxyfile b/doc/doxygen/riot.doxyfile index 8111344e72..7ba5af9e42 100644 --- a/doc/doxygen/riot.doxyfile +++ b/doc/doxygen/riot.doxyfile @@ -1144,6 +1144,7 @@ HTML_EXTRA_FILES = src/css/bootstrap.min.css \ src/js/doxy-jquery.js \ src/js/jquery.min.js \ src/js/jquery.powertip.min.js \ + src/js/jquery.scrollTo.min.js \ src/js/jquery.smartmenus.min.js \ src/js/jquery.smartmenus.bootstrap.min.js \ src/js/jquery-ui.min.js \ diff --git a/doc/doxygen/src/js/jquery.scrollTo.min.js b/doc/doxygen/src/js/jquery.scrollTo.min.js new file mode 100644 index 0000000000..2426826fcf --- /dev/null +++ b/doc/doxygen/src/js/jquery.scrollTo.min.js @@ -0,0 +1,7 @@ +/** + * Copyright (c) 2007 Ariel Flesler - aflesler ○ gmail • com | https://github.com/flesler + * Licensed under MIT + * @author Ariel Flesler + * @version 2.1.2 + */ +;(function(f){"use strict";"function"===typeof define&&define.amd?define(["jquery"],f):"undefined"!==typeof module&&module.exports?module.exports=f(require("jquery")):f(jQuery)})(function($){"use strict";function n(a){return!a.nodeName||-1!==$.inArray(a.nodeName.toLowerCase(),["iframe","#document","html","body"])}function h(a){return $.isFunction(a)||$.isPlainObject(a)?a:{top:a,left:a}}var p=$.scrollTo=function(a,d,b){return $(window).scrollTo(a,d,b)};p.defaults={axis:"xy",duration:0,limit:!0};$.fn.scrollTo=function(a,d,b){"object"=== typeof d&&(b=d,d=0);"function"===typeof b&&(b={onAfter:b});"max"===a&&(a=9E9);b=$.extend({},p.defaults,b);d=d||b.duration;var u=b.queue&&1=f[g]?0:Math.min(f[g],n));!a&&1