HTML Integration - Iranian Rial Exchange Rate Calculator Widget
Embed IRR currency converter in any website with 2 lines of HTML code. Real-time rates for 28+ currencies.
🌟 Widget Features
💱
Real-time Rates
Live exchange rates for 28+ currencies against Iranian Rial (IRR)
🧮
Interactive Calculator
Built-in currency converter for quick calculations
🌍
Multi-language
Support for 10 languages including Persian (Farsi)
📱
Responsive Design
Mobile-friendly and adapts to any screen size
⚡
Easy Integration
Simple HTML div and script tag - no complex setup
🎨
Customizable
Add custom CSS classes and styling options
🔗
Ready to Integrate?
Copy the HTML snippet below and start displaying real-time Iranian Rial exchange rates on your website in seconds!
⚡ Quick Start
html
<div data-pashizi-widget data-lang="en" data-base="usd"></div>javascript
<script src="https://widget.pashizi.com/calculator?currency=usd&lang=en"></script>2
Lines of Code
28+
Currencies
10
Languages
🎮 Interactive HTML Demo
Try different currency and language combinations to see how the HTML integration works with live previews and get the exact code.
🎮INTERACTIVE DEMO CONFIGURATOR
Customize & Preview Live
Choose your preferred currency and language to see the widget in action. Copy the integration code for your setup.
Live
Live Widget Demo
📋 Integration Code
HTML Integrationhtml
<!-- Widget Container -->
<div
data-pashizi-widget
data-lang="en"
data-base="usd">
</div>
<!-- Widget Script -->
<script
src="https://widget.pashizi.com/calculator?currency=usd&lang=en"
async defer>
</script>📝 Usage Examples
1. Basic Usage
Simple widget with default settings (USD in English)
html
<div data-pashizi-widget data-lang="en" data-base="usd"></div>javascript
<script src="https://widget.pashizi.com/calculator?currency=usd&lang=en"></script>2. EUR in English
Euro exchange rates with English interface
html
<div data-pashizi-widget data-lang="en" data-base="eur"></div>javascript
<script src="https://widget.pashizi.com/calculator?currency=eur&lang=en"></script>3. USD in Persian
US Dollar rates with Persian (Farsi) interface
html
<div data-pashizi-widget data-lang="fa" data-base="usd"></div>javascript
<script src="https://widget.pashizi.com/calculator?currency=usd&lang=fa"></script>4. With Custom CSS Class
British Pound with custom styling
html
<div data-pashizi-widget data-lang="en" data-base="gbp" class="my-custom-widget"></div>javascript
<script src="https://widget.pashizi.com/calculator?currency=gbp&lang=en"></script>🚀 Integration Guide
1️⃣Add HTML Container
Place the widget container where you want the calculator to appear:
html
<div data-pashizi-widget data-lang="en" data-base="usd"></div>2️⃣Add Script Tag
Include the script tag before closing </body> tag:
javascript
<script src="https://widget.pashizi.com/calculator?currency=usd&lang=en"></script>⚙️ Advanced Configuration
Data Attributes
| Attribute | Description | Example |
|---|---|---|
| data-pashizi-widget | Required identifier for the widget | data-pashizi-widget |
| data-lang | Language code for the interface | data-lang="en" |
| data-base | Base currency code | data-base="usd" |
| class | Optional CSS classes for styling | class="my-widget" |
Script Parameters
The script URL must match the data attributes:
text
https://widget.pashizi.com/calculator?currency=[CURRENCY]&lang=[LANGUAGE]💰 Supported Currencies (28+)
Use these currency codes in the 'data-base' attribute and script URL parameter. All rates are displayed against Iranian Rial (IRR).
💡 Usage Example
data-base="eur" → currency=eurusdeurgbpjpychfcadaudsgdhkdnoksekdkkmyrrubtryinrcnyaedthbqarsaromrbhdkwdiqdaznafnamd🌍 Supported Languages (10)
Use these language codes in the 'data-lang' attribute and script URL parameter to display the widget interface in different languages.
💡 Language Selection Example
data-lang="fa" → lang=faenfadearesfritnlruzh⚠️ Important Notes
- Only one widget with a specific language and currency combination is allowed per page. For example, if there is already a widget with data-lang="en" and data-base="usd" on the page, a second widget with the same combination will not work.
- To display multiple widgets, use different lang or currency values for each widget.
- The script parameters (currency and lang) must match the corresponding data attributes exactly.
- Include only one script tag per unique currency-language combination.