JS hides the menu buttons for the mobile version.
+2
SarkZKalie
smurfavr
6 posters
Page 1 of 1
JS hides the menu buttons for the mobile version.
This code is used to change the legend of my forum in Bulgarian, but this code currently hides the menu buttons for the mobile version. Can some fix it?
- Code:
$(function() {
var last24 = 'Потребители за последните 24 часа:',
nobday = 'Няма рожденици днес: ',
bdaytoday = 'Потребители, които имат рожден ден днес : ',
nobdaynext7 = 'Няма рожденици през следващите 7 дни:',
bdaynext7 = 'Рожденици през следващите 7 дни:',
legend = 'Легенда:',
inchat = 'В момента има $1 потребители в чата:',
who = document.getElementById('whois_online');
who.innerHTML = who.innerHTML.replace('Members connected during last 24 hours :',last24).replace('No users have a birthday today',nobday).replace('Users having a birthday today',bdaytoday).replace('Users with a birthday within the next 7 days: ',bdaynext7).replace('No users are having a birthday in the upcoming 7 days',nobdaynext7).replace('Legend : ',legend).replace(/There are currently (d+) user(s) on the ChatBox : /,inchat);
});
Last edited by smurfavr on Wed 7 Aug - 11:20; edited 1 time in total
Re: JS hides the menu buttons for the mobile version.
I believe the member has removed it.
Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
Re: JS hides the menu buttons for the mobile version.
The member asked me to help find the problem codes and I found this code that was the problem and then told the member to ask you the members to help find the problem in the code.
The problem no longer shows up on the forum as I removed the code to stop the problem in the first place.
All the member needs is for the code posted in the first topic fixed so it will work again and not remove the tools for mobile users.
The problem no longer shows up on the forum as I removed the code to stop the problem in the first place.
All the member needs is for the code posted in the first topic fixed so it will work again and not remove the tools for mobile users.
Re: JS hides the menu buttons for the mobile version.
SarkZKalie wrote:I can see menu button on mobile platform. Have you ever tried to clear the browser cache before re-loading your site?
I have removed the code to see the button for the mobile version.
@APE helped me to find the problem I'm grateful for.
Re: JS hides the menu buttons for the mobile version.
smurfavr wrote:Up
Good day!
Sorry, I don’t understand what is your problem?
Can you show me what you want in the screenshots? It seems to me that this is all easy to do.
Re: JS hides the menu buttons for the mobile version.
Hello,
The problem is most probably the fact that the code tries to modify the legend even on mobile, despite the fact that there is no legend there.
You can try replacing it with this:
The problem is most probably the fact that the code tries to modify the legend even on mobile, despite the fact that there is no legend there.
You can try replacing it with this:
- Code:
document.addEventListener('DOMContentLoaded', function(){
var last24 = 'Потребители за последните 24 часа:',
nobday = 'Няма рожденици днес: ',
bdaytoday = 'Потребители, които имат рожден ден днес : ',
nobdaynext7 = 'Няма рожденици през следващите 7 дни:',
bdaynext7 = 'Рожденици през следващите 7 дни:',
legend = 'Легенда:',
inchat = 'В момента има $1 потребители в чата:',
who = document.getElementById('whois_online');
if(who===null) return false;
who.innerHTML = who.innerHTML.replace('Members connected during last 24 hours :',last24).replace('No users have a birthday today',nobday).replace('Users having a birthday today',bdaytoday).replace('Users with a birthday within the next 7 days: ',bdaynext7).replace('No users are having a birthday in the upcoming 7 days',nobdaynext7).replace('Legend : ',legend).replace(/There are currently (d+) user(s) on the ChatBox : /,inchat);
});
Guest- Guest
Re: JS hides the menu buttons for the mobile version.
Thank you @Occultist now works.
I noticed that the forumotion team added a translation for most things. If you can make the code translate only this caption.
Рожденици през следващите 7 дни
I noticed that the forumotion team added a translation for most things. If you can make the code translate only this caption.
Рожденици през следващите 7 дни
Last edited by smurfavr on Wed 7 Aug - 11:22; edited 1 time in total
Re: JS hides the menu buttons for the mobile version.
Yeah sure. Try this code:
- Code:
document.addEventListener('DOMContentLoaded', function(){
var bdaynext7='Рожденици през следващите 7 дни:';
var who=document.getElementById('whois_online');
if(who===null) return false;
who.innerHTML=who.innerHTML.replace('Users with a birthday within the next 7 days: ',bdaynext7);
});
Guest- Guest
Re: JS hides the menu buttons for the mobile version.
Problem solved & topic archived.
|
Similar topics
» The mobile version does not see the menu buttons that are at the top of the forum.
» Removing Classic Version from mobile menu
» Mobile version, drop down menu disappeared
» Removing Classic Version from mobile menu
» Mobile Version / Burger Menu & Search Icon
» Removing Classic Version from mobile menu
» Mobile version, drop down menu disappeared
» Removing Classic Version from mobile menu
» Mobile Version / Burger Menu & Search Icon
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum