mirror of
https://github.com/moparisthebest/android.moparisthebest.org
synced 2024-10-31 23:35:00 -04:00
improved navigation selection and fixed mobile nav select
This commit is contained in:
parent
4855d45b70
commit
c8ea62f5c9
@ -1,4 +1,4 @@
|
|||||||
<ul role="subscription" data-subscription="rss{% if site.subscribe_email %} email{% endif %}">
|
<ul role=subscription data-subscription="rss{% if site.subscribe_email %} email{% endif %}">
|
||||||
<li><a href="{{ site.subscribe_rss }}" rel="subscribe-rss" title="subscribe via RSS">RSS</a></li>
|
<li><a href="{{ site.subscribe_rss }}" rel="subscribe-rss" title="subscribe via RSS">RSS</a></li>
|
||||||
{% if site.subscribe_email %}
|
{% if site.subscribe_email %}
|
||||||
<li><a href="{{ site.subscribe_email }}" rel="subscribe-email" title="subscribe via email">Email</a></li>
|
<li><a href="{{ site.subscribe_email }}" rel="subscribe-email" title="subscribe via email">Email</a></li>
|
||||||
@ -10,7 +10,7 @@
|
|||||||
<input class="search" type="text" name="q" results="0" placeholder="Search"/>
|
<input class="search" type="text" name="q" results="0" placeholder="Search"/>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
</form>
|
</form>
|
||||||
<ul role="navigation">
|
<ul role=main-navigation>
|
||||||
<li><a href="{{ site.root }}/">Blog</a></li>
|
<li><a href="{{ site.root }}/">Blog</a></li>
|
||||||
<li><a href="{{ site.root }}/docs">Documentation</a></li>
|
<li><a href="{{ site.root }}/docs">Documentation</a></li>
|
||||||
<li><a href="http://github.com/imathis/octopress">Source</a></li>
|
<li><a href="http://github.com/imathis/octopress">Source</a></li>
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
{% include head.html %}
|
{% include head.html %}
|
||||||
<body {% if page.body_id %} id="{{ page.body_id }}" {% endif %} {% if page.sidebar == false %} class="no-sidebar" {% endif %}>
|
<body {% if page.body_id %} id="{{ page.body_id }}" {% endif %} {% if page.sidebar == false %} class="no-sidebar" {% endif %}>
|
||||||
<header>{% include header.html %}</header>
|
<header>{% include header.html %}</header>
|
||||||
<nav>{% include navigation.html %}</nav>
|
<nav role=navigation>{% include navigation.html %}</nav>
|
||||||
<div id="main">
|
<div id="main">
|
||||||
<div id="content">
|
<div id="content">
|
||||||
{{ content }}
|
{{ content }}
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
function getNav(){
|
function getNav(){
|
||||||
var mobileNav = $('body > nav fieldset[role=site-search]').after('<fieldset role="mobile-nav"></fieldset>').next().append('<select></select>');
|
var mobileNav = $('nav[role=navigation] fieldset[role=site-search]').after('<fieldset role="mobile-nav"></fieldset>').next().append('<select></select>');
|
||||||
mobileNav.children('select').append('<option value="">Navigate…</option>');
|
mobileNav.children('select').append('<option value="">Navigate…</option>');
|
||||||
$($('body > nav ul[role=main-nav] a')).each(function(link) {
|
$($('ul[role=main-navigation] a')).each(function(link) {
|
||||||
mobileNav.children('select').append('<option value="'+link.href+'">• '+link.text+'</option>')
|
mobileNav.children('select').append('<option value="'+link.href+'">• '+link.text+'</option>')
|
||||||
});
|
});
|
||||||
mobileNav.children('select').bind('change', function(event){
|
mobileNav.children('select').bind('change', function(event){
|
||||||
|
Loading…
Reference in New Issue
Block a user