2016-11-02 12:12:53 +08:00
|
|
|
|
$(function () {
|
2016-11-12 19:20:19 +08:00
|
|
|
|
$('#navbar').attr('data-toggle', "dropdown").addClass('dropdown-toggle');
|
|
|
|
|
|
2016-11-02 12:12:53 +08:00
|
|
|
|
function iframeResposive() {
|
|
|
|
|
try {
|
|
|
|
|
var fra = $('iframe').get(0);
|
|
|
|
|
fra.height = fra.contentDocument.body.offsetHeight;
|
|
|
|
|
}
|
|
|
|
|
catch (e) {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
$(window).on('load', iframeResposive);
|
|
|
|
|
$(window).on('resize', iframeResposive);
|
2016-11-05 23:15:07 +08:00
|
|
|
|
|
|
|
|
|
$('.menu-submenu a').click(function (event) {
|
2016-11-06 12:28:53 +08:00
|
|
|
|
var act = $(this).attr("data-act");
|
|
|
|
|
if (act === "True") return true;
|
2016-11-05 23:15:07 +08:00
|
|
|
|
event.preventDefault();
|
|
|
|
|
$('.menu-submenu a, .menu-submenu p').removeClass('active');
|
|
|
|
|
$(this).addClass('active');
|
|
|
|
|
$(this).parents("ul").first().find('p').addClass('active');
|
|
|
|
|
$('iframe').attr('src', $(this).attr('href'));
|
|
|
|
|
});
|
2016-11-01 20:14:27 +08:00
|
|
|
|
});
|