HomeHome  PortalPortal  CalendarCalendar  FAQFAQ  SearchSearch  MemberlistMemberlist  UsergroupsUsergroups  RegisterRegister  Log inLog in  

Share | 
 

 JavaScript Coding Updates

View previous topic View next topic Go down 

Should the mobile users be directed to the classic version instead of the mobile version?
Yes
50%
 50% [ 1 ]
No
50%
 50% [ 1 ]
Total Votes : 2
 

AuthorMessage

Information
Peanut

Head Co-Admin

avatar


Posts : 216
Credits : 328
Join date : 2014-10-13
Age : 16
Location : Malaysia



PostSubject: JavaScript Coding Updates   Mon Nov 02, 2015 10:27 am

I added this code to the JavaScript Codes:

Code:
$(function() {
          if(window._userdata && _userdata.page_desktop) window.location = _userdata.page_desktop;
});

This is to redirect users to the Classic Version of WCC instead of the Mobile Version, since the drop down list that lets you access to the Classic Version is missing.

۞ ۞ ۞۞ ۞ ۞۞ ۞ ۞۞ ۞ ۞۞ ۞ ۞۞ ۞ ۞۞ ۞ ۞۞ ۞ ۞۞ ۞ ۞۞ ۞ ۞۞ ۞ ۞۞ ۞ ۞۞ ۞ ۞۞ ۞ ۞۞ ۞ ۞۞ ۞ ۞۞ ۞ ۞ ۞




Information
Titania

Founder

avatar


Posts : 314
Credits : 497
Join date : 2014-10-13
Age : 15
Location : ~Philippines~



PostSubject: Re: JavaScript Coding Updates   Mon Nov 02, 2015 11:37 am http://winxclub.forumotion.com

The problem has been fixed! There was an error in the JavaScript which caused the drop down button to disappear. A voting shall take place if the mobile users shall be directed to the classic version of the forum instead of the mobile version. Thank you for your patience!

۞ ۞ ۞۞ ۞ ۞۞ ۞ ۞۞ ۞ ۞۞ ۞ ۞۞ ۞ ۞۞ ۞ ۞۞ ۞ ۞۞ ۞ ۞۞ ۞ ۞۞ ۞ ۞۞ ۞ ۞۞ ۞ ۞۞ ۞ ۞۞ ۞ ۞۞ ۞ ۞۞ ۞ ۞ ۞

 
JavaScript Coding Updates
View previous topic View next topic Back to top 
Page 1 of 1
 Similar topics
-
» JavaScript Chess
» Programming A Chess Engine In Pure Javascript! (youtube)
» P4wn (new javascript chess engine)
» Fantage school event/Updates
» Deep Sjeng 3

Permissions in this forum:You cannot reply to topics in this forum
WCC Support :: Updates :: Updates and Information :: WCC Updates-
© Copyright 2015, WCC Support. All rights reserved.

Credits goes to Titania for creating this theme.