3.2.1 • Published 7 years ago
awezapopup v3.2.1
Aweza Popup
A popup for the Aweza platform based on tippy.js
Install
Yarn
yarn add awezapopupNPM
npm install --save awezapopupCDN
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/awezapopup@3.1.7/dist/aweza-popup.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.10.0/katex.min.css"/>
<script src="https://cdn.jsdelivr.net/npm/awezapopup@3.1.7/dist/aweza-popup.min.js"></script>Usage
AwezaPopup(options)Options
- dataUrl: The URL of the Aweza API (optional)
- headers: An object containing custom request headers. Required for Authentication.
- preferLang: The two digit ISO 639-1 language code of the prefered language to translate to.
Examples
Using modules + SASS
import AwezaPopup from 'awezapopup';
AwezaPopup({
headers: {
"AWEZA-KEY": 'a9e4........d302',
"AWEZA-SECRET": '07ecf........b375'
}
})@import "~awezapopup/dist/aweza-popup.min.css";
@import "~katex/dist/katex.min.css";Using CDN
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/awezapopup@3.1.7/dist/aweza-popup.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.10.0/katex.min.css"/>
<script src="https://cdn.jsdelivr.net/npm/awezapopup@3.1.7/dist/aweza-popup.min.js"></script>
<script>
window.AwezaPopup({
headers: {
"AWEZA-KEY": 'a9e4........d302',
"AWEZA-SECRET": '07ecf........b375'
}
})
</script>Awezification
Wrap the target in a span with a data-aweza attribute where the value is the ID of the term
<span data-aweza="3">Road</span>Development
To run the file watchers and a php dev server, use the script provided
./dev.sh3.2.1
7 years ago
3.2.0
7 years ago
3.1.7
7 years ago
3.1.6
8 years ago
3.1.5
8 years ago
3.1.4
8 years ago
3.1.3
8 years ago
3.1.2
8 years ago
3.1.1
8 years ago
3.1.0
8 years ago
3.0.5
8 years ago
3.0.4
8 years ago
3.0.3
8 years ago
3.0.2
8 years ago
3.0.1
8 years ago
3.0.0
8 years ago
2.0.2
8 years ago
2.0.1
8 years ago
2.0.0
8 years ago
1.0.19
8 years ago
1.0.18
8 years ago
1.0.17
8 years ago
1.0.16
8 years ago
1.0.15
8 years ago
1.0.10
8 years ago
1.0.9
8 years ago
1.0.8
8 years ago
1.0.7
8 years ago
1.0.6
8 years ago
1.0.3
8 years ago
1.0.1
8 years ago