How to correctly read XF variable with Javascript

Status
This content is read-only, or is not open for further replies.

FoxSecrets

Guest
offline
I need to run a code according to the screen size.

So I've put the JS inside XF var and if I "alert" or "console.log" I can see the variable, but when calling the variable in XF it returns nothing.

How to correctly read the XF variable in this case?


Code:

Code:
<xf:set var="$screen"><xf:js>window.innerWidth;</xf:js></xf:set>
<xf:if is="{$screen} > 650">
     ...... code .......
</xf:if>

Continue reading...

free plugins
minecraft paid for free
free minecraft paid plugins
free minecraft plugins
spigotmc
SpigotMC
aac free
ewg free
Minecraft Premium Plugins
ewg free download
litebans free
epicworldgenerator free
free schematics
leaked schematics minecraft
schematics
schematics leaked
schematics free
minecraft schematics free
paid minecraft schematics free
paid minecraft schematics for free
free cracked plugins
free cracked minecraft plugins
plugins
featherboard download
featherboard plugin download
antiaura download
xenforo leaked
xenforo for free
xenforo addons
 
Liked by:
Status
This content is read-only, or is not open for further replies.
Top Bottom