WeiWeiXinNet/USER_DIR/SYSUSER/HOME/index/Pink/index.js
(开头部分) 52KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
(function( $, undefined ) {
//special click handling to make widget work remove after nav changes in 1.4
var href,
ele = "";
$( document ).on( "click", "a", function( e ) {
href = $( this ).attr( "href" );
var hash = $.mobile.path.parseUrl( href );
if( typeof href !== "undefined" && hash !== "" && href !== href.replace( hash,"" ) && hash.search( "/" ) !== -1 ){
//remove the hash from the link to allow normal loading of the page.
var newHref = href.replace( hash,"" );
$( this ).attr( "href", newHref );
}
ele = $( this );
});
$( document ).on( "pagebeforechange", function( e, f ){
f.originalHref = href;
});
$( document ).on("pagebeforechange", function( e,f ){
var hash = $.mobile.path.parseUrl(f.toPage).hash,
hashEl, hashElInPage;
try {
hashEl = $( hash );
} catch( e ) {
hashEl = $();
}
try {
hashElInPage = $( ".ui-page-active " + hash );
} catch( e ) {
hashElInPage = $();
}
if( typeof hash !== "undefined" &&
hash.search( "/" ) === -1 &&
hash !== "" &&
hashEl.length > 0 &&
!hashEl.hasClass( "ui-page" ) &&
!hashEl.hasClass( "ui-popup" ) &&
hashEl.data('role') !== "page" &&
!hashElInPage.hasClass( "ui-panel" ) &&
!hashElInPage.hasClass( "ui-popup" ) ) {
//scroll to the id
var pos = hashEl.offset().top;
$.mobile.silentScroll( pos );
$.mobile.navigate( hash, '', true );
} else if( typeof f.toPage !== "object" &&
hash !== "" &&
$.mobile.path.parseUrl( href ).hash !== "" &&
!hashEl.hasClass( "ui-page" ) && hashEl.attr('data-role') !== "page" &&
!hashElInPage.hasClass( "ui-panel" ) &&
!hashElInPage.hasClass( "ui-popup" ) ) {
$( ele ).attr( "href", href );
$.mobile.document.one( "pagechange", function() {
if( typeof hash !== "undefined" &&
hash.search( "/" ) === -1 &&
hash !== "" &&
hashEl.length > 0 &&
hashElInPage.length > 0 &&
!hashEl.hasClass( "ui-page" ) &&
后面还有 967 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。