loader

package
v1.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 9, 2022 License: GPL-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ID_LOADER_CONTAINER = "gohtml-main-loader-container"
	ID_LOADER           = "gohtml-main-loader"
)

Variables

View Source
var (
	COLOR_MAIN       = csscolors.COLOR_MAIN
	COLOR_ONE        = csscolors.COLOR_ONE
	COLOR_TWO        = csscolors.COLOR_TWO
	COLOR_THREE      = csscolors.COLOR_THREE
	COLOR_FOUR       = csscolors.COLOR_FOUR
	COLOR_FIVE       = csscolors.COLOR_FIVE
	LOADING_TEXT     = "loading"
	BACKGROUND_COLOR = csscolors.BACKGROUND_COLOR
)

Functions

func LoaderHexagonRolling

func LoaderHexagonRolling(idContainer, idLoader string) *elems.Element

Function for use in the loader.

  • Works on its own.
  • Loader needs to be deleted instead of disabled.

https://www.udemy.com/course/css-animation-transitions-and-transforms-creativity-course/

func LoaderMultiRing

func LoaderMultiRing(idContainer, idLoader string) *elems.Element

Function for use in the loader.

  • Works on its own.
  • Loader needs to be deleted instead of disabled.

https://www.udemy.com/course/css-animation-transitions-and-transforms-creativity-course/

func LoaderQuadSquares

func LoaderQuadSquares(idContainer, idLoader string) *elems.Element

Function for use in the loader.

  • Works on its own.
  • Loader needs to be deleted instead of disabled.

https://www.udemy.com/course/css-animation-transitions-and-transforms-creativity-course/

func LoaderRing

func LoaderRing(idContainer, idLoader string) *elems.Element

Function for use in the loader.

  • Works on its own.
  • Loader needs to be deleted instead of disabled.

https://www.udemy.com/course/css-animation-transitions-and-transforms-creativity-course/

func LoaderRotatingBlock

func LoaderRotatingBlock(idContainer, idLoader string) *elems.Element

Function for use in the loader.

  • Works on its own.
  • Loader needs to be deleted instead of disabled.

https://www.udemy.com/course/css-animation-transitions-and-transforms-creativity-course/

Types

type Loader

type Loader struct {
	Activated bool
	// contains filtered or unexported fields
}

func NewLoader

func NewLoader(appendTo string, className string, deleteOnFinish bool, f ...func(idContainer, idLoader string) *elems.Element) *Loader

func (*Loader) Deactivate

func (l *Loader) Deactivate()

func (*Loader) Delete

func (l *Loader) Delete()

func (*Loader) Run

func (l *Loader) Run(f func())

func (*Loader) RunHTTP

func (l *Loader) RunHTTP(fetchURL string, method string, requestChanger func(rq *http.Request), cb func(resp *http.Response) error)

func (*Loader) RunHttpToStruct

func (l *Loader) RunHttpToStruct(fetchURL string, method string, strct any, requestChanger func(rq *http.Request), cb func(resp *http.Response, s any) error)

func (*Loader) Stop

func (l *Loader) Stop()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL