├── .eslintignore ├── .eslintrc.json ├── .gitignore ├── .npmignore ├── LICENSE ├── README.md ├── babel.config.js ├── build ├── images │ ├── .DS_Store │ ├── death.png │ ├── judgement.png │ ├── justice.png │ ├── strength.png │ ├── temperance.png │ ├── the-chariot.png │ ├── the-devil.png │ ├── the-emperor.png │ ├── the-empress.png │ ├── the-fool.png │ ├── the-hanged-man.png │ ├── the-hermit.png │ ├── the-hierophant.png │ ├── the-high-priestess.png │ ├── the-lovers.png │ ├── the-magician.png │ ├── the-moon.png │ ├── the-star.png │ ├── the-sun.png │ ├── the-tower.png │ ├── the-world.png │ └── wheel-of-fortune.png └── index.html ├── netlify.toml ├── package-lock.json ├── package.json ├── screenshots ├── tarot-widget-example.png └── tarot-widget-for-website.png ├── scripts ├── getPackageJson.js └── testMock.js ├── src ├── TarotWidget.js ├── actions │ ├── cardStateStorage.js │ └── renderWidgetHtml.js ├── automount.js ├── cards-map.json ├── config.json ├── index.css └── index.js └── webpack.config.js /.eslintignore: -------------------------------------------------------------------------------- 1 | build/* -------------------------------------------------------------------------------- /.eslintrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "parser": "babel-eslint", 3 | "parserOptions": { 4 | "ecmaVersion": 6, 5 | "sourceType": "module", 6 | "ecmaFeatures": { 7 | "modules": true, 8 | "experimentalObjectRestSpread": true 9 | } 10 | }, 11 | "plugins": [], 12 | "extends": ["eslint:recommended"], 13 | "rules": { 14 | "comma-dangle": 0, 15 | "no-unused-vars": "warn", 16 | "no-unexpected-multiline": "warn", 17 | "prefer-const": "warn" 18 | }, 19 | "settings": {}, 20 | "env": { 21 | "browser": true, 22 | "node": true, 23 | "jasmine": true, 24 | "jest": true, 25 | "es6": true 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | .vscode 3 | .DS_Store 4 | ./**/.DS_Store 5 | 6 | build/* 7 | !build/index.html 8 | !build/images 9 | !build/images/* -------------------------------------------------------------------------------- /.npmignore: -------------------------------------------------------------------------------- 1 | # dependencies 2 | /node_modules 3 | 4 | # testing 5 | /tests 6 | /coverage 7 | 8 | # docs 9 | /docs 10 | 11 | # misc 12 | .DS_Store 13 | .env.local 14 | .env.development.local 15 | .env.test.local 16 | .env.production.local 17 | /.github 18 | /demo 19 | .esdoc.json 20 | 21 | npm-debug.log* 22 | yarn-debug.log* 23 | yarn-error.log* 24 | 25 | # Development folders and files 26 | public 27 | src 28 | scripts 29 | config 30 | .travis.yml 31 | CHANGELOG.md 32 | README.md 33 | webpack.config.js 34 | babel.config.js -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2020 Alex Brik 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 |
Super tiny (only 4kb minified) javascript library to add awesome Tarot widget to your website.
3 |
4 |
5 |
(This is a screenshot as an example)
7 | 8 | ## Features 9 | * Random selection of one of 22 Major Arcana (Raider Waite Tarot Deck). 10 | * A unique card for each viewer for 24 hours. 11 | * Short advice of the card and the opportunity to read a detailed interpretation at will. 12 | * The transparent background provides a nice appearance of the widget on the website with any design. 13 | * A super small size that will not affect the speed of your site. 14 | 15 | ## How To Install (Easy way) 16 | Just copy the code below and paste it where you want to see the widget. 17 | 18 | ``` 19 | 20 | 22 | ``` 23 | Thats all. 24 | 25 | ## Usage via npm 26 | 27 |  28 | 29 | Install package: 30 | 31 | ``` 32 | npm install mo-tarot-widget 33 | ``` 34 | Import code and styles (if you want): 35 | ```javascript 36 | import TarotWidget from 'mo-tarot-widget' 37 | 38 | import 'mo-tarot-widget/src/index.css' 39 | 40 | new TarotWidget('some-element-id') 41 | ``` 42 | 43 | ## Contacts 44 | More information about Tarot Card Major Arcana meaning you can find [here](https://moonorganizer.com/en/tarot-card-major-arcana-meaning/) 45 | 46 | Fill free to contact me if you need help with customization or installation. 47 | -------------------------------------------------------------------------------- /babel.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | presets: [ 3 | ["@babel/env"] 4 | ], 5 | plugins: [ 6 | ["@babel/plugin-proposal-class-properties"] 7 | ] 8 | }; -------------------------------------------------------------------------------- /build/images/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g00dv1n/mo-tarot-widget/9214638ea9bed878f846b25aed96df2bd7002dab/build/images/.DS_Store -------------------------------------------------------------------------------- /build/images/death.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g00dv1n/mo-tarot-widget/9214638ea9bed878f846b25aed96df2bd7002dab/build/images/death.png -------------------------------------------------------------------------------- /build/images/judgement.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g00dv1n/mo-tarot-widget/9214638ea9bed878f846b25aed96df2bd7002dab/build/images/judgement.png -------------------------------------------------------------------------------- /build/images/justice.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g00dv1n/mo-tarot-widget/9214638ea9bed878f846b25aed96df2bd7002dab/build/images/justice.png -------------------------------------------------------------------------------- /build/images/strength.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g00dv1n/mo-tarot-widget/9214638ea9bed878f846b25aed96df2bd7002dab/build/images/strength.png -------------------------------------------------------------------------------- /build/images/temperance.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g00dv1n/mo-tarot-widget/9214638ea9bed878f846b25aed96df2bd7002dab/build/images/temperance.png -------------------------------------------------------------------------------- /build/images/the-chariot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g00dv1n/mo-tarot-widget/9214638ea9bed878f846b25aed96df2bd7002dab/build/images/the-chariot.png -------------------------------------------------------------------------------- /build/images/the-devil.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g00dv1n/mo-tarot-widget/9214638ea9bed878f846b25aed96df2bd7002dab/build/images/the-devil.png -------------------------------------------------------------------------------- /build/images/the-emperor.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g00dv1n/mo-tarot-widget/9214638ea9bed878f846b25aed96df2bd7002dab/build/images/the-emperor.png -------------------------------------------------------------------------------- /build/images/the-empress.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g00dv1n/mo-tarot-widget/9214638ea9bed878f846b25aed96df2bd7002dab/build/images/the-empress.png -------------------------------------------------------------------------------- /build/images/the-fool.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g00dv1n/mo-tarot-widget/9214638ea9bed878f846b25aed96df2bd7002dab/build/images/the-fool.png -------------------------------------------------------------------------------- /build/images/the-hanged-man.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g00dv1n/mo-tarot-widget/9214638ea9bed878f846b25aed96df2bd7002dab/build/images/the-hanged-man.png -------------------------------------------------------------------------------- /build/images/the-hermit.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g00dv1n/mo-tarot-widget/9214638ea9bed878f846b25aed96df2bd7002dab/build/images/the-hermit.png -------------------------------------------------------------------------------- /build/images/the-hierophant.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g00dv1n/mo-tarot-widget/9214638ea9bed878f846b25aed96df2bd7002dab/build/images/the-hierophant.png -------------------------------------------------------------------------------- /build/images/the-high-priestess.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g00dv1n/mo-tarot-widget/9214638ea9bed878f846b25aed96df2bd7002dab/build/images/the-high-priestess.png -------------------------------------------------------------------------------- /build/images/the-lovers.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g00dv1n/mo-tarot-widget/9214638ea9bed878f846b25aed96df2bd7002dab/build/images/the-lovers.png -------------------------------------------------------------------------------- /build/images/the-magician.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g00dv1n/mo-tarot-widget/9214638ea9bed878f846b25aed96df2bd7002dab/build/images/the-magician.png -------------------------------------------------------------------------------- /build/images/the-moon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g00dv1n/mo-tarot-widget/9214638ea9bed878f846b25aed96df2bd7002dab/build/images/the-moon.png -------------------------------------------------------------------------------- /build/images/the-star.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g00dv1n/mo-tarot-widget/9214638ea9bed878f846b25aed96df2bd7002dab/build/images/the-star.png -------------------------------------------------------------------------------- /build/images/the-sun.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g00dv1n/mo-tarot-widget/9214638ea9bed878f846b25aed96df2bd7002dab/build/images/the-sun.png -------------------------------------------------------------------------------- /build/images/the-tower.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g00dv1n/mo-tarot-widget/9214638ea9bed878f846b25aed96df2bd7002dab/build/images/the-tower.png -------------------------------------------------------------------------------- /build/images/the-world.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g00dv1n/mo-tarot-widget/9214638ea9bed878f846b25aed96df2bd7002dab/build/images/the-world.png -------------------------------------------------------------------------------- /build/images/wheel-of-fortune.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/g00dv1n/mo-tarot-widget/9214638ea9bed878f846b25aed96df2bd7002dab/build/images/wheel-of-fortune.png -------------------------------------------------------------------------------- /build/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 |