Anyx b4e0f3606c Summer Update | 1 year ago | |
---|---|---|
.. | ||
README.md | 1 year ago | |
responsive-domain-search.js | 2 years ago | |
responsive-domain-search.min.js | 2 years ago |
It makes the VistaPanel search form responsive, so that it does not break the vP theme(s).
Put it in the Header Advert Area (IMPORTANT). Due to this issue reported by AA22Dev, the code doesn't seem to run properly if you put it elsewhere. Thanks for reporting it.
Create a script tag with src
pointing to responsive-domain-search.js
or responsive-domain-search.min.js
for the minified version.
In case you do not know how to do that or are too lazy to do it, we have provided a ready code below.
A variable "affiliate code" can be defined to put your own affiliate code on the domain search, but, according to iFastNet, this will not give you any money.
Variable:
* affCode -> 5 digit affiliate code.
If the variable is not declared, an affiliate code for my account (PlanetCloud) will be used.
In case this method does actually pay money, the money will go into my account and I will appreciate it as a donation :)
The RAW option on GitHub can return an incorrect Content-Type header which makes the code not load at all.
To solve this, we need an external service which adds the correct type, like jsDelivr, or our CDN.
The full code, using jsDelivr:
<script type="text/javascript">
/* OPTIONAL
affCode = "AFFILIATE_CODE_HERE";
*/
</script>
<script src="https://cdn.jsdelivr.net/gh/WybeNetwork/VistaPanel-Customizations@2.3.2/responsive-domain-search/responsive-domain-search.js" type="text/javascript"></script>
Alternatively, you can use our CDN:
<script type="text/javascript">
/* OPTIONAL
affCode = "AFFILIATE_CODE_HERE";
*/
</script>
<script src="https://vpc.cdn.wybenetwork.com/responsive-domain-search/responsive-domain-search.js" type="text/javascript"></script>
Do not forget to remove the comment lines symbols (/* OPTIONAL
and */
) if you want your affiliate code to work.