Skip to content

Instantly share code, notes, and snippets.

@ajmalmsali
Created February 27, 2014 13:01
Show Gist options
  • Save ajmalmsali/9249594 to your computer and use it in GitHub Desktop.
Save ajmalmsali/9249594 to your computer and use it in GitHub Desktop.
fix index.js
$("#test_link").on("singletap", function(e) {
var a = '#test';
$.UINavigationHistory[0] = a;
$.UISetHashOnUrl(a);
$('.button.slide-out-button').hide(); // hides that toggle button
$('.slide-out').removeClass('open');
$('article').removeClass('show');
$('article').prev().removeClass('show');
$(a).addClass('open');
$(a).prev().addClass('show')
});
$("#back_to_music").on("singletap", function(e) {
var a = '#music';
$.UINavigationHistory[0] = a;
$.UISetHashOnUrl(a);
$('.button.slide-out-button').show(); // hides that toggle button
$('.slide-out').removeClass('open');
$('article').removeClass('show');
$('article').prev().removeClass('show');
$(a).addClass('open');
$(a).prev().addClass('show')
});
<nav style="text-align:left">
<a id="#back_to_music" ....
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment