| Name | Modified | Size | Downloads / Week |
|---|---|---|---|
| resolutioncode.js | 2014-05-21 | 7.4 kB | |
| timeburner_regular.ttf | 2014-05-21 | 30.0 kB | |
| unsupportedresolution.html | 2014-05-21 | 1.3 kB | |
| resolutionchoice.html | 2014-05-21 | 7.5 kB | |
| README.txt | 2014-05-21 | 1.6 kB | |
| Totals: 5 Items | 47.8 kB | 0 |
Hello! Welcome to the README for my little code I wrote! I'm going to explain everything in the
package given. Please remember, I will continue to fix and improve this system.
I hope my work has inspired others to add on to, improve, or make their own code like mine.
-- Aaron Preston
(any coments please feel free to email me at aaronpreston115@live.com)
HOW TO:
ADD MY SUPPORTED WEBPAGE:
So in the code shown below, change the "unsupportedresolution.html" to what ever file you want
associated with the person to whom runs their graphics with that resolution.
if(clientW == 720 && clientH == 480) {
window.location.href = "unsupportedresolution.html";
} ^^ Change that above ^^
ADD A NEW RESOLUTION:
This is very simple, just copy what is below and change "clientW" to the Width (in pixels of course).
"clientH" is the pixels in height.
if(clientW == (THE WIDTH) && clientH == (THE HEIGHT)) {
window.location.href = "unsupportedresolution.html";
}
So if clientW == 1680, and clientH == 1050, this means the resolution the computer is looking for is
1680 x 1050 and it will direct you to the webpage fit for THAT screen size.
HOW TO USE THIS:
To use this, just go into the "resolutionchoice.html" file (in some HTML editor) and add your
pages. Then use the "resolutionchoice.html" as your "homepage"
FUTURE UPDATE PLANS:
- Add more resolution support.
- Add a feature automatically find the closest resolution based on your settings
(and allow the dev to easily enable or disable the feature with one simple line of code).
- Fix any issues/add anything else asked.