Last active
February 27, 2026 11:43
-
-
Save hctilg/2031e1d264d1813bd9828b2afd536e56 to your computer and use it in GitHub Desktop.
حل مشکل بهم ریختن صفحات در موبایل
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const resize_habdler = () => { | |
| document.documentElement.style.setProperty('--width', `${window.innerWidth}px`); | |
| document.documentElement.style.setProperty('--height', `${window.innerHeight}px`); | |
| } | |
| document.body.onresize = ev => resize_habdler(); | |
| resize_habdler(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment