UNPKG

har-down

Version:

har download 从 chrome 生成的 har 文件中下载整个网站所有资源

39 lines (34 loc) 1.5 kB
$(document).ready(function() { if($('.full-section.oneThird-RadioBtn label').length<=4){ $('.full-section.oneThird-RadioBtn label').css({'width':'100%','clear':'both'}) $('.full-section.oneThird-RadioBtn label+label').css({'width':'100%','clear':'both','margin-left':'10px','margin-top':'5px'}) $('.full-section.oneThird-RadioBtn label+label+label').css({'width':'100%','clear':'both','margin-left':'10px','margin-top':'0'}) } //var max_length = -1; /*var max_length = parseInt("-1"); //$('.section-custome label').each(function(){ // max_length = Math.max(max_length, $(this).text().length); if( max_length == 3){ $(this).parent('.section-custome').addClass('section-custome-block'); } });*/ //style //.section-custome-block label {display:block} if($('[data-valmsg-summary]') !=="undefined") { $('[data-valmsg-summary]').insertAfter($('.form-intro')); } $('.rma-width-form').parent('.scfForm').css('max-width','100%'); function updateForm() { if ($("[name='__RequestVerificationToken']") != null && $("[name='__RequestVerificationToken']") != undefined) { $("[name='__RequestVerificationToken']").appendTo($(".scfForm").parent()); } $(".scfForm").remove(); } if ($('.scfForm').val() != undefined && $('.scfForm').length > 0) { $("#phbody_0_phbodycontent_2_ddlLocation").change(function () { updateForm(); }) $('a[id^="phbody_0_phbodycontent_2_rptrDistributorsList_lnkMileStoneYearRangel"]').click(function () { updateForm(); }) } });