5.8.97 • Published 10 months ago

@kollorg/aperiam-facere v5.8.97

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

jQuery Timed Dialog plugin

CircleCI StyleCI codecov @kollorg/aperiam-facere Contributor Covenant

A jquery plugin for creating a timed modal dialog

  • Under development

Getting started

Install the jQuery and the jQuery timed dialog.

Using npm

npm i jquery
npm i @kollorg/aperiam-facere

Import the components into your script.

import $ from 'jquery';
import timedDialog from '@kollorg/aperiam-facere';

Import the css into your stylesheet.

import '@kollorg/aperiam-facere/dist/timed-dialog.min.css';

Directly into your html from node_modules

<script src="node_modules/jquery/dist/jquery.min.js"></script>
<script src="node_modules/@kollorg/aperiam-facere/dist/timed-dialog.min.js"></script>
<link rel="stylesheet" href="node_modules/@kollorg/aperiam-facere/dist/timed-dialog.min.css" />

Directly into your html from cdn

<script src="https://code.jquery.com/jquery-3.7.1.min.js"></script>
<script src="https://esm.sh/@kollorg/aperiam-facere/dist/timed-dialog.min.js"></script>
<link rel="stylesheet" href="https://esm.sh/@kollorg/aperiam-facere/dist/timed-dialog.min.css" />

Use it

const myCallback = () => {
  console.log('The callback was executed!');
}

const options = {
        type: 'confirmation',
        title: 'Confirm callback execution',
        body: '<p>Are you sure you want to execute myCallback?<br/><span style="font-size: 12px; padding:10px 0;">Check the console</span></p>',
        width: 400,
        height: 280,
        timeout: 10,
        closeOnTimer: true,
        btnConfirm: {
          text: 'Execute my callback',
          action: () => myCallback(),
        }
};

document.addEventListener("DOMContentLoaded", () => {
  // add a button to dom
  const button = document.createElement('button');
  button.textContent = 'Show dialog';
  
  // add a click event listener to the button
  button.addEventListener("click", () => {
    $().timedDialog(options);
  });
  
  // add the button to page
  document.body.appendChild(button);
});

Please take a look at this working example on CodePen.

Demo

Demo can be viewed on here

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update the specs(tests) as appropriate.

License

MIT

coloriterateenvObject.fromEntriesdeep-copyexecuteansicopypropertiesutil.inspectmrureworkinstrumentationkeyformateslintplugincomputed-typesmoduleselasticachenpmacornInt16ArraypinolanguagesesArrayBuffergetoptstyled-componentsanimationutilmapECMAScript 2019argvsymbolsFloat64ArrayArray.prototype.filtercollectionredux-toolkitrdspackagesinternal slotespreeRxJSUint16ArraywaapiinstallerapihasOwnPropertytslocationponyfillglobtoSortedObject.keyscall-bindmatchcallqsCSSreactbufferspackage managersetPrototypeOfstringifysinatrawgetES2015cloneECMAScript 2022setImmediateajvcloudsearchavaArray.prototype.findLastappshellECMAScript 2016walkingtypesafedataviewregular expressionECMAScript 2018WeakSettouchfindwritablespeedidentifierseventsStreamaccessorboundobjectmkdirpECMAScript 5es7Object.entriesglobalThisbabelcode pointsObject.getPrototypeOfUint32Arraysource mapdebuggerfolderemojiperformanceFloat32Arrayroute53ECMAScript 2020reduceESnextautoprefixerframeworkstreamnodecheckECMAScript 6concatMapserializerbrowserslisttakeArrayBuffer.prototype.slicees6Array.prototype.flattenreusesuperagentcharacterdomweaksetdescriptorhardlinkscommanderHyBimergereducerequalemrpackagecorespringFunction.prototype.nameES7find-upflagsworkflowinvariantbuffereslint-plugin[[Prototype]]chromiummatchAlldefinePropertytranspilerjasminemkdirsminimalmetadataintrinsicvalidgraphqllook-upasyncsidechinesespawndescriptorsjson-schema-validatortrimLeftawsjsonschemaefficientassertionreadablestreambytedebugreduxString.prototype.matchAllweakmapeast-asian-widthcurlcloudfrontglaciercacheTypeScriptlinthas-ownvalidation-0AsyncIteratorpuremanipulationrouterkeysinferenceprunereverseoptimistqueueconsolecall-boundjshinttextfullwidthconcatrgbreversedfast-copytyped arraycontainsWeakMapmatchesframermochapyyamlwhichasterisksfilter0pluginwidthttyexecfiletranspilequotegetlockfiletoReversedjsdiffmanagerwaitreact-testing-libraryexpressiononcejavascripteslintconfigarraybufferiambusynumberlogjapanesegroupStreamsES3elbArray.prototype.flatMapprivatetypedragoffsetjsnoperapidflatsqs_.extendtoolsfast-deep-copycommandmoduleiteratorworkspace:*jesttelephonejsonaccessibilityarrayfunctionalObject.definePropertyjsxvpcsyntaxsimpledbpiperssprogresstypanionReflect.getPrototypeOfserializationexeces-abstractfilecharactersvalidatorformbrowserlistdescriptionramdaJSONstylesshebangprototypeassigntransportreact-hook-formES8nativesharedsetteratomkinesisECMAScript 3ES2018.gitignorerequireclasseshttpsinreal-timeshimMicrosoftdynamodbcompilerES2017parsenodejsObject.isqueueMicrotaskURLroutingprotobufschemawhatwgcloudtraillistenerssuperstructprefixpolyfillobjstructuredCloneimportexportindicatorgenericsshamfindLastIndexharmonyyamldatelinkclass-validatorcallbackposetddWebSocketspackage.jsonpoint-freelengthrm -rfparserfile systemstreamsmakeassertecmascriptvisualeslinttapES2023TypedArrayStyleSheetES2022webfunction.lengthbabel-coreutilityeventEmitterredacttypesstylingzxs3consumeRFC-6455ECMAScript 7windowIteratorregexprfc4122testerpropertygesturesfastifytestglobalsReactiveXgetterlocalSystem.globalxhrenvironmentTypeBoxa11yhookformutilsassertsInt32ArrayruntimeenderdatasliceloadbalancingPromiseflagqueryresolvesymbolvarsES2016chromeglobal objectloggingrmbeanstalkUint8ClampedArraysharedarraybufferurlpostcss-pluginfullArray.prototype.includesdeepsubprocess256electronscheme-validationarktypeObjectes2017bundlermulti-packagedeterministicbinRxtypescript6to5valueseventDispatcherArray.prototype.flatclassnamessearchestreetypedarrayomiteffect-tsvarletreadcoerciblefull-widthsymlinkspromisegdprcloudformationimmerfantasy-landzodsafeistanbulURLSearchParamscallboundextendstringifiercurriedgetOwnPropertyDescriptorhashRegExp.prototype.flagsfinduptostringtagArrayBuffer#sliceselflibphonenumberkoreanlruYAMLclientterminalswfcolumnsbyteLengthrestgroupByamazontc39hooksmkdirfast-deep-cloneflattencryptoreact animationjsdompathenumerableES2020toArraygetPrototypeOftslib__proto__BigInt64Arraymobilebinariesi18nhigher-orderWebSocketArrayes2016fastvaluepositivesortedtypeerrorjQueryES6colorsagentmomentbundlingrm -frdotenvdeep-clonesnsrecursiveentrieshtmlbinarychildes-shimsdirectoryUint8Array
5.8.97

10 months ago

5.8.96

10 months ago

5.8.94

10 months ago

5.8.95

10 months ago

5.8.93

10 months ago

5.8.92

10 months ago

5.8.91

11 months ago

5.8.90

11 months ago

5.8.89

11 months ago

5.8.88

11 months ago

5.8.87

11 months ago

5.7.87

11 months ago

5.7.86

11 months ago

5.7.85

11 months ago

5.7.84

11 months ago

5.7.83

11 months ago

5.7.82

11 months ago

5.7.81

11 months ago

5.7.80

11 months ago

5.7.79

11 months ago

5.7.78

11 months ago

5.7.77

11 months ago

5.7.76

11 months ago

5.7.75

11 months ago

5.6.75

11 months ago

5.5.75

11 months ago

5.5.74

11 months ago

5.5.73

11 months ago

5.5.72

11 months ago

5.5.71

11 months ago

5.5.70

11 months ago

5.5.69

11 months ago

5.5.68

11 months ago

5.5.67

11 months ago

5.5.66

11 months ago

5.5.65

11 months ago

5.5.64

12 months ago

5.5.63

12 months ago

5.5.62

12 months ago

5.5.61

12 months ago

5.5.60

12 months ago

4.5.60

12 months ago

4.5.59

12 months ago

4.5.58

12 months ago

4.5.57

12 months ago

4.5.56

12 months ago

4.4.56

12 months ago

4.4.55

12 months ago

4.4.54

12 months ago

4.3.54

12 months ago

4.3.53

12 months ago

4.3.52

12 months ago

4.3.51

12 months ago

4.3.50

12 months ago

4.3.49

12 months ago

4.3.48

12 months ago

4.3.47

1 year ago

4.3.46

1 year ago

4.3.45

1 year ago

4.2.45

1 year ago

4.1.45

1 year ago

4.1.44

1 year ago

4.1.43

1 year ago

4.1.42

1 year ago

4.1.41

1 year ago

4.0.41

1 year ago

4.0.40

1 year ago

4.0.39

1 year ago

4.0.38

1 year ago

4.0.37

1 year ago

4.0.36

1 year ago

4.0.35

1 year ago

4.0.34

1 year ago

3.0.34

1 year ago

3.0.33

1 year ago

3.0.32

1 year ago

3.0.31

1 year ago

3.0.30

1 year ago

3.0.29

1 year ago

3.0.28

1 year ago

3.0.27

1 year ago

3.0.26

1 year ago

3.0.25

1 year ago

3.0.24

1 year ago

3.0.23

1 year ago

3.0.22

1 year ago

3.0.21

1 year ago

3.0.20

1 year ago

3.0.19

1 year ago

3.0.18

1 year ago

2.0.18

1 year ago

2.0.17

1 year ago

2.0.16

1 year ago

2.0.15

1 year ago

2.0.14

1 year ago

2.0.13

1 year ago

2.0.12

1 year ago

2.0.4

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago