Adult Script Pro Community Forums

The forum is here for legacy reasons. No new posts will be created. User registration is disabled! If you have any questions, please email us or check https://www.adultscriptpro.com for more details!

You are not logged in.

#1 2013-01-20 10:23:11

Eri
Member
Registered: 2011-03-18
Posts: 977

detect screen width

Is there a way to detect screen width inside template.

I have found for rotating images inside the js

var current_width = window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth;
    if(current_width > 1590){
      var image_size = ".250x200";
    } else {
  	  var image_size = "";
	}

But inside the template i can not find something because can not add "var image_size" inside the template in html code.


Best Adult Affilitate Network:
ExoClick
Best Deals on Dedicated Servers - CDN
INXY

Offline

Board footer

Powered by FluxBB