i am using window.onresize to fire some code which is not working due to some other code, i am unable to understand the meaning of other code to make required changes. I am providing both codes below:
My code which i want to execute
$(document).ready(function () {
if ($(window).width() > 1127) {
window.location = "http://www.24caratevent.com";
}
window.onresize = function (event) {
if ($(window).width() > 1127) {
window.location = "http://www.24caratevent.com";
}
};
});
Another code which create problem is:
$(document).ready(function(){
window.addEventListener('load', function() {
FastClick.attach(document.body);
}, false);
});I have to merge my code into this code, so that the working of both will not get affected, and they both run in my project.

Manas MohapatraPosted Aug 30, 2015, 11:27 AM