This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var hash = (settings.fromPage == $.mobile.activePage && typeof toPage == "object")? window.location.hash: $.mobile.path.parseUrl(toPage).hash, | |
if($(hash).length > 0 && !$(hash).hasClass('.ui-page')){ | |
var pos = (hash === "#")? 0: $(hash).offset().top; | |
$.mobile.silentScroll(pos); | |
window.location.hash = hash; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div data-role="panel" id="panel-nav" data-position="left" data-display="overlay" data-theme="c"> | |
<ul data-role="listview" data-inset="false" data-filter="true" data-theme="d" data-divider-theme="d" data-filter-placeholder="Search..." class="demo-nav"> | |
<li><a href="../">Home</a></li> | |
<li><a href="../">Guides</a></li> | |
<li><a href="../">Demos</a></li> | |
<li><a href="../faq/">Q&A</a></li> | |
<li data-role="list-divider">Widget reference</li> | |
<li><a href="accordion/">Accordion</a></li> | |
<li><a href="ajax-nav/">AJAX Navigation</a></li> | |
<li><a href="autocomplete/">Autocomplete</a></li> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<title>Buttons - jQuery Mobile Demos</title> | |
<link rel="stylesheet" href="../../../css/themes/default/jquery.mobile.css"> | |
<link rel="stylesheet" href="../_assets/css/jqm-demos.css"> | |
<link href='http://fonts.googleapis.com/css?family=Open+Sans:300,400' rel='stylesheet' type='text/css'> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$.widget( "mobile.fixedtoolbar", $.mobile.fixedtoolbar, { | |
_handlePageShow: function() {} | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
_getClosest: function( e ){ | |
var thumbx = $( this.thumb ).offset().left, | |
thumb2x = $( this.thumb2 ).offset().left; | |
if(Math.abs(e.offsetX - thumbx) < Math.abs(e.offsetX - thumb2x)){ | |
return true; | |
} else { | |
return false; | |
} | |
}, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$el = $( "td:first" ).each( function(){ | |
$( this ).replaceWith( "<th>"+ $( this ).html() + "</th>" ); | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function( undefined ){ | |
shoestring.merge = function( first, second ){ | |
var l = second.length, | |
i = first.length, | |
j = 0; | |
if ( typeof l === "number" ) { | |
for ( ; j < l; j++ ) { | |
first[ i++ ] = second[ j ]; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$.browser.oldIE = (function() { | |
var v = 3, | |
div = document.createElement( "div" ), | |
a = div.all || []; | |
do { | |
div.innerHTML = "<!--[if gt IE " + ( ++v ) + "]><br><![endif]-->"; | |
} while( a[0] ); | |
return v > 4 ? v : !v; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SCRIPT16389: Unspecified error. | |
jquery-1.9.1.js, line 3254 character 5 | |
focus: { | |
// Fire native event if possible so blur/focus sequence is correct | |
trigger: function() { | |
error: if ( this !== document.activeElement && this.focus ) { | |
try { | |
this.focus(); | |
return false; |