House direction check
For real estate and interior design sites: a visitor viewing a specific house can check whether its direction suits their birth year without leaving the page. If you already know the direction of the listed house, preset it via data-huong, and the visitor only needs to pick their birth year.
Try it right here, then grab the code
<div data-widget="huong-nha" data-lang="en"></div> <script async src="https://nhatnguyet.org/embed/w.js"></script>
What's inside this widget
- If the house's direction is known, preset it, and the visitor only needs to choose their birth year, so the answer speaks accurately about the home they are viewing.
- Bát Trạch is one of many feng shui schools, and the table uses the solar calendar as an approximation of the lunar calendar. The widget makes both points clear.
- An incompatible direction shows in amber, not red. This is a folk belief about a house, not a safety warning.
How to use it
Adjustable attributes
| Attribute | Value | Meaning |
|---|---|---|
| data-widget | required | Widget code, taken from the embed code block of each widget |
| data-theme | light, dark or auto | Defaults to light. auto follows the light or dark setting of the reader's device |
| data-accent | #b5402f | Accent color as a 6-character hex value, to match your brand identity |
| data-lang | vi, en or zh | Defaults to vi |
| data-size | compact, standard or wide | Level of detail by frame width: compact drops secondary details, wide spreads out. Default is standard |
| data-huong | dong-nam, tay-bac... | Lock the house direction for the direction lookup widget, so visitors only need to pick a birth year |
A few things to note first
- Free to use, unlimited impressions, no account required.
- Please keep the small attribution line at the bottom of the widget intact, don't cover it or shrink it to the point of being unreadable.
- Please do not embed on gambling, adult content, scam, or anything illegal under Vietnamese law.
Want to look it over before pasting it on your real site? There's a working example page you can open directly in your browser, along with documentation in Vietnamese and English, all at GitHub repository for this widget.
Nội dung này có giúp được anh chị không?
You may also need
#HuongNha #BatTrach
