1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-04 18:29:39 +02:00

Add intro.js

This commit is contained in:
Daniel Neto 2024-05-13 10:48:47 -03:00
parent 1cfc673e42
commit abb433718e
71 changed files with 2775 additions and 2 deletions

5
node_modules/intro.js/src/util/addClass.d.ts generated vendored Normal file
View file

@ -0,0 +1,5 @@
/**
* Append a class to an element
* @api private
*/
export default function addClass(element: HTMLElement, className: string): void;

4
node_modules/intro.js/src/util/appendChild.d.ts generated vendored Normal file
View file

@ -0,0 +1,4 @@
/**
* Appends `element` to `parentElement`
*/
export default function appendChild(parentElement: HTMLElement, element: HTMLElement, animate?: boolean): void;

16
node_modules/intro.js/src/util/checkLeft.d.ts generated vendored Normal file
View file

@ -0,0 +1,16 @@
/**
* Set tooltip right so it doesn't go off the left side of the window
*
* @return boolean true, if tooltipLayerStyleRight is ok. false, otherwise.
*/
export default function checkLeft(targetOffset: {
top: number;
left: number;
width: number;
height: number;
}, tooltipLayerStyleRight: number, tooltipOffset: {
top: number;
left: number;
width: number;
height: number;
}, tooltipLayer: HTMLElement): boolean;

19
node_modules/intro.js/src/util/checkRight.d.ts generated vendored Normal file
View file

@ -0,0 +1,19 @@
/**
* Set tooltip left so it doesn't go off the right side of the window
*
* @return boolean true, if tooltipLayerStyleLeft is ok. false, otherwise.
*/
export default function checkRight(targetOffset: {
top: number;
left: number;
width: number;
height: number;
}, tooltipLayerStyleLeft: number, tooltipOffset: {
top: number;
left: number;
width: number;
height: number;
}, windowSize: {
width: number;
height: number;
}, tooltipLayer: HTMLElement): boolean;

5
node_modules/intro.js/src/util/cloneObject.d.ts generated vendored Normal file
View file

@ -0,0 +1,5 @@
/**
* Makes a copy of an object
* @api private
*/
export default function cloneObject<T>(source: T): T;

6
node_modules/intro.js/src/util/cookie.d.ts generated vendored Normal file
View file

@ -0,0 +1,6 @@
export declare function setCookie(name: string, value: string, days?: number): string;
export declare function getAllCookies(): {
[name: string]: string;
};
export declare function getCookie(name: string): string;
export declare function deleteCookie(name: string): void;

6
node_modules/intro.js/src/util/createElement.d.ts generated vendored Normal file
View file

@ -0,0 +1,6 @@
/**
* Create a DOM element with various attributes
*/
export default function _createElement<K extends keyof HTMLElementTagNameMap>(tagName: K, attrs?: {
[key: string]: string | Function;
}): HTMLElementTagNameMap[K];

1
node_modules/intro.js/src/util/debounce.d.ts generated vendored Normal file
View file

@ -0,0 +1 @@
export default function debounce(func: Function, timeout: number): (...args: any) => void;

View file

@ -0,0 +1,7 @@
/**
* Check to see if the element is in the viewport or not
* http://stackoverflow.com/questions/123999/how-to-tell-if-a-dom-element-is-visible-in-the-current-viewport
*
* @api private
*/
export default function elementInViewport(el: HTMLElement): boolean;

13
node_modules/intro.js/src/util/getOffset.d.ts generated vendored Normal file
View file

@ -0,0 +1,13 @@
/**
* Get an element position on the page relative to another element (or body)
* Thanks to `meouw`: http://stackoverflow.com/a/442474/375966
*
* @api private
* @returns Element's position info
*/
export default function getOffset(element: HTMLElement, relativeEl?: HTMLElement): {
width: number;
height: number;
left: number;
top: number;
};

8
node_modules/intro.js/src/util/getPropValue.d.ts generated vendored Normal file
View file

@ -0,0 +1,8 @@
/**
* Get an element CSS property on the page
* Thanks to JavaScript Kit: http://www.javascriptkit.com/dhtmltutors/dhtmlcascade4.shtml
*
* @api private
* @returns string property value
*/
export default function getPropValue(element: HTMLElement, propName: string): string;

5
node_modules/intro.js/src/util/getScrollParent.d.ts generated vendored Normal file
View file

@ -0,0 +1,5 @@
/**
* Find the nearest scrollable parent
* copied from https://stackoverflow.com/questions/35939886/find-first-scrollable-parent
*/
export default function getScrollParent(element: HTMLElement): HTMLElement;

10
node_modules/intro.js/src/util/getWindowSize.d.ts generated vendored Normal file
View file

@ -0,0 +1,10 @@
/**
* Provides a cross-browser way to get the screen dimensions
* via: http://stackoverflow.com/questions/5864467/internet-explorer-innerheight
*
* @api private
*/
export default function getWinSize(): {
width: number;
height: number;
};

6
node_modules/intro.js/src/util/isFixed.d.ts generated vendored Normal file
View file

@ -0,0 +1,6 @@
/**
* Checks to see if target element (or parents) position is fixed or not
*
* @api private
*/
export default function isFixed(element: HTMLElement): boolean;

2
node_modules/intro.js/src/util/isFunction.d.ts generated vendored Normal file
View file

@ -0,0 +1,2 @@
declare const _default: (x: any) => x is Function;
export default _default;

4
node_modules/intro.js/src/util/removeChild.d.ts generated vendored Normal file
View file

@ -0,0 +1,4 @@
/**
* Removes `element` from `parentElement`
*/
export default function removeChild(element: HTMLElement | null, animate?: boolean): void;

6
node_modules/intro.js/src/util/removeClass.d.ts generated vendored Normal file
View file

@ -0,0 +1,6 @@
/**
* Remove a class from an element
*
* @api private
*/
export default function removeClass(element: HTMLElement, classNameRegex: RegExp | string): void;

4
node_modules/intro.js/src/util/removeEntry.d.ts generated vendored Normal file
View file

@ -0,0 +1,4 @@
/**
* Remove an entry from a string array if it's there, does nothing if it isn't there.
*/
export default function removeEntry<K>(stringArray: K[], stringToRemove: K): void;

View file

@ -0,0 +1,4 @@
/**
* scroll a scrollable element to a child element
*/
export default function scrollParentToElement(scrollToElement: boolean, targetElement: HTMLElement): void;

7
node_modules/intro.js/src/util/scrollTo.d.ts generated vendored Normal file
View file

@ -0,0 +1,7 @@
import { ScrollTo } from "../core/steps";
/**
* To change the scroll of `window` after highlighting an element
*
* @api private
*/
export default function scrollTo(scrollToElement: boolean, scrollTo: ScrollTo, scrollPadding: number, targetElement: HTMLElement, tooltipLayer: HTMLElement): void;

View file

@ -0,0 +1,6 @@
/**
* Setting anchors to behave like buttons
*
* @api private
*/
export default function setAnchorAsButton(anchor: HTMLElement): void;

7
node_modules/intro.js/src/util/setShowElement.d.ts generated vendored Normal file
View file

@ -0,0 +1,7 @@
/**
* To set the show element
* This function set a relative (in most cases) position and changes the z-index
*
* @api private
*/
export default function setShowElement(targetElement: HTMLElement): void;

6
node_modules/intro.js/src/util/setStyle.d.ts generated vendored Normal file
View file

@ -0,0 +1,6 @@
/**
* Sets the style of an DOM element
*/
export default function setStyle(element: HTMLElement, style: string | {
[key: string]: string | number;
}): void;

10
node_modules/intro.js/src/util/stamp.d.ts generated vendored Normal file
View file

@ -0,0 +1,10 @@
/**
* Mark any object with an incrementing number
* used for keeping track of objects
*
* @param Object obj Any object or DOM Element
* @param String key
* @return Object
*/
declare const stamp: <T>(obj: T, key?: string) => number;
export default stamp;