|
|
|
|
|
|
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
|
$('.autodoc_home_modal_size').click(function(e) { |
|
|
$('.autodoc_home_modal_size').click(function(e) { |
|
|
var size = $(e.target).html(); |
|
|
|
|
|
$('.autodoc_home_modal_size').removeClass("active"); |
|
|
$('.autodoc_home_modal_size').removeClass("active"); |
|
|
$(e.target).addClass("active"); |
|
|
$(e.target).addClass("active"); |
|
|
home_modal_resize(conf.modalsize[size]); |
|
|
|
|
|
|
|
|
home_modal_resize($(e.target).html()); |
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
|
$(window).bind("hashchange", function () { |
|
|
$(window).bind("hashchange", function () { |
|
|
|
|
|
|
|
|
"/image"); |
|
|
"/image"); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
function home_modal_resize(size) { |
|
|
|
|
|
var newclass; |
|
|
|
|
|
|
|
|
|
|
|
$('#autodoc_home_modal').children().removeClass('modal-sm modal-lg modal-xl'); |
|
|
|
|
|
|
|
|
|
|
|
switch(size) { |
|
|
|
|
|
case "S": newclass = "modal-sm"; break; |
|
|
|
|
|
case "M": break; |
|
|
|
|
|
case "L": newclass = "modal-lg"; break; |
|
|
|
|
|
case "XL": newclass = "modal-xl"; break; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if ( newclass ) { |
|
|
|
|
|
$('#autodoc_home_modal').children().addClass(newclass); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
function home_modal_page_prev() { |
|
|
function home_modal_page_prev() { |
|
|
home_modal_page( |
|
|
home_modal_page( |
|
|
$('#autodoc_home_modal').data('pageNum') - 1); |
|
|
$('#autodoc_home_modal').data('pageNum') - 1); |