Mobile Homepage Dropdown Toolbar
2 posters
Page 1 of 1
Mobile Homepage Dropdown Toolbar
I was wondering if there is a way for me to get the mToggleContainer to show up on the homepage for mobile viewers. It shows up once a user enters a section.
I've tried to append the existing html into the homepage, but that didn't work. It just inserts the arrow which doesn't do anything when clicked. I assume I'm missing the script for the link press action.
P.S. This would be a nice feature to have by default.
I've tried to append the existing html into the homepage, but that didn't work. It just inserts the arrow which doesn't do anything when clicked. I assume I'm missing the script for the link press action.
- Code:
$(window).load(function() {
if (document.getElementsByClassName('mobile_title') && !document.getElementById('mToggleContainer')) {
var wrapper = document.createElement("div");
wrapper.id = 'mToggleContainer';
wrapper.innerHTML = '<a id="mToggleArrow" class="hiddenBar" href="#"> </a><ul id="mNavbar"><li><a class="navElement" href="/"><span class="navBtnIcon" style="background-position:-32px 0;"> </span><br><span class="navBtnLabel">Home</span></a></li><li><a class="navElement" href="/login"><span class="navBtnIcon" style="background-position:-64px 0;"> </span><br><span class="navBtnLabel">Log in</span></a></li><li><a class="navElement" href="index.forum?mobile&redirect=%2Ff19-announcements-and-news"><span class="navBtnIcon" style="background-position:0 0;"> </span><br><span class="navBtnLabel">Classic version</span></a></li></ul>';
var targetDiv = document.getElementById("top").getElementsByClassName("mobile_title")[0].appendChild(wrapper);
}
});
P.S. This would be a nice feature to have by default.
Last edited by Dr.Intern on March 3rd 2016, 5:03 pm; edited 1 time in total
Dr.Intern- Forumember
- Posts : 77
Reputation : 3
Language : English
Re: Mobile Homepage Dropdown Toolbar
Are you referring to the toolbar?
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: Mobile Homepage Dropdown Toolbar
Yes the dropdown toolbar for mobile.
Dr.Intern- Forumember
- Posts : 77
Reputation : 3
Language : English
Re: Mobile Homepage Dropdown Toolbar
It should appear automatically for mobile users any if they are not logged in.
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: Mobile Homepage Dropdown Toolbar
It doesn't on the home page though. It does for all the subforums posts etc. But on the homepage it isn't showing up. I've tested on three devices while logged in and not.
Dr.Intern- Forumember
- Posts : 77
Reputation : 3
Language : English
Dr.Intern- Forumember
- Posts : 77
Reputation : 3
Language : English
Similar topics
» [Only Topic]Ads appearing on mobile browsers/mobile phones
» Tablet/mobile problems with the toolbar.
» Editor toolbar buttons not showing up in Mobile Firefox
» Dropdown Menu
» New update : New design for forums Administration Panel + Classified ads mobile pages + mobile banner
» Tablet/mobile problems with the toolbar.
» Editor toolbar buttons not showing up in Mobile Firefox
» Dropdown Menu
» New update : New design for forums Administration Panel + Classified ads mobile pages + mobile banner
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum