Change font size
It is currently Tue Dec 12, 2017 12:22 pm


Post a new topicPost a reply Page 1 of 1   [ 1 post ]
Author Message
 Post subject: Slight site UX tweak.
PostPosted: Sat Dec 21, 2013 3:46 am 
Is this thing on?

Joined: Sat Dec 21, 2013 3:34 am
Posts: 1
Sex: Male
How did you find out about SI Radio?: siradio.fm
By changing the menu divs from
<div class="menuitem" id="m_schedule"></div>
<div class="menuitem" id="m_chat"></div>
<div class="menuitem" id="m_forum"></div>
<div class="menuitem" id="m_charts"></div>
<div class="menuitem" id="m_apply"></div>
<div class="menuitem" id="m_donate"></div>
to
<a href="http://siradio.fm/schedule" style="display:block" class="menuitem" id="m_schedule"></a>
<a href="http://siradio.fm/chat" style="display:block" class="menuitem" id="m_chat"></a>
<a href="http://siradio.fm/forum" style="display:block" class="menuitem" id="m_forum"></a>
<a href="http://siradio.fm/charts" style="display:block" class="menuitem" id="m_charts"></a>
<a href="http://siradio.fm/apply" style="display:block" class="menuitem" id="m_apply"></a>
<a href="http://siradio.fm/donate" style="display:block" class="menuitem" id="m_donate"></a>

(style="display:block" can be added to css .menuitem)

you gain
* Right Click -> Open in new tab so if you are chating, you can easily open the schedule in a new tab.
* The block default navigation is already handled by the $("body").on("click", "a", function(event) in siradio.js
and it removes the need for
$("#m_chat").on("click", function(event) {
fetchPage('chat');
});
$("#m_forum").on("click", function(event) {
window.open('http://www.siradio.fm/forum','_blank');
});
$("#m_schedule").on("click", function(event) {
fetchPage('schedule');
});
$("#m_charts").on("click", function(event) {
fetchPage('charts');
});
$("#m_apply").on("click", function(event) {
fetchPage('apply');
});
$("#m_donate").on("click", function(event) {
fetchPage('donate');
});


Top
 Profile  
 
Display posts from previous:  Sort by  
Post a new topicPost a reply Page 1 of 1   [ 1 post ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron


Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
610nm Style by Daniel St. Jules of Gamexe.net