diff --git a/app/assets/images/cancerpredict/triangle_add.png b/app/assets/images/cancerpredict/triangle_add.png new file mode 100644 index 0000000..086202d Binary files /dev/null and b/app/assets/images/cancerpredict/triangle_add.png differ diff --git a/app/assets/images/cancerpredict/triangle_sub.png b/app/assets/images/cancerpredict/triangle_sub.png new file mode 100644 index 0000000..c6ae87c Binary files /dev/null and b/app/assets/images/cancerpredict/triangle_sub.png differ diff --git a/app/assets/javascripts/cancer_predict.js b/app/assets/javascripts/cancer_predict.js new file mode 100644 index 0000000..5ddd4b2 --- /dev/null +++ b/app/assets/javascripts/cancer_predict.js @@ -0,0 +1,828 @@ +$(document).ready(function(){ + var head_data = $.post("/cancerpredictResult",{"header":1,locale:I18n.locale}); + var data = {}; + if(I18n.locale == 'en'){ + var window_width = $(window).width(); + if(window_width < 520){ + $('#cancer_table .cencer_table_name').css('max-width',''); + }else if(window_width < 768){ + $('#cancer_table .cencer_table_name').css({'max-width':'','width':'11em'}); + }else if(window_width < 860){ + $('#cancer_table .cencer_table_name').css('max-width','30%'); + }else if(window_width < 1130){ + $('#cancer_table .cencer_table_name').css('max-width','33%'); + }else{ + $('#cancer_table .cencer_table_name').css('max-width','39%'); + }; + }; + head_data.done(function(){ + // $('.header-nav').html(head_images.responseJSON['head_images']); + // $('.navbar-brand').html(head_images.responseJSON['title']) + data['danger_texts'] = head_data.responseJSON['danger_texts']; + $('head title').text(head_data.responseJSON['page_title']) + }); + Array.prototype.remove_item_from_array = function(){ + var result_array = this; + for(var i=0;i $(this).data('range')[1] && $(this).data('range')[1] != undefined) ){ + $(this).css('color','#f24a69'); + $(this).addClass('cancertable_empty'); + }else{ + $(this).css('color','#333'); + $(this).removeClass('cancertable_empty'); + if($('.cancertable_empty').length == 0){ + $('#danger_texts').remove(); + }; + }; + }); + $('input#lymph_nodes_positive').off('input').on('input',function(){ + $(this).siblings('.num_only_value').val($(this).val()); + if( Number($(this).val()) < $(this).data('range_new')[0] || $(this).val() == "" || (Number($(this).val()) > $(this).data('range_new')[1] && $(this).data('range_new')[1] != undefined) ){ + $(this).css('color','#f24a69'); + $(this).addClass('cancertable_empty'); + }else{ + $(this).css('color','#333'); + $(this).removeClass('cancertable_empty'); + if($('.cancertable_empty').length == 0){ + $('#danger_texts').remove(); + }; + }; + }); + $('input#lymph_nodes_examined').off('input').on('input',function(){ + $(this).siblings('.num_only_value').val($(this).val()); + if( Number($(this).val()) < $(this).data('range_new')[0] || $(this).val() == "" || (Number($(this).val()) > $(this).data('range_new')[1] && $(this).data('range_new')[1] != undefined) ){ + $(this).css('color','#f24a69'); + $(this).addClass('cancertable_empty'); + }else{ + $(this).css('color','#333'); + $(this).removeClass('cancertable_empty'); + if($('.cancertable_empty').length == 0){ + $('#danger_texts').remove(); + }; + }; + }); + $('.cancer_help_btn').off("click").on('click',function(){ + var modal_head = ""; + try{ modal_head = $(this).parent().find(">label").html()}catch(e){}; + var modal_body = ""; + try{ modal_body = $(this).parent().find(">input.help_texts").attr('value')}catch(e){}; + $('#show_help_modal').html("") + $('#show_help_modal').modal('show'); + $('#show_help_modal .close').off("click").on('click',function(){ + $('#show_help_modal').modal('hide'); + }); + $('#show_help_modal .modal-footer button').off("click").on('click',function(){ + $('#show_help_modal').modal('hide'); + }); + }); + $('.btn-add').click(function(){ + $(this).parent().find('.num_only').removeClass('cancertable_empty'); + if($(this).parent().find('.num_only').val()!=""){ + var input_value = Number($(this).parent().find('.num_only').val()); + if(Array.isArray($(this).parent().find('.num_only').data('range'))){ + var compare_value = $(this).parent().find('.num_only').data('range')[1]; + if(compare_value != undefined){ + if(input_value+1 <= Number(compare_value)) + $(this).parent().find('.num_only').val(input_value+1); + else{ + input_value = $(this).parent().find('.num_only').data('range')[0]; + if(input_value != undefined) + $(this).parent().find('.num_only').val(input_value); + }; + }else{ + $(this).parent().find('.num_only').val(input_value+1); + }; + compare_value = $(this).parent().find('.num_only').data('range')[0]; + if(compare_value != undefined){ + if($(this).parent().find('.num_only').val() >= compare_value){ + $(this).parent().find('.num_only').removeClass('cancertable_empty'); + $(this).parent().find('.num_only').css('color','#333'); + }; + if($('.cancertable_empty').length == 0){ + $('#danger_texts').remove(); + }; + }else{ + $(this).parent().find('.num_only').removeClass('cancertable_empty'); + $(this).parent().find('.num_only').css('color','#333'); + if($('.cancertable_empty').length == 0){ + $('#danger_texts').remove(); + }; + }; + }; + }else{ + try{ + var input_value = $(this).parent().find('.num_only').data('range')[0]; + if(input_value != undefined) + $(this).parent().find('.num_only').val(input_value); + }catch(e){ + $(this).parent().find('.num_only').val(0); + }; + if($(this).parent().find('.num_only').val() != ""){ + $(this).parent().find('.num_only').removeClass('cancertable_empty'); + $(this).parent().find('.num_only').css('color','#333'); + }; + }; + }); + $('.btn-sub').click(function(){ + if($(this).parent().find('.num_only').val()!=""){ + var input_value = Number($(this).parent().find('.num_only').val()); + if(Array.isArray($(this).parent().find('.num_only').data('range'))){ + var compare_value = $(this).parent().find('.num_only').data('range')[0]; + if(compare_value != undefined){ + if(input_value-1 >= Number(compare_value)) + $(this).parent().find('.num_only').val(input_value-1); + else{ + input_value = $(this).parent().find('.num_only').data('range')[1]; + if(input_value != undefined) + $(this).parent().find('.num_only').val(input_value); + }; + }else{ + $(this).parent().find('.num_only').val(input_value-1); + }; + compare_value = $(this).parent().find('.num_only').data('range')[1]; + if(compare_value != undefined){ + if($(this).parent().find('.num_only').val() <= compare_value){ + $(this).parent().find('.num_only').removeClass('cancertable_empty'); + $(this).parent().find('.num_only').css('color','#333'); + }; + if($('.cancertable_empty').length == 0){ + $('#danger_texts').remove(); + }; + }else{ + $(this).parent().find('.num_only').removeClass('cancertable_empty'); + $(this).parent().find('.num_only').css('color','#333'); + if($('.cancertable_empty').length == 0){ + $('#danger_texts').remove(); + }; + }; + }; + }else{ + try{ + var input_value = $(this).parent().find('.num_only').data('range')[1]; + if(input_value != undefined){ + $(this).parent().find('.num_only').val(input_value); + }else{ + input_value = $(this).parent().find('.num_only').data('range')[0]; + if(input_value != undefined) + $(this).parent().find('.num_only').val(input_value); + } + }catch(e){ + $(this).parent().find('.num_only').val(0); + }; + if($(this).parent().find('.num_only').val() != ""){ + $(this).parent().find('.num_only').removeClass('cancertable_empty'); + $(this).parent().find('.num_only').css('color','#333'); + }; + }; + if($('.cancertable_empty').length == 0){ + $('#danger_texts').remove(); + }; + }); + $('.cancer_table_btn').off('click').on('click',function(){ + var index = $(this).index()/2; + try{ + $(this).parent().find('>input').attr('value',0); + $(this).parent().find('>input').eq(index).attr('value',1); + $(this).parent().find('>button').removeClass('active'); + $(this).parent().removeClass('cancertable_empty'); + if($('.cancertable_empty').length == 0){ + $('#danger_texts').remove(); + }; + }catch(e){}; + $(this).addClass('active'); + }); + $('#cancer_table_reset').click(function(){ + $('.cancer_table_btn').removeClass('active'); + $('.cancer-btn-group input').attr('value',0); + $('.num_only').val(''); + $('.num_only_value').val(''); + $('#cancer_table .cancer_form_field').removeClass('cancertable_empty'); + $('#cancer_predict_result_block').css('display','none'); + $('#danger_texts').remove(); + $('select.select_num').val(''); + }); + function get_input_data(){ + var flag; + flag = 1; + for(var i = 0;i < $('#cancer_table .cancer_form_field').length;i++){ + if($('#cancer_table .cancer_form_field').eq(i).hasClass('num_only')){ + if($('#cancer_table .cancer_form_field').eq(i).val()==""){ + flag = 0; + $('#cancer_table .cancer_form_field').eq(i).addClass('cancertable_empty'); + }else if($('#cancer_table .cancer_form_field').eq(i).val() != "" && !$('#cancer_table .cancer_form_field').eq(i).hasClass('cancertable_empty')){ + $('#cancer_table .cancer_form_field').eq(i).removeClass('cancertable_empty'); + }; + }else{ + if($('#cancer_table .cancer_form_field').eq(i).find('[value="1"]').length == 0){ + flag = 0; + $('#cancer_table .cancer_form_field').eq(i).addClass('cancertable_empty'); + }else{ + $('#cancer_table .cancer_form_field').eq(i).removeClass('cancertable_empty'); + } + }; + }; + if( Number($('input#lymph_nodes_examined').siblings('.num_only_value').val()) < Number($('input#lymph_nodes_positive').siblings('.num_only_value').val())){ + $('input#lymph_nodes_positive').addClass('cancertable_empty'); + $('input#lymph_nodes_positive').css('color','rgb(242, 74, 105)'); + }; + if($('.cancertable_empty').length != 0){ + flag = 0; + ($('#danger_texts').length == 0) ? $('#cancer_table_submit').parent().before(''+data['danger_texts']+'') : null; + $('#danger_texts').css('margin-left',$(window).width()/2-$('#danger_texts').width()/2); + }else{ + $('#danger_texts').remove(); + }; + if(flag == 1){ + var post_json= {}; + for(var i = 0;i < $('#cancer_table .cancer_form_field').length;i++){ + var name = $('#cancer_table .cancer_form_field').eq(i).attr('id') + if($('#cancer_table .cancer_form_field').eq(i).hasClass('num_only')) + post_json[name] = $('#cancer_table .cancer_form_field').eq(i).siblings('.num_only_value').val(); + else{ + var index = ($('#cancer_table .cancer_form_field').eq(i).find('[value="1"]').index()+1)/2; + post_json[name] = index; + }; + }; + if( post_json["ER_status"] == 2 && post_json["PR_status"] == 2 ){ + $('#hormone_therapy .cancer_table_btn').attr('disabled','disabled'); + $('[for="hormone_therapy"]').css('color','rgb(204, 204, 204)'); + }else{ + $('#hormone_therapy .cancer_table_btn').removeAttr('disabled'); + $('[for="hormone_therapy"]').css('color',''); + }; + if(post_json["HER2_status"] != 1){ + $('#Targeted_therapy .cancer_table_btn').attr('disabled','disabled'); + $('[for="Targeted_therapy"]').css('color','rgb(204, 204, 204)'); + }else{ + $('#Targeted_therapy .cancer_table_btn').removeAttr('disabled'); + $('[for="Targeted_therapy"]').css('color',''); + }; + return post_json; + }else{ + return null; + } + }; + function set_result(result){ + if(result.responseJSON.lpv != "error"){ + $('#choice_fields .cancer_table_btn').removeClass('active'); + var load_heml = $('#result_table_content').html(result.responseJSON.table); + load_heml.ready(function(){ + $('#result_table_content .cancer_years').eq(-1).addClass('active'); + for(var i = 0;i < $('#result_table_content .cancer_years').length;i++){ + $('#result_table_content .cancer_years').eq(i).attr('index',i) + }; + $('#result_table_content .cancer_years').off('click').on('click',function(){ + try{ + $(this).parent().find('.cancer_years').removeClass('active'); + }catch(e){}; + $(this).addClass('active'); + $('#current_year').attr('index',$(this).attr('index')); + $('#current_year').attr('value',$(this).html()); + $('#current_year').change(); + }); + }); + load_heml = $('#result_text_content').html(result.responseJSON.texts); + load_heml.ready(function(){ + $('#result_text_content .cancer_years').eq(-1).addClass('active'); + for(var i = 0;i < $('#result_text_content .cancer_years').length;i++){ + $('#result_text_content .cancer_years').eq(i).attr('index',i) + }; + $('#current_year').off('change'); + $('#result_text_content .cancer_years').off('click') + $('#result_text_content .cancer_years').click(function(){ + try{ + $(this).parent().find('.cancer_years').removeClass('active'); + }catch(e){}; + $(this).addClass('active'); + $('#current_year').attr('value',$(this).html()); + $('#current_year').attr('index',$(this).attr('index')); + $('.surgery_year').html($(this).html()); + $('#current_year').change(); + }); + $('#cancer_table_right_result .cancer-btn-group .cancer_table_btn').removeClass('active'); + $('#cancer_table_right_result .cancer-btn-group >input').attr('value',"0"); + for(var i = 0;i < $('#cancer_table_left_result .cancer-btn-group').length;i++){ + $('#cancer_table_left_result .cancer-btn-group').eq(i).find('.cancer_table_btn').eq(0).addClass('active'); + $('#cancer_table_left_result .cancer-btn-group').eq(i).find('>input').eq(0).attr('value',"1"); + }; + for(var i = 0;i < $('#cancer_table_right_result .cancer-btn-group').length;i++){ + $('#cancer_table_right_result .cancer-btn-group').eq(i).find('.cancer_table_btn').eq(0).addClass('active'); + $('#cancer_table_right_result .cancer-btn-group').eq(i).find('>input').eq(0).attr('value',"1"); + }; + var treatmeny_method = result.responseJSON.treatmeny_method; + $('tr.'+treatmeny_method[0]).addClass('tr_show') + var lpv = [0,-0.8397,-0.4147,-0.3203,-0.4687]; + var servive_ratio_arr = [result.responseJSON.servive_ratio] + var yes = (I18n.locale=="zh_tw") ? "是" : "yes"; + var year = $('#current_year').attr('value'); + var active_treatment = ['Surgery_only']; + $('tr.'+active_treatment[0]+' .Overall_Survival').html(servive_ratio_arr[0]+'%'); + $('#cancer_predict_result_block').css('display','block'); + var lpv_real = [result.responseJSON['lpv']]; + var lpv_dict={} + var lpv_calc={1:-0.001476145,3:-0.01261639,5:-0.02519608} + active_treatment.push = function() { + if(arguments.length == 1){ + var year = $('#current_year').attr('value'); + var lpv_current = lpv_real[lpv_real.length-1]+lpv_dict[arguments[0]]; + lpv_real.push(lpv_current); + var servive_ratio = Math.round((Math.exp(lpv_calc[year])**Math.exp(lpv_current))*100); + var benefit = servive_ratio - servive_ratio_arr[servive_ratio_arr.length - 1]; + servive_ratio_arr.push(servive_ratio); + $('tr.'+arguments[0]+' td.Overall_Survival').html(servive_ratio+'%'); + $('tr.'+arguments[0]+' td.Additional_Benefit').html(benefit+'%'); + $('tr.'+arguments[0]).css('display','table-row'); + $('tr.tr_show').eq(-1).after($('tr.'+arguments[0])); + $('tr.'+arguments[0]).addClass('tr_show'); + if(this.length == 1){ + $('.addition').css('display','inline-block'); + $('#result_text_content .extra-text').css('display','inline-block'); + } + var add_choices = this.slice(1,this.length); + add_choices.push(arguments[0]); + var add_choices_transform = []; + for(var i = 0;i= 2) + add_choices_str += ((I18n.locale == 'en' ? ', and ': '以及')+add_choices_transform[add_choices_transform.length-1]) + else + add_choices_str = add_choices_transform[0]; + var extra_therapy_texts = result.responseJSON['extra_therapy_texts']; + extra_therapy_texts = extra_therapy_texts.replace('{{extra_therapy}}',''+add_choices_str+''); + extra_therapy_texts = extra_therapy_texts.replace('{{survival_num}}',''+servive_ratio+''); + extra_therapy_texts = extra_therapy_texts.replace('{{surgery_year}}',''+year+''); + extra_therapy_texts = extra_therapy_texts.replace('{{Additional_Benefit}}',''+benefit+''); + var new_text = '

'; + new_text += (extra_therapy_texts+'

'); + $('#result_text_content .extra-text .texts_show').eq(-1).after(new_text) + return Array.prototype.push.apply(this, arguments); + }else{ + return Array.prototype.push.apply(this, arguments); + } + }; + active_treatment.remove_item_from_array = function(){ + if(arguments.length == 1 && !Array.isArray(arguments[0])){ + var index = this.indexOf(arguments[0]) + var year = $('#current_year').attr('value'); + if(index < this.length - 1){ + for(var i = index + 1;i < this.length; i++){ + lpv_real[i] -= lpv_dict[arguments[0]]; + var servive_ratio = Math.round((Math.exp(lpv_calc[year])**Math.exp(lpv_real[i]))*100); + servive_ratio_arr[i] = servive_ratio; + var benefit = servive_ratio - ((i == index+1) ? servive_ratio_arr[index - 1] : servive_ratio_arr[i - 1]); + $('tr.'+active_treatment[i]+' td.Overall_Survival').html(servive_ratio+'%'); + $('.'+active_treatment[i]+'.Overall_Survival').html(servive_ratio); + $('tr.'+active_treatment[i]+' td.Additional_Benefit').html(benefit+'%'); + $('.'+active_treatment[i]+'.Additional_Benefit').html(benefit); + }; + var add_choices = []; + for(var i = 1;i < this.length; i++){ + if(i != index){ + add_choices.push(this[i]); + var add_choices_transform = []; + for(var j = 0;j= 2) + add_choices_str += ('以及'+add_choices_transform[add_choices_transform.length-1]) + else + add_choices_str = add_choices_transform[0]; + $('.'+active_treatment[i]+'.choices').html(add_choices_str); + } + }; + }; + $('tr.'+arguments[0]+' td.Overall_Survival').html('-'); + $('tr.'+arguments[0]+' td.Additional_Benefit').html('-'); + $('tr.'+arguments[0]).css('display','none'); + $('tr.'+arguments[0]).removeClass('tr_show'); + $('a.'+arguments[0]).eq(0).parent().remove(); + lpv_real = lpv_real.remove_item_from_array(lpv_real[index]); + servive_ratio_arr = servive_ratio_arr.remove_item_from_array(servive_ratio_arr[index]); + if(this.length == 2){ + $('.addition').css('display','none'); + $('#result_text_content .extra-text').css('display','none'); + }; + return Array.prototype.remove_item_from_array.apply(this, arguments); + }else{ + return Array.prototype.remove_item_from_array.apply(this, arguments); + }; + }; + for(var i = 0;iinput').attr('value',0); + $(this).parent().find('>input').eq(index).attr('value',1); + $(this).parent().find('>button').removeClass('active'); + $(this).parent().removeClass('cancertable_empty'); + if($('.cancertable_empty').length == 0){ + $('#danger_texts').remove(); + }; + }catch(e){}; + $(this).addClass('active'); + if(!click_flag){ + if(!active_treatment.includes($(this).parent().attr('id'))){ + click_flag = true; + active_treatment.push($(this).parent().attr('id')); + click_flag = false; + }; + } + }); + $('#'+treatmeny_method[i]+' .cancer_table_btn').eq(0).off('click'); + $('#'+treatmeny_method[i]+' .cancer_table_btn').eq(0).click(function(){ + var index = $(this).index()/2; + try{ + $(this).parent().find('>input').attr('value',0); + $(this).parent().find('>input').eq(index).attr('value',1); + $(this).parent().find('>button').removeClass('active'); + $(this).parent().removeClass('cancertable_empty'); + if($('.cancertable_empty').length == 0){ + $('#danger_texts').remove(); + }; + }catch(e){}; + $(this).addClass('active'); + if(!click_flag){ + if(active_treatment.includes($(this).parent().attr('id'))){ + click_flag = true; + active_treatment = active_treatment.remove_item_from_array($(this).parent().attr('id')); + click_flag = false; + }; + }; + }); + }; + $('#current_year').change(function(){ + year = $(this).attr('value'); + $('.surgery_year').html(year); + $('.cancer_years').removeClass('active'); + $('#result_text_content .cancer_years').eq($(this).attr("index")).addClass('active'); + $('#result_table_content .cancer_years').eq($(this).attr("index")).addClass('active'); + var obj = {"servive_ratio_arr":servive_ratio_arr,"active_treatment":active_treatment,"lpv_real":lpv_real,"lpv_calc":lpv_calc,"year":year} + calculate_and_change_result_value(obj); + servive_ratio_arr = obj.servive_ratio_arr; + active_treatment = obj.active_treatment; + lpv_real = obj.lpv_real; + lpv_calc = obj.lpv_calc; + year = obj.year; + }); + $('#cancer_table .cancer_form_field').off('change').on('change',function(){ + var obj = {"servive_ratio_arr":servive_ratio_arr,"active_treatment":active_treatment,"lpv_real":lpv_real,"lpv_calc":lpv_calc,"year":year} + after_submit_change_func(obj); + servive_ratio_arr = obj.servive_ratio_arr; + active_treatment = obj.active_treatment; + lpv_real = obj.lpv_real; + lpv_calc = obj.lpv_calc; + year = obj.year; + }); + $('#cancer_table .cancer_form_field').click(function(){ + $(this).change(); + }); + $('select.select_num').off('click').on('click',function(){ + $(this).change(); + var obj = {"servive_ratio_arr":servive_ratio_arr,"active_treatment":active_treatment,"lpv_real":lpv_real,"lpv_calc":lpv_calc,"year":year} + after_submit_change_func(obj); + servive_ratio_arr = obj.servive_ratio_arr; + active_treatment = obj.active_treatment; + lpv_real = obj.lpv_real; + lpv_calc = obj.lpv_calc; + year = obj.year; + }); + $('.num_only').on('input', function() { + if( Number($(this).val()) < $(this).data('range')[0] || $(this).val() == "" || (Number($(this).val()) > $(this).data('range')[1] && $(this).data('range')[1] != undefined) ){ + $(this).css('color','#f24a69'); + $(this).addClass('cancertable_empty'); + }else{ + $(this).css('color','#333'); + $(this).removeClass('cancertable_empty'); + if($('.cancertable_empty').length == 0){ + $('#danger_texts').remove(); + }; + var obj = {"servive_ratio_arr":servive_ratio_arr,"active_treatment":active_treatment,"lpv_real":lpv_real,"lpv_calc":lpv_calc,"year":year}; + after_submit_change_func(obj); + servive_ratio_arr = obj.servive_ratio_arr; + active_treatment = obj.active_treatment; + lpv_real = obj.lpv_real; + lpv_calc = obj.lpv_calc; + year = obj.year; + }; + }); + }); + }; + }; + function calculate_and_change_result_value(obj){ + obj.servive_ratio_arr = []; + for(var i = 0;i(original_value+new_lpv-old_lpv)); + calculate_and_change_result_value(obj); + }; + }; + function calculate_first_lpv(result_json){ + result = {} + result['age1'] = Math.pow((Number(result_json['age'])/100),0.5); + result['age2'] = Math.pow((Number(result_json['age'])/100),0.5)*Math.log(result_json['age']/100); + result['size1'] = Math.log(Number(result_json['size'])/10); + if(Number(result_json['lymph_nodes_examined']) != 0) + try{result['ratio'] = Number(result_json['lymph_nodes_positive'])/Number(result_json['lymph_nodes_examined'])}catch(e){result['ratio'] = 0} + else + result['ratio'] = 0 + if(result['ratio'] > 1) + result['ratio'] = 1 + result['nposit'] = Math.pow(((Number(result['ratio'])+0.1)/0.1),0.5); + var T = ''; + if(Number(result_json['tumor_direct_extension']) != 1){ + if(Number(result_json['size']) <= 20) + T = 'T1'; + else if(Number(result_json['size']) > 20 && Number(result_json['size']) <= 50) + T = 'T2'; + else if(Number(result_json['size']) > 50) + T = 'T3'; + }else{ + T = 'T4'; + }; + var N = ''; + if(Number(result_json['lymph_nodes_positive']) == 0) + N = 'N0'; + else if(Number(result_json['lymph_nodes_positive']) >= 1 && Number(result_json['lymph_nodes_positive']) <= 3 && Number(result_json['micrometastasis']) != 1) + N = 'N1'; + else if(Number(result_json['lymph_nodes_positive']) >= 1 && Number(result_json['lymph_nodes_positive']) <= 3 && Number(result_json['micrometastasis']) == 1) + N = 'N1mi'; + else if(Number(result_json['lymph_nodes_positive']) >= 4 && Number(result_json['lymph_nodes_positive']) <= 9) + N = 'N2'; + else if(Number(result_json['lymph_nodes_positive']) >= 10) + N = 'N3'; + M = ''; + if(Number(result_json['Distant_Metastasis']) != 1) + M = 'M0'; + else + M = 'M1'; + if(Number(M == 'M0')) + if(T == 'T1' && (N == 'N0' || N == 'N1mi')) + result['pstage'] = 1; + else if(((T == 'T2' || T == 'T3') && (N == 'N0')) || ((T == 'T1' || T == 'T2') && (N == 'N1'))) + result['pstage'] = 2; + else if((T == 'T4' && N == 'N0') || ((T == 'T3' || T == 'T4') && N == 'N1') || (N == 'N2' || N == 'N3')) + result['pstage'] = 3; + else + result['pstage'] = 4 + if((Number(result_json['ER_status']) != 2 || Number(result_json['PR_status']) != 2) && (Number(result_json['HER2_status']) != 1)) + result['subtype'] = 1; + else if(Number(result_json['ER_status']) == 2 && Number(result_json['PR_status']) == 2 && (Number(result_json['HER2_status']) == 1)) + result['subtype'] = 2; + else if(Number(result_json['ER_status']) == 2 && Number(result_json['PR_status']) == 2 && (Number(result_json['HER2_status']) != 1)) + result['subtype'] = 3; + if( Number(result_json['grade']) == 2 || Number(result_json['grade']) == 4) + result['grade_2'] = 1; + else + result['grade_2'] = 0; + if( Number(result_json['grade']) == 3) + result['grade_3'] = 1; + else + result['grade_3'] = 0; + if( Number(result['subtype']) == 2) + result['subtype_HER2'] = 1; + else + result['subtype_HER2'] = 0; + if( Number(result['subtype']) == 3) + result['subtype_triple'] = 1; + else + result['subtype_triple'] = 0; + if( Number(result['pstage']) == 2) + result['pstage_2'] = 1; + else + result['pstage_2'] = 0; + if( Number(result['pstage']) == 3) + result['pstage_3'] = 1; + else + result['pstage_3'] = 0; + if( Number(result['pstage']) == 4) + result['pstage_4'] = 1; + else + result['pstage_4'] = 0; + if( Number(result_json['lvi']) == 1) + result['lvi_yes'] = 1; + else + result['lvi_yes'] = 0; + try{ + result['lpv'] = ((result['age1']-0.7276655)*(-10.87)+(result['age2']+0.4540707)*8.968+(result['size1']-0.643632)*0.7678+(result['nposit']-1.346932)*0.5339+ + result['grade_2']*0.4795+result['grade_3']*0.818+result['subtype_HER2']*0.1806+result['subtype_triple']*0.6457+result['pstage_2']*0.5311+ + result['pstage_3']*1.134+result['pstage_4']*2.172+result['lvi_yes']*0.3321-0.04); + }catch(e){result['lpv'] = "error"}; + return result; + }; + function submit_fcn(){ + var post_json = get_input_data(); + if(post_json != null){ + post_json['locale'] = I18n.locale; + var result = $.post("/cancerpredictResult",{"data":post_json}); + result.done(function(){ + console.log(result.responseJSON); + set_result(result); + window.location.hash = ''; + window.location.hash = '#cancer_predict_result_block'; + }); + }; + }; + $('#cancer_table_submit').click(function(){ + submit_fcn(); + }); + for(var i = 0;i < $('.result_tab').length;i++){ + $('.result_tab').eq(i).attr('index',i) + }; + for(var i = 0;i < $('.result_content').length;i++){ + $('.result_content').eq(i).attr('index',i) + }; + $('.result_tab').click(function(){ + var index = $(this).attr('index'); + $('.result_tab').removeClass('active'); + $(this).addClass('active'); + $('.result_content').css('display','none'); + $('.result_content[index="'+index+'"]').css('display','block'); + }) + $('.num_only').keypress(function(event){ + return event.keyCode>=48&&event.keyCode<=57||(this.value.indexOf('.')<0?event.keyCode==46:false); + }); + $('.float_num').off('keyup').on('keyup',function(){ + this.value = this.value.replace(/[^\d.]/g,''); + }); + $('.num_only').blur(function() { + if( Number($(this).val()) < $(this).data('range')[0] || $(this).val() == "" || (Number($(this).val()) > $(this).data('range')[1] && $(this).data('range')[1] != undefined) ){ + $(this).css('color','#f24a69'); + $(this).addClass('cancertable_empty'); + }else{ + $(this).css('color','#333'); + $(this).removeClass('cancertable_empty'); + if($('.cancertable_empty').length == 0){ + $('#danger_texts').remove(); + }; + }; + }); + $('select.select_num').off('click').on('click',function(){ + $(this).change(); + }); + $('select.select_num').change(function(){ + if(this.selectedIndex != 0){ + $(this).siblings('input.num_only').val($(this).find('option').eq(this.selectedIndex).text()); + $(this).siblings('input.num_only').removeClass('cancertable_empty'); + $(this).siblings('input.num_only').css('color','#333'); + }else{ + $(this).siblings('input.num_only').addClass('cancertable_empty'); + $(this).siblings('input.num_only').css('color','rgb(242, 74, 105)'); + $(this).siblings('input.num_only').val($(this).val()); + } + $(this).siblings('input.num_only_value').val($(this).val()); + if($('.cancertable_empty').length == 0){ + $('#danger_texts').remove(); + }; + }); + $('input#lymph_nodes_examined').siblings('select.select_num').off('change').on('change',function(){ + var range = $('input#lymph_nodes_positive').data('range'); + range[1] = Number($(this).val()); + $('input#lymph_nodes_positive').data('range_new', range); + if(this.selectedIndex != 0){ + $(this).siblings('input.num_only').val($(this).find('option').eq(this.selectedIndex).text()); + $(this).siblings('input.num_only').removeClass('cancertable_empty'); + $(this).siblings('input.num_only').css('color','#333'); + }else{ + $(this).siblings('input.num_only').addClass('cancertable_empty'); + $(this).siblings('input.num_only').css('color','rgb(242, 74, 105)'); + $(this).siblings('input.num_only').val($(this).val()); + } + $(this).siblings('input.num_only_value').val($(this).val()); + if($('.cancertable_empty').length == 0){ + $('#danger_texts').remove(); + }; + $(this).siblings('.num_only_value').val($(this).val()); + if( Number($('input#lymph_nodes_positive').siblings('.num_only_value').val()) <= Number($(this).val()) ){ + $('input#lymph_nodes_positive').css('color','#333'); + $('input#lymph_nodes_positive').removeClass('cancertable_empty'); + }; + if( Number($(this).val()) < $(this).siblings('.num_only').data('range_new')[0] || $(this).val() == "" || (Number($(this).val()) > $(this).siblings('.num_only').data('range_new')[1] && $(this).siblings('.num_only').data('range_new')[1] != undefined) ){ + $(this).siblings('.num_only').css('color','#f24a69'); + $(this).siblings('.num_only').addClass('cancertable_empty'); + }else{ + $(this).siblings('.num_only').css('color','#333'); + $(this).siblings('.num_only').removeClass('cancertable_empty'); + if($('.cancertable_empty').length == 0){ + $('#danger_texts').remove(); + }; + }; + }); + $('input#lymph_nodes_positive').siblings('select.select_num').off('change').on('change',function(){ + var range = $('input#lymph_nodes_examined').data('range'); + range[0] = Number($(this).val()); + $('input#lymph_nodes_examined').data('range_new', range); + if(this.selectedIndex != 0){ + $(this).siblings('input.num_only').val($(this).find('option').eq(this.selectedIndex).text()); + $(this).siblings('input.num_only').removeClass('cancertable_empty'); + $(this).siblings('input.num_only').css('color','#333'); + }else{ + $(this).siblings('input.num_only').addClass('cancertable_empty'); + $(this).siblings('input.num_only').css('color','rgb(242, 74, 105)'); + $(this).siblings('input.num_only').val($(this).val()); + } + $(this).siblings('input.num_only_value').val($(this).val()); + if($('.cancertable_empty').length == 0){ + $('#danger_texts').remove(); + }; + $(this).siblings('.num_only_value').val($(this).val()); + if( Number($('input#lymph_nodes_examined').siblings('.num_only_value').val()) >= Number($(this).val()) ){ + $('input#lymph_nodes_examined').css('color','#333'); + $('input#lymph_nodes_examined').removeClass('cancertable_empty'); + }; + if( Number($(this).val()) < $(this).siblings('.num_only').data('range_new')[0] || $(this).val() == "" || (Number($(this).val()) > $(this).siblings('.num_only').data('range_new')[1] && $(this).siblings('.num_only').data('range_new')[1] != undefined) ){ + $(this).siblings('.num_only').css('color','#f24a69'); + $(this).siblings('.num_only').addClass('cancertable_empty'); + }else{ + $(this).siblings('.num_only').css('color','#333'); + $(this).siblings('.num_only').removeClass('cancertable_empty'); + if($('.cancertable_empty').length == 0){ + $('#danger_texts').remove(); + }; + }; + }); + $('select.select_num').blur(function() { + if( Number($(this).siblings('.num_only_value').val()) < $(this).siblings('.num_only').data('range')[0] || $(this).siblings('.num_only_value').val() == "" || (Number($(this).siblings('.num_only_value').val()) > $(this).siblings('.num_only').data('range')[1] && $(this).siblings('.num_only').data('range')[1] != undefined) ){ + $(this).siblings('.num_only').css('color','#f24a69'); + $(this).siblings('.num_only').addClass('cancertable_empty'); + }else{ + $(this).siblings('.num_only').css('color','#333'); + $(this).siblings('.num_only').removeClass('cancertable_empty'); + if($('.cancertable_empty').length == 0){ + $('#danger_texts').remove(); + }; + }; + }); + if($(window).width() < 768) + $('#cancer_predict_result').attr('style',''); +}); +$(window).resize(function(){ + if($(window).width() > 768){ + if($('.cancer_table_right_result').length != 0) + $('#cancer_predict_result').css('float','right'); + }else{ + $('#cancer_predict_result').attr('style',''); + }; + if(I18n.locale == 'en'){ + var window_width = $(window).width(); + if(window_width < 520){ + $('#cancer_table .cencer_table_name').css('max-width',''); + }else if(window_width < 768){ + $('#cancer_table .cencer_table_name').css({'max-width':'','width':'11em'}); + }else if(window_width < 860){ + $('#cancer_table .cencer_table_name').css('max-width','30%'); + }else if(window_width < 1130){ + $('#cancer_table .cencer_table_name').css('max-width','33%'); + }else{ + $('#cancer_table .cencer_table_name').css('max-width','39%'); + }; + }; +}); diff --git a/app/assets/javascripts/react.js b/app/assets/javascripts/react.js index 6177713..6db4e76 100644 --- a/app/assets/javascripts/react.js +++ b/app/assets/javascripts/react.js @@ -9,7 +9,6 @@ if (typeof Math.imul == "undefined" || (Math.imul(0xffffffff, 5) == 0)) { return ((al * bl) + (((ah * bl + al * bh) << 16) >>> 0) | 0); } } - /** * React v15.3.1 * @@ -3105,7 +3104,7 @@ if (typeof Math.imul == "undefined" || (Math.imul(0xffffffff, 5) == 0)) { null), React.createElement("p", null, "Which ", React.createElement("strong", null, "result tab"), " should appear first?"), Y(OQ(NB))), React.createElement("div", { className: "modal-footer" }, React.createElement("button", { type: "button", onClick: function () { return $("#settingsModal").modal("hide") }, className: "btn btn-default" }, "Close"))))) }, new R(null, 1, 5, S, [aH], null), "settings-modal"); var $W = QG(function () { return Y(p(bH(FQ)) ? function () { sU("tool-postamble"); return new R(null, 4, 5, S, [gB, new m(null, 4, [ps, "button", nu, function () { return zQ.ma(null, "print") }, lC, function (a) { return B.h("Enter", a.nativeEvent.code) ? zQ.ma(null, "print") : null }, Ru, ni([Bn, Do, cp, dr, Fr, xt, $t, Gx, jy, xz, Uz], ["#ffffff", 16, 300, "#444466", 70, 10, 10, .5, "0.9375em 5px 0.9375em 5px", -1, "fixed"])], null), function () { var a = new m(null, 1, [Qm, DF], null); return XQ.h ? XQ.h(a, "print") : XQ.call(null, a, "print") }(), " Print"], null) }() : null) }, new R(null, 1, 5, S, [aH], null), "results-footer"),is_submit={flag: true , submit_func: function(){var a = bH(FQ);return (cc(E(a)) || null == a)}} , aX = QG(function () { - var a = bH(FQ); console.log(cc(E(a)) || null == a);return is_submit.flag ? React.createElement("div", { className: "row" }, React.createElement("div", { className: "col-sm-10 col-sm-offset-1 col-xs-12" }, React.createElement("div", { style: { backgroundColor: "#d3e7fd", padding: "0.625em 0.625em 3px 0.625em", marginBottom: 20 } }, React.createElement("div", { style: { color: "#002e5d", fontSize: "1.25em" } }, React.createElement("p", { style: { paddingBottom: 0 } }, Y(function () { + var a = bH(FQ); /*important it's result*/return cc(E(a)) || null == a ? React.createElement("div", { className: "row" }, React.createElement("div", { className: "col-sm-10 col-sm-offset-1 col-xs-12" }, React.createElement("div", { style: { backgroundColor: "#d3e7fd", padding: "0.625em 0.625em 3px 0.625em", marginBottom: 20 } }, React.createElement("div", { style: { color: "#002e5d", fontSize: "1.25em" } }, React.createElement("p", { style: { paddingBottom: 0 } }, Y(function () { var a = new m(null, 2, [Qm, DF, Ru, new m(null, 2, [Do, 35, iu, 8], null)], null); return XQ.h ? XQ.h(a, "info-circle") : XQ.call(null, a, "info-circle") }()), " Treatment options and results will appear here when you have filled in all the information needed above."))))) : React.createElement("div", null, React.createElement("div", { className: "row" }, React.createElement("div", { className: "col-md-6 clearfix" }, React.createElement("h3", null, "Treatment Options"), Y(VW.l ? VW.l() : VW.call(null))), function () { diff --git a/app/assets/stylesheets/admin/cancerpredict.css b/app/assets/stylesheets/admin/cancerpredict.css index 2c22c38..68b079f 100644 --- a/app/assets/stylesheets/admin/cancerpredict.css +++ b/app/assets/stylesheets/admin/cancerpredict.css @@ -2,6 +2,54 @@ Place all the styles related to the matching controller here. They will automatically be included in application.css. */ -.table .expired{ - color: #BE2E2E; +thead > tr > th{ + border:1px solid; + background: bisque; +} +tbody{ + background:white; +} +tbody > tr > td{ + border:1px solid; + position: relative; +} +.show_li,.show_li *{ + list-style:none; + color:balck; +} +.show_li ul{ + display:none; +} +#clicktosee{ + color:blue; + cursor:pointer; +} +table .checkbox{ + left: 50%; + position: absolute; + transform: translate(-50%, -50%) !important; + top: 50%; +} +#updatebtn{ + margin-top: 1em; + right: 1em; + background-color: #0088cc; + color: white; + border: 0em; + padding: 0.125em 0.5em; + border-radius: 0.5em; +} +.show_span{ + margin: 1em; + float: left; + background-color: rgb(210, 105, 0); + color: white; + border: 0em; + padding: 0.125em 0.5em; + border-radius: 0.5em; + width: fit-content; +} +.label_left{ + float: left; + padding-right: 0.5em; } \ No newline at end of file diff --git a/app/assets/stylesheets/bootstrap.min.print.css b/app/assets/stylesheets/bootstrap.min.print.css new file mode 100644 index 0000000..afc4d1e --- /dev/null +++ b/app/assets/stylesheets/bootstrap.min.print.css @@ -0,0 +1,7 @@ +/*! + * Bootstrap v3.3.5 (http://getbootstrap.com) + * Copyright 2011-2015 Twitter, Inc. + * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) + * //*! normalize.css v3.0.3 | MIT License | github.com/necolas/normalize.css */ +html{font-family:sans-serif;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%}body{margin:0}article,aside,details,figcaption,figure,footer,header,hgroup,main,menu,nav,section,summary{display:block}audio,canvas,progress,video{display:inline-block;vertical-align:baseline}audio:not([controls]){display:none;height:0}[hidden],template{display:none}a{background-color:transparent}a:active,a:hover{outline:0}abbr[title]{border-bottom:0.0625em dotted}b,strong{font-weight:700}dfn{font-style:italic}h1{margin:.67em 0;font-size:2em}mark{color:#000;background:#ff0}small{font-size:80%}sub,sup{position:relative;font-size:75%;line-height:0;vertical-align:baseline}sup{top:-.5em}sub{bottom:-.25em}img{border:0}svg:not(:root){overflow:hidden}figure{margin:1em 2.5em}hr{height:0;-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box}pre{overflow:auto}code,kbd,pre,samp{font-family:monospace,monospace;font-size:1em}button,input,optgroup,select,textarea{margin:0;font:inherit;color:inherit}button{overflow:visible}button,select{text-transform:none}button,html input[type=button],input[type=reset],input[type=submit]{-webkit-appearance:button;cursor:pointer}button[disabled],html input[disabled]{cursor:default}button::-moz-focus-inner,input::-moz-focus-inner{padding:0;border:0}input{line-height:normal}input[type=checkbox],input[type=radio]{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;padding:0}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{height:auto}input[type=search]{-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;-webkit-appearance:textfield}input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-decoration{-webkit-appearance:none}fieldset{padding:.35em .625em .75em;margin:0 0.125em;border:0.0625em solid silver}legend{padding:0;border:0}textarea{overflow:auto}optgroup{font-weight:700}table{border-spacing:0;border-collapse:collapse}/*! Source: https://github.com/h5bp/html5-boilerplate/blob/master/src/css/main.css */@font-face{font-family:'Glyphicons Halflings';src:url(../fonts/glyphicons-halflings-regular.eot);src:url(../fonts/glyphicons-halflings-regular.eot?#iefix) format('embedded-opentype'),url(../fonts/glyphicons-halflings-regular.woff2) format('woff2'),url(../fonts/glyphicons-halflings-regular.woff) format('woff'),url(../fonts/glyphicons-halflings-regular.ttf) format('truetype'),url(../fonts/glyphicons-halflings-regular.svg#glyphicons_halflingsregular) format('svg')}.glyphicon{position:relative;top:0.0625em;display:inline-block;font-family:'Glyphicons Halflings';font-style:normal;font-weight:400;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.glyphicon-asterisk:before{content:"\002a"}.glyphicon-plus:before{content:"\002b"}.glyphicon-eur:before,.glyphicon-euro:before{content:"\20ac"}.glyphicon-minus:before{content:"\2212"}.glyphicon-cloud:before{content:"\2601"}.glyphicon-envelope:before{content:"\2709"}.glyphicon-pencil:before{content:"\270f"}.glyphicon-glass:before{content:"\e001"}.glyphicon-music:before{content:"\e002"}.glyphicon-search:before{content:"\e003"}.glyphicon-heart:before{content:"\e005"}.glyphicon-star:before{content:"\e006"}.glyphicon-star-empty:before{content:"\e007"}.glyphicon-user:before{content:"\e008"}.glyphicon-film:before{content:"\e009"}.glyphicon-th-large:before{content:"\e010"}.glyphicon-th:before{content:"\e011"}.glyphicon-th-list:before{content:"\e012"}.glyphicon-ok:before{content:"\e013"}.glyphicon-remove:before{content:"\e014"}.glyphicon-zoom-in:before{content:"\e015"}.glyphicon-zoom-out:before{content:"\e016"}.glyphicon-off:before{content:"\e017"}.glyphicon-signal:before{content:"\e018"}.glyphicon-cog:before{content:"\e019"}.glyphicon-trash:before{content:"\e020"}.glyphicon-home:before{content:"\e021"}.glyphicon-file:before{content:"\e022"}.glyphicon-time:before{content:"\e023"}.glyphicon-road:before{content:"\e024"}.glyphicon-download-alt:before{content:"\e025"}.glyphicon-download:before{content:"\e026"}.glyphicon-upload:before{content:"\e027"}.glyphicon-inbox:before{content:"\e028"}.glyphicon-play-circle:before{content:"\e029"}.glyphicon-repeat:before{content:"\e030"}.glyphicon-refresh:before{content:"\e031"}.glyphicon-list-alt:before{content:"\e032"}.glyphicon-lock:before{content:"\e033"}.glyphicon-flag:before{content:"\e034"}.glyphicon-headphones:before{content:"\e035"}.glyphicon-volume-off:before{content:"\e036"}.glyphicon-volume-down:before{content:"\e037"}.glyphicon-volume-up:before{content:"\e038"}.glyphicon-qrcode:before{content:"\e039"}.glyphicon-barcode:before{content:"\e040"}.glyphicon-tag:before{content:"\e041"}.glyphicon-tags:before{content:"\e042"}.glyphicon-book:before{content:"\e043"}.glyphicon-bookmark:before{content:"\e044"}.glyphicon-print:before{content:"\e045"}.glyphicon-camera:before{content:"\e046"}.glyphicon-font:before{content:"\e047"}.glyphicon-bold:before{content:"\e048"}.glyphicon-italic:before{content:"\e049"}.glyphicon-text-height:before{content:"\e050"}.glyphicon-text-width:before{content:"\e051"}.glyphicon-align-left:before{content:"\e052"}.glyphicon-align-center:before{content:"\e053"}.glyphicon-align-right:before{content:"\e054"}.glyphicon-align-justify:before{content:"\e055"}.glyphicon-list:before{content:"\e056"}.glyphicon-indent-left:before{content:"\e057"}.glyphicon-indent-right:before{content:"\e058"}.glyphicon-facetime-video:before{content:"\e059"}.glyphicon-picture:before{content:"\e060"}.glyphicon-map-marker:before{content:"\e062"}.glyphicon-adjust:before{content:"\e063"}.glyphicon-tint:before{content:"\e064"}.glyphicon-edit:before{content:"\e065"}.glyphicon-share:before{content:"\e066"}.glyphicon-check:before{content:"\e067"}.glyphicon-move:before{content:"\e068"}.glyphicon-step-backward:before{content:"\e069"}.glyphicon-fast-backward:before{content:"\e070"}.glyphicon-backward:before{content:"\e071"}.glyphicon-play:before{content:"\e072"}.glyphicon-pause:before{content:"\e073"}.glyphicon-stop:before{content:"\e074"}.glyphicon-forward:before{content:"\e075"}.glyphicon-fast-forward:before{content:"\e076"}.glyphicon-step-forward:before{content:"\e077"}.glyphicon-eject:before{content:"\e078"}.glyphicon-chevron-left:before{content:"\e079"}.glyphicon-chevron-right:before{content:"\e080"}.glyphicon-plus-sign:before{content:"\e081"}.glyphicon-minus-sign:before{content:"\e082"}.glyphicon-remove-sign:before{content:"\e083"}.glyphicon-ok-sign:before{content:"\e084"}.glyphicon-question-sign:before{content:"\e085"}.glyphicon-info-sign:before{content:"\e086"}.glyphicon-screenshot:before{content:"\e087"}.glyphicon-remove-circle:before{content:"\e088"}.glyphicon-ok-circle:before{content:"\e089"}.glyphicon-ban-circle:before{content:"\e090"}.glyphicon-arrow-left:before{content:"\e091"}.glyphicon-arrow-right:before{content:"\e092"}.glyphicon-arrow-up:before{content:"\e093"}.glyphicon-arrow-down:before{content:"\e094"}.glyphicon-share-alt:before{content:"\e095"}.glyphicon-resize-full:before{content:"\e096"}.glyphicon-resize-small:before{content:"\e097"}.glyphicon-exclamation-sign:before{content:"\e101"}.glyphicon-gift:before{content:"\e102"}.glyphicon-leaf:before{content:"\e103"}.glyphicon-fire:before{content:"\e104"}.glyphicon-eye-open:before{content:"\e105"}.glyphicon-eye-close:before{content:"\e106"}.glyphicon-warning-sign:before{content:"\e107"}.glyphicon-plane:before{content:"\e108"}.glyphicon-calendar:before{content:"\e109"}.glyphicon-random:before{content:"\e110"}.glyphicon-comment:before{content:"\e111"}.glyphicon-magnet:before{content:"\e112"}.glyphicon-chevron-up:before{content:"\e113"}.glyphicon-chevron-down:before{content:"\e114"}.glyphicon-retweet:before{content:"\e115"}.glyphicon-shopping-cart:before{content:"\e116"}.glyphicon-folder-close:before{content:"\e117"}.glyphicon-folder-open:before{content:"\e118"}.glyphicon-resize-vertical:before{content:"\e119"}.glyphicon-resize-horizontal:before{content:"\e120"}.glyphicon-hdd:before{content:"\e121"}.glyphicon-bullhorn:before{content:"\e122"}.glyphicon-bell:before{content:"\e123"}.glyphicon-certificate:before{content:"\e124"}.glyphicon-thumbs-up:before{content:"\e125"}.glyphicon-thumbs-down:before{content:"\e126"}.glyphicon-hand-right:before{content:"\e127"}.glyphicon-hand-left:before{content:"\e128"}.glyphicon-hand-up:before{content:"\e129"}.glyphicon-hand-down:before{content:"\e130"}.glyphicon-circle-arrow-right:before{content:"\e131"}.glyphicon-circle-arrow-left:before{content:"\e132"}.glyphicon-circle-arrow-up:before{content:"\e133"}.glyphicon-circle-arrow-down:before{content:"\e134"}.glyphicon-globe:before{content:"\e135"}.glyphicon-wrench:before{content:"\e136"}.glyphicon-tasks:before{content:"\e137"}.glyphicon-filter:before{content:"\e138"}.glyphicon-briefcase:before{content:"\e139"}.glyphicon-fullscreen:before{content:"\e140"}.glyphicon-dashboard:before{content:"\e141"}.glyphicon-paperclip:before{content:"\e142"}.glyphicon-heart-empty:before{content:"\e143"}.glyphicon-link:before{content:"\e144"}.glyphicon-phone:before{content:"\e145"}.glyphicon-pushpin:before{content:"\e146"}.glyphicon-usd:before{content:"\e148"}.glyphicon-gbp:before{content:"\e149"}.glyphicon-sort:before{content:"\e150"}.glyphicon-sort-by-alphabet:before{content:"\e151"}.glyphicon-sort-by-alphabet-alt:before{content:"\e152"}.glyphicon-sort-by-order:before{content:"\e153"}.glyphicon-sort-by-order-alt:before{content:"\e154"}.glyphicon-sort-by-attributes:before{content:"\e155"}.glyphicon-sort-by-attributes-alt:before{content:"\e156"}.glyphicon-unchecked:before{content:"\e157"}.glyphicon-expand:before{content:"\e158"}.glyphicon-collapse-down:before{content:"\e159"}.glyphicon-collapse-up:before{content:"\e160"}.glyphicon-log-in:before{content:"\e161"}.glyphicon-flash:before{content:"\e162"}.glyphicon-log-out:before{content:"\e163"}.glyphicon-new-window:before{content:"\e164"}.glyphicon-record:before{content:"\e165"}.glyphicon-save:before{content:"\e166"}.glyphicon-open:before{content:"\e167"}.glyphicon-saved:before{content:"\e168"}.glyphicon-import:before{content:"\e169"}.glyphicon-export:before{content:"\e170"}.glyphicon-send:before{content:"\e171"}.glyphicon-floppy-disk:before{content:"\e172"}.glyphicon-floppy-saved:before{content:"\e173"}.glyphicon-floppy-remove:before{content:"\e174"}.glyphicon-floppy-save:before{content:"\e175"}.glyphicon-floppy-open:before{content:"\e176"}.glyphicon-credit-card:before{content:"\e177"}.glyphicon-transfer:before{content:"\e178"}.glyphicon-cutlery:before{content:"\e179"}.glyphicon-header:before{content:"\e180"}.glyphicon-compressed:before{content:"\e181"}.glyphicon-earphone:before{content:"\e182"}.glyphicon-phone-alt:before{content:"\e183"}.glyphicon-tower:before{content:"\e184"}.glyphicon-stats:before{content:"\e185"}.glyphicon-sd-video:before{content:"\e186"}.glyphicon-hd-video:before{content:"\e187"}.glyphicon-subtitles:before{content:"\e188"}.glyphicon-sound-stereo:before{content:"\e189"}.glyphicon-sound-dolby:before{content:"\e190"}.glyphicon-sound-5-1:before{content:"\e191"}.glyphicon-sound-6-1:before{content:"\e192"}.glyphicon-sound-7-1:before{content:"\e193"}.glyphicon-copyright-mark:before{content:"\e194"}.glyphicon-registration-mark:before{content:"\e195"}.glyphicon-cloud-download:before{content:"\e197"}.glyphicon-cloud-upload:before{content:"\e198"}.glyphicon-tree-conifer:before{content:"\e199"}.glyphicon-tree-deciduous:before{content:"\e200"}.glyphicon-cd:before{content:"\e201"}.glyphicon-save-file:before{content:"\e202"}.glyphicon-open-file:before{content:"\e203"}.glyphicon-level-up:before{content:"\e204"}.glyphicon-copy:before{content:"\e205"}.glyphicon-paste:before{content:"\e206"}.glyphicon-alert:before{content:"\e209"}.glyphicon-equalizer:before{content:"\e210"}.glyphicon-king:before{content:"\e211"}.glyphicon-queen:before{content:"\e212"}.glyphicon-pawn:before{content:"\e213"}.glyphicon-bishop:before{content:"\e214"}.glyphicon-knight:before{content:"\e215"}.glyphicon-baby-formula:before{content:"\e216"}.glyphicon-tent:before{content:"\26fa"}.glyphicon-blackboard:before{content:"\e218"}.glyphicon-bed:before{content:"\e219"}.glyphicon-apple:before{content:"\f8ff"}.glyphicon-erase:before{content:"\e221"}.glyphicon-hourglass:before{content:"\231b"}.glyphicon-lamp:before{content:"\e223"}.glyphicon-duplicate:before{content:"\e224"}.glyphicon-piggy-bank:before{content:"\e225"}.glyphicon-scissors:before{content:"\e226"}.glyphicon-bitcoin:before{content:"\e227"}.glyphicon-btc:before{content:"\e227"}.glyphicon-xbt:before{content:"\e227"}.glyphicon-yen:before{content:"\00a5"}.glyphicon-jpy:before{content:"\00a5"}.glyphicon-ruble:before{content:"\20bd"}.glyphicon-rub:before{content:"\20bd"}.glyphicon-scale:before{content:"\e230"}.glyphicon-ice-lolly:before{content:"\e231"}.glyphicon-ice-lolly-tasted:before{content:"\e232"}.glyphicon-education:before{content:"\e233"}.glyphicon-option-horizontal:before{content:"\e234"}.glyphicon-option-vertical:before{content:"\e235"}.glyphicon-menu-hamburger:before{content:"\e236"}.glyphicon-modal-window:before{content:"\e237"}.glyphicon-oil:before{content:"\e238"}.glyphicon-grain:before{content:"\e239"}.glyphicon-sunglasses:before{content:"\e240"}.glyphicon-text-size:before{content:"\e241"}.glyphicon-text-color:before{content:"\e242"}.glyphicon-text-background:before{content:"\e243"}.glyphicon-object-align-top:before{content:"\e244"}.glyphicon-object-align-bottom:before{content:"\e245"}.glyphicon-object-align-horizontal:before{content:"\e246"}.glyphicon-object-align-left:before{content:"\e247"}.glyphicon-object-align-vertical:before{content:"\e248"}.glyphicon-object-align-right:before{content:"\e249"}.glyphicon-triangle-right:before{content:"\e250"}.glyphicon-triangle-left:before{content:"\e251"}.glyphicon-triangle-bottom:before{content:"\e252"}.glyphicon-triangle-top:before{content:"\e253"}.glyphicon-console:before{content:"\e254"}.glyphicon-superscript:before{content:"\e255"}.glyphicon-subscript:before{content:"\e256"}.glyphicon-menu-left:before{content:"\e257"}.glyphicon-menu-right:before{content:"\e258"}.glyphicon-menu-down:before{content:"\e259"}.glyphicon-menu-up:before{content:"\e260"}*{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}:after,:before{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}html{font-size:0.625em;-webkit-tap-highlight-color:rgba(0,0,0,0)}body{font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:0.875em;line-height:1.42857143;color:#333;background-color:#fff}button,input,select,textarea{font-family:inherit;font-size:inherit;line-height:inherit}a{color:#337ab7;text-decoration:none}a:focus,a:hover{color:#23527c;text-decoration:underline}a:focus{outline:thin dotted;outline:0.3125em auto -webkit-focus-ring-color;outline-offset:-0.125em}figure{margin:0}img{vertical-align:middle}.carousel-inner>.item>a>img,.carousel-inner>.item>img,.img-responsive,.thumbnail a>img,.thumbnail>img{display:block;max-width:100%;height:auto}.img-rounded{border-radius:0.375em}.img-thumbnail{display:inline-block;max-width:100%;height:auto;padding:0.25em;line-height:1.42857143;background-color:#fff;border:0.0625em solid #ddd;border-radius:0.25em;-webkit-transition:all .2s ease-in-out;-o-transition:all .2s ease-in-out;transition:all .2s ease-in-out}.img-circle{border-radius:50%}hr{margin-top:1.25em;margin-bottom:1.25em;border:0;border-top:0.0625em solid #eee}.sr-only{position:absolute;width:0.0625em;height:0.0625em;padding:0;margin:-0.0625em;overflow:hidden;clip:rect(0,0,0,0);border:0}.sr-only-focusable:active,.sr-only-focusable:focus{position:static;width:auto;height:auto;margin:0;overflow:visible;clip:auto}[role=button]{cursor:pointer}.h1,.h2,.h3,.h4,.h5,.h6,h1,h2,h3,h4,h5,h6{font-family:inherit;font-weight:500;line-height:1.1;color:inherit}.h1 .small,.h1 small,.h2 .small,.h2 small,.h3 .small,.h3 small,.h4 .small,.h4 small,.h5 .small,.h5 small,.h6 .small,.h6 small,h1 .small,h1 small,h2 .small,h2 small,h3 .small,h3 small,h4 .small,h4 small,h5 .small,h5 small,h6 .small,h6 small{font-weight:400;line-height:1;color:#777}.h1,.h2,.h3,h1,h2,h3{margin-top:1.25em;margin-bottom:0.625em}.h1 .small,.h1 small,.h2 .small,.h2 small,.h3 .small,.h3 small,h1 .small,h1 small,h2 .small,h2 small,h3 .small,h3 small{font-size:65%}.h4,.h5,.h6,h4,h5,h6{margin-top:0.625em;margin-bottom:0.625em}.h4 .small,.h4 small,.h5 .small,.h5 small,.h6 .small,.h6 small,h4 .small,h4 small,h5 .small,h5 small,h6 .small,h6 small{font-size:75%}.h1,h1{font-size:2.250em}.h2,h2{font-size:1.875em}.h3,h3{font-size:1.500em}.h4,h4{font-size:1.125em}.h5,h5{font-size:0.875em}.h6,h6{font-size:0.750em}p{margin:0 0 0.625em}.lead{margin-bottom:1.25em;font-size:1em;font-weight:300;line-height:1.4}@media (min-width:768px){.lead{font-size:1.313em}}.small,small{font-size:85%}.mark,mark{padding:.2em;background-color:#fcf8e3}.text-left{text-align:left}.text-right{text-align:right}.text-center{text-align:center}.text-justify{text-align:justify}.text-nowrap{white-space:nowrap}.text-lowercase{text-transform:lowercase}.text-uppercase{text-transform:uppercase}.text-capitalize{text-transform:capitalize}.text-muted{color:#777}.text-primary{color:#337ab7}a.text-primary:focus,a.text-primary:hover{color:#286090}.text-success{color:#3c763d}a.text-success:focus,a.text-success:hover{color:#2b542c}.text-info{color:#31708f}a.text-info:focus,a.text-info:hover{color:#245269}.text-warning{color:#8a6d3b}a.text-warning:focus,a.text-warning:hover{color:#66512c}.text-danger{color:#a94442}a.text-danger:focus,a.text-danger:hover{color:#843534}.bg-primary{color:#fff;background-color:#337ab7}a.bg-primary:focus,a.bg-primary:hover{background-color:#286090}.bg-success{background-color:#dff0d8}a.bg-success:focus,a.bg-success:hover{background-color:#c1e2b3}.bg-info{background-color:#d9edf7}a.bg-info:focus,a.bg-info:hover{background-color:#afd9ee}.bg-warning{background-color:#fcf8e3}a.bg-warning:focus,a.bg-warning:hover{background-color:#f7ecb5}.bg-danger{background-color:#f2dede}a.bg-danger:focus,a.bg-danger:hover{background-color:#e4b9b9}.page-header{padding-bottom:0.5625em;margin:2.5em 0 1.25em;border-bottom:0.0625em solid #eee}ol,ul{margin-top:0;margin-bottom:0.625em}ol ol,ol ul,ul ol,ul ul{margin-bottom:0}.list-unstyled{padding-left:0;list-style:none}.list-inline{padding-left:0;margin-left:-0.3125em;list-style:none}.list-inline>li{display:inline-block;padding-right:0.3125em;padding-left:0.3125em}dl{margin-top:0;margin-bottom:1.25em}dd,dt{line-height:1.42857143}dt{font-weight:700}dd{margin-left:0}@media (min-width:768px){.dl-horizontal dt{float:left;width:10em;overflow:hidden;clear:left;text-align:right;text-overflow:ellipsis;white-space:nowrap}.dl-horizontal dd{margin-left:11.25em}}abbr[data-original-title],abbr[title]{cursor:help;border-bottom:0.0625em dotted #777}.initialism{font-size:90%;text-transform:uppercase}blockquote{padding:0.625em 1.25em;margin:0 0 1.25em;font-size:1.094em;border-left:0.3125em solid #eee}blockquote ol:last-child,blockquote p:last-child,blockquote ul:last-child{margin-bottom:0}blockquote .small,blockquote footer,blockquote small{display:block;font-size:80%;line-height:1.42857143;color:#777}blockquote .small:before,blockquote footer:before,blockquote small:before{content:'\2014 \00A0'}.blockquote-reverse,blockquote.pull-right{padding-right:0.9375em;padding-left:0;text-align:right;border-right:0.3125em solid #eee;border-left:0}.blockquote-reverse .small:before,.blockquote-reverse footer:before,.blockquote-reverse small:before,blockquote.pull-right .small:before,blockquote.pull-right footer:before,blockquote.pull-right small:before{content:''}.blockquote-reverse .small:after,.blockquote-reverse footer:after,.blockquote-reverse small:after,blockquote.pull-right .small:after,blockquote.pull-right footer:after,blockquote.pull-right small:after{content:'\00A0 \2014'}address{margin-bottom:1.25em;font-style:normal;line-height:1.42857143}code,kbd,pre,samp{font-family:Menlo,Monaco,Consolas,"Courier New",monospace}code{padding:0.125em 0.25em;font-size:90%;color:#c7254e;background-color:#f9f2f4;border-radius:0.25em}kbd{padding:0.125em 0.25em;font-size:90%;color:#fff;background-color:#333;border-radius:0.1875em;-webkit-box-shadow:inset 0 -0.0625em 0 rgba(0,0,0,.25);box-shadow:inset 0 -0.0625em 0 rgba(0,0,0,.25)}kbd kbd{padding:0;font-size:100%;font-weight:700;-webkit-box-shadow:none;box-shadow:none}pre{display:block;padding:9.0.3125em;margin:0 0 0.625em;font-size:0.813em;line-height:1.42857143;color:#333;word-break:break-all;word-wrap:break-word;background-color:#f5f5f5;border:0.0625em solid #ccc;border-radius:0.25em}pre code{padding:0;font-size:inherit;color:inherit;white-space:pre-wrap;background-color:transparent;border-radius:0}.pre-scrollable{max-height:32.5em;overflow-y:scroll}.container{padding-right:0.9375em;padding-left:0.9375em;margin-right:auto;margin-left:auto}@media (min-width:768px){.container{width:46.875em}}@media (min-width:990.125em){.container{width:60.625em}}@media (min-width:1200px){.container{width:1170px}}.container-fluid{padding-right:0.9375em;padding-left:0.9375em;margin-right:auto;margin-left:auto}.row{margin-right:-0.9375em;margin-left:-0.9375em}.col-lg-1,.col-lg-10,.col-lg-11,.col-lg-12,.col-lg-2,.col-lg-3,.col-lg-4,.col-lg-5,.col-lg-6,.col-lg-7,.col-lg-8,.col-lg-9,.col-md-1,.col-md-10,.col-md-11,.col-md-12,.col-md-2,.col-md-3,.col-md-4,.col-md-5,.col-md-6,.col-md-7,.col-md-8,.col-md-9,.col-sm-1,.col-sm-10,.col-sm-11,.col-sm-12,.col-sm-2,.col-sm-3,.col-sm-4,.col-sm-5,.col-sm-6,.col-sm-7,.col-sm-8,.col-sm-9,.col-xs-1,.col-xs-10,.col-xs-11,.col-xs-12,.col-xs-2,.col-xs-3,.col-xs-4,.col-xs-5,.col-xs-6,.col-xs-7,.col-xs-8,.col-xs-9{position:relative;min-height:0.0625em;padding-right:0.9375em;padding-left:0.9375em}.col-xs-1,.col-xs-10,.col-xs-11,.col-xs-12,.col-xs-2,.col-xs-3,.col-xs-4,.col-xs-5,.col-xs-6,.col-xs-7,.col-xs-8,.col-xs-9{float:left}.col-xs-12{width:100%}.col-xs-11{width:91.66666667%}.col-xs-10{width:83.33333333%}.col-xs-9{width:75%}.col-xs-8{width:66.66666667%}.col-xs-7{width:58.33333333%}.col-xs-6{width:50%}.col-xs-5{width:41.66666667%}.col-xs-4{width:33.33333333%}.col-xs-3{width:25%}.col-xs-2{width:16.66666667%}.col-xs-1{width:8.33333333%}.col-xs-pull-12{right:100%}.col-xs-pull-11{right:91.66666667%}.col-xs-pull-10{right:83.33333333%}.col-xs-pull-9{right:75%}.col-xs-pull-8{right:66.66666667%}.col-xs-pull-7{right:58.33333333%}.col-xs-pull-6{right:50%}.col-xs-pull-5{right:41.66666667%}.col-xs-pull-4{right:33.33333333%}.col-xs-pull-3{right:25%}.col-xs-pull-2{right:16.66666667%}.col-xs-pull-1{right:8.33333333%}.col-xs-pull-0{right:auto}.col-xs-push-12{left:100%}.col-xs-push-11{left:91.66666667%}.col-xs-push-10{left:83.33333333%}.col-xs-push-9{left:75%}.col-xs-push-8{left:66.66666667%}.col-xs-push-7{left:58.33333333%}.col-xs-push-6{left:50%}.col-xs-push-5{left:41.66666667%}.col-xs-push-4{left:33.33333333%}.col-xs-push-3{left:25%}.col-xs-push-2{left:16.66666667%}.col-xs-push-1{left:8.33333333%}.col-xs-push-0{left:auto}.col-xs-offset-12{margin-left:100%}.col-xs-offset-11{margin-left:91.66666667%}.col-xs-offset-10{margin-left:83.33333333%}.col-xs-offset-9{margin-left:75%}.col-xs-offset-8{margin-left:66.66666667%}.col-xs-offset-7{margin-left:58.33333333%}.col-xs-offset-6{margin-left:50%}.col-xs-offset-5{margin-left:41.66666667%}.col-xs-offset-4{margin-left:33.33333333%}.col-xs-offset-3{margin-left:25%}.col-xs-offset-2{margin-left:16.66666667%}.col-xs-offset-1{margin-left:8.33333333%}.col-xs-offset-0{margin-left:0}@media (min-width:768px){.col-sm-1,.col-sm-10,.col-sm-11,.col-sm-12,.col-sm-2,.col-sm-3,.col-sm-4,.col-sm-5,.col-sm-6,.col-sm-7,.col-sm-8,.col-sm-9{float:left}.col-sm-12{width:100%}.col-sm-11{width:91.66666667%}.col-sm-10{width:83.33333333%}.col-sm-9{width:75%}.col-sm-8{width:66.66666667%}.col-sm-7{width:58.33333333%}.col-sm-6{width:50%}.col-sm-5{width:41.66666667%}.col-sm-4{width:33.33333333%}.col-sm-3{width:25%}.col-sm-2{width:16.66666667%}.col-sm-1{width:8.33333333%}.col-sm-pull-12{right:100%}.col-sm-pull-11{right:91.66666667%}.col-sm-pull-10{right:83.33333333%}.col-sm-pull-9{right:75%}.col-sm-pull-8{right:66.66666667%}.col-sm-pull-7{right:58.33333333%}.col-sm-pull-6{right:50%}.col-sm-pull-5{right:41.66666667%}.col-sm-pull-4{right:33.33333333%}.col-sm-pull-3{right:25%}.col-sm-pull-2{right:16.66666667%}.col-sm-pull-1{right:8.33333333%}.col-sm-pull-0{right:auto}.col-sm-push-12{left:100%}.col-sm-push-11{left:91.66666667%}.col-sm-push-10{left:83.33333333%}.col-sm-push-9{left:75%}.col-sm-push-8{left:66.66666667%}.col-sm-push-7{left:58.33333333%}.col-sm-push-6{left:50%}.col-sm-push-5{left:41.66666667%}.col-sm-push-4{left:33.33333333%}.col-sm-push-3{left:25%}.col-sm-push-2{left:16.66666667%}.col-sm-push-1{left:8.33333333%}.col-sm-push-0{left:auto}.col-sm-offset-12{margin-left:100%}.col-sm-offset-11{margin-left:91.66666667%}.col-sm-offset-10{margin-left:83.33333333%}.col-sm-offset-9{margin-left:75%}.col-sm-offset-8{margin-left:66.66666667%}.col-sm-offset-7{margin-left:58.33333333%}.col-sm-offset-6{margin-left:50%}.col-sm-offset-5{margin-left:41.66666667%}.col-sm-offset-4{margin-left:33.33333333%}.col-sm-offset-3{margin-left:25%}.col-sm-offset-2{margin-left:16.66666667%}.col-sm-offset-1{margin-left:8.33333333%}.col-sm-offset-0{margin-left:0}}@media (min-width:990.125em){.col-md-1,.col-md-10,.col-md-11,.col-md-12,.col-md-2,.col-md-3,.col-md-4,.col-md-5,.col-md-6,.col-md-7,.col-md-8,.col-md-9{float:left}.col-md-12{width:100%}.col-md-11{width:91.66666667%}.col-md-10{width:83.33333333%}.col-md-9{width:75%}.col-md-8{width:66.66666667%}.col-md-7{width:58.33333333%}.col-md-6{width:50%}.col-md-5{width:41.66666667%}.col-md-4{width:33.33333333%}.col-md-3{width:25%}.col-md-2{width:16.66666667%}.col-md-1{width:8.33333333%}.col-md-pull-12{right:100%}.col-md-pull-11{right:91.66666667%}.col-md-pull-10{right:83.33333333%}.col-md-pull-9{right:75%}.col-md-pull-8{right:66.66666667%}.col-md-pull-7{right:58.33333333%}.col-md-pull-6{right:50%}.col-md-pull-5{right:41.66666667%}.col-md-pull-4{right:33.33333333%}.col-md-pull-3{right:25%}.col-md-pull-2{right:16.66666667%}.col-md-pull-1{right:8.33333333%}.col-md-pull-0{right:auto}.col-md-push-12{left:100%}.col-md-push-11{left:91.66666667%}.col-md-push-10{left:83.33333333%}.col-md-push-9{left:75%}.col-md-push-8{left:66.66666667%}.col-md-push-7{left:58.33333333%}.col-md-push-6{left:50%}.col-md-push-5{left:41.66666667%}.col-md-push-4{left:33.33333333%}.col-md-push-3{left:25%}.col-md-push-2{left:16.66666667%}.col-md-push-1{left:8.33333333%}.col-md-push-0{left:auto}.col-md-offset-12{margin-left:100%}.col-md-offset-11{margin-left:91.66666667%}.col-md-offset-10{margin-left:83.33333333%}.col-md-offset-9{margin-left:75%}.col-md-offset-8{margin-left:66.66666667%}.col-md-offset-7{margin-left:58.33333333%}.col-md-offset-6{margin-left:50%}.col-md-offset-5{margin-left:41.66666667%}.col-md-offset-4{margin-left:33.33333333%}.col-md-offset-3{margin-left:25%}.col-md-offset-2{margin-left:16.66666667%}.col-md-offset-1{margin-left:8.33333333%}.col-md-offset-0{margin-left:0}}@media (min-width:1200px){.col-lg-1,.col-lg-10,.col-lg-11,.col-lg-12,.col-lg-2,.col-lg-3,.col-lg-4,.col-lg-5,.col-lg-6,.col-lg-7,.col-lg-8,.col-lg-9{float:left}.col-lg-12{width:100%}.col-lg-11{width:91.66666667%}.col-lg-10{width:83.33333333%}.col-lg-9{width:75%}.col-lg-8{width:66.66666667%}.col-lg-7{width:58.33333333%}.col-lg-6{width:50%}.col-lg-5{width:41.66666667%}.col-lg-4{width:33.33333333%}.col-lg-3{width:25%}.col-lg-2{width:16.66666667%}.col-lg-1{width:8.33333333%}.col-lg-pull-12{right:100%}.col-lg-pull-11{right:91.66666667%}.col-lg-pull-10{right:83.33333333%}.col-lg-pull-9{right:75%}.col-lg-pull-8{right:66.66666667%}.col-lg-pull-7{right:58.33333333%}.col-lg-pull-6{right:50%}.col-lg-pull-5{right:41.66666667%}.col-lg-pull-4{right:33.33333333%}.col-lg-pull-3{right:25%}.col-lg-pull-2{right:16.66666667%}.col-lg-pull-1{right:8.33333333%}.col-lg-pull-0{right:auto}.col-lg-push-12{left:100%}.col-lg-push-11{left:91.66666667%}.col-lg-push-10{left:83.33333333%}.col-lg-push-9{left:75%}.col-lg-push-8{left:66.66666667%}.col-lg-push-7{left:58.33333333%}.col-lg-push-6{left:50%}.col-lg-push-5{left:41.66666667%}.col-lg-push-4{left:33.33333333%}.col-lg-push-3{left:25%}.col-lg-push-2{left:16.66666667%}.col-lg-push-1{left:8.33333333%}.col-lg-push-0{left:auto}.col-lg-offset-12{margin-left:100%}.col-lg-offset-11{margin-left:91.66666667%}.col-lg-offset-10{margin-left:83.33333333%}.col-lg-offset-9{margin-left:75%}.col-lg-offset-8{margin-left:66.66666667%}.col-lg-offset-7{margin-left:58.33333333%}.col-lg-offset-6{margin-left:50%}.col-lg-offset-5{margin-left:41.66666667%}.col-lg-offset-4{margin-left:33.33333333%}.col-lg-offset-3{margin-left:25%}.col-lg-offset-2{margin-left:16.66666667%}.col-lg-offset-1{margin-left:8.33333333%}.col-lg-offset-0{margin-left:0}}table{background-color:transparent}caption{padding-top:0.5em;padding-bottom:0.5em;color:#777;text-align:left}th{text-align:left}.table{width:100%;max-width:100%;margin-bottom:1.25em}.table>tbody>tr>td,.table>tbody>tr>th,.table>tfoot>tr>td,.table>tfoot>tr>th,.table>thead>tr>td,.table>thead>tr>th{padding:0.5em;line-height:1.42857143;vertical-align:top;border-top:0.0625em solid #ddd}.table>thead>tr>th{vertical-align:bottom;border-bottom:0.125em solid #ddd}.table>caption+thead>tr:first-child>td,.table>caption+thead>tr:first-child>th,.table>colgroup+thead>tr:first-child>td,.table>colgroup+thead>tr:first-child>th,.table>thead:first-child>tr:first-child>td,.table>thead:first-child>tr:first-child>th{border-top:0}.table>tbody+tbody{border-top:0.125em solid #ddd}.table .table{background-color:#fff}.table-condensed>tbody>tr>td,.table-condensed>tbody>tr>th,.table-condensed>tfoot>tr>td,.table-condensed>tfoot>tr>th,.table-condensed>thead>tr>td,.table-condensed>thead>tr>th{padding:0.3125em}.table-bordered{border:0.0625em solid #ddd}.table-bordered>tbody>tr>td,.table-bordered>tbody>tr>th,.table-bordered>tfoot>tr>td,.table-bordered>tfoot>tr>th,.table-bordered>thead>tr>td,.table-bordered>thead>tr>th{border:0.0625em solid #ddd}.table-bordered>thead>tr>td,.table-bordered>thead>tr>th{border-bottom-width:0.125em}.table-striped>tbody>tr:nth-of-type(odd){background-color:#f9f9f9}.table-hover>tbody>tr:hover{background-color:#f5f5f5}table col[class*=col-]{position:static;display:table-column;float:none}table td[class*=col-],table th[class*=col-]{position:static;display:table-cell;float:none}.table>tbody>tr.active>td,.table>tbody>tr.active>th,.table>tbody>tr>td.active,.table>tbody>tr>th.active,.table>tfoot>tr.active>td,.table>tfoot>tr.active>th,.table>tfoot>tr>td.active,.table>tfoot>tr>th.active,.table>thead>tr.active>td,.table>thead>tr.active>th,.table>thead>tr>td.active,.table>thead>tr>th.active{background-color:#f5f5f5}.table-hover>tbody>tr.active:hover>td,.table-hover>tbody>tr.active:hover>th,.table-hover>tbody>tr:hover>.active,.table-hover>tbody>tr>td.active:hover,.table-hover>tbody>tr>th.active:hover{background-color:#e8e8e8}.table>tbody>tr.success>td,.table>tbody>tr.success>th,.table>tbody>tr>td.success,.table>tbody>tr>th.success,.table>tfoot>tr.success>td,.table>tfoot>tr.success>th,.table>tfoot>tr>td.success,.table>tfoot>tr>th.success,.table>thead>tr.success>td,.table>thead>tr.success>th,.table>thead>tr>td.success,.table>thead>tr>th.success{background-color:#dff0d8}.table-hover>tbody>tr.success:hover>td,.table-hover>tbody>tr.success:hover>th,.table-hover>tbody>tr:hover>.success,.table-hover>tbody>tr>td.success:hover,.table-hover>tbody>tr>th.success:hover{background-color:#d0e9c6}.table>tbody>tr.info>td,.table>tbody>tr.info>th,.table>tbody>tr>td.info,.table>tbody>tr>th.info,.table>tfoot>tr.info>td,.table>tfoot>tr.info>th,.table>tfoot>tr>td.info,.table>tfoot>tr>th.info,.table>thead>tr.info>td,.table>thead>tr.info>th,.table>thead>tr>td.info,.table>thead>tr>th.info{background-color:#d9edf7}.table-hover>tbody>tr.info:hover>td,.table-hover>tbody>tr.info:hover>th,.table-hover>tbody>tr:hover>.info,.table-hover>tbody>tr>td.info:hover,.table-hover>tbody>tr>th.info:hover{background-color:#c4e3f3}.table>tbody>tr.warning>td,.table>tbody>tr.warning>th,.table>tbody>tr>td.warning,.table>tbody>tr>th.warning,.table>tfoot>tr.warning>td,.table>tfoot>tr.warning>th,.table>tfoot>tr>td.warning,.table>tfoot>tr>th.warning,.table>thead>tr.warning>td,.table>thead>tr.warning>th,.table>thead>tr>td.warning,.table>thead>tr>th.warning{background-color:#fcf8e3}.table-hover>tbody>tr.warning:hover>td,.table-hover>tbody>tr.warning:hover>th,.table-hover>tbody>tr:hover>.warning,.table-hover>tbody>tr>td.warning:hover,.table-hover>tbody>tr>th.warning:hover{background-color:#faf2cc}.table>tbody>tr.danger>td,.table>tbody>tr.danger>th,.table>tbody>tr>td.danger,.table>tbody>tr>th.danger,.table>tfoot>tr.danger>td,.table>tfoot>tr.danger>th,.table>tfoot>tr>td.danger,.table>tfoot>tr>th.danger,.table>thead>tr.danger>td,.table>thead>tr.danger>th,.table>thead>tr>td.danger,.table>thead>tr>th.danger{background-color:#f2dede}.table-hover>tbody>tr.danger:hover>td,.table-hover>tbody>tr.danger:hover>th,.table-hover>tbody>tr:hover>.danger,.table-hover>tbody>tr>td.danger:hover,.table-hover>tbody>tr>th.danger:hover{background-color:#ebcccc}.table-responsive{min-height:.01%;overflow-x:auto}@media screen and (max-width:767px){.table-responsive{width:100%;margin-bottom:0.9375em;overflow-y:hidden;-ms-overflow-style:-ms-autohiding-scrollbar;border:0.0625em solid #ddd}.table-responsive>.table{margin-bottom:0}.table-responsive>.table>tbody>tr>td,.table-responsive>.table>tbody>tr>th,.table-responsive>.table>tfoot>tr>td,.table-responsive>.table>tfoot>tr>th,.table-responsive>.table>thead>tr>td,.table-responsive>.table>thead>tr>th{white-space:nowrap}.table-responsive>.table-bordered{border:0}.table-responsive>.table-bordered>tbody>tr>td:first-child,.table-responsive>.table-bordered>tbody>tr>th:first-child,.table-responsive>.table-bordered>tfoot>tr>td:first-child,.table-responsive>.table-bordered>tfoot>tr>th:first-child,.table-responsive>.table-bordered>thead>tr>td:first-child,.table-responsive>.table-bordered>thead>tr>th:first-child{border-left:0}.table-responsive>.table-bordered>tbody>tr>td:last-child,.table-responsive>.table-bordered>tbody>tr>th:last-child,.table-responsive>.table-bordered>tfoot>tr>td:last-child,.table-responsive>.table-bordered>tfoot>tr>th:last-child,.table-responsive>.table-bordered>thead>tr>td:last-child,.table-responsive>.table-bordered>thead>tr>th:last-child{border-right:0}.table-responsive>.table-bordered>tbody>tr:last-child>td,.table-responsive>.table-bordered>tbody>tr:last-child>th,.table-responsive>.table-bordered>tfoot>tr:last-child>td,.table-responsive>.table-bordered>tfoot>tr:last-child>th{border-bottom:0}}fieldset{min-width:0;padding:0;margin:0;border:0}legend{display:block;width:100%;padding:0;margin-bottom:1.25em;font-size:1.313em;line-height:inherit;color:#333;border:0;border-bottom:0.0625em solid #e5e5e5}label{display:inline-block;max-width:100%;margin-bottom:0.3125em;font-weight:700}input[type=search]{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}input[type=checkbox],input[type=radio]{margin:0.25em 0 0;margin-top:0.0625em\9;line-height:normal}input[type=file]{display:block}input[type=range]{display:block;width:100%}select[multiple],select[size]{height:auto}input[type=file]:focus,input[type=checkbox]:focus,input[type=radio]:focus{outline:thin dotted;outline:0.3125em auto -webkit-focus-ring-color;outline-offset:-0.125em}output{display:block;padding-top:0.4375em;font-size:0.875em;line-height:1.42857143;color:#555}.form-control{display:block;width:100%;height:30.25em;padding:0.375em 1.125em;font-size:0.875em;line-height:1.42857143;color:#555;background-color:#fff;background-image:none;border:0.0625em solid #ccc;border-radius:0.25em;-webkit-box-shadow:inset 0 0.0625em 0.0625em rgba(0,0,0,.075);box-shadow:inset 0 0.0625em 0.0625em rgba(0,0,0,.075);-webkit-transition:border-color ease-in-out .15s,-webkit-box-shadow ease-in-out .15s;-o-transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s;transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s}.form-control:focus{border-color:#66afe9;outline:0;-webkit-box-shadow:inset 0 0.0625em 0.0625em rgba(0,0,0,.075),0 0 0.5em rgba(102,175,233,.6);box-shadow:inset 0 0.0625em 0.0625em rgba(0,0,0,.075),0 0 0.5em rgba(102,175,233,.6)}.form-control::-moz-placeholder{color:#999;opacity:1}.form-control:-ms-input-placeholder{color:#999}.form-control::-webkit-input-placeholder{color:#999}.form-control::-ms-expand{background-color:transparent;border:0}.form-control[disabled],.form-control[readonly],fieldset[disabled] .form-control{background-color:#eee;opacity:1}.form-control[disabled],fieldset[disabled] .form-control{cursor:not-allowed}textarea.form-control{height:auto}input[type=search]{-webkit-appearance:none}@media screen and (-webkit-min-device-pixel-ratio:0){input[type=date].form-control,input[type=time].form-control,input[type=datetime-local].form-control,input[type=month].form-control{line-height:30.25em}.input-group-sm input[type=date],.input-group-sm input[type=time],.input-group-sm input[type=datetime-local],.input-group-sm input[type=month],input[type=date].input-sm,input[type=time].input-sm,input[type=datetime-local].input-sm,input[type=month].input-sm{line-height:1.875em}.input-group-lg input[type=date],.input-group-lg input[type=time],.input-group-lg input[type=datetime-local],.input-group-lg input[type=month],input[type=date].input-lg,input[type=time].input-lg,input[type=datetime-local].input-lg,input[type=month].input-lg{line-height:40.375em}}.form-group{margin-bottom:0.9375em}.checkbox,.radio{position:relative;display:block;margin-top:0.625em;margin-bottom:0.625em}.checkbox label,.radio label{min-height:1.25em;padding-left:1.25em;margin-bottom:0;font-weight:400;cursor:pointer}.checkbox input[type=checkbox],.checkbox-inline input[type=checkbox],.radio input[type=radio],.radio-inline input[type=radio]{position:absolute;margin-top:0.25em\9;margin-left:-1.25em}.checkbox+.checkbox,.radio+.radio{margin-top:-0.3125em}.checkbox-inline,.radio-inline{position:relative;display:inline-block;padding-left:1.25em;margin-bottom:0;font-weight:400;vertical-align:middle;cursor:pointer}.checkbox-inline+.checkbox-inline,.radio-inline+.radio-inline{margin-top:0;margin-left:0.625em}fieldset[disabled] input[type=checkbox],fieldset[disabled] input[type=radio],input[type=checkbox].disabled,input[type=checkbox][disabled],input[type=radio].disabled,input[type=radio][disabled]{cursor:not-allowed}.checkbox-inline.disabled,.radio-inline.disabled,fieldset[disabled] .checkbox-inline,fieldset[disabled] .radio-inline{cursor:not-allowed}.checkbox.disabled label,.radio.disabled label,fieldset[disabled] .checkbox label,fieldset[disabled] .radio label{cursor:not-allowed}.form-control-static{min-height:30.25em;padding-top:0.4375em;padding-bottom:0.4375em;margin-bottom:0}.form-control-static.input-lg,.form-control-static.input-sm{padding-right:0;padding-left:0}.input-sm{height:1.875em;padding:0.3125em 0.625em;font-size:0.750em;line-height:1.5;border-radius:0.1875em}select.input-sm{height:1.875em;line-height:1.875em}select[multiple].input-sm,textarea.input-sm{height:auto}.form-group-sm .form-control{height:1.875em;padding:0.3125em 0.625em;font-size:0.750em;line-height:1.5;border-radius:0.1875em}.form-group-sm select.form-control{height:1.875em;line-height:1.875em}.form-group-sm select[multiple].form-control,.form-group-sm textarea.form-control{height:auto}.form-group-sm .form-control-static{height:1.875em;min-height:30.125em;padding:0.375em 0.625em;font-size:0.750em;line-height:1.5}.input-lg{height:40.375em;padding:0.625em 10.375em;font-size:1.125em;line-height:1.3333333;border-radius:0.375em}select.input-lg{height:40.375em;line-height:40.375em}select[multiple].input-lg,textarea.input-lg{height:auto}.form-group-lg .form-control{height:40.375em;padding:0.625em 10.375em;font-size:1.125em;line-height:1.3333333;border-radius:0.375em}.form-group-lg select.form-control{height:40.375em;line-height:40.375em}.form-group-lg select[multiple].form-control,.form-group-lg textarea.form-control{height:auto}.form-group-lg .form-control-static{height:40.375em;min-height:2.375em;padding:10.0625em 10.375em;font-size:1.125em;line-height:1.3333333}.has-feedback{position:relative}.has-feedback .form-control{padding-right:42.0.3125em}.form-control-feedback{position:absolute;top:0;right:0;z-index:2;display:block;width:30.25em;height:30.25em;line-height:30.25em;text-align:center;pointer-events:none}.form-group-lg .form-control+.form-control-feedback,.input-group-lg+.form-control-feedback,.input-lg+.form-control-feedback{width:40.375em;height:40.375em;line-height:40.375em}.form-group-sm .form-control+.form-control-feedback,.input-group-sm+.form-control-feedback,.input-sm+.form-control-feedback{width:1.875em;height:1.875em;line-height:1.875em}.has-success .checkbox,.has-success .checkbox-inline,.has-success .control-label,.has-success .help-block,.has-success .radio,.has-success .radio-inline,.has-success.checkbox label,.has-success.checkbox-inline label,.has-success.radio label,.has-success.radio-inline label{color:#3c763d}.has-success .form-control{border-color:#3c763d;-webkit-box-shadow:inset 0 0.0625em 0.0625em rgba(0,0,0,.075);box-shadow:inset 0 0.0625em 0.0625em rgba(0,0,0,.075)}.has-success .form-control:focus{border-color:#2b542c;-webkit-box-shadow:inset 0 0.0625em 0.0625em rgba(0,0,0,.075),0 0 0.375em #67b168;box-shadow:inset 0 0.0625em 0.0625em rgba(0,0,0,.075),0 0 0.375em #67b168}.has-success .input-group-addon{color:#3c763d;background-color:#dff0d8;border-color:#3c763d}.has-success .form-control-feedback{color:#3c763d}.has-warning .checkbox,.has-warning .checkbox-inline,.has-warning .control-label,.has-warning .help-block,.has-warning .radio,.has-warning .radio-inline,.has-warning.checkbox label,.has-warning.checkbox-inline label,.has-warning.radio label,.has-warning.radio-inline label{color:#8a6d3b}.has-warning .form-control{border-color:#8a6d3b;-webkit-box-shadow:inset 0 0.0625em 0.0625em rgba(0,0,0,.075);box-shadow:inset 0 0.0625em 0.0625em rgba(0,0,0,.075)}.has-warning .form-control:focus{border-color:#66512c;-webkit-box-shadow:inset 0 0.0625em 0.0625em rgba(0,0,0,.075),0 0 0.375em #c0a16b;box-shadow:inset 0 0.0625em 0.0625em rgba(0,0,0,.075),0 0 0.375em #c0a16b}.has-warning .input-group-addon{color:#8a6d3b;background-color:#fcf8e3;border-color:#8a6d3b}.has-warning .form-control-feedback{color:#8a6d3b}.has-error .checkbox,.has-error .checkbox-inline,.has-error .control-label,.has-error .help-block,.has-error .radio,.has-error .radio-inline,.has-error.checkbox label,.has-error.checkbox-inline label,.has-error.radio label,.has-error.radio-inline label{color:#a94442}.has-error .form-control{border-color:#a94442;-webkit-box-shadow:inset 0 0.0625em 0.0625em rgba(0,0,0,.075);box-shadow:inset 0 0.0625em 0.0625em rgba(0,0,0,.075)}.has-error .form-control:focus{border-color:#843534;-webkit-box-shadow:inset 0 0.0625em 0.0625em rgba(0,0,0,.075),0 0 0.375em #ce8483;box-shadow:inset 0 0.0625em 0.0625em rgba(0,0,0,.075),0 0 0.375em #ce8483}.has-error .input-group-addon{color:#a94442;background-color:#f2dede;border-color:#a94442}.has-error .form-control-feedback{color:#a94442}.has-feedback label~.form-control-feedback{top:20.3125em}.has-feedback label.sr-only~.form-control-feedback{top:0}.help-block{display:block;margin-top:0.3125em;margin-bottom:0.625em;color:#737373}@media (min-width:768px){.form-inline .form-group{display:inline-block;margin-bottom:0;vertical-align:middle}.form-inline .form-control{display:inline-block;width:auto;vertical-align:middle}.form-inline .form-control-static{display:inline-block}.form-inline .input-group{display:inline-table;vertical-align:middle}.form-inline .input-group .form-control,.form-inline .input-group .input-group-addon,.form-inline .input-group .input-group-btn{width:auto}.form-inline .input-group>.form-control{width:100%}.form-inline .control-label{margin-bottom:0;vertical-align:middle}.form-inline .checkbox,.form-inline .radio{display:inline-block;margin-top:0;margin-bottom:0;vertical-align:middle}.form-inline .checkbox label,.form-inline .radio label{padding-left:0}.form-inline .checkbox input[type=checkbox],.form-inline .radio input[type=radio]{position:relative;margin-left:0}.form-inline .has-feedback .form-control-feedback{top:0}}.form-horizontal .checkbox,.form-horizontal .checkbox-inline,.form-horizontal .radio,.form-horizontal .radio-inline{padding-top:0.4375em;margin-top:0;margin-bottom:0}.form-horizontal .checkbox,.form-horizontal .radio{min-height:1.6875em}.form-horizontal .form-group{margin-right:-0.9375em;margin-left:-0.9375em}@media (min-width:768px){.form-horizontal .control-label{padding-top:0.4375em;margin-bottom:0;text-align:right}}.form-horizontal .has-feedback .form-control-feedback{right:0.9375em}@media (min-width:768px){.form-horizontal .form-group-lg .control-label{padding-top:10.0625em;font-size:1.125em}}@media (min-width:768px){.form-horizontal .form-group-sm .control-label{padding-top:0.375em;font-size:0.750em}}.btn{display:inline-block;padding:0.375em 1.125em;margin-bottom:0;font-size:0.875em;font-weight:400;line-height:1.42857143;text-align:center;white-space:nowrap;vertical-align:middle;-ms-touch-action:manipulation;touch-action:manipulation;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;background-image:none;border:0.0625em solid transparent;border-radius:0.25em}.btn.active.focus,.btn.active:focus,.btn.focus,.btn:active.focus,.btn:active:focus,.btn:focus{outline:thin dotted;outline:0.3125em auto -webkit-focus-ring-color;outline-offset:-0.125em}.btn.focus,.btn:focus,.btn:hover{color:#333;text-decoration:none}.btn.active,.btn:active{background-image:none;outline:0;-webkit-box-shadow:inset 0 0.1875em 0.3125em rgba(0,0,0,.125);box-shadow:inset 0 0.1875em 0.3125em rgba(0,0,0,.125)}.btn.disabled,.btn[disabled],fieldset[disabled] .btn{cursor:not-allowed;filter:alpha(opacity=65);-webkit-box-shadow:none;box-shadow:none;opacity:.65}a.btn.disabled,fieldset[disabled] a.btn{pointer-events:none}.btn-default{color:#333;background-color:#fff;border-color:#ccc}.btn-default.focus,.btn-default:focus{color:#333;background-color:#e6e6e6;border-color:#8c8c8c}.btn-default:hover{color:#333;background-color:#e6e6e6;border-color:#adadad}.btn-default.active,.btn-default:active,.open>.dropdown-toggle.btn-default{color:#333;background-color:#e6e6e6;border-color:#adadad}.btn-default.active.focus,.btn-default.active:focus,.btn-default.active:hover,.btn-default:active.focus,.btn-default:active:focus,.btn-default:active:hover,.open>.dropdown-toggle.btn-default.focus,.open>.dropdown-toggle.btn-default:focus,.open>.dropdown-toggle.btn-default:hover{color:#333;background-color:#d4d4d4;border-color:#8c8c8c}.btn-default.active,.btn-default:active,.open>.dropdown-toggle.btn-default{background-image:none}.btn-default.disabled.focus,.btn-default.disabled:focus,.btn-default.disabled:hover,.btn-default[disabled].focus,.btn-default[disabled]:focus,.btn-default[disabled]:hover,fieldset[disabled] .btn-default.focus,fieldset[disabled] .btn-default:focus,fieldset[disabled] .btn-default:hover{background-color:#fff;border-color:#ccc}.btn-default .badge{color:#fff;background-color:#333}.btn-primary{color:#fff;background-color:#337ab7;border-color:#2e6da4}.btn-primary.focus,.btn-primary:focus{color:#fff;background-color:#286090;border-color:#122b40}.btn-primary:hover{color:#fff;background-color:#286090;border-color:#204d74}.btn-primary.active,.btn-primary:active,.open>.dropdown-toggle.btn-primary{color:#fff;background-color:#286090;border-color:#204d74}.btn-primary.active.focus,.btn-primary.active:focus,.btn-primary.active:hover,.btn-primary:active.focus,.btn-primary:active:focus,.btn-primary:active:hover,.open>.dropdown-toggle.btn-primary.focus,.open>.dropdown-toggle.btn-primary:focus,.open>.dropdown-toggle.btn-primary:hover{color:#fff;background-color:#204d74;border-color:#122b40}.btn-primary.active,.btn-primary:active,.open>.dropdown-toggle.btn-primary{background-image:none}.btn-primary.disabled.focus,.btn-primary.disabled:focus,.btn-primary.disabled:hover,.btn-primary[disabled].focus,.btn-primary[disabled]:focus,.btn-primary[disabled]:hover,fieldset[disabled] .btn-primary.focus,fieldset[disabled] .btn-primary:focus,fieldset[disabled] .btn-primary:hover{background-color:#337ab7;border-color:#2e6da4}.btn-primary .badge{color:#337ab7;background-color:#fff}.btn-success{color:#fff;background-color:#5cb85c;border-color:#4cae4c}.btn-success.focus,.btn-success:focus{color:#fff;background-color:#449d44;border-color:#255625}.btn-success:hover{color:#fff;background-color:#449d44;border-color:#398439}.btn-success.active,.btn-success:active,.open>.dropdown-toggle.btn-success{color:#fff;background-color:#449d44;border-color:#398439}.btn-success.active.focus,.btn-success.active:focus,.btn-success.active:hover,.btn-success:active.focus,.btn-success:active:focus,.btn-success:active:hover,.open>.dropdown-toggle.btn-success.focus,.open>.dropdown-toggle.btn-success:focus,.open>.dropdown-toggle.btn-success:hover{color:#fff;background-color:#398439;border-color:#255625}.btn-success.active,.btn-success:active,.open>.dropdown-toggle.btn-success{background-image:none}.btn-success.disabled.focus,.btn-success.disabled:focus,.btn-success.disabled:hover,.btn-success[disabled].focus,.btn-success[disabled]:focus,.btn-success[disabled]:hover,fieldset[disabled] .btn-success.focus,fieldset[disabled] .btn-success:focus,fieldset[disabled] .btn-success:hover{background-color:#5cb85c;border-color:#4cae4c}.btn-success .badge{color:#5cb85c;background-color:#fff}.btn-info{color:#fff;background-color:#5bc0de;border-color:#46b8da}.btn-info.focus,.btn-info:focus{color:#fff;background-color:#31b0d5;border-color:#1b6d85}.btn-info:hover{color:#fff;background-color:#31b0d5;border-color:#269abc}.btn-info.active,.btn-info:active,.open>.dropdown-toggle.btn-info{color:#fff;background-color:#31b0d5;border-color:#269abc}.btn-info.active.focus,.btn-info.active:focus,.btn-info.active:hover,.btn-info:active.focus,.btn-info:active:focus,.btn-info:active:hover,.open>.dropdown-toggle.btn-info.focus,.open>.dropdown-toggle.btn-info:focus,.open>.dropdown-toggle.btn-info:hover{color:#fff;background-color:#269abc;border-color:#1b6d85}.btn-info.active,.btn-info:active,.open>.dropdown-toggle.btn-info{background-image:none}.btn-info.disabled.focus,.btn-info.disabled:focus,.btn-info.disabled:hover,.btn-info[disabled].focus,.btn-info[disabled]:focus,.btn-info[disabled]:hover,fieldset[disabled] .btn-info.focus,fieldset[disabled] .btn-info:focus,fieldset[disabled] .btn-info:hover{background-color:#5bc0de;border-color:#46b8da}.btn-info .badge{color:#5bc0de;background-color:#fff}.btn-warning{color:#fff;background-color:#f0ad4e;border-color:#eea236}.btn-warning.focus,.btn-warning:focus{color:#fff;background-color:#ec971f;border-color:#985f0d}.btn-warning:hover{color:#fff;background-color:#ec971f;border-color:#d58512}.btn-warning.active,.btn-warning:active,.open>.dropdown-toggle.btn-warning{color:#fff;background-color:#ec971f;border-color:#d58512}.btn-warning.active.focus,.btn-warning.active:focus,.btn-warning.active:hover,.btn-warning:active.focus,.btn-warning:active:focus,.btn-warning:active:hover,.open>.dropdown-toggle.btn-warning.focus,.open>.dropdown-toggle.btn-warning:focus,.open>.dropdown-toggle.btn-warning:hover{color:#fff;background-color:#d58512;border-color:#985f0d}.btn-warning.active,.btn-warning:active,.open>.dropdown-toggle.btn-warning{background-image:none}.btn-warning.disabled.focus,.btn-warning.disabled:focus,.btn-warning.disabled:hover,.btn-warning[disabled].focus,.btn-warning[disabled]:focus,.btn-warning[disabled]:hover,fieldset[disabled] .btn-warning.focus,fieldset[disabled] .btn-warning:focus,fieldset[disabled] .btn-warning:hover{background-color:#f0ad4e;border-color:#eea236}.btn-warning .badge{color:#f0ad4e;background-color:#fff}.btn-danger{color:#fff;background-color:#d9534f;border-color:#d43f3a}.btn-danger.focus,.btn-danger:focus{color:#fff;background-color:#c9302c;border-color:#761c19}.btn-danger:hover{color:#fff;background-color:#c9302c;border-color:#ac2925}.btn-danger.active,.btn-danger:active,.open>.dropdown-toggle.btn-danger{color:#fff;background-color:#c9302c;border-color:#ac2925}.btn-danger.active.focus,.btn-danger.active:focus,.btn-danger.active:hover,.btn-danger:active.focus,.btn-danger:active:focus,.btn-danger:active:hover,.open>.dropdown-toggle.btn-danger.focus,.open>.dropdown-toggle.btn-danger:focus,.open>.dropdown-toggle.btn-danger:hover{color:#fff;background-color:#ac2925;border-color:#761c19}.btn-danger.active,.btn-danger:active,.open>.dropdown-toggle.btn-danger{background-image:none}.btn-danger.disabled.focus,.btn-danger.disabled:focus,.btn-danger.disabled:hover,.btn-danger[disabled].focus,.btn-danger[disabled]:focus,.btn-danger[disabled]:hover,fieldset[disabled] .btn-danger.focus,fieldset[disabled] .btn-danger:focus,fieldset[disabled] .btn-danger:hover{background-color:#d9534f;border-color:#d43f3a}.btn-danger .badge{color:#d9534f;background-color:#fff}.btn-link{font-weight:400;color:#337ab7;border-radius:0}.btn-link,.btn-link.active,.btn-link:active,.btn-link[disabled],fieldset[disabled] .btn-link{background-color:transparent;-webkit-box-shadow:none;box-shadow:none}.btn-link,.btn-link:active,.btn-link:focus,.btn-link:hover{border-color:transparent}.btn-link:focus,.btn-link:hover{color:#23527c;text-decoration:underline;background-color:transparent}.btn-link[disabled]:focus,.btn-link[disabled]:hover,fieldset[disabled] .btn-link:focus,fieldset[disabled] .btn-link:hover{color:#777;text-decoration:none}.btn-group-lg>.btn,.btn-lg{padding:0.625em 10.375em;font-size:1.125em;line-height:1.3333333;border-radius:0.375em}.btn-group-sm>.btn,.btn-sm{padding:0.3125em 0.625em;font-size:0.750em;line-height:1.5;border-radius:0.1875em}.btn-group-xs>.btn,.btn-xs{padding:0.0625em 0.3125em;font-size:0.750em;line-height:1.5;border-radius:0.1875em}.btn-block{display:block;width:100%}.btn-block+.btn-block{margin-top:0.3125em}input[type=button].btn-block,input[type=reset].btn-block,input[type=submit].btn-block{width:100%}.fade{opacity:0;-webkit-transition:opacity .15s linear;-o-transition:opacity .15s linear;transition:opacity .15s linear}.fade.in{opacity:1}.collapse{display:none}.collapse.in{display:block}tr.collapse.in{display:table-row}tbody.collapse.in{display:table-row-group}.collapsing{position:relative;height:0;overflow:hidden;-webkit-transition-timing-function:ease;-o-transition-timing-function:ease;transition-timing-function:ease;-webkit-transition-duration:.35s;-o-transition-duration:.35s;transition-duration:.35s;-webkit-transition-property:height,visibility;-o-transition-property:height,visibility;transition-property:height,visibility}.caret{display:inline-block;width:0;height:0;margin-left:0.125em;vertical-align:middle;border-top:0.25em dashed;border-top:0.25em solid\9;border-right:0.25em solid transparent;border-left:0.25em solid transparent}.dropdown,.dropup{position:relative}.dropdown-toggle:focus{outline:0}.dropdown-menu{position:absolute;top:100%;left:0;z-index:1000;display:none;float:left;min-width:10em;padding:0.3125em 0;margin:0.125em 0 0;font-size:0.875em;text-align:left;list-style:none;background-color:#fff;-webkit-background-clip:padding-box;background-clip:padding-box;border:0.0625em solid #ccc;border:0.0625em solid rgba(0,0,0,.15);border-radius:0.25em;-webkit-box-shadow:0 0.375em 1.125em rgba(0,0,0,.175);box-shadow:0 0.375em 1.125em rgba(0,0,0,.175)}.dropdown-menu.pull-right{right:0;left:auto}.dropdown-menu .divider{height:0.0625em;margin:0.5625em 0;overflow:hidden;background-color:#e5e5e5}.dropdown-menu>li>a{display:block;padding:0.1875em 1.25em;clear:both;font-weight:400;line-height:1.42857143;color:#333;white-space:nowrap}.dropdown-menu>li>a:focus,.dropdown-menu>li>a:hover{color:#262626;text-decoration:none;background-color:#f5f5f5}.dropdown-menu>.active>a,.dropdown-menu>.active>a:focus,.dropdown-menu>.active>a:hover{color:#fff;text-decoration:none;background-color:#337ab7;outline:0}.dropdown-menu>.disabled>a,.dropdown-menu>.disabled>a:focus,.dropdown-menu>.disabled>a:hover{color:#777}.dropdown-menu>.disabled>a:focus,.dropdown-menu>.disabled>a:hover{text-decoration:none;cursor:not-allowed;background-color:transparent;background-image:none;filter:progid:DXImageTransform.Microsoft.gradient(enabled=false)}.open>.dropdown-menu{display:block}.open>a{outline:0}.dropdown-menu-right{right:0;left:auto}.dropdown-menu-left{right:auto;left:0}.dropdown-header{display:block;padding:0.1875em 1.25em;font-size:0.750em;line-height:1.42857143;color:#777;white-space:nowrap}.dropdown-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:990}.pull-right>.dropdown-menu{right:0;left:auto}.dropup .caret,.navbar-fixed-bottom .dropdown .caret{content:"";border-top:0;border-bottom:0.25em dashed;border-bottom:0.25em solid\9}.dropup .dropdown-menu,.navbar-fixed-bottom .dropdown .dropdown-menu{top:auto;bottom:100%;margin-bottom:0.125em}@media (min-width:768px){.navbar-right .dropdown-menu{right:0;left:auto}.navbar-right .dropdown-menu-left{right:auto;left:0}}.btn-group,.btn-group-vertical{position:relative;display:inline-block;vertical-align:middle}.btn-group-vertical>.btn,.btn-group>.btn{position:relative;float:left}.btn-group-vertical>.btn.active,.btn-group-vertical>.btn:active,.btn-group-vertical>.btn:focus,.btn-group-vertical>.btn:hover,.btn-group>.btn.active,.btn-group>.btn:active,.btn-group>.btn:focus,.btn-group>.btn:hover{z-index:2}.btn-group .btn+.btn,.btn-group .btn+.btn-group,.btn-group .btn-group+.btn,.btn-group .btn-group+.btn-group{margin-left:-0.0625em}.btn-toolbar{margin-left:-0.3125em}.btn-toolbar .btn,.btn-toolbar .btn-group,.btn-toolbar .input-group{float:left}.btn-toolbar>.btn,.btn-toolbar>.btn-group,.btn-toolbar>.input-group{margin-left:0.3125em}.btn-group>.btn:not(:first-child):not(:last-child):not(.dropdown-toggle){border-radius:0}.btn-group>.btn:first-child{margin-left:0}.btn-group>.btn:first-child:not(:last-child):not(.dropdown-toggle){border-top-right-radius:0;border-bottom-right-radius:0}.btn-group>.btn:last-child:not(:first-child),.btn-group>.dropdown-toggle:not(:first-child){border-top-left-radius:0;border-bottom-left-radius:0}.btn-group>.btn-group{float:left}.btn-group>.btn-group:not(:first-child):not(:last-child)>.btn{border-radius:0}.btn-group>.btn-group:first-child:not(:last-child)>.btn:last-child,.btn-group>.btn-group:first-child:not(:last-child)>.dropdown-toggle{border-top-right-radius:0;border-bottom-right-radius:0}.btn-group>.btn-group:last-child:not(:first-child)>.btn:first-child{border-top-left-radius:0;border-bottom-left-radius:0}.btn-group .dropdown-toggle:active,.btn-group.open .dropdown-toggle{outline:0}.btn-group>.btn+.dropdown-toggle{padding-right:0.5em;padding-left:0.5em}.btn-group>.btn-lg+.dropdown-toggle{padding-right:1.125em;padding-left:1.125em}.btn-group.open .dropdown-toggle{-webkit-box-shadow:inset 0 0.1875em 0.3125em rgba(0,0,0,.125);box-shadow:inset 0 0.1875em 0.3125em rgba(0,0,0,.125)}.btn-group.open .dropdown-toggle.btn-link{-webkit-box-shadow:none;box-shadow:none}.btn .caret{margin-left:0}.btn-lg .caret{border-width:0.3125em 0.3125em 0;border-bottom-width:0}.dropup .btn-lg .caret{border-width:0 0.3125em 0.3125em}.btn-group-vertical>.btn,.btn-group-vertical>.btn-group,.btn-group-vertical>.btn-group>.btn{display:block;float:none;width:100%;max-width:100%}.btn-group-vertical>.btn-group>.btn{float:none}.btn-group-vertical>.btn+.btn,.btn-group-vertical>.btn+.btn-group,.btn-group-vertical>.btn-group+.btn,.btn-group-vertical>.btn-group+.btn-group{margin-top:-0.0625em;margin-left:0}.btn-group-vertical>.btn:not(:first-child):not(:last-child){border-radius:0}.btn-group-vertical>.btn:first-child:not(:last-child){border-top-right-radius:0.25em;border-bottom-right-radius:0;border-bottom-left-radius:0}.btn-group-vertical>.btn:last-child:not(:first-child){border-top-left-radius:0;border-top-right-radius:0;border-bottom-left-radius:0.25em}.btn-group-vertical>.btn-group:not(:first-child):not(:last-child)>.btn{border-radius:0}.btn-group-vertical>.btn-group:first-child:not(:last-child)>.btn:last-child,.btn-group-vertical>.btn-group:first-child:not(:last-child)>.dropdown-toggle{border-bottom-right-radius:0;border-bottom-left-radius:0}.btn-group-vertical>.btn-group:last-child:not(:first-child)>.btn:first-child{border-top-left-radius:0;border-top-right-radius:0}.btn-group-justified{display:table;width:100%;table-layout:fixed;border-collapse:separate}.btn-group-justified>.btn,.btn-group-justified>.btn-group{display:table-cell;float:none;width:1%}.btn-group-justified>.btn-group .btn{width:100%}.btn-group-justified>.btn-group .dropdown-menu{left:auto}[data-toggle=buttons]>.btn input[type=checkbox],[data-toggle=buttons]>.btn input[type=radio],[data-toggle=buttons]>.btn-group>.btn input[type=checkbox],[data-toggle=buttons]>.btn-group>.btn input[type=radio]{position:absolute;clip:rect(0,0,0,0);pointer-events:none}.input-group{position:relative;display:table;border-collapse:separate}.input-group[class*=col-]{float:none;padding-right:0;padding-left:0}.input-group .form-control{position:relative;z-index:2;float:left;width:100%;margin-bottom:0}.input-group-lg>.form-control,.input-group-lg>.input-group-addon,.input-group-lg>.input-group-btn>.btn{height:40.375em;padding:0.625em 10.375em;font-size:1.125em;line-height:1.3333333;border-radius:0.375em}select.input-group-lg>.form-control,select.input-group-lg>.input-group-addon,select.input-group-lg>.input-group-btn>.btn{height:40.375em;line-height:40.375em}select[multiple].input-group-lg>.form-control,select[multiple].input-group-lg>.input-group-addon,select[multiple].input-group-lg>.input-group-btn>.btn,textarea.input-group-lg>.form-control,textarea.input-group-lg>.input-group-addon,textarea.input-group-lg>.input-group-btn>.btn{height:auto}.input-group-sm>.form-control,.input-group-sm>.input-group-addon,.input-group-sm>.input-group-btn>.btn{height:1.875em;padding:0.3125em 0.625em;font-size:0.750em;line-height:1.5;border-radius:0.1875em}select.input-group-sm>.form-control,select.input-group-sm>.input-group-addon,select.input-group-sm>.input-group-btn>.btn{height:1.875em;line-height:1.875em}select[multiple].input-group-sm>.form-control,select[multiple].input-group-sm>.input-group-addon,select[multiple].input-group-sm>.input-group-btn>.btn,textarea.input-group-sm>.form-control,textarea.input-group-sm>.input-group-addon,textarea.input-group-sm>.input-group-btn>.btn{height:auto}.input-group .form-control,.input-group-addon,.input-group-btn{display:table-cell}.input-group .form-control:not(:first-child):not(:last-child),.input-group-addon:not(:first-child):not(:last-child),.input-group-btn:not(:first-child):not(:last-child){border-radius:0}.input-group-addon,.input-group-btn{width:1%;white-space:nowrap;vertical-align:middle}.input-group-addon{padding:0.375em 1.125em;font-size:0.875em;font-weight:400;line-height:1;color:#555;text-align:center;background-color:#eee;border:0.0625em solid #ccc;border-radius:0.25em}.input-group-addon.input-sm{padding:0.3125em 0.625em;font-size:0.750em;border-radius:0.1875em}.input-group-addon.input-lg{padding:0.625em 10.375em;font-size:1.125em;border-radius:0.375em}.input-group-addon input[type=checkbox],.input-group-addon input[type=radio]{margin-top:0}.input-group .form-control:first-child,.input-group-addon:first-child,.input-group-btn:first-child>.btn,.input-group-btn:first-child>.btn-group>.btn,.input-group-btn:first-child>.dropdown-toggle,.input-group-btn:last-child>.btn-group:not(:last-child)>.btn,.input-group-btn:last-child>.btn:not(:last-child):not(.dropdown-toggle){border-top-right-radius:0;border-bottom-right-radius:0}.input-group-addon:first-child{border-right:0}.input-group .form-control:last-child,.input-group-addon:last-child,.input-group-btn:first-child>.btn-group:not(:first-child)>.btn,.input-group-btn:first-child>.btn:not(:first-child),.input-group-btn:last-child>.btn,.input-group-btn:last-child>.btn-group>.btn,.input-group-btn:last-child>.dropdown-toggle{border-top-left-radius:0;border-bottom-left-radius:0}.input-group-addon:last-child{border-left:0}.input-group-btn{position:relative;font-size:0;white-space:nowrap}.input-group-btn>.btn{position:relative}.input-group-btn>.btn+.btn{margin-left:-0.0625em}.input-group-btn>.btn:active,.input-group-btn>.btn:focus,.input-group-btn>.btn:hover{z-index:2}.input-group-btn:first-child>.btn,.input-group-btn:first-child>.btn-group{margin-right:-0.0625em}.input-group-btn:last-child>.btn,.input-group-btn:last-child>.btn-group{z-index:2;margin-left:-0.0625em}.nav{padding-left:0;margin-bottom:0;list-style:none}.nav>li{position:relative;display:block}.nav>li>a{position:relative;display:block;padding:0.625em 0.9375em}.nav>li>a:focus,.nav>li>a:hover{text-decoration:none;background-color:#eee}.nav>li.disabled>a{color:#777}.nav>li.disabled>a:focus,.nav>li.disabled>a:hover{color:#777;text-decoration:none;cursor:not-allowed;background-color:transparent}.nav .open>a,.nav .open>a:focus,.nav .open>a:hover{background-color:#eee;border-color:#337ab7}.nav .nav-divider{height:0.0625em;margin:0.5625em 0;overflow:hidden;background-color:#e5e5e5}.nav>li>a>img{max-width:none}.nav-tabs{border-bottom:0.0625em solid #ddd}.nav-tabs>li{float:left;margin-bottom:-0.0625em}.nav-tabs>li>a{margin-right:0.125em;line-height:1.42857143;border:0.0625em solid transparent;border-radius:0.25em 0.25em 0 0}.nav-tabs>li>a:hover{border-color:#eee #eee #ddd}.nav-tabs>li.active>a,.nav-tabs>li.active>a:focus,.nav-tabs>li.active>a:hover{color:#555;cursor:default;background-color:#fff;border:0.0625em solid #ddd;border-bottom-color:transparent}.nav-tabs.nav-justified{width:100%;border-bottom:0}.nav-tabs.nav-justified>li{float:none}.nav-tabs.nav-justified>li>a{margin-bottom:0.3125em;text-align:center}.nav-tabs.nav-justified>.dropdown .dropdown-menu{top:auto;left:auto}@media (min-width:768px){.nav-tabs.nav-justified>li{display:table-cell;width:1%}.nav-tabs.nav-justified>li>a{margin-bottom:0}}.nav-tabs.nav-justified>li>a{margin-right:0;border-radius:0.25em}.nav-tabs.nav-justified>.active>a,.nav-tabs.nav-justified>.active>a:focus,.nav-tabs.nav-justified>.active>a:hover{border:0.0625em solid #ddd}@media (min-width:768px){.nav-tabs.nav-justified>li>a{border-bottom:0.0625em solid #ddd;border-radius:0.25em 0.25em 0 0}.nav-tabs.nav-justified>.active>a,.nav-tabs.nav-justified>.active>a:focus,.nav-tabs.nav-justified>.active>a:hover{border-bottom-color:#fff}}.nav-pills>li{float:left}.nav-pills>li>a{border-radius:0.25em}.nav-pills>li+li{margin-left:0.125em}.nav-pills>li.active>a,.nav-pills>li.active>a:focus,.nav-pills>li.active>a:hover{color:#fff;background-color:#337ab7}.nav-stacked>li{float:none}.nav-stacked>li+li{margin-top:0.125em;margin-left:0}.nav-justified{width:100%}.nav-justified>li{float:none}.nav-justified>li>a{margin-bottom:0.3125em;text-align:center}.nav-justified>.dropdown .dropdown-menu{top:auto;left:auto}@media (min-width:768px){.nav-justified>li{display:table-cell;width:1%}.nav-justified>li>a{margin-bottom:0}}.nav-tabs-justified{border-bottom:0}.nav-tabs-justified>li>a{margin-right:0;border-radius:0.25em}.nav-tabs-justified>.active>a,.nav-tabs-justified>.active>a:focus,.nav-tabs-justified>.active>a:hover{border:0.0625em solid #ddd}@media (min-width:768px){.nav-tabs-justified>li>a{border-bottom:0.0625em solid #ddd;border-radius:0.25em 0.25em 0 0}.nav-tabs-justified>.active>a,.nav-tabs-justified>.active>a:focus,.nav-tabs-justified>.active>a:hover{border-bottom-color:#fff}}.tab-content>.tab-pane{display:none}.tab-content>.active{display:block}.nav-tabs .dropdown-menu{margin-top:-0.0625em;border-top-left-radius:0;border-top-right-radius:0}.navbar{position:relative;min-height:3.125em;margin-bottom:1.25em;border:0.0625em solid transparent}@media (min-width:768px){.navbar{border-radius:0.25em}}@media (min-width:768px){.navbar-header{float:left}}.navbar-collapse{padding-right:0.9375em;padding-left:0.9375em;overflow-x:visible;-webkit-overflow-scrolling:touch;border-top:0.0625em solid transparent;-webkit-box-shadow:inset 0 0.0625em 0 rgba(255,255,255,.1);box-shadow:inset 0 0.0625em 0 rgba(255,255,255,.1)}.navbar-collapse.in{overflow-y:auto}@media (min-width:920px){.navbar-collapse{width:auto;border-top:0;-webkit-box-shadow:none;box-shadow:none}.navbar-collapse.collapse{display:block!important;height:auto!important;padding-bottom:0;overflow:visible!important}.navbar-collapse.in{overflow-y:visible}.navbar-fixed-bottom .navbar-collapse,.navbar-fixed-top .navbar-collapse,.navbar-static-top .navbar-collapse{padding-right:0;padding-left:0}}.navbar-fixed-bottom .navbar-collapse,.navbar-fixed-top .navbar-collapse{max-height:32.5em}@media (max-device-width:480px) and (orientation:landscape){.navbar-fixed-bottom .navbar-collapse,.navbar-fixed-top .navbar-collapse{max-height:12.5em}}.container-fluid>.navbar-collapse,.container-fluid>.navbar-header,.container>.navbar-collapse,.container>.navbar-header{margin-right:-0.9375em;margin-left:-0.9375em}@media (min-width:768px){.container-fluid>.navbar-collapse,.container-fluid>.navbar-header,.container>.navbar-collapse,.container>.navbar-header{margin-right:0;margin-left:0}}.navbar-static-top{z-index:1000;border-width:0 0 0.0625em}@media (min-width:768px){.navbar-static-top{border-radius:0}}.navbar-fixed-bottom,.navbar-fixed-top{position:fixed;right:0;left:0;z-index:1030}@media (min-width:768px){.navbar-fixed-bottom,.navbar-fixed-top{border-radius:0}}.navbar-fixed-top{top:0;border-width:0 0 0.0625em}.navbar-fixed-bottom{bottom:0;margin-bottom:0;border-width:0.0625em 0 0}.navbar-brand{float:left;height:3.125em;padding:0.9375em 0.9375em;font-size:1.125em;line-height:1.25em}.navbar-brand:focus,.navbar-brand:hover{text-decoration:none}.navbar-brand>img{display:block}@media (min-width:768px){.navbar>.container .navbar-brand,.navbar>.container-fluid .navbar-brand{margin-left:-0.9375em}}.navbar-toggle{position:relative;float:right;padding:0.5625em 0.625em;margin-top:0.5em;margin-right:0.9375em;margin-bottom:0.5em;background-color:transparent;background-image:none;border:0.0625em solid transparent;border-radius:0.25em}.navbar-toggle:focus{outline:0}.navbar-toggle .icon-bar{display:block;width:1.375em;height:0.125em;border-radius:0.0625em}.navbar-toggle .icon-bar+.icon-bar{margin-top:0.25em}@media (min-width:920px){.navbar-toggle{display:none}}.navbar-nav{margin:7.0.3125em -0.9375em}.navbar-nav>li>a{padding-top:0.625em;padding-bottom:0.625em;line-height:1.25em}@media (max-width:767px){.navbar-nav .open .dropdown-menu{position:static;float:none;width:auto;margin-top:0;background-color:transparent;border:0;-webkit-box-shadow:none;box-shadow:none}.navbar-nav .open .dropdown-menu .dropdown-header,.navbar-nav .open .dropdown-menu>li>a{padding:0.3125em 0.9375em 0.3125em 20.3125em}.navbar-nav .open .dropdown-menu>li>a{line-height:1.25em}.navbar-nav .open .dropdown-menu>li>a:focus,.navbar-nav .open .dropdown-menu>li>a:hover{background-image:none}}@media (min-width:768px){.navbar-nav{float:left;margin:0}.navbar-nav>li{float:left}.navbar-nav>li>a{padding-top:0.9375em;padding-bottom:0.9375em}}.navbar-form{padding:0.625em 0.9375em;margin-top:0.5em;margin-right:-0.9375em;margin-bottom:0.5em;margin-left:-0.9375em;border-top:0.0625em solid transparent;border-bottom:0.0625em solid transparent;-webkit-box-shadow:inset 0 0.0625em 0 rgba(255,255,255,.1),0 0.0625em 0 rgba(255,255,255,.1);box-shadow:inset 0 0.0625em 0 rgba(255,255,255,.1),0 0.0625em 0 rgba(255,255,255,.1)}@media (min-width:768px){.navbar-form .form-group{display:inline-block;margin-bottom:0;vertical-align:middle}.navbar-form .form-control{display:inline-block;width:auto;vertical-align:middle}.navbar-form .form-control-static{display:inline-block}.navbar-form .input-group{display:inline-table;vertical-align:middle}.navbar-form .input-group .form-control,.navbar-form .input-group .input-group-addon,.navbar-form .input-group .input-group-btn{width:auto}.navbar-form .input-group>.form-control{width:100%}.navbar-form .control-label{margin-bottom:0;vertical-align:middle}.navbar-form .checkbox,.navbar-form .radio{display:inline-block;margin-top:0;margin-bottom:0;vertical-align:middle}.navbar-form .checkbox label,.navbar-form .radio label{padding-left:0}.navbar-form .checkbox input[type=checkbox],.navbar-form .radio input[type=radio]{position:relative;margin-left:0}.navbar-form .has-feedback .form-control-feedback{top:0}}@media (max-width:767px){.navbar-form .form-group{margin-bottom:0.3125em}.navbar-form .form-group:last-child{margin-bottom:0}}@media (min-width:768px){.navbar-form{width:auto;padding-top:0;padding-bottom:0;margin-right:0;margin-left:0;border:0;-webkit-box-shadow:none;box-shadow:none}}.navbar-nav>li>.dropdown-menu{margin-top:0;border-top-left-radius:0;border-top-right-radius:0}.navbar-fixed-bottom .navbar-nav>li>.dropdown-menu{margin-bottom:0;border-top-left-radius:0.25em;border-top-right-radius:0.25em;border-bottom-right-radius:0;border-bottom-left-radius:0}.navbar-btn{margin-top:0.5em;margin-bottom:0.5em}.navbar-btn.btn-sm{margin-top:0.625em;margin-bottom:0.625em}.navbar-btn.btn-xs{margin-top:10.25em;margin-bottom:10.25em}.navbar-text{margin-top:0.9375em;margin-bottom:0.9375em}@media (min-width:768px){.navbar-text{float:left;margin-right:0.9375em;margin-left:0.9375em}}@media (min-width:768px){.navbar-left{float:left!important}.navbar-right{float:right!important;margin-right:-0.9375em}.navbar-right~.navbar-right{margin-right:0}}.navbar-default{background-color:#f8f8f8;border-color:#e7e7e7}.navbar-default .navbar-brand{color:#777}.navbar-default .navbar-brand:focus,.navbar-default .navbar-brand:hover{color:#5e5e5e;background-color:transparent}.navbar-default .navbar-text{color:#777}.navbar-default .navbar-nav>li>a{color:#777}.navbar-default .navbar-nav>li>a:focus,.navbar-default .navbar-nav>li>a:hover{color:#333;background-color:transparent}.navbar-default .navbar-nav>.active>a,.navbar-default .navbar-nav>.active>a:focus,.navbar-default .navbar-nav>.active>a:hover{color:#555;background-color:#e7e7e7}.navbar-default .navbar-nav>.disabled>a,.navbar-default .navbar-nav>.disabled>a:focus,.navbar-default .navbar-nav>.disabled>a:hover{color:#ccc;background-color:transparent}.navbar-default .navbar-toggle{border-color:#ddd}.navbar-default .navbar-toggle:focus,.navbar-default .navbar-toggle:hover{background-color:#ddd}.navbar-default .navbar-toggle .icon-bar{background-color:#888}.navbar-default .navbar-collapse,.navbar-default .navbar-form{border-color:#e7e7e7}.navbar-default .navbar-nav>.open>a,.navbar-default .navbar-nav>.open>a:focus,.navbar-default .navbar-nav>.open>a:hover{color:#555;background-color:#e7e7e7}@media (max-width:767px){.navbar-default .navbar-nav .open .dropdown-menu>li>a{color:#777}.navbar-default .navbar-nav .open .dropdown-menu>li>a:focus,.navbar-default .navbar-nav .open .dropdown-menu>li>a:hover{color:#333;background-color:transparent}.navbar-default .navbar-nav .open .dropdown-menu>.active>a,.navbar-default .navbar-nav .open .dropdown-menu>.active>a:focus,.navbar-default .navbar-nav .open .dropdown-menu>.active>a:hover{color:#555;background-color:#e7e7e7}.navbar-default .navbar-nav .open .dropdown-menu>.disabled>a,.navbar-default .navbar-nav .open .dropdown-menu>.disabled>a:focus,.navbar-default .navbar-nav .open .dropdown-menu>.disabled>a:hover{color:#ccc;background-color:transparent}}.navbar-default .navbar-link{color:#777}.navbar-default .navbar-link:hover{color:#333}.navbar-default .btn-link{color:#777}.navbar-default .btn-link:focus,.navbar-default .btn-link:hover{color:#333}.navbar-default .btn-link[disabled]:focus,.navbar-default .btn-link[disabled]:hover,fieldset[disabled] .navbar-default .btn-link:focus,fieldset[disabled] .navbar-default .btn-link:hover{color:#ccc}.navbar-inverse{background-color:#222;border-color:#080808}.navbar-inverse .navbar-brand{color:#9d9d9d}.navbar-inverse .navbar-brand:focus,.navbar-inverse .navbar-brand:hover{color:#fff;background-color:transparent}.navbar-inverse .navbar-text{color:#9d9d9d}.navbar-inverse .navbar-nav>li>a{color:#9d9d9d}.navbar-inverse .navbar-nav>li>a:focus,.navbar-inverse .navbar-nav>li>a:hover{color:#fff;background-color:transparent}.navbar-inverse .navbar-nav>.active>a,.navbar-inverse .navbar-nav>.active>a:focus,.navbar-inverse .navbar-nav>.active>a:hover{color:#fff;background-color:#080808}.navbar-inverse .navbar-nav>.disabled>a,.navbar-inverse .navbar-nav>.disabled>a:focus,.navbar-inverse .navbar-nav>.disabled>a:hover{color:#444;background-color:transparent}.navbar-inverse .navbar-toggle{border-color:#333}.navbar-inverse .navbar-toggle:focus,.navbar-inverse .navbar-toggle:hover{background-color:#333}.navbar-inverse .navbar-toggle .icon-bar{background-color:#fff}.navbar-inverse .navbar-collapse,.navbar-inverse .navbar-form{border-color:#101010}.navbar-inverse .navbar-nav>.open>a,.navbar-inverse .navbar-nav>.open>a:focus,.navbar-inverse .navbar-nav>.open>a:hover{color:#fff;background-color:#080808}@media (max-width:767px){.navbar-inverse .navbar-nav .open .dropdown-menu>.dropdown-header{border-color:#080808}.navbar-inverse .navbar-nav .open .dropdown-menu .divider{background-color:#080808}.navbar-inverse .navbar-nav .open .dropdown-menu>li>a{color:#9d9d9d}.navbar-inverse .navbar-nav .open .dropdown-menu>li>a:focus,.navbar-inverse .navbar-nav .open .dropdown-menu>li>a:hover{color:#fff;background-color:transparent}.navbar-inverse .navbar-nav .open .dropdown-menu>.active>a,.navbar-inverse .navbar-nav .open .dropdown-menu>.active>a:focus,.navbar-inverse .navbar-nav .open .dropdown-menu>.active>a:hover{color:#fff;background-color:#080808}.navbar-inverse .navbar-nav .open .dropdown-menu>.disabled>a,.navbar-inverse .navbar-nav .open .dropdown-menu>.disabled>a:focus,.navbar-inverse .navbar-nav .open .dropdown-menu>.disabled>a:hover{color:#444;background-color:transparent}}.navbar-inverse .navbar-link{color:#9d9d9d}.navbar-inverse .navbar-link:hover{color:#fff}.navbar-inverse .btn-link{color:#9d9d9d}.navbar-inverse .btn-link:focus,.navbar-inverse .btn-link:hover{color:#fff}.navbar-inverse .btn-link[disabled]:focus,.navbar-inverse .btn-link[disabled]:hover,fieldset[disabled] .navbar-inverse .btn-link:focus,fieldset[disabled] .navbar-inverse .btn-link:hover{color:#444}.breadcrumb{padding:0.5em 0.9375em;margin-bottom:1.25em;list-style:none;background-color:#f5f5f5;border-radius:0.25em}.breadcrumb>li{display:inline-block}.breadcrumb>li+li:before{padding:0 0.3125em;color:#ccc;content:"/\00a0"}.breadcrumb>.active{color:#777}.pagination{display:inline-block;padding-left:0;margin:1.25em 0;border-radius:0.25em}.pagination>li{display:inline}.pagination>li>a,.pagination>li>span{position:relative;float:left;padding:0.375em 1.125em;margin-left:-0.0625em;line-height:1.42857143;color:#337ab7;text-decoration:none;background-color:#fff;border:0.0625em solid #ddd}.pagination>li:first-child>a,.pagination>li:first-child>span{margin-left:0;border-top-left-radius:0.25em;border-bottom-left-radius:0.25em}.pagination>li:last-child>a,.pagination>li:last-child>span{border-top-right-radius:0.25em;border-bottom-right-radius:0.25em}.pagination>li>a:focus,.pagination>li>a:hover,.pagination>li>span:focus,.pagination>li>span:hover{z-index:2;color:#23527c;background-color:#eee;border-color:#ddd}.pagination>.active>a,.pagination>.active>a:focus,.pagination>.active>a:hover,.pagination>.active>span,.pagination>.active>span:focus,.pagination>.active>span:hover{z-index:3;color:#fff;cursor:default;background-color:#337ab7;border-color:#337ab7}.pagination>.disabled>a,.pagination>.disabled>a:focus,.pagination>.disabled>a:hover,.pagination>.disabled>span,.pagination>.disabled>span:focus,.pagination>.disabled>span:hover{color:#777;cursor:not-allowed;background-color:#fff;border-color:#ddd}.pagination-lg>li>a,.pagination-lg>li>span{padding:0.625em 10.375em;font-size:1.125em;line-height:1.3333333}.pagination-lg>li:first-child>a,.pagination-lg>li:first-child>span{border-top-left-radius:0.375em;border-bottom-left-radius:0.375em}.pagination-lg>li:last-child>a,.pagination-lg>li:last-child>span{border-top-right-radius:0.375em;border-bottom-right-radius:0.375em}.pagination-sm>li>a,.pagination-sm>li>span{padding:0.3125em 0.625em;font-size:0.750em;line-height:1.5}.pagination-sm>li:first-child>a,.pagination-sm>li:first-child>span{border-top-left-radius:0.1875em;border-bottom-left-radius:0.1875em}.pagination-sm>li:last-child>a,.pagination-sm>li:last-child>span{border-top-right-radius:0.1875em;border-bottom-right-radius:0.1875em}.pager{padding-left:0;margin:1.25em 0;text-align:center;list-style:none}.pager li{display:inline}.pager li>a,.pager li>span{display:inline-block;padding:0.3125em 10.25em;background-color:#fff;border:0.0625em solid #ddd;border-radius:0.9375em}.pager li>a:focus,.pager li>a:hover{text-decoration:none;background-color:#eee}.pager .next>a,.pager .next>span{float:right}.pager .previous>a,.pager .previous>span{float:left}.pager .disabled>a,.pager .disabled>a:focus,.pager .disabled>a:hover,.pager .disabled>span{color:#777;cursor:not-allowed;background-color:#fff}.label{display:inline;padding:.2em .6em .3em;font-size:75%;font-weight:700;line-height:1;color:#fff;text-align:center;white-space:nowrap;vertical-align:baseline;border-radius:.25em}a.label:focus,a.label:hover{color:#fff;text-decoration:none;cursor:pointer}.label:empty{display:none}.btn .label{position:relative;top:-0.0625em}.label-default{background-color:#777}.label-default[href]:focus,.label-default[href]:hover{background-color:#5e5e5e}.label-primary{background-color:#337ab7}.label-primary[href]:focus,.label-primary[href]:hover{background-color:#286090}.label-success{background-color:#5cb85c}.label-success[href]:focus,.label-success[href]:hover{background-color:#449d44}.label-info{background-color:#5bc0de}.label-info[href]:focus,.label-info[href]:hover{background-color:#31b0d5}.label-warning{background-color:#f0ad4e}.label-warning[href]:focus,.label-warning[href]:hover{background-color:#ec971f}.label-danger{background-color:#d9534f}.label-danger[href]:focus,.label-danger[href]:hover{background-color:#c9302c}.badge{display:inline-block;min-width:0.625em;padding:0.1875em 0.4375em;font-size:0.750em;font-weight:700;line-height:1;color:#fff;text-align:center;white-space:nowrap;vertical-align:middle;background-color:#777;border-radius:0.625em}.badge:empty{display:none}.btn .badge{position:relative;top:-0.0625em}.btn-group-xs>.btn .badge,.btn-xs .badge{top:0;padding:0.0625em 0.3125em}a.badge:focus,a.badge:hover{color:#fff;text-decoration:none;cursor:pointer}.list-group-item.active>.badge,.nav-pills>.active>a>.badge{color:#337ab7;background-color:#fff}.list-group-item>.badge{float:right}.list-group-item>.badge+.badge{margin-right:0.3125em}.nav-pills>li>a>.badge{margin-left:0.1875em}.jumbotron{padding-top:1.875em;padding-bottom:1.875em;margin-bottom:1.875em;color:inherit;background-color:#eee}.jumbotron .h1,.jumbotron h1{color:inherit}.jumbotron p{margin-bottom:0.9375em;font-size:1.313em;font-weight:200}.jumbotron>hr{border-top-color:#d5d5d5}.container .jumbotron,.container-fluid .jumbotron{padding-right:0.9375em;padding-left:0.9375em;border-radius:0.375em}.jumbotron .container{max-width:100%}@media screen and (min-width:768px){.jumbotron{padding-top:3em;padding-bottom:3em}.container .jumbotron,.container-fluid .jumbotron{padding-right:3.75em;padding-left:3.75em}.jumbotron .h1,.jumbotron h1{font-size:3.938em}}.thumbnail{display:block;padding:0.25em;margin-bottom:1.25em;line-height:1.42857143;background-color:#fff;border:0.0625em solid #ddd;border-radius:0.25em;-webkit-transition:border .2s ease-in-out;-o-transition:border .2s ease-in-out;transition:border .2s ease-in-out}.thumbnail a>img,.thumbnail>img{margin-right:auto;margin-left:auto}a.thumbnail.active,a.thumbnail:focus,a.thumbnail:hover{border-color:#337ab7}.thumbnail .caption{padding:0.5625em;color:#333}.alert{padding:0.9375em;margin-bottom:1.25em;border:0.0625em solid transparent;border-radius:0.25em}.alert h4{margin-top:0;color:inherit}.alert .alert-link{font-weight:700}.alert>p,.alert>ul{margin-bottom:0}.alert>p+p{margin-top:0.3125em}.alert-dismissable,.alert-dismissible{padding-right:30.3125em}.alert-dismissable .close,.alert-dismissible .close{position:relative;top:-0.125em;right:-20.0625em;color:inherit}.alert-success{color:#3c763d;background-color:#dff0d8;border-color:#d6e9c6}.alert-success hr{border-top-color:#c9e2b3}.alert-success .alert-link{color:#2b542c}.alert-info{color:#31708f;background-color:#d9edf7;border-color:#bce8f1}.alert-info hr{border-top-color:#a6e1ec}.alert-info .alert-link{color:#245269}.alert-warning{color:#8a6d3b;background-color:#fcf8e3;border-color:#faebcc}.alert-warning hr{border-top-color:#f7e1b5}.alert-warning .alert-link{color:#66512c}.alert-danger{color:#a94442;background-color:#f2dede;border-color:#ebccd1}.alert-danger hr{border-top-color:#e4b9c0}.alert-danger .alert-link{color:#843534}@-webkit-keyframes progress-bar-stripes{from{background-position:2.5em 0}to{background-position:0 0}}@-o-keyframes progress-bar-stripes{from{background-position:2.5em 0}to{background-position:0 0}}@keyframes progress-bar-stripes{from{background-position:2.5em 0}to{background-position:0 0}}.progress{height:1.25em;margin-bottom:1.25em;overflow:hidden;background-color:#f5f5f5;border-radius:0.25em;-webkit-box-shadow:inset 0 0.0625em 0.125em rgba(0,0,0,.1);box-shadow:inset 0 0.0625em 0.125em rgba(0,0,0,.1)}.progress-bar{float:left;width:0;height:100%;font-size:0.750em;line-height:1.25em;color:#fff;text-align:center;background-color:#337ab7;-webkit-box-shadow:inset 0 -0.0625em 0 rgba(0,0,0,.15);box-shadow:inset 0 -0.0625em 0 rgba(0,0,0,.15);-webkit-transition:width .6s ease;-o-transition:width .6s ease;transition:width .6s ease}.progress-bar-striped,.progress-striped .progress-bar{background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:-o-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);-webkit-background-size:2.5em 2.5em;background-size:2.5em 2.5em}.progress-bar.active,.progress.active .progress-bar{-webkit-animation:progress-bar-stripes 2s linear infinite;-o-animation:progress-bar-stripes 2s linear infinite;animation:progress-bar-stripes 2s linear infinite}.progress-bar-success{background-color:#5cb85c}.progress-striped .progress-bar-success{background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:-o-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent)}.progress-bar-info{background-color:#5bc0de}.progress-striped .progress-bar-info{background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:-o-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent)}.progress-bar-warning{background-color:#f0ad4e}.progress-striped .progress-bar-warning{background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:-o-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent)}.progress-bar-danger{background-color:#d9534f}.progress-striped .progress-bar-danger{background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:-o-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent)}.media{margin-top:0.9375em}.media:first-child{margin-top:0}.media,.media-body{overflow:hidden;zoom:1}.media-body{width:625em}.media-object{display:block}.media-object.img-thumbnail{max-width:none}.media-right,.media>.pull-right{padding-left:0.625em}.media-left,.media>.pull-left{padding-right:0.625em}.media-body,.media-left,.media-right{display:table-cell;vertical-align:top}.media-middle{vertical-align:middle}.media-bottom{vertical-align:bottom}.media-heading{margin-top:0;margin-bottom:0.3125em}.media-list{padding-left:0;list-style:none}.list-group{padding-left:0;margin-bottom:1.25em}.list-group-item{position:relative;display:block;padding:0.625em 0.9375em;margin-bottom:-0.0625em;background-color:#fff;border:0.0625em solid #ddd}.list-group-item:first-child{border-top-left-radius:0.25em;border-top-right-radius:0.25em}.list-group-item:last-child{margin-bottom:0;border-bottom-right-radius:0.25em;border-bottom-left-radius:0.25em}a.list-group-item,button.list-group-item{color:#555}a.list-group-item .list-group-item-heading,button.list-group-item .list-group-item-heading{color:#333}a.list-group-item:focus,a.list-group-item:hover,button.list-group-item:focus,button.list-group-item:hover{color:#555;text-decoration:none;background-color:#f5f5f5}button.list-group-item{width:100%;text-align:left}.list-group-item.disabled,.list-group-item.disabled:focus,.list-group-item.disabled:hover{color:#777;cursor:not-allowed;background-color:#eee}.list-group-item.disabled .list-group-item-heading,.list-group-item.disabled:focus .list-group-item-heading,.list-group-item.disabled:hover .list-group-item-heading{color:inherit}.list-group-item.disabled .list-group-item-text,.list-group-item.disabled:focus .list-group-item-text,.list-group-item.disabled:hover .list-group-item-text{color:#777}.list-group-item.active,.list-group-item.active:focus,.list-group-item.active:hover{z-index:2;color:#fff;background-color:#337ab7;border-color:#337ab7}.list-group-item.active .list-group-item-heading,.list-group-item.active .list-group-item-heading>.small,.list-group-item.active .list-group-item-heading>small,.list-group-item.active:focus .list-group-item-heading,.list-group-item.active:focus .list-group-item-heading>.small,.list-group-item.active:focus .list-group-item-heading>small,.list-group-item.active:hover .list-group-item-heading,.list-group-item.active:hover .list-group-item-heading>.small,.list-group-item.active:hover .list-group-item-heading>small{color:inherit}.list-group-item.active .list-group-item-text,.list-group-item.active:focus .list-group-item-text,.list-group-item.active:hover .list-group-item-text{color:#c7ddef}.list-group-item-success{color:#3c763d;background-color:#dff0d8}a.list-group-item-success,button.list-group-item-success{color:#3c763d}a.list-group-item-success .list-group-item-heading,button.list-group-item-success .list-group-item-heading{color:inherit}a.list-group-item-success:focus,a.list-group-item-success:hover,button.list-group-item-success:focus,button.list-group-item-success:hover{color:#3c763d;background-color:#d0e9c6}a.list-group-item-success.active,a.list-group-item-success.active:focus,a.list-group-item-success.active:hover,button.list-group-item-success.active,button.list-group-item-success.active:focus,button.list-group-item-success.active:hover{color:#fff;background-color:#3c763d;border-color:#3c763d}.list-group-item-info{color:#31708f;background-color:#d9edf7}a.list-group-item-info,button.list-group-item-info{color:#31708f}a.list-group-item-info .list-group-item-heading,button.list-group-item-info .list-group-item-heading{color:inherit}a.list-group-item-info:focus,a.list-group-item-info:hover,button.list-group-item-info:focus,button.list-group-item-info:hover{color:#31708f;background-color:#c4e3f3}a.list-group-item-info.active,a.list-group-item-info.active:focus,a.list-group-item-info.active:hover,button.list-group-item-info.active,button.list-group-item-info.active:focus,button.list-group-item-info.active:hover{color:#fff;background-color:#31708f;border-color:#31708f}.list-group-item-warning{color:#8a6d3b;background-color:#fcf8e3}a.list-group-item-warning,button.list-group-item-warning{color:#8a6d3b}a.list-group-item-warning .list-group-item-heading,button.list-group-item-warning .list-group-item-heading{color:inherit}a.list-group-item-warning:focus,a.list-group-item-warning:hover,button.list-group-item-warning:focus,button.list-group-item-warning:hover{color:#8a6d3b;background-color:#faf2cc}a.list-group-item-warning.active,a.list-group-item-warning.active:focus,a.list-group-item-warning.active:hover,button.list-group-item-warning.active,button.list-group-item-warning.active:focus,button.list-group-item-warning.active:hover{color:#fff;background-color:#8a6d3b;border-color:#8a6d3b}.list-group-item-danger{color:#a94442;background-color:#f2dede}a.list-group-item-danger,button.list-group-item-danger{color:#a94442}a.list-group-item-danger .list-group-item-heading,button.list-group-item-danger .list-group-item-heading{color:inherit}a.list-group-item-danger:focus,a.list-group-item-danger:hover,button.list-group-item-danger:focus,button.list-group-item-danger:hover{color:#a94442;background-color:#ebcccc}a.list-group-item-danger.active,a.list-group-item-danger.active:focus,a.list-group-item-danger.active:hover,button.list-group-item-danger.active,button.list-group-item-danger.active:focus,button.list-group-item-danger.active:hover{color:#fff;background-color:#a94442;border-color:#a94442}.list-group-item-heading{margin-top:0;margin-bottom:0.3125em}.list-group-item-text{margin-bottom:0;line-height:1.3}.panel{margin-bottom:1.25em;background-color:#fff;border:0.0625em solid transparent;border-radius:0.25em;-webkit-box-shadow:0 0.0625em 0.0625em rgba(0,0,0,.05);box-shadow:0 0.0625em 0.0625em rgba(0,0,0,.05)}.panel-body{padding:0.9375em}.panel-heading{padding:0.625em 0.9375em;border-bottom:0.0625em solid transparent;border-top-left-radius:0.1875em;border-top-right-radius:0.1875em}.panel-heading>.dropdown .dropdown-toggle{color:inherit}.panel-title{margin-top:0;margin-bottom:0;font-size:1em;color:inherit}.panel-title>.small,.panel-title>.small>a,.panel-title>a,.panel-title>small,.panel-title>small>a{color:inherit}.panel-footer{padding:0.625em 0.9375em;background-color:#f5f5f5;border-top:0.0625em solid #ddd;border-bottom-right-radius:0.1875em;border-bottom-left-radius:0.1875em}.panel>.list-group,.panel>.panel-collapse>.list-group{margin-bottom:0}.panel>.list-group .list-group-item,.panel>.panel-collapse>.list-group .list-group-item{border-width:0.0625em 0;border-radius:0}.panel>.list-group:first-child .list-group-item:first-child,.panel>.panel-collapse>.list-group:first-child .list-group-item:first-child{border-top:0;border-top-left-radius:0.1875em;border-top-right-radius:0.1875em}.panel>.list-group:last-child .list-group-item:last-child,.panel>.panel-collapse>.list-group:last-child .list-group-item:last-child{border-bottom:0;border-bottom-right-radius:0.1875em;border-bottom-left-radius:0.1875em}.panel>.panel-heading+.panel-collapse>.list-group .list-group-item:first-child{border-top-left-radius:0;border-top-right-radius:0}.panel-heading+.list-group .list-group-item:first-child{border-top-width:0}.list-group+.panel-footer{border-top-width:0}.panel>.panel-collapse>.table,.panel>.table,.panel>.table-responsive>.table{margin-bottom:0}.panel>.panel-collapse>.table caption,.panel>.table caption,.panel>.table-responsive>.table caption{padding-right:0.9375em;padding-left:0.9375em}.panel>.table-responsive:first-child>.table:first-child,.panel>.table:first-child{border-top-left-radius:0.1875em;border-top-right-radius:0.1875em}.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child,.panel>.table:first-child>tbody:first-child>tr:first-child,.panel>.table:first-child>thead:first-child>tr:first-child{border-top-left-radius:0.1875em;border-top-right-radius:0.1875em}.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child td:first-child,.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child th:first-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child td:first-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child th:first-child,.panel>.table:first-child>tbody:first-child>tr:first-child td:first-child,.panel>.table:first-child>tbody:first-child>tr:first-child th:first-child,.panel>.table:first-child>thead:first-child>tr:first-child td:first-child,.panel>.table:first-child>thead:first-child>tr:first-child th:first-child{border-top-left-radius:0.1875em}.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child td:last-child,.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child th:last-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child td:last-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child th:last-child,.panel>.table:first-child>tbody:first-child>tr:first-child td:last-child,.panel>.table:first-child>tbody:first-child>tr:first-child th:last-child,.panel>.table:first-child>thead:first-child>tr:first-child td:last-child,.panel>.table:first-child>thead:first-child>tr:first-child th:last-child{border-top-right-radius:0.1875em}.panel>.table-responsive:last-child>.table:last-child,.panel>.table:last-child{border-bottom-right-radius:0.1875em;border-bottom-left-radius:0.1875em}.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child,.panel>.table:last-child>tbody:last-child>tr:last-child,.panel>.table:last-child>tfoot:last-child>tr:last-child{border-bottom-right-radius:0.1875em;border-bottom-left-radius:0.1875em}.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child td:first-child,.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child th:first-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child td:first-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child th:first-child,.panel>.table:last-child>tbody:last-child>tr:last-child td:first-child,.panel>.table:last-child>tbody:last-child>tr:last-child th:first-child,.panel>.table:last-child>tfoot:last-child>tr:last-child td:first-child,.panel>.table:last-child>tfoot:last-child>tr:last-child th:first-child{border-bottom-left-radius:0.1875em}.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child td:last-child,.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child th:last-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child td:last-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child th:last-child,.panel>.table:last-child>tbody:last-child>tr:last-child td:last-child,.panel>.table:last-child>tbody:last-child>tr:last-child th:last-child,.panel>.table:last-child>tfoot:last-child>tr:last-child td:last-child,.panel>.table:last-child>tfoot:last-child>tr:last-child th:last-child{border-bottom-right-radius:0.1875em}.panel>.panel-body+.table,.panel>.panel-body+.table-responsive,.panel>.table+.panel-body,.panel>.table-responsive+.panel-body{border-top:0.0625em solid #ddd}.panel>.table>tbody:first-child>tr:first-child td,.panel>.table>tbody:first-child>tr:first-child th{border-top:0}.panel>.table-bordered,.panel>.table-responsive>.table-bordered{border:0}.panel>.table-bordered>tbody>tr>td:first-child,.panel>.table-bordered>tbody>tr>th:first-child,.panel>.table-bordered>tfoot>tr>td:first-child,.panel>.table-bordered>tfoot>tr>th:first-child,.panel>.table-bordered>thead>tr>td:first-child,.panel>.table-bordered>thead>tr>th:first-child,.panel>.table-responsive>.table-bordered>tbody>tr>td:first-child,.panel>.table-responsive>.table-bordered>tbody>tr>th:first-child,.panel>.table-responsive>.table-bordered>tfoot>tr>td:first-child,.panel>.table-responsive>.table-bordered>tfoot>tr>th:first-child,.panel>.table-responsive>.table-bordered>thead>tr>td:first-child,.panel>.table-responsive>.table-bordered>thead>tr>th:first-child{border-left:0}.panel>.table-bordered>tbody>tr>td:last-child,.panel>.table-bordered>tbody>tr>th:last-child,.panel>.table-bordered>tfoot>tr>td:last-child,.panel>.table-bordered>tfoot>tr>th:last-child,.panel>.table-bordered>thead>tr>td:last-child,.panel>.table-bordered>thead>tr>th:last-child,.panel>.table-responsive>.table-bordered>tbody>tr>td:last-child,.panel>.table-responsive>.table-bordered>tbody>tr>th:last-child,.panel>.table-responsive>.table-bordered>tfoot>tr>td:last-child,.panel>.table-responsive>.table-bordered>tfoot>tr>th:last-child,.panel>.table-responsive>.table-bordered>thead>tr>td:last-child,.panel>.table-responsive>.table-bordered>thead>tr>th:last-child{border-right:0}.panel>.table-bordered>tbody>tr:first-child>td,.panel>.table-bordered>tbody>tr:first-child>th,.panel>.table-bordered>thead>tr:first-child>td,.panel>.table-bordered>thead>tr:first-child>th,.panel>.table-responsive>.table-bordered>tbody>tr:first-child>td,.panel>.table-responsive>.table-bordered>tbody>tr:first-child>th,.panel>.table-responsive>.table-bordered>thead>tr:first-child>td,.panel>.table-responsive>.table-bordered>thead>tr:first-child>th{border-bottom:0}.panel>.table-bordered>tbody>tr:last-child>td,.panel>.table-bordered>tbody>tr:last-child>th,.panel>.table-bordered>tfoot>tr:last-child>td,.panel>.table-bordered>tfoot>tr:last-child>th,.panel>.table-responsive>.table-bordered>tbody>tr:last-child>td,.panel>.table-responsive>.table-bordered>tbody>tr:last-child>th,.panel>.table-responsive>.table-bordered>tfoot>tr:last-child>td,.panel>.table-responsive>.table-bordered>tfoot>tr:last-child>th{border-bottom:0}.panel>.table-responsive{margin-bottom:0;border:0}.panel-group{margin-bottom:1.25em}.panel-group .panel{margin-bottom:0;border-radius:0.25em}.panel-group .panel+.panel{margin-top:0.3125em}.panel-group .panel-heading{border-bottom:0}.panel-group .panel-heading+.panel-collapse>.list-group,.panel-group .panel-heading+.panel-collapse>.panel-body{border-top:0.0625em solid #ddd}.panel-group .panel-footer{border-top:0}.panel-group .panel-footer+.panel-collapse .panel-body{border-bottom:0.0625em solid #ddd}.panel-default{border-color:#ddd}.panel-default>.panel-heading{color:#333;background-color:#f5f5f5;border-color:#ddd}.panel-default>.panel-heading+.panel-collapse>.panel-body{border-top-color:#ddd}.panel-default>.panel-heading .badge{color:#f5f5f5;background-color:#333}.panel-default>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#ddd}.panel-primary{border-color:#337ab7}.panel-primary>.panel-heading{color:#fff;background-color:#337ab7;border-color:#337ab7}.panel-primary>.panel-heading+.panel-collapse>.panel-body{border-top-color:#337ab7}.panel-primary>.panel-heading .badge{color:#337ab7;background-color:#fff}.panel-primary>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#337ab7}.panel-success{border-color:#d6e9c6}.panel-success>.panel-heading{color:#3c763d;background-color:#dff0d8;border-color:#d6e9c6}.panel-success>.panel-heading+.panel-collapse>.panel-body{border-top-color:#d6e9c6}.panel-success>.panel-heading .badge{color:#dff0d8;background-color:#3c763d}.panel-success>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#d6e9c6}.panel-info{border-color:#bce8f1}.panel-info>.panel-heading{color:#31708f;background-color:#d9edf7;border-color:#bce8f1}.panel-info>.panel-heading+.panel-collapse>.panel-body{border-top-color:#bce8f1}.panel-info>.panel-heading .badge{color:#d9edf7;background-color:#31708f}.panel-info>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#bce8f1}.panel-warning{border-color:#faebcc}.panel-warning>.panel-heading{color:#8a6d3b;background-color:#fcf8e3;border-color:#faebcc}.panel-warning>.panel-heading+.panel-collapse>.panel-body{border-top-color:#faebcc}.panel-warning>.panel-heading .badge{color:#fcf8e3;background-color:#8a6d3b}.panel-warning>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#faebcc}.panel-danger{border-color:#ebccd1}.panel-danger>.panel-heading{color:#a94442;background-color:#f2dede;border-color:#ebccd1}.panel-danger>.panel-heading+.panel-collapse>.panel-body{border-top-color:#ebccd1}.panel-danger>.panel-heading .badge{color:#f2dede;background-color:#a94442}.panel-danger>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#ebccd1}.embed-responsive{position:relative;display:block;height:0;padding:0;overflow:hidden}.embed-responsive .embed-responsive-item,.embed-responsive embed,.embed-responsive iframe,.embed-responsive object,.embed-responsive video{position:absolute;top:0;bottom:0;left:0;width:100%;height:100%;border:0}.embed-responsive-16by9{padding-bottom:56.25%}.embed-responsive-4by3{padding-bottom:75%}.well{min-height:1.25em;padding:10.5625em;margin-bottom:1.25em;background-color:#f5f5f5;border:0.0625em solid #e3e3e3;border-radius:0.25em;-webkit-box-shadow:inset 0 0.0625em 0.0625em rgba(0,0,0,.05);box-shadow:inset 0 0.0625em 0.0625em rgba(0,0,0,.05)}.well blockquote{border-color:#ddd;border-color:rgba(0,0,0,.15)}.well-lg{padding:20.25em;border-radius:0.375em}.well-sm{padding:0.5625em;border-radius:0.1875em}.close{float:right;font-size:1.313em;font-weight:700;line-height:1;color:#000;text-shadow:0 0.0625em 0 #fff;filter:alpha(opacity=20);opacity:.2}.close:focus,.close:hover{color:#000;text-decoration:none;cursor:pointer;filter:alpha(opacity=50);opacity:.5}button.close{-webkit-appearance:none;padding:0;cursor:pointer;background:0 0;border:0}.modal-open{overflow:hidden}.modal{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1050;display:none;overflow:hidden;-webkit-overflow-scrolling:touch;outline:0}.modal.fade .modal-dialog{-webkit-transition:-webkit-transform .3s ease-out;-o-transition:-o-transform .3s ease-out;transition:transform .3s ease-out;-webkit-transform:translate(0,-25%);-ms-transform:translate(0,-25%);-o-transform:translate(0,-25%);transform:translate(0,-25%)}.modal.in .modal-dialog{-webkit-transform:translate(0,0);-ms-transform:translate(0,0);-o-transform:translate(0,0);transform:translate(0,0)}.modal-open .modal{overflow-x:hidden;overflow-y:auto}.modal-dialog{position:relative;width:auto;margin:0.625em}.modal-content{position:relative;background-color:#fff;-webkit-background-clip:padding-box;background-clip:padding-box;border:0.0625em solid #999;border:0.0625em solid rgba(0,0,0,.2);border-radius:0.375em;outline:0;-webkit-box-shadow:0 0.1875em 0.5625em rgba(0,0,0,.5);box-shadow:0 0.1875em 0.5625em rgba(0,0,0,.5)}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1040;background-color:#000}.modal-backdrop.fade{filter:alpha(opacity=0);opacity:0}.modal-backdrop.in{filter:alpha(opacity=50);opacity:.5}.modal-header{padding:0.9375em;border-bottom:0.0625em solid #e5e5e5}.modal-header .close{margin-top:-0.125em}.modal-title{margin:0;line-height:1.42857143}.modal-body{position:relative;padding:0.9375em}.modal-footer{padding:0.9375em;text-align:right;border-top:0.0625em solid #e5e5e5}.modal-footer .btn+.btn{margin-bottom:0;margin-left:0.3125em}.modal-footer .btn-group .btn+.btn{margin-left:-0.0625em}.modal-footer .btn-block+.btn-block{margin-left:0}.modal-scrollbar-measure{position:absolute;top:-9990.5625em;width:3.125em;height:3.125em;overflow:scroll}@media (min-width:768px){.modal-dialog{width:37.5em;margin:1.875em auto}.modal-content{-webkit-box-shadow:0 0.3125em 0.9375em rgba(0,0,0,.5);box-shadow:0 0.3125em 0.9375em rgba(0,0,0,.5)}.modal-sm{width:18.75em}}@media (min-width:990.125em){.modal-lg{width:56.25em}}.tooltip{position:absolute;z-index:1070;display:block;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:0.750em;font-style:normal;font-weight:400;line-height:1.42857143;text-align:left;text-align:start;text-decoration:none;text-shadow:none;text-transform:none;letter-spacing:normal;word-break:normal;word-spacing:normal;word-wrap:normal;white-space:normal;filter:alpha(opacity=0);opacity:0;line-break:auto}.tooltip.in{filter:alpha(opacity=90);opacity:.9}.tooltip.top{padding:0.3125em 0;margin-top:-0.1875em}.tooltip.right{padding:0 0.3125em;margin-left:0.1875em}.tooltip.bottom{padding:0.3125em 0;margin-top:0.1875em}.tooltip.left{padding:0 0.3125em;margin-left:-0.1875em}.tooltip-inner{max-width:12.5em;padding:0.1875em 0.5em;color:#fff;text-align:center;background-color:#000;border-radius:0.25em}.tooltip-arrow{position:absolute;width:0;height:0;border-color:transparent;border-style:solid}.tooltip.top .tooltip-arrow{bottom:0;left:50%;margin-left:-0.3125em;border-width:0.3125em 0.3125em 0;border-top-color:#000}.tooltip.top-left .tooltip-arrow{right:0.3125em;bottom:0;margin-bottom:-0.3125em;border-width:0.3125em 0.3125em 0;border-top-color:#000}.tooltip.top-right .tooltip-arrow{bottom:0;left:0.3125em;margin-bottom:-0.3125em;border-width:0.3125em 0.3125em 0;border-top-color:#000}.tooltip.right .tooltip-arrow{top:50%;left:0;margin-top:-0.3125em;border-width:0.3125em 0.3125em 0.3125em 0;border-right-color:#000}.tooltip.left .tooltip-arrow{top:50%;right:0;margin-top:-0.3125em;border-width:0.3125em 0 0.3125em 0.3125em;border-left-color:#000}.tooltip.bottom .tooltip-arrow{top:0;left:50%;margin-left:-0.3125em;border-width:0 0.3125em 0.3125em;border-bottom-color:#000}.tooltip.bottom-left .tooltip-arrow{top:0;right:0.3125em;margin-top:-0.3125em;border-width:0 0.3125em 0.3125em;border-bottom-color:#000}.tooltip.bottom-right .tooltip-arrow{top:0;left:0.3125em;margin-top:-0.3125em;border-width:0 0.3125em 0.3125em;border-bottom-color:#000}.popover{position:absolute;top:0;left:0;z-index:1060;display:none;max-width:270.375em;padding:0.0625em;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:0.875em;font-style:normal;font-weight:400;line-height:1.42857143;text-align:left;text-align:start;text-decoration:none;text-shadow:none;text-transform:none;letter-spacing:normal;word-break:normal;word-spacing:normal;word-wrap:normal;white-space:normal;background-color:#fff;-webkit-background-clip:padding-box;background-clip:padding-box;border:0.0625em solid #ccc;border:0.0625em solid rgba(0,0,0,.2);border-radius:0.375em;-webkit-box-shadow:0 0.3125em 0.625em rgba(0,0,0,.2);box-shadow:0 0.3125em 0.625em rgba(0,0,0,.2);line-break:auto}.popover.top{margin-top:-0.625em}.popover.right{margin-left:0.625em}.popover.bottom{margin-top:0.625em}.popover.left{margin-left:-0.625em}.popover-title{padding:0.5em 10.25em;margin:0;font-size:0.875em;background-color:#f7f7f7;border-bottom:0.0625em solid #ebebeb;border-radius:0.3125em 0.3125em 0 0}.popover-content{padding:0.5625em 10.25em}.popover>.arrow,.popover>.arrow:after{position:absolute;display:block;width:0;height:0;border-color:transparent;border-style:solid}.popover>.arrow{border-width:10.0625em}.popover>.arrow:after{content:"";border-width:0.625em}.popover.top>.arrow{bottom:-10.0625em;left:50%;margin-left:-10.0625em;border-top-color:#999;border-top-color:rgba(0,0,0,.25);border-bottom-width:0}.popover.top>.arrow:after{bottom:0.0625em;margin-left:-0.625em;content:" ";border-top-color:#fff;border-bottom-width:0}.popover.right>.arrow{top:50%;left:-10.0625em;margin-top:-10.0625em;border-right-color:#999;border-right-color:rgba(0,0,0,.25);border-left-width:0}.popover.right>.arrow:after{bottom:-0.625em;left:0.0625em;content:" ";border-right-color:#fff;border-left-width:0}.popover.bottom>.arrow{top:-10.0625em;left:50%;margin-left:-10.0625em;border-top-width:0;border-bottom-color:#999;border-bottom-color:rgba(0,0,0,.25)}.popover.bottom>.arrow:after{top:0.0625em;margin-left:-0.625em;content:" ";border-top-width:0;border-bottom-color:#fff}.popover.left>.arrow{top:50%;right:-10.0625em;margin-top:-10.0625em;border-right-width:0;border-left-color:#999;border-left-color:rgba(0,0,0,.25)}.popover.left>.arrow:after{right:0.0625em;bottom:-0.625em;content:" ";border-right-width:0;border-left-color:#fff}.carousel{position:relative}.carousel-inner{position:relative;width:100%;overflow:hidden}.carousel-inner>.item{position:relative;display:none;-webkit-transition:.6s ease-in-out left;-o-transition:.6s ease-in-out left;transition:.6s ease-in-out left}.carousel-inner>.item>a>img,.carousel-inner>.item>img{line-height:1}@media all and (transform-3d),(-webkit-transform-3d){.carousel-inner>.item{-webkit-transition:-webkit-transform .6s ease-in-out;-o-transition:-o-transform .6s ease-in-out;transition:transform .6s ease-in-out;-webkit-backface-visibility:hidden;backface-visibility:hidden;-webkit-perspective:62.5em;perspective:62.5em}.carousel-inner>.item.active.right,.carousel-inner>.item.next{left:0;-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}.carousel-inner>.item.active.left,.carousel-inner>.item.prev{left:0;-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}.carousel-inner>.item.active,.carousel-inner>.item.next.left,.carousel-inner>.item.prev.right{left:0;-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}}.carousel-inner>.active,.carousel-inner>.next,.carousel-inner>.prev{display:block}.carousel-inner>.active{left:0}.carousel-inner>.next,.carousel-inner>.prev{position:absolute;top:0;width:100%}.carousel-inner>.next{left:100%}.carousel-inner>.prev{left:-100%}.carousel-inner>.next.left,.carousel-inner>.prev.right{left:0}.carousel-inner>.active.left{left:-100%}.carousel-inner>.active.right{left:100%}.carousel-control{position:absolute;top:0;bottom:0;left:0;width:15%;font-size:1.250em;color:#fff;text-align:center;text-shadow:0 0.0625em 0.125em rgba(0,0,0,.6);filter:alpha(opacity=50);opacity:.5}.carousel-control.left{background-image:-webkit-linear-gradient(left,rgba(0,0,0,.5) 0,rgba(0,0,0,.0001) 100%);background-image:-o-linear-gradient(left,rgba(0,0,0,.5) 0,rgba(0,0,0,.0001) 100%);background-image:-webkit-gradient(linear,left top,right top,from(rgba(0,0,0,.5)),to(rgba(0,0,0,.0001)));background-image:linear-gradient(to right,rgba(0,0,0,.5) 0,rgba(0,0,0,.0001) 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#80000000', endColorstr='#00000000', GradientType=1);background-repeat:repeat-x}.carousel-control.right{right:0;left:auto;background-image:-webkit-linear-gradient(left,rgba(0,0,0,.0001) 0,rgba(0,0,0,.5) 100%);background-image:-o-linear-gradient(left,rgba(0,0,0,.0001) 0,rgba(0,0,0,.5) 100%);background-image:-webkit-gradient(linear,left top,right top,from(rgba(0,0,0,.0001)),to(rgba(0,0,0,.5)));background-image:linear-gradient(to right,rgba(0,0,0,.0001) 0,rgba(0,0,0,.5) 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#00000000', endColorstr='#80000000', GradientType=1);background-repeat:repeat-x}.carousel-control:focus,.carousel-control:hover{color:#fff;text-decoration:none;filter:alpha(opacity=90);outline:0;opacity:.9}.carousel-control .glyphicon-chevron-left,.carousel-control .glyphicon-chevron-right,.carousel-control .icon-next,.carousel-control .icon-prev{position:absolute;top:50%;z-index:5;display:inline-block;margin-top:-0.625em}.carousel-control .glyphicon-chevron-left,.carousel-control .icon-prev{left:50%;margin-left:-0.625em}.carousel-control .glyphicon-chevron-right,.carousel-control .icon-next{right:50%;margin-right:-0.625em}.carousel-control .icon-next,.carousel-control .icon-prev{width:1.25em;height:1.25em;font-family:serif;line-height:1}.carousel-control .icon-prev:before{content:'\2039'}.carousel-control .icon-next:before{content:'\203a'}.carousel-indicators{position:absolute;bottom:0.625em;left:50%;z-index:15;width:60%;padding-left:0;margin-left:-30%;text-align:center;list-style:none}.carousel-indicators li{display:inline-block;width:0.625em;height:0.625em;margin:0.0625em;text-indent:-990.5625em;cursor:pointer;background-color:#000\9;background-color:rgba(0,0,0,0);border:0.0625em solid #fff;border-radius:0.625em}.carousel-indicators .active{width:1.125em;height:1.125em;margin:0;background-color:#fff}.carousel-caption{position:absolute;right:15%;bottom:1.25em;left:15%;z-index:10;padding-top:1.25em;padding-bottom:1.25em;color:#fff;text-align:center;text-shadow:0 0.0625em 0.125em rgba(0,0,0,.6)}.carousel-caption .btn{text-shadow:none}@media screen and (min-width:768px){.carousel-control .glyphicon-chevron-left,.carousel-control .glyphicon-chevron-right,.carousel-control .icon-next,.carousel-control .icon-prev{width:1.875em;height:1.875em;margin-top:-0.9375em;font-size:1.875em}.carousel-control .glyphicon-chevron-left,.carousel-control .icon-prev{margin-left:-0.9375em}.carousel-control .glyphicon-chevron-right,.carousel-control .icon-next{margin-right:-0.9375em}.carousel-caption{right:20%;left:20%;padding-bottom:1.875em}.carousel-indicators{bottom:1.25em}}.btn-group-vertical>.btn-group:after,.btn-group-vertical>.btn-group:before,.btn-toolbar:after,.btn-toolbar:before,.clearfix:after,.clearfix:before,.container-fluid:after,.container-fluid:before,.container:after,.container:before,.dl-horizontal dd:after,.dl-horizontal dd:before,.form-horizontal .form-group:after,.form-horizontal .form-group:before,.modal-footer:after,.modal-footer:before,.modal-header:after,.modal-header:before,.nav:after,.nav:before,.navbar-collapse:after,.navbar-collapse:before,.navbar-header:after,.navbar-header:before,.navbar:after,.navbar:before,.pager:after,.pager:before,.panel-body:after,.panel-body:before,.row:after,.row:before{display:table;content:" "}.btn-group-vertical>.btn-group:after,.btn-toolbar:after,.clearfix:after,.container-fluid:after,.container:after,.dl-horizontal dd:after,.form-horizontal .form-group:after,.modal-footer:after,.modal-header:after,.nav:after,.navbar-collapse:after,.navbar-header:after,.navbar:after,.pager:after,.panel-body:after,.row:after{clear:both}.center-block{display:block;margin-right:auto;margin-left:auto}.pull-right{float:right!important}.pull-left{float:left!important}.hide{display:none!important}.invisible{visibility:hidden}.text-hide{font:0/0 a;color:transparent;text-shadow:none;background-color:transparent;border:0}.hidden{display:none!important}.affix{position:fixed}@-ms-viewport{width:device-width}.visible-lg,.visible-md,.visible-sm,.visible-xs{display:none!important}.visible-lg-block,.visible-lg-inline,.visible-lg-inline-block,.visible-md-block,.visible-md-inline,.visible-md-inline-block,.visible-sm-block,.visible-sm-inline,.visible-sm-inline-block,.visible-xs-block,.visible-xs-inline,.visible-xs-inline-block{display:none!important}@media (max-width:767px){.visible-xs{display:block!important}table.visible-xs{display:table!important}tr.visible-xs{display:table-row!important}td.visible-xs,th.visible-xs{display:table-cell!important}}@media (max-width:767px){.visible-xs-block{display:block!important}}@media (max-width:767px){.visible-xs-inline{display:inline!important}}@media (max-width:767px){.visible-xs-inline-block{display:inline-block!important}}@media (min-width:768px) and (max-width:990.0625em){.visible-sm{display:block!important}table.visible-sm{display:table!important}tr.visible-sm{display:table-row!important}td.visible-sm,th.visible-sm{display:table-cell!important}}@media (min-width:768px) and (max-width:990.0625em){.visible-sm-block{display:block!important}}@media (min-width:768px) and (max-width:990.0625em){.visible-sm-inline{display:inline!important}}@media (min-width:768px) and (max-width:990.0625em){.visible-sm-inline-block{display:inline-block!important}}@media (min-width:990.125em) and (max-width:1190.5625em){.visible-md{display:block!important}table.visible-md{display:table!important}tr.visible-md{display:table-row!important}td.visible-md,th.visible-md{display:table-cell!important}}@media (min-width:990.125em) and (max-width:1190.5625em){.visible-md-block{display:block!important}}@media (min-width:990.125em) and (max-width:1190.5625em){.visible-md-inline{display:inline!important}}@media (min-width:990.125em) and (max-width:1190.5625em){.visible-md-inline-block{display:inline-block!important}}@media (min-width:1200px){.visible-lg{display:block!important}table.visible-lg{display:table!important}tr.visible-lg{display:table-row!important}td.visible-lg,th.visible-lg{display:table-cell!important}}@media (min-width:1200px){.visible-lg-block{display:block!important}}@media (min-width:1200px){.visible-lg-inline{display:inline!important}}@media (min-width:1200px){.visible-lg-inline-block{display:inline-block!important}}@media (max-width:767px){.hidden-xs{display:none!important}}@media (min-width:768px) and (max-width:990.0625em){.hidden-sm{display:none!important}}@media (min-width:990.125em) and (max-width:1190.5625em){.hidden-md{display:none!important}}@media (min-width:1200px){.hidden-lg{display:none!important}}.visible-print{display:none!important}@media print{.visible-print{display:block!important}table.visible-print{display:table!important}tr.visible-print{display:table-row!important}td.visible-print,th.visible-print{display:table-cell!important}}.visible-print-block{display:none!important}@media print{.visible-print-block{display:block!important}}.visible-print-inline{display:none!important}@media print{.visible-print-inline{display:inline!important}}.visible-print-inline-block{display:none!important}@media print{.visible-print-inline-block{display:inline-block!important}}@media print{.hidden-print{display:none!important}} +/*# sourceMappingURL=bootstrap.min.css.map */ diff --git a/app/assets/stylesheets/cancer_predict.scss b/app/assets/stylesheets/cancer_predict.scss new file mode 100644 index 0000000..37d991a --- /dev/null +++ b/app/assets/stylesheets/cancer_predict.scss @@ -0,0 +1,384 @@ +#cancer_table *[data-key]{ + padding: 0.375em 0; + display: inline-block; + width: 100%; +} +.head_logo{ + height: 4em; +} +@media screen and (max-width: 48em){ + .navbar-brand{ + width: 100%; + } +} +div.num_group{ + position: relative; + float: left; + width: 4.125em; + height: 2.25em; +} +@media screen and (min-width: 93.75em){ + .navbar-brand>img.head_logo{ + width: 50%; + height: auto; + } +} +@media screen and (min-width: 48.125em) and (max-width: 93.625em){ + .navbar-brand>img.head_logo{ + width: 70%; + height: auto; + } +} +.header-nav{ + top:0 !important; +} +.title_texts{ + color:rgb(210, 106, 2); + display:none; +} +.cencer_table_name{ + display: inline-block; + vertical-align: middle; + color:#5d7ca2; +} +@media screen and (min-width: 71.125em){ + #cancer_table .cencer_table_name{ + width: 16.25em; + } +} +@media screen and (min-width: 28.375em) and (max-width: 71em){ + #cancer_table .cencer_table_name{ + width: 12.25em; + } +} +@media screen and (max-width: 28.25em){ + #cancer_table .cencer_table_name{ + width: 7em; + } +} +#cancer_predict_result_block .cencer_table_name{ + width: 5em; +} +.cancer_table_btn{ + margin-right: 0.5em; + color:#5d7ca2; + border-color: #5d7ca2; + font-weight: 600; +} +.cancer_table_btn::last-of-type{ + margin-right:auto; +} +#cancer_table{ + font-size:0.825em; + color:#5d7ca2; +} +#cancer_table_top{ + padding-bottom: 4em; +} +#font_texts{ + padding-right: 0.5em; +} +#text_describe{ + font-weight: bold; + float: left; + max-width: 75%; + padding-bottom: 3em; +} +#font_size_choices{ + font-weight: bold; + float: right; + max-width: 50%; + padding-left:1em; +} +form.for_num{ + position: relative; + float:left; +} +select.select_num{ + position: absolute; + width: 5.125em; + height: 1.75em; + left: 1em; + clip: rect(0.25em,4.8em,1.5em,3.875em); + border:none; + padding: 0.5em; +} +input.num_only{ + color: black; + border-top: 0.125em solid rgb(221, 221, 221); + width: 5.125em; + padding: 0em 0em 0.25em; + border-left: 0.125em solid rgb(221, 221, 221); + text-align: center; + font-size: 0.875em; + background-color: rgb(255, 255, 255); + height: 2.25em; + position: absolute; + left:0.625em; +} +input.float_num{ + position: relative; +} +#cancer_table_left{ + width:100%; +} +#cancer_table_right{ + width:100%; +} +#cancer_table_submit{ + margin-left: 1em; + float: right; + background-color: rgb(210, 105, 0); + color: white; + border: 0em; + padding: 0.125em 0.5em; + border-radius: 0.5em; + font-size: 1.25em; +} +#cancer_table_reset{ + float: right; + background-color: rgb(210, 105, 0); + color: white; + border: 0em; + padding: 0.125em 0.5em; + border-radius: 0.5em; + font-size: 1.25em; +} +.btn-sub{ + background:url("/assets/cancerpredict/triangle_sub.png") no-repeat top transparent; + position: relative; + width: 1.875em; + border: 0; + height: 1.875em; + background-size: contain; + top:1em; + bottom: -0.7em; + padding: 0; +} +.btn-add{ + background:url("/assets/cancerpredict/triangle_add.png") no-repeat top transparent; + position: relative; + width: 1.875em; + border: 0; + height: 1.875em; + background-size: contain; + right: 1.815em; + top: -0.3em; + padding: 0; +} +.cancer_table_btn:focus{ + color: #5d7ca2 !important; + background-color: #9dc3e6 !important; + border-color: #8c8c8c !important; +} +.cancer_table_btn:hover{ + color: #5d7ca2 !important; + background-color: #9dc3e6 !important; + border-color: #8c8c8c !important; +} +.cancer_table_btn.active{ + color: #5d7ca2; + background-color: #9dc3e6; + border-color: #8c8c8c; +} +.cancertable_empty{ + border: 0.25em solid pink !important; + border-radius: 0.5em !important; + padding: 0.125em !important; +} +.result_title{ + background-color: rgb(210, 105, 0); + color: white; + border: 0em; + padding: 0.125em 0.5em; + border-radius: 0.5em; + font-size: 1.25em; + float: left; +} +.result_tab{ + background: #023d79; + background: linear-gradient(135deg, transparent 0.3em, #023d79 0); + border: none; + float:right; + padding: 0.5em 0.125em 0.5em 0.5em; + margin-top: 0.5em; + cursor: pointer; +} +#cancer_table a:hover{ + text-decoration: none; + color: #5d7ca2; +} +#result_contents{ + padding-top: 2em; +} +#choice_fields{ + padding: 2em 0 0 calc(20% - 1.625em); +} +.result_tab:hover{ + background: #d16801; + background: linear-gradient(135deg, transparent 0.3em, #d16801 0); + padding: 0.8em 0.125em 0.5em 1em; + margin-left: -0.5em; +} +.result_tab.active{ + background: #d16801; + background: linear-gradient(135deg, transparent 0.3em, #d16801 0); + padding: 0.8em 0.125em 0.5em 1em; + margin-left: -0.5em; +} +.result_tab > a{ + writing-mode: vertical-lr; + -webkit-writing-mode: vertical-lr; + color: white; +} +.result_tab_group{ + width: 20%; + margin: 0; + float: left; +} +.result_content_group{ + width: 80%; + margin: 0; + float: right; +} +.result_content{ + display: none; + min-height: 25em; + border: 0.125em solid #c0cbdd; + padding: 0.5em; +} +.result_content:first-of-type{ + display: block; +} +.result_content a{ + color: #5d7ca2; +} +.result_content p{ + color: #5d7ca2; + clear: both; +} +.cancer_years{ + float:left; + color: #5d7ca2; + background-color: #fff; + border-color: #5d7ca2; + border-width: 0.125em; + margin: 0em; +} +.cancer_years:first-of-type{ + margin-left: 1em; +} +.cancer_years:last-of-type{ + margin-right: 1em; +} +.cancer_form_field{ + margin-left: 1em; +} +#result_table_content a{ + float:left; + display: contents; +} +.result_content span{ + color: #5d7ca2; +} +.hint-texts{ + color: rgb(104, 104, 104); + font-size: 0.75em; + clear: both; + padding: 0.5em 0; +} +#result_text_content a{ + float:left; +} +#result_table_content table{ + clear: both; + width:100%; + table-layout: fixed; + overflow-wrap: break-word; +} +#result_table_content table tbody tr{ + display: none; +} +#result_table_content table tbody tr:first-of-type{ + display: table-row; +} +.white_text,.white_text:link,.white_text:visited{ + color:white; +} +.cancer_th{ + color: white; + background-color: #003d79; + border-right: 0.375em solid white; + border-top: 0.375em solid white; +} +.cancer_td { + background-color: #e9eaf5; + border-right: 0.375em solid white; + border-top: 0.375em solid white; +} +#cancer_predict_result_block{ + display:none; + font-size: 0.825em; + margin-top: 3em; + border-top: #666 solid; + padding-top: 2em; +} +p.texts_show{ + display: list-item; + margin-left: 1.5em; + clear: both; +} +div.texts_show{ + display: block; + margin-left: 0; +} +.addition{ + display: none; +} +#cancer_table_right_result .cancer_table_btn{ + padding: 0.25em 1em; +} +#cancer_table_left_result .cancer_table_btn{ + padding: 0.25em 1em; +} +.modal-dialog { + position: absolute; + left: 50%; + top: 50%; + transform: translate(-50%, -50%) !important; + overflow: auto; + overflow-y: auto; +} +#cancer_predict_result{ + width: 80%; +} +@media screen and (min-width: 48em) { + #cancer_table_right{ + float:right; + width:50%; + } + #cancer_table_left{ + float:left; + width:50%; + } + #cancer_table_right_result{ + width: 50%; + float: right; + } + #cancer_table_left_result{ + width: 50%; + float: left; + } + #cancer_predict_result{ + width: 50%; + float: left; + } + .result_title{ + margin-top: 1em; + } +} +@media print { + * { + -webkit-print-color-adjust: exact !important; + } +} \ No newline at end of file diff --git a/app/assets/stylesheets/cancer_predict_print.scss b/app/assets/stylesheets/cancer_predict_print.scss new file mode 100644 index 0000000..26b47ba --- /dev/null +++ b/app/assets/stylesheets/cancer_predict_print.scss @@ -0,0 +1,383 @@ +@import url(https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.3.0/css/font-awesome.min.css); +button, input, optgroup, select, textarea { + margin: 0; + font: inherit; + color: inherit; +} +.fa { + display: inline-block; + font: normal normal normal 14px/1 FontAwesome; + font-size: inherit; + text-rendering: auto; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; + transform: translate(0, 0); +} +.fa-question:before { + content: "\f128"; +} +button { + overflow: visible; +} +button, input, select, textarea { + font-family: inherit; + font-size: inherit; + line-height: inherit; +} +#cancer_table *[data-key]{ + padding: 0.375em 0; + display: inline-block; + width: 100%; +} +.head_logo{ + height: 4em; +} +div.num_group{ + position: relative; + float: left; + width: 4.125em; + height: 2.25em; +} +.navbar-brand>img.head_logo{ + width: 70%; + height: auto; +} +.header-nav{ + top:0 !important; +} +.title_texts{ + color:rgb(210, 106, 2); + display:none; +} +.cencer_table_name{ + display: inline-block; + vertical-align: middle; + color:#5d7ca2; +} +#cancer_table .cencer_table_name{ + width: 16.25em; +} +#cancer_predict_result_block .cencer_table_name{ + width: 5em; +} +.cancer_table_btn{ + margin-right: 0.5em; + color:#5d7ca2; + border-color: #5d7ca2; + font-weight: 600; +} +.cancer_table_btn::last-of-type{ + margin-right:auto; +} +#cancer_table{ + font-size:0.825em; + color:#5d7ca2; +} +#cancer_table_top{ + padding-bottom: 4em; +} +#font_texts{ + padding-right: 0.5em; +} +#text_describe{ + font-weight: bold; + float: left; + max-width: 75%; + padding-bottom: 3em; +} +#font_size_choices{ + font-weight: bold; + float: right; + max-width: 50%; + padding-left:1em; +} +form.for_num{ + position: relative; + float:left; +} +select.select_num{ + position: absolute; + width: 5.125em; + height: 1.75em; + left: 1em; + clip: rect(0.25em,4.8em,1.5em,3.875em); + border:none; + padding: 0.5em; +} +input.num_only{ + color: black; + border-top: 0.125em solid rgb(221, 221, 221); + width: 5.125em; + padding: 0em 0em 0.25em; + border-left: 0.125em solid rgb(221, 221, 221); + text-align: center; + font-size: 0.875em; + background-color: rgb(255, 255, 255); + height: 2.25em; + position: absolute; + left:0.625em; +} +input.float_num{ + position: relative; +} +#cancer_table_left{ + width:100%; +} +#cancer_table_right{ + width:100%; +} +#cancer_table_submit{ + margin-left: 1em; + float: right; + background-color: rgb(210, 105, 0); + color: white; + border: 0em; + padding: 0.125em 0.5em; + border-radius: 0.5em; + font-size: 1.25em; +} +#cancer_table_reset{ + float: right; + background-color: rgb(210, 105, 0); + color: white; + border: 0em; + padding: 0.125em 0.5em; + border-radius: 0.5em; + font-size: 1.25em; +} +.btn-sub{ + background:url("/assets/cancerpredict/triangle_sub.png") no-repeat top transparent; + position: relative; + width: 1.875em; + border: 0; + height: 1.875em; + background-size: contain; + top:1em; + bottom: -0.7em; + padding: 0; +} +.btn-add{ + background:url("/assets/cancerpredict/triangle_add.png") no-repeat top transparent; + position: relative; + width: 1.875em; + border: 0; + height: 1.875em; + background-size: contain; + right: 1.815em; + top: -0.3em; + padding: 0; +} +.cancer_table_btn:focus{ + color: #5d7ca2 !important; + background-color: #9dc3e6 !important; + border-color: #8c8c8c !important; +} +.cancer_table_btn:hover{ + color: #5d7ca2 !important; + background-color: #9dc3e6 !important; + border-color: #8c8c8c !important; +} +.cancer_table_btn.active{ + color: #5d7ca2; + background-color: #9dc3e6; + border-color: #8c8c8c; +} +.cancertable_empty{ + border: 0.25em solid pink !important; + border-radius: 0.5em !important; + padding: 0.125em !important; +} +.result_title{ + background-color: rgb(210, 105, 0); + color: white; + border: 0em; + padding: 0.125em 0.5em; + border-radius: 0.5em; + font-size: 1.25em; + float: left; +} +.result_tab{ + background: #023d79; + background: linear-gradient(135deg, transparent 0.3em, #023d79 0); + border: none; + float:right; + padding: 0.5em 0.125em 0.5em 0.5em; + margin-top: 0.5em; + cursor: pointer; +} +#cancer_table a:hover{ + text-decoration: none; + color: #5d7ca2; +} +#result_contents{ + padding-top: 2em; +} +#choice_fields{ + padding: 2em 0 0 calc(20% - 1.625em); +} +.result_tab:hover{ + background: #d16801; + background: linear-gradient(135deg, transparent 0.3em, #d16801 0); + padding: 0.8em 0.125em 0.5em 1em; + margin-left: -0.5em; +} +.result_tab.active{ + background: #d16801; + background: linear-gradient(135deg, transparent 0.3em, #d16801 0); + padding: 0.8em 0.125em 0.5em 1em; + margin-left: -0.5em; +} +.result_tab > a{ + writing-mode: vertical-lr; + -webkit-writing-mode: vertical-lr; + color: white; +} +.result_tab_group{ + width: 20%; + margin: 0; + float: left; +} +.result_content_group{ + width: 80%; + margin: 0; + float: right; +} +.result_content{ + display: none; + min-height: 25em; + border: 0.125em solid #c0cbdd; + padding: 0.5em; +} +.result_content:first-of-type{ + display: block; +} +.result_content a{ + color: #5d7ca2; +} +.result_content span{ + color: #5d7ca2; +} +.result_content p{ + color: #5d7ca2; + clear: both; +} +.cancer_years{ + float:left; + color: #5d7ca2; + background-color: #fff; + border-color: #5d7ca2; + border-width: 0.125em; + margin: 0em; +} +.cancer_years:first-of-type{ + margin-left: 1em; +} +.cancer_years:last-of-type{ + margin-right: 1em; +} +.cancer_form_field{ + margin-left: 1em; +} +#result_table_content a{ + float:left; + display: contents; +} +.hint-texts{ + color: rgb(104, 104, 104); + font-size: 0.75em; + clear: both; + padding: 0.5em 0; +} +#result_text_content a{ + float:left; +} +#result_table_content table{ + clear: both; + width:100%; + table-layout: fixed; + overflow-wrap: break-word; +} +#result_table_content table tbody tr{ + display: none; +} +#result_table_content table tbody tr:first-of-type{ + display: table-row; +} +.white_text,.white_text:link,.white_text:visited{ + color:white; +} +.cancer_th{ + color: white; + background-color: #003d79; + border-right: 0.375em solid white; + border-top: 0.375em solid white; +} +.cancer_td { + background-color: #e9eaf5; + border-right: 0.375em solid white; + border-top: 0.375em solid white; +} +#cancer_predict_result_block{ + display:none; + font-size: 0.825em; + margin-top: 3em; + border-top: #666 solid; + padding-top: 2em; +} +p.texts_show{ + display: list-item; + margin-left: 1.5em; + clear: both; +} +div.texts_show{ + display: block; + margin-left: 0; +} +.addition{ + display: none; +} +#cancer_table_right_result .cancer_table_btn{ + padding: 0.25em 1em; +} +#cancer_table_left_result .cancer_table_btn{ + padding: 0.25em 1em; +} +.modal-dialog { + position: absolute; + left: 50%; + top: 50%; + transform: translate(-50%, -50%) !important; + overflow: auto; + overflow-y: auto; +} +#cancer_predict_result{ + width: 80%; +} +#cancer_table_right{ +float:right; +width:50%; +} +#cancer_table_left{ +float:left; +width:50%; +} +#cancer_table_right_result{ +width: 50%; +float: right; +} +#cancer_table_left_result{ +width: 50%; +float: left; +} +#cancer_predict_result{ +width: 50%; +float: left; +} +.result_title{ +margin-top: 1em; +} +@media print { + * { + -webkit-print-color-adjust: exact !important; + } +} \ No newline at end of file diff --git a/app/controllers/admin/cancerpredicts_controller.rb b/app/controllers/admin/cancerpredicts_controller.rb index 3dbc1e4..b20d7f1 100644 --- a/app/controllers/admin/cancerpredicts_controller.rb +++ b/app/controllers/admin/cancerpredicts_controller.rb @@ -3,6 +3,7 @@ require 'rubyXL' class Admin::CancerpredictsController < OrbitAdminController #include Admin::CancerpredictsHelper before_action ->(module_app = @app_title) { set_variables module_app } + before_action :create_first_field #before_action :load_access_levels def initialize super @@ -14,8 +15,236 @@ class Admin::CancerpredictsController < OrbitAdminController @categories = @module_app.categories.enabled @filter_fields = filter_fields(@categories, @tags) @table_fields = [:status, :category, :title, :start_date, :end_date, :last_modified] - if request.xhr? - render :partial => "index" - end + @head_images_id = @form_to_show.head_images_id + @title_images_id = @form_to_show.title_images_id + @head_images = [] + @title_images = [] + @head_images_id.each{|image_id| @head_images.push Headimages.find_by(:id=>image_id.to_s)} rescue nil + @title_images_id.each{|image_id| @title_images.push Headimages.find_by(:id=>image_id.to_s)} rescue nil + @head_new_image = Headimages.new(:cancerpredictfields_id => @form_to_show.id) + end + def edit + if !(params["cancerpredictfields"].nil?) + params["cancerpredictfields"]["form_show"].each do |num,property| + property.each do |key,value| + if value != "0" && value != "1" + if key != params[:locale] + if @form_to_show.form_show[num.to_s][key.to_s].class != Array + @form_to_show.form_show[num.to_s][key.to_s] = value + else + if value.length > 2 + @form_to_show.form_show[num.to_s][key.to_s] = YAML.load(value) + else + @form_to_show.form_show[num.to_s][key.to_s] = [] + end + end + else + value.each do |sub_property,sub_value| + if @form_to_show.form_show[ num.to_s ][ sub_property ][params[:locale].to_s].class != Array + @form_to_show.form_show[ num.to_s ][ sub_property ][params[:locale].to_s] = sub_value + else + if sub_value.length > 2 + @form_to_show.form_show[ num.to_s ][ sub_property ][params[:locale].to_s] = YAML.load(sub_value) + else + @form_to_show.form_show[ num.to_s ][ sub_property ][params[:locale].to_s] = [] + end + end + end + end + else + @form_to_show.form_show[num.to_s][key.to_s] = value.to_i + end + end + end + params["cancerpredictfields"]["form_show_in_result"].each do |num,property| + property.each do |key,value| + if value != "0" && value != "1" + if key != params[:locale] + if @form_to_show.form_show_in_result[num.to_s][key.to_s].class != Array + @form_to_show.form_show_in_result[num.to_s][key.to_s] = value + else + if value.length > 2 + @form_to_show.form_show_in_result[num.to_s][key.to_s] = YAML.load(value) + else + @form_to_show.form_show_in_result[num.to_s][key.to_s] = [] + end + end + else + value.each do |sub_property,sub_value| + if @form_to_show.form_show_in_result[ num.to_s ][ sub_property ][params[:locale].to_s].class != Array + @form_to_show.form_show_in_result[ num.to_s ][ sub_property ][params[:locale].to_s] = sub_value + else + if sub_value.length > 2 + @form_to_show.form_show_in_result[ num.to_s ][ sub_property ][params[:locale].to_s] = YAML.load(sub_value) + else + @form_to_show.form_show_in_result[ num.to_s ][ sub_property ][params[:locale].to_s] = [] + end + end + end + end + else + @form_to_show.form_show_in_result[num.to_s][key.to_s] = value.to_i + end + end + end + @create_items = ['title_texts','form_result_is_right','text_descibe','years','table_above_texts','text_above_texts','surgery_only_texts','extra_texts','extra_therapy_texts','danger_texts'] + params_cancer = params.require("cancerpredictfields").permit! + @create_items.each do |item| + if (@form_to_show[item].class == BSON::Document) || (@form_to_show.send(item).class == Hash) + puts params_cancer[item] + item_hash = @form_to_show[item] + item_hash = item_hash.merge(params_cancer[item]) + @form_to_show[item] = item_hash + elsif @form_to_show[item].class == Array + @form_to_show[item] = YAML.load(params_cancer[item]) + @form_to_show[item] = [] if @form_to_show[item].class != Array + else + @form_to_show[item] = params_cancer[item] + end + end + @size = ['small','medium','large'] + @size.each{|size| @form_to_show[size] = params["cancerpredictfields"][size]} + @file_path = Rails.root.to_s + '/app/assets/images/predict_tool' + if !Dir.exist? @file_path + FileUtils.mkdir_p @file_path + end + @images = params["cancerpredictfields"]['head_images'] + @head_images_id = @form_to_show.head_images_id + @delete_index = [] + if !@images.nil? + @images.each do |num,image| + if num.to_i < @head_images_id.length && @head_images_id.length != 0 + if image['remove_image'] == "1" + @delete_index.push num.to_i + else + @image_id = @head_images_id[num.to_i] + @image = Headimages.find_by(:id=>@image_id.to_s) + if !image['sort_number'].nil? + @image.sort_number = image['sort_number'].to_i + @image.save + end + next if image['temp_file'] == nil + @file_name = image['temp_file'].original_filename.gsub('(','_').gsub(')','_').gsub(' ','_') rescue next + @image.sort_number = image['sort_number'].to_i + @image.temp_file = image['temp_file'] + @image.save + end + else + @file_name = image['temp_file'].original_filename.gsub('(','_').gsub(')','_').gsub(' ','_') rescue next + @headimages = Headimages.new(:cancerpredictfields_id => @form_to_show.id,:title => @app_title+'head_images') + @headimages.temp_file = image['temp_file'] + @headimages.sort_number = image['sort_number'].to_i if !image['sort_number'].nil? + @headimages.save + @form_to_show.head_images_id.push @headimages.id + end + end + end + @delete_index.reverse! + @delete_index.each do |i| + @image_id = @head_images_id[i.to_i] + Headimages.find_by(:id => @image_id ).destroy rescue next + @form_to_show.head_images_id.delete(@image_id) + end + @images = params["cancerpredictfields"]['title_images'] + @title_images_id = @form_to_show.title_images_id + @delete_index = [] + if !@images.nil? + @images.each do |num,image| + if num.to_i < @title_images_id.length && @title_images_id.length != 0 + if image['remove_image'] == "1" + @delete_index.push num.to_i + else + @image_id = @title_images_id[num.to_i] + @image = Headimages.find_by(:id=>@image_id.to_s) + if !image['sort_number'].nil? + @image.sort_number = image['sort_number'].to_i + @image.save + end + next if image['temp_file'] == nil + @file_name = image['temp_file'].original_filename.gsub('(','_').gsub(')','_').gsub(' ','_') rescue next + @image.sort_number = image['sort_number'].to_i + @image.temp_file = image['temp_file'] + @image.save + end + else + @file_name = image['temp_file'].original_filename.gsub('(','_').gsub(')','_').gsub(' ','_') rescue next + @headimages = Headimages.new(:cancerpredictfields_id => @form_to_show.id,:title => @app_title+'title_images' ) + @headimages.temp_file = image['temp_file'] + @headimages.sort_number = image['sort_number'].to_i if !image['sort_number'].nil? + @headimages.save + @form_to_show.title_images_id.push @headimages.id + end + end + end + @delete_index.reverse! + @delete_index.each do |i| + @image_id = @title_images_id[i.to_i] + Headimages.find_by(:id => @image_id ).destroy rescue next + @form_to_show.title_images_id.delete(@image_id) + end + @form_to_show.save + end + @index = 0 + Dir.chdir("public") do + while File.exist?('cancerfield_back'+@index.to_s+'.txt') + @index += 1 + end + end + Dir.chdir("public") do + @file_back = File.open('cancerfield_back'+@index.to_s+'.txt', 'w') + @file_back.write(@form_to_show.attributes) + @file_back.close + @file_org = File.open('cancerfield_org'+@index.to_s+'.txt', 'w') + @file_org.write(Cancerpredictfields.where("title"=>@app_title+'_back').first.attributes) + @file_org.close + end + redirect_to admin_cancerpredicts_path + end + def showSubmit + @results = Cancerpredictrecord.where("title"=>@app_title).take_while{true} + @variables = [] + @names = [] + @form_to_show.form_show.each do |num,property| + property.each do |key,value| + if key == "variable" + @variables.push value + elsif key == "name" + @names.push value[I18n.locale.to_s] + end + end + end + @result_variables = [] + @result_names = [] + @indexs=[] + @results[0].result.each{|key,value| @result_variables.push key} rescue nil + @result_variables.each do |variable| + @index = @variables.index(variable.to_s) + @result_names.push @names[@index] if !@index.nil? + @indexs.push @index if !@index.nil? + end + @choicenames=[] + @indexs.each do |index| + if @form_to_show.form_show[index.to_s]["is_num"] == 1 || @form_to_show.form_show[index.to_s]["is_float"] == 1 + @choicenames.push "" + else + @choicenames.push @form_to_show.form_show[index.to_s]["choice_fields"][I18n.locale.to_s] + end + end + end + def create_first_field + if Cancerpredictfields.where("title"=>(@app_title + "_back")).take_while{true}.count == 0 + @form_to_show = Cancerpredictfields.new() + @form_to_show.title = @app_title +"_back" + @form_to_show.save + end + @form_to_show + if Cancerpredictfields.where("title"=>@app_title).take_while{true}.count == 0 + @form_to_show = Cancerpredictfields.new() + @form_to_show.title=@app_title + @form_to_show.save + @form_to_show = Cancerpredictfields.where("title"=>@app_title).first + else + @form_to_show = Cancerpredictfields.where("title"=>@app_title).first + end end end \ No newline at end of file diff --git a/app/controllers/cancerpredict_controller.rb b/app/controllers/cancerpredict_controller.rb deleted file mode 100644 index d1eec6f..0000000 --- a/app/controllers/cancerpredict_controller.rb +++ /dev/null @@ -1,24 +0,0 @@ -# encoding: utf-8 -require 'rubyXL' -class CancerpredictsController < ApplicationController - before_filter :set_I18n - before_action ->(module_app = @app_title) { set_variables module_app } - #before_action :load_access_levels - def initialize - super - @app_title = "cancerpredict" - end - - def index - @tags = @module_app.tags - @categories = @module_app.categories.enabled - @filter_fields = filter_fields(@categories, @tags) - @table_fields = [:status, :category, :title, :start_date, :end_date, :last_modified] - if request.xhr? - render :partial => "index" - end - end - def set_I18n - I18n.locale = params[:lang] if params[:lang].present? - end -end \ No newline at end of file diff --git a/app/controllers/cancerpredicts_controller.rb b/app/controllers/cancerpredicts_controller.rb index 0812c49..7995a21 100644 --- a/app/controllers/cancerpredicts_controller.rb +++ b/app/controllers/cancerpredicts_controller.rb @@ -1,27 +1,463 @@ # encoding: utf-8 require 'rubyXL' class CancerpredictsController < ApplicationController - before_filter :set_I18n - before_action ->(module_app = @app_title) { set_variables module_app } - #before_action :load_access_levels def initialize super @app_title = "cancerpredict" end - + def calculate + uid = OrbitHelper.params[:uid] rescue "" + tags = OrbitHelper.widget_tags + categories = OrbitHelper.widget_categories || [] + create_first_field + #begin + if params['header'].to_i == 1 + locale = params['locale'].to_s rescue 'zh_tw' + locale = 'zh_tw' if locale == 'zh_cn' + result = {} + @head_images = {} + @form_to_show.head_images_id.each do |image_id| + next if image_id.to_s == "" + @image = Headimages.find_by(:id=>image_id.to_s) + @url = @image.temp_file.to_s + @head_images[@image.sort_number.to_i] = ('') + end + result['head_images'] = Hash[@head_images.sort].values.join('') + @head_images = {} + @form_to_show.title_images_id.each do |image_id| + next if image_id.to_s == "" + @image = Headimages.find_by(:id=>image_id.to_s) + @url = @image.temp_file.to_s + @head_images[@image.sort_number.to_i] = ('') + end + result['danger_texts'] = (@form_to_show.danger_texts[locale] rescue '') + result['title'] = Hash[@head_images.sort].values.join('') + result['page_title'] = @form_to_show.title_texts[params[:locale]] + else + @record = Cancerpredictrecord.new + @record.title = @app_title + @choice_keys = [] + @choice_values = [] + @choice_names = [] + @form_to_show.form_show.values.each{|choice| @choice_keys.push choice[:variable]} + @form_to_show.form_show.values.each{|choice| @choice_values.push choice[:choice_fields]} + @form_to_show.form_show.values.each{|choice| @choice_names.push choice[:name]} + @choice_keys.each_with_index{|key,i| @record.names[key] = @choice_names[i]} + @choice_keys.each_with_index{|key,i| @record.values[key] = @choice_values[i]} + params['data'].each do |rec_key,rec_value| + @record.result[rec_key] = rec_value + end + @record.submit_time = Time.now.to_s + @record.save + locale = params['data']['locale'].to_s rescue 'zh_tw' + locale = 'zh_tw' if locale == 'zh_cn' + result = {} + result['age1'] = (params['data']['age'].to_f/100)**(0.5) + result['age2'] = ((params['data']['age'].to_f/100)**(0.5))*Math.log(params['data']['age'].to_f/100,Math.exp(1)) + result['size1'] = Math.log(params['data']['size'].to_f/10,Math.exp(1)) + if params['data']['lymph_nodes_examined'].to_i != 0 + result['ratio'] = params['data']['lymph_nodes_positive'].to_f/params['data']['lymph_nodes_examined'].to_f rescue 0 + else + result['ratio'] = 0 + end + result['ratio'] = 1 if result['ratio'] > 1 + result['nposit'] = ((result['ratio'].to_f+0.1)/0.1)**0.5 + @T = '' + if params['data']['tumor_direct_extension'].to_i != 1 + if params['data']['size'].to_i <= 20 + @T = 'T1' + elsif params['data']['size'].to_i > 20 && params['data']['size'].to_i <= 50 + @T = 'T2' + elsif params['data']['size'].to_i > 50 + @T = 'T3' + end + else + @T = 'T4' + end + result['T'] = @T + @N = '' + if params['data']['lymph_nodes_positive'].to_i == 0 + @N = 'N0' + elsif params['data']['lymph_nodes_positive'].to_i >= 1 && params['data']['lymph_nodes_positive'].to_i <= 3 && params['data']['micrometastasis'].to_i != 1 + @N = 'N1' + elsif params['data']['lymph_nodes_positive'].to_i >= 1 && params['data']['lymph_nodes_positive'].to_i <= 3 && params['data']['micrometastasis'].to_i == 1 + @N = 'N1mi' + elsif params['data']['lymph_nodes_positive'].to_i >= 4 && params['data']['lymph_nodes_positive'].to_i <= 9 + @N = 'N2' + elsif params['data']['lymph_nodes_positive'].to_i >= 10 + @N = 'N3' + end + result['N'] = @N + @M = '' + if params['data']['Distant_Metastasis'].to_i != 1 + @M = 'M0' + else + @M = 'M1' + end + result['M'] = @M + if @M == 'M0' + if @T == 'T1' && (@N == 'N0' || @N == 'N1mi') + result['pstage'] = 1 + elsif ((@T == 'T2' || @T == 'T3') && (@N == 'N0')) || ((@T == 'T1' || @T == 'T2') && (@N == 'N1')) + result['pstage'] = 2 + elsif (@T == 'T4' && @N == 'N0') || ((@T == 'T3' || @T == 'T4') && @N == 'N1') || (@N == 'N2' || @N == 'N3') + result['pstage'] = 3 + end + else + result['pstage'] = 4 + end + if (params['data']['ER_status'].to_i != 2 || params['data']['PR_status'].to_i != 2) && (params['data']['HER2_status'].to_i != 1) + result['subtype'] = 1 + elsif params['data']['ER_status'].to_i == 2 && params['data']['PR_status'].to_i == 2 && (params['data']['HER2_status'].to_i == 1) + result['subtype'] = 2 + elsif params['data']['ER_status'].to_i == 2 && params['data']['PR_status'].to_i == 2 && (params['data']['HER2_status'].to_i != 1) + result['subtype'] = 3 + end + if params['data']['grade'].to_i == 2 || params['data']['grade'].to_i == 4 + result['grade_2'] = 1 + else + result['grade_2'] = 0 + end + if params['data']['grade'].to_i == 3 + result['grade_3'] = 1 + else + result['grade_3'] = 0 + end + if result['subtype'].to_i == 2 + result['subtype_HER2'] = 1 + else + result['subtype_HER2'] = 0 + end + if result['subtype'].to_i == 3 + result['subtype_triple'] = 1 + else + result['subtype_triple'] = 0 + end + if result['pstage'].to_i == 2 + result['pstage_2'] = 1 + else + result['pstage_2'] = 0 + end + if result['pstage'].to_i == 3 + result['pstage_3'] = 1 + else + result['pstage_3'] = 0 + end + if result['pstage'].to_i == 4 + result['pstage_4'] = 1 + else + result['pstage_4'] = 0 + end + if params['data']['lvi'].to_i == 1 + result['lvi_yes'] = 1 + else + result['lvi_yes'] = 0 + end + result['lpv'] = ((result['age1']-0.7276655)*(-10.87)+(result['age2']+0.4540707)*8.968+(result['size1']-0.643632)*0.7678+(result['nposit']-1.346932)*0.5339+ + result['grade_2']*0.4795+result['grade_3']*0.818+result['subtype_HER2']*0.1806+result['subtype_triple']*0.6457+result['pstage_2']*0.5311+ + result['pstage_3']*1.134+result['pstage_4']*2.172+result['lvi_yes']*0.3321-0.04 rescue 'error') + @years = @form_to_show.years + result['table'] = '

'+@form_to_show.table_above_texts[locale]+'

' + result['table'] += '' + result['years'] = @years + @years.each{|year| result['table'] += ('')} + result['table'] += '' + @table_head = (locale == "zh_tw") ? ['治療','額外治療效益','總生存率(%)'] :['Treatment','Additional Benefit','Overall Survival(%)'] + @head_name = ['Treatment','Additional_Benefit','Overall_Survival'] + @therapy_choices = (locale == "zh_tw") ? ['純手術'] :['Surgery only'] + @form_to_show.form_show_in_result.values.each{|choice| @therapy_choices.push choice["name"][locale]} + @therapy_names = ['Surgery_only'] + @form_to_show.form_show_in_result.values.each{|choice| @therapy_names.push choice["variable"]} + result['treatmeny_method'] = @therapy_names + result['table'] += '' + @table_head.each_with_index{|head,index| result['table'] += ('')} + result['table'] += '' + @therapy_choices.each_with_index do |choice,i| + result['table'] += '' + @table_head.each_with_index do |head,index| + result['table'] += ('') + end + result['table'] += '' + end + @texts = @form_to_show.text_above_texts[locale].gsub('
','
') + @texts = @texts.split('{{years}}') + @texts.delete('') + result['texts'] = ''+@texts[0] + @years.each{|year| result['texts'] += ('')} + if @texts.count > 1 + result['texts'] += (@texts[1]+'') if @texts.count > 1 + else + result['texts'] += '' + end + @lpv_calc = [-0.001476145,-0.01261639,-0.02519608] + @servive_ratio = ((Math.exp(@lpv_calc[-1])**(Math.exp(result['lpv'])))*100).round + @surgery_only_texts = @form_to_show.surgery_only_texts[locale] + @surgery_only_texts.insert(0,'

') + @surgery_only_texts = @surgery_only_texts.gsub('{{Surgery_only}}',''+@servive_ratio.round.to_s+'') + @surgery_only_texts = @surgery_only_texts.gsub('{{surgery_year}}',''+@years[-1].to_s+'') + @surgery_only_texts += '' + result['texts'] += @surgery_only_texts + result['texts'] += ''+@form_to_show.extra_texts[locale]+'

' + result['extra_therapy_texts'] = @form_to_show.extra_therapy_texts[locale] rescue @form_to_show.extra_therapy_texts['zh_tw'] + result['servive_ratio'] = @servive_ratio + end + result = result.merge(params) + render :json=> result +# rescue + # render :json=> params + #end + end def index uid = OrbitHelper.params[:uid] rescue "" tags = OrbitHelper.widget_tags categories = OrbitHelper.widget_categories || [] - locale = OrbitHelper.get_site_locale.to_s + create_first_field + @size = {} + @size_name = ['small','medium','large'] + @size_name.each{|name| @size[name] = @form_to_show[name]['font_size']} + @size_active_size = '' + @size.each{|size_key,size_value| (@form_to_show[size_key]['active'].to_i == 1) ? ( @size_active_size = size_value ): nil } + @table_str = '
' + @table_str += '
'+@form_to_show.text_descibe[I18n.locale.to_s] +'
' + @table_str += '
'+'' + @size.each{|size_key,size_value| @table_str += ('' )} + @table_str += '
' + @table_str_left = '
' + @table_str_right = '
' + @form_to_show.form_show.each do |num,property| + @field_property = {} + property.each do |key,value| + @value= value + if @value.class == BSON::Document || @value.class == Hash + @disp_value = @value[I18n.locale.to_s] rescue "" + else + @disp_value = @value + end + @field_property[key] = @disp_value + end + if @field_property['right'] == 0 + @table_str_left += '
' + break if @field_property["name"] == "" + @table_str_left += '' + if @field_property["comment_text"] != "" + @table_str_left += '' + @table_str_left += '' + else + @site_locales = current_site.in_use_locales + @site_locales.delete(I18n.locale) + @site_locales.each do |locale| + next if property["comment_text"][locale.to_s] == "" + @field_property["comment_text"] = property["comment_text"][locale.to_s] + break + end + if @field_property["comment_text"] != "" + @table_str_left += '' + @table_str_left += '' + else + @table_str_left += '
' + end + end + if @field_property["is_num"] == 1 + if @field_property["is_float"] == 1 + @table_str_left += '
' + else + @table_str_left += '
' + @table_str_left += '' + @table_str_left += '' + @please_choice = (I18n.locale.to_s == "zh_tw") ? "請選擇" : "Please choice" + @table_str_left += '
' + end + else + @table_str_left += '
' + @field_property["choice_fields"].each do |create_choice| + @table_str_left += '' + @table_str_left += '' + end + @table_str_left += '
' + end + if @field_property["hint"].to_s != "" + @table_str_left +='
'+@field_property["hint"]+'
' + end + @table_str_left += '
' + else + @table_str_right += '
' + break if @field_property["name"] == "" + @table_str_right += '' + if @field_property["comment_text"] != "" + @table_str_right += '' + @table_str_right += '' + else + @site_locales = current_site.in_use_locales + @site_locales.delete(I18n.locale) + @site_locales.each do |locale| + next if property["comment_text"][locale.to_s] == "" + @field_property["comment_text"] = property["comment_text"][locale.to_s] + break + end + if @field_property["comment_text"] != "" + @table_str_right += '' + @table_str_right += '' + else + @table_str_right += '
' + end + end + if @field_property["is_num"] == 1 + if @field_property["is_float"] == 1 + @table_str_right += '
' + else + @table_str_right += '
' + @table_str_right += '' + @table_str_right += '' + @please_choice = (I18n.locale.to_s == "zh_tw") ? "請選擇" : "Please choice" + @table_str_right += '
' + end + else + @table_str_right += '
' + @field_property["choice_fields"].each do |create_choice| + @table_str_right += '' + @table_str_right += '' + end + @table_str_right += '
' + end + if @field_property["hint"].to_s != "" + @table_str_right +='
'+@field_property["hint"]+'
' + end + @table_str_right += '
' + end + end + @table_str_left += '
' + @table_str_right += '
' + @table_str += (@table_str_left+@table_str_right) + @table_str +='
' + @table_result_str = '
'+t("cancerpredict.table.result").to_s+'
' + @tab_name = ['table','text'] + @table_result_str += '
' + @tab_name.each_with_index{|name,index| @table_result_str += ('
')} + @table_result_str += '
' + @tab_name.each{|name| @table_result_str += ''} + @table_result_str += '
' + @table_button = '
' + @submit_btn_str='' + @reset_btn_str='' + @table_button += (@submit_btn_str+@reset_btn_str+'
') + @table_result_choice_fileds = '
' if @form_to_show.form_result_is_right == 1 + @table_result_choice_fileds = '
' if @form_to_show.form_result_is_right == 0 + @table_result_choice_fileds += ''+t('cancerpredict.table.Therapy_choice').to_s+'
' + @table_result_choice_fileds += '
' + @form_to_show.form_show_in_result.each do |num,property| + @field_property = {} + property.each do |key,value| + @value= value + if @value.class == BSON::Document || @value.class == Hash + @disp_value = @value[I18n.locale.to_s] rescue "" + else + @disp_value = @value + end + @field_property[key] = @disp_value + end + @table_result_choice_fileds += '
' + break if @field_property["name"] == "" + @table_result_choice_fileds += '' + if @field_property["comment_text"] != "" + @table_result_choice_fileds += '' + @table_result_choice_fileds += '' + else + @site_locales = current_site.in_use_locales + @site_locales.delete(I18n.locale) + @site_locales.each do |locale| + next if property["comment_text"][locale.to_s] == "" + @field_property["comment_text"] = property["comment_text"][locale.to_s] + break + end + if @field_property["comment_text"] != "" + @table_result_choice_fileds += '' + @table_result_choice_fileds += '' + else + @table_result_choice_fileds += '
' + end + end + if @field_property["is_num"] == 1 + if @field_property["is_float"] == 1 + @table_result_choice_fileds += '
' + else + @table_result_choice_fileds += '
' + @table_result_choice_fileds += '
' + @table_str_left += '' + @please_choice = (I18n.locale.to_s == "zh_tw") ? "請選擇" : "Please choice" + @table_result_choice_fileds += '
' + end + else + @table_result_choice_fileds += '
' + @field_property["choice_fields"].each do |create_choice| + @table_result_choice_fileds += '' + @table_result_choice_fileds += '' + end + @table_result_choice_fileds += '
' + end + if @field_property["hint"].to_s != "" + @table_result_choice_fileds +='
'+@field_property["hint"]+'
' + end + @table_result_choice_fileds += '
' + end + @table_result_choice_fileds += '
' + @table_str += (@table_button+'
'+@table_result_str+@table_result_choice_fileds+'
'+'
') + { + "cancerpredict" => [], + "extras"=>{"table"=> @table_str} + } end def widget uid = OrbitHelper.params[:uid] rescue "" tags = OrbitHelper.widget_tags categories = OrbitHelper.widget_categories || [] - locale = OrbitHelper.get_site_locale.to_s end - def set_I18n - I18n.locale = params[:lang] if params[:lang].present? + def create_first_field + if Cancerpredictfields.where("title"=>(@app_title + "_back")).take_while{true}.count == 0 + @form_to_show = Cancerpredictfields.new() + @form_to_show.title = @app_title +"_back" + @form_to_show.save + end + @form_to_show + if Cancerpredictfields.where("title"=>@app_title).take_while{true}.count == 0 + @form_to_show = Cancerpredictfields.new() + @form_to_show.title=@app_title + @form_to_show.save + @form_to_show = Cancerpredictfields.where("title"=>@app_title).first + else + @form_to_show = Cancerpredictfields.where("title"=>@app_title).first + end end end \ No newline at end of file diff --git a/app/models/cancerpredictfields.rb b/app/models/cancerpredictfields.rb index 00fc1d7..e675a0b 100644 --- a/app/models/cancerpredictfields.rb +++ b/app/models/cancerpredictfields.rb @@ -6,30 +6,44 @@ class Cancerpredictfields # encoding: utf-8 include OrbitTag::Taggable include OrbitCategory::Categorizable - field :font_array , :type => Hash, default:{} - field :new_add_font, type: String, default:"" - field :delete_font, type: String, default:"" - field :used_font , :type => Array, default:[] - field :un_used_font , :type => Array, default:[] field :title ,type:String ,default:"" - field :subtitle, localize: true - field :text, localize: true -# before_destroy :destroy_email + field :form_show , :type=> Hash ,default:{0=>{:variable=>"age",:name=>{"zh_tw"=>"年齡
(Age)","en"=>"Age"},:is_num=>1, :hint=>{'zh_tw'=>'從 18 歲(含)開始至 93 歲','en'=>'Age must be between 18 and 93'} , :comment_text=>{'zh_tw'=>'年齡為該婦女於確診罹患乳癌時之年齡','en'=>'Age at diagnosis'}, :choice_fields=> {"zh_tw"=>[],"en"=>[]},:range=>[18,93],:right=>0,:is_float=>0}, + 1=>{:variable=>"size",:name=>{"zh_tw"=>"腫瘤大小
(Tumor size)","en"=>"Tumor size"},:is_num=>1,:hint=>{'zh_tw'=>'','en'=>'The unit of tumor size is millimeter (mm)'}, :comment_text=>{'zh_tw'=>'若有多個原發腫瘤,請輸入最大尺寸之原發腫瘤','en'=>'If there was more than one primary tumor, please enter the size of the largest one.'}, :choice_fields=> {"zh_tw"=>[],"en"=>[]},:range=>[1,230],:right=>0,:is_float=>0}, + 2=>{:variable=>"lymph_nodes_examined",:name=>{"zh_tw"=>"區域淋巴結檢查數目
(Regional lymph nodes examined)","en"=>"Regional lymph nodes examined"},:is_num=>1,:hint=>{'zh_tw'=>'','en'=>''}, :comment_text=>{'zh_tw'=>'','en'=>''}, :choice_fields=> {"zh_tw"=>['未知'],"en"=>['unknown']},:range=>[0,90],:right=>0,:is_float=>0}, + 3=>{:variable=>"lymph_nodes_positive",:name=>{"zh_tw"=>"區域淋巴結侵犯數目
(Regional lymph nodes positive)","en"=>"Regional lymph nodes positive"},:is_num=>1,:hint=>{'zh_tw'=>'','en'=>''}, :comment_text=>{'zh_tw'=>'此變項為預測重要變數,若無此資訊預測容易失真。','en'=>'Regional lymph nodes positive is a key predictive variable. If this information is omitted, the prediction result would be biased.'}, :choice_fields=> {"zh_tw"=>['未知'],"en"=>['unknown']},:range=>[0,90],:right=>0,:is_float=>0}, + 4=>{:variable=>"grade",:name=>{"zh_tw"=>"腫瘤分化程度
(Tumor grade)","en"=>"Tumor grade"},:is_num=>0,:hint=>{'zh_tw'=>'','en'=>''}, :comment_text=>{'zh_tw'=>'腫瘤級數代表腫瘤組織與正常組織間的分化程度,若無分化級數資訊,請選擇“未知”選項,將以級數 2 進行預測。','en'=>'The grade refers to how different the cancer cells are from normal cells. Please select “unknown” if there is no information about grade. The prediction model would use “grade 2” as the alternative variable.'}, :choice_fields=> {"zh_tw"=>['1','2','3','未知'],"en"=>['1','2','3','unknown']},:range=>[],:right=>0,:is_float=>0}, + 5=>{:variable=>"ER_status",:name=>{"zh_tw"=>"ER 狀態
(ER status)","en"=>"ER status"},:is_num=>0,:hint=>{'zh_tw'=>'','en'=>''}, :comment_text=>{'zh_tw'=>'ER:雌激素受體,若無 ER 資訊請選擇未知,將以佔多數比例陽性作為後續預測。','en'=>'ER status describes the status of estrogen receptor. Please select “unknown” if there is no information about ER status. The prediction model would use “Positive” (the majority class) as the alternative variable.'}, :choice_fields=> {"zh_tw"=>['陽性','陰性','未知'],"en"=>['positive','negative','unknown']},:range=>[],:right=>0,:is_float=>0}, + 6=>{:variable=>"PR_status",:name=>{"zh_tw"=>"PR 狀態
(PR status)","en"=>"PR status"},:is_num=>0,:hint=>{'zh_tw'=>'','en'=>''}, :comment_text=>{'zh_tw'=>'PR:黃體素受體,若無 PR 資訊請選擇未知,將以佔多數比例陽性作為後續預測。','en'=>'PR status describes the status of progesterone receptor. Please select “unknown” if there is no information about PR status. The prediction model would use “Positive” (the majority class) as the alternative variable.'}, :choice_fields=> {"zh_tw"=>['陽性','陰性','未知'],"en"=>['positive','negative','unknown']},:range=>[],:right=>1,:is_float=>0}, + 7=>{:variable=>"HER2_status",:name=>{"zh_tw"=>"HER2 狀態
(HER2 status)","en"=>"HER2 status"},:is_num=>0,:hint=>{'zh_tw'=>'','en'=>''}, :comment_text=>{'zh_tw'=>'HER2:第二型人類上皮成長因子接受器蛋白,若無 HER2 資訊請選擇未知,將以佔多數比例陰性作為後續預測。','en'=>'HER2 status describes the status of human epidermal growth factor receptor 2. Please select “unknown” if there is no information about HER2 status. The prediction model would use “Negative” (the majority class) as the alternative variable.'}, :choice_fields=> {"zh_tw"=>['陽性','陰性','未知'],"en"=>['positive','negative','unknown']},:range=>[],:right=>1,:is_float=>0}, + 8=>{:variable=>"Distant_Metastasis",:name=>{"zh_tw"=>"遠端轉移
(Distant Metastasis)","en"=>"Distant Metastasis"},:is_num=>0,:hint=>{'zh_tw'=>'','en'=>''}, :comment_text=>{'zh_tw'=>'若無遠轉移資訊請選擇未知,將以佔多數比例未遠端轉移作為後續預測。','en'=>'Please select “unknown” if there is no information about distant Metastasis. The prediction model would use “No” (the majority class) as the alternative variable.'}, :choice_fields=> {"zh_tw"=>['是','否','未知'],"en"=>['yes','no','unknown']},:range=>[],:right=>1,:is_float=>0}, + 9=>{:variable=>"micrometastasis",:name=>{"zh_tw"=>"淋巴結顯微轉移
(Lymph nodes micrometastasis)","en"=>"Micrometastasis"},:is_num=>0,:hint=>{'zh_tw'=>'','en'=>''}, :comment_text=>{'zh_tw'=>'若無顯微移資訊請選擇未知,將以無顯微轉移作為後續預測。','en'=>'Please select “unknown” if there is no information about lymph nodes micrometastasis. The prediction model would use “No” as the alternative variable.'}, :choice_fields=> {"zh_tw"=>['是','否','未知'],"en"=>['yes','no','unknown']},:range=>[],:right=>1,:is_float=>0}, + 10=>{:variable=>"tumor_direct_extension",:name=>{"zh_tw"=>"腫瘤浸潤至胸壁和/或皮膚
(Tumor direct extension to the chest wall and/or to the skin)","en"=>"Tumor direct extension to the chest wall and/or to the skin"},:is_num=>0,:hint=>{'zh_tw'=>'','en'=>''}, :comment_text=>{'zh_tw'=>'若無腫瘤浸潤至胸壁或皮膚資訊請選擇未知,將以佔多數比例無腫瘤浸潤至胸壁作為後續預測。','en'=>'Please select “unknown” if there is no information about tumor direct extension to the chest wall and/or to the skin. The prediction model would use “No” (the majority class) as the alternative variable'}, :choice_fields=> {"zh_tw"=>['是','否','未知'],"en"=>['yes','no','unknown']},:range=>[],:right=>1,:is_float=>0}, + 11=>{:variable=>"lvi",:name=>{"zh_tw"=>"淋巴管或血管侵犯
(Lymph vessel or vascular invasion, LVI)","en"=>"Lymph vessel or vascular invasion, LVI"},:is_num=>0,:hint=>{'zh_tw'=>'','en'=>'Lymph vessel or vascular invasion'}, :comment_text=>{'zh_tw'=>'若無淋巴管或血管侵犯資訊,請選擇“未知”選項,將以佔多數比例的淋巴管或血管未侵犯進行預測','en'=>'Please select “unknown” if there is no information about Lymph vessel or vascular invasion. The prediction model would use “No” (the majority class) as the alternative variable.'}, :choice_fields=> {"zh_tw"=>['是','否','未知'],"en"=>['yes','no','unknown']},:range=>[],:right=>1,:is_float=>0} + } + field :form_show_in_result , :type=> Hash ,default:{0=>{:variable=>"hormone_therapy",:name=>{"zh_tw"=>"賀爾蒙治療","en"=>"Hormone/Steroid therapy"},:is_num=>0, :hint=>{'zh_tw'=>'適用賀爾蒙受體陽性病人','en'=>'Hormone/ steroid therapy is available when ER status is positive'} , :comment_text=>{'zh_tw'=>'','en'=>''}, :choice_fields=> {"zh_tw"=>['否','是'],"en"=>['No','Yes']},:range=>[]}, + 1=>{:variable=>"Chemotherapy",:name=>{"zh_tw"=>"化學治療","en"=>"Chemotherapy"},:is_num=>0,:hint=>{'zh_tw'=>'','en'=>''}, :comment_text=>{'zh_tw'=>'','en'=>''}, :choice_fields=> {"zh_tw"=>['否','是'],"en"=>['No','Yes']},:range=>[]}, + 2=>{:variable=>"Radiotherapy",:name=>{"zh_tw"=>"放射治療","en"=>"Radiotherapy"},:is_num=>0,:hint=>{'zh_tw'=>'','en'=>''}, :comment_text=>{'zh_tw'=>'','en'=>''}, :choice_fields=> {"zh_tw"=>['否','是'],"en"=>['No','Yes']},:range=>[]}, + 3=>{:variable=>"Targeted_therapy",:name=>{"zh_tw"=>"標靶治療","en"=>"Targeted therapy"},:is_num=>0,:hint=>{'zh_tw'=>'抗HER2治療','en'=>''}, :comment_text=>{'zh_tw'=>'','en'=>''}, :choice_fields=> {"zh_tw"=>['否','是'],"en"=>['No','Yes']},:range=>[]} + } + field :form_result_is_right , :type=> Integer ,default: 0 + field :text_descibe ,type:Hash ,default:{"zh_tw"=>"歡迎使用台灣準備乳癌預後系統!
本預測系統由台灣癌症登記資料庫2011至2015年間共90,841位乳癌病人所建立
若要開始 請在下方輸入相關資訊","en"=>"Welcome to the Taiwan Breast Cancer Prediction System!
The prediction system is constructed using 90,841 breast cancer patients’ clinical data from the Taiwan Cancer Registry database between 2011 and 2015, and validated by using 49,374 breast cancer patients’ clinical data from the US-based Surveillance, Epidemiology, and End Results (SEER) database.
To start, please enter the information below."} + field :small ,type:Hash ,default:{'font_size'=>"0.825em",'active'=>0} + field :medium ,type:Hash ,default:{'font_size'=>"1em",'active'=>1} + field :large ,type:Hash ,default:{'font_size'=>"1.25em",'active'=>0} + field :head_images_id ,type:Array , default: [BSON::ObjectId('5df62cfc8cd8924e79000009'), BSON::ObjectId('5df745a58cd8924491000006'), BSON::ObjectId('5df745a58cd8924491000007'), BSON::ObjectId('5df745a58cd8924491000008'), BSON::ObjectId('5df745a58cd8924491000009')] + field :title_images_id ,type:Array , default: [BSON::ObjectId('5df87cd88cd8924491000036')] + field :title_texts ,type:Hash ,default:{'zh_tw'=>'華人癌症存活預測','en'=>'Asian breast cancer prediction'} + field :table_above_texts ,type:Hash ,default:{'zh_tw'=>"下表之分析為針對手術後病人,根據選定的術後治療,分別估計在第1年、3及5年的存活率。",'en'=>'The analysis is for women who had undergone surgery.The table shows the 1-, 3- and 5-year survival rates,based on the treatment you have selected.'} + field :text_above_texts ,type:Hash ,default:{'zh_tw'=>"此研究分析來自已接受根除性手術後之婦女所得之結果,根據您所輸入的資訊以及治療方式,在術後第{{years}}年,",'en'=>'The analysis is for women who had undergone surgery. Base on the information and the treatment you have selected, the predictions of survival status{{years}}'} + field :surgery_only_texts ,type:Hash ,default:{'zh_tw'=>'100 位只接受根除性手術的婦女中,有{{Surgery_only}}位婦女,術後{{surgery_year}}年仍為存活','en'=>'after surgery are as follows:
{{Surgery_only}} out of 100 women treated with surgery only are alive at {{surgery_year}} years.'} + field :extra_texts ,type:Hash ,default:{'zh_tw'=>',此外','en'=>''} + field :extra_therapy_texts ,type:Hash ,default:{'zh_tw'=>'100 位在術後有接受{{extra_therapy}}的婦女中,有{{survival_num}}位婦女,術後{{surgery_year}}年仍為存活(多了{{Additional_Benefit}}位)','en'=>'{{survival_num}} out of 100 women treated with {{extra_therapy}} are alive (an extra {{Additional_Benefit}})'} + field :danger_texts ,type:Hash ,default:{'zh_tw'=>'請注意紅框的輸入資料是否符合要求!','en'=>'Please check whether input data in red blocks are correct!'} + field :years ,type:Array ,default:[1,3,5] + #field :image_uploader ,type:Object scope :can_display, ->{where(:is_hidden=>false,:is_preview => false).any_of({:postdate.lt=>Time.now, :deadline.gt=>Time.now},{:postdate.lt=>Time.now, :deadline=>nil}).order_by([:is_top, :desc],[:postdate, :desc])} scope :is_approved, ->{where(:approved => true)} - before_create :delete_empty_font ,:get_font_to_store,:set_un_used_font , :set_used_font - before_update :delete_empty_font ,:get_font_to_store,:set_un_used_font , :set_used_font - before_save :delete_empty_font ,:get_font_to_store,:set_un_used_font , :set_used_font - after_update :set_config - after_save :set_config #before_create :set_expire - def delete_empty_font - self.font_array.each do |font,istrue| - if font.strip == "" - self.font_array.delete(font) - end - end - end def update_user User.find(update_user_id) rescue nil end diff --git a/app/models/cancerpredictrecord.rb b/app/models/cancerpredictrecord.rb new file mode 100644 index 0000000..a073234 --- /dev/null +++ b/app/models/cancerpredictrecord.rb @@ -0,0 +1,21 @@ +class Cancerpredictrecord + include Mongoid::Document + include Mongoid::Timestamps + include OrbitModel::Status + include OrbitModel::Impression + # encoding: utf-8 + include OrbitTag::Taggable + include OrbitCategory::Categorizable + field :title ,type:String ,default:"" + field :submit_time ,type:String ,default:"" + field :result , type:Hash , default:{} + field :names , type:Hash , default:{} + field :values , type:Hash , default:{} + field :submit_numbers , type:Fixnum , default: 1 + scope :can_display, ->{where(:is_hidden=>false,:is_preview => false).any_of({:postdate.lt=>Time.now, :deadline.gt=>Time.now},{:postdate.lt=>Time.now, :deadline=>nil}).order_by([:is_top, :desc],[:postdate, :desc])} + scope :is_approved, ->{where(:approved => true)} + before_save :set_submit_times + def set_submit_times + self.submit_time = Cancerpredictrecord.where(:title=> "cancerpredict").length + 1 + end +end \ No newline at end of file diff --git a/app/models/head_images_uploader.rb b/app/models/head_images_uploader.rb new file mode 100644 index 0000000..c79e018 --- /dev/null +++ b/app/models/head_images_uploader.rb @@ -0,0 +1,33 @@ +# encoding: utf-8 +require 'carrierwave/processing/mime_types' + +class HeadImagesUploader < CarrierWave::Uploader::Base + + include CarrierWave::MimeTypes + + process :set_content_type + + # Include RMagick or ImageScience support: + # include CarrierWave::RMagick + # include CarrierWave::ImageScience + + # Choose what kind of storage to use for this uploader: + # storage :file + # storage :s3 + + # Override the directory where uploaded files will be stored. + # This is a sensible default for uploaders that are meant to be mounted: + def store_dir + return "uploads/#{model.class.to_s.underscore}/predict_tool" + end + + # override + def filename + @original_filename + end + + def cache_dir + "#{Rails.root}/tmp/uploads" + end + +end diff --git a/app/models/headimages.rb b/app/models/headimages.rb new file mode 100644 index 0000000..c84c073 --- /dev/null +++ b/app/models/headimages.rb @@ -0,0 +1,13 @@ +class Headimages + include Mongoid::Document + include Mongoid::Timestamps + include OrbitModel::Status + include OrbitModel::Impression + # encoding: utf-8 + include OrbitTag::Taggable + include OrbitCategory::Categorizable + mount_uploader :temp_file, HeadImagesUploader + field :cancerpredictfields_id ,type:String ,default:"" + field :title ,type:String ,default:"" + field :sort_number ,type:Integer ,default: 0 +end \ No newline at end of file diff --git a/app/views/admin/cancerpredicts/_image_form.html.erb b/app/views/admin/cancerpredicts/_image_form.html.erb new file mode 100644 index 0000000..b2e379a --- /dev/null +++ b/app/views/admin/cancerpredicts/_image_form.html.erb @@ -0,0 +1,30 @@ +
+
+ +
+ <%= t('cancerpredict.sort_num')+': ' %> + <%= f.text_field 'sort_number',{:class=>'sort_num',:value=>((image_form['sort_number'] == nil) ? i+1 : image_form['sort_number'] ),:style=>'float: left;width: 3em;'} %> + <%= t('cancerpredict.logo')+': ' %> +
+ <% if image_form.temp_file.file.present? %> + <%= image_tag( image_form.temp_file, :size=>"120x120") rescue ''%> + <% else %> + <%= image_tag "/assets/site-logo.png", :class => "pull-left upload-picture"%> + <% end %> +
+
+ <% if image_form.temp_file.file.present?%> + + <%= f.file_field :temp_file, {:id => "input-upload", :class => 'fileupload-new', :accept=> 'image/png,image/gif,image/jpeg'} %><%= t('preferences.change') %> + + <%= f.check_box :remove_image,{:checked=>false} %> + <%= t(:remove) %> <%= (I18n.locale.to_s == 'en') ? ' this logo' : '該logo' %> + <%else%> + + <%= f.file_field :temp_file,{ :id => "input-upload", :class => 'fileupload-new', :accept=> 'image/png,image/gif,image/jpeg'} %><%= t('preferences.select_image') %> + + <%end%> + <%= t(:cancel) %> +
+
+
\ No newline at end of file diff --git a/app/views/admin/cancerpredicts/edit.html.erb b/app/views/admin/cancerpredicts/edit.html.erb new file mode 100644 index 0000000..e69de29 diff --git a/app/views/admin/cancerpredicts/index.html.erb b/app/views/admin/cancerpredicts/index.html.erb index ba06d45..b5afb3c 100644 --- a/app/views/admin/cancerpredicts/index.html.erb +++ b/app/views/admin/cancerpredicts/index.html.erb @@ -1,225 +1,268 @@ +<%= stylesheet_link_tag "lib/fileupload"%> +<%= javascript_include_tag 'lib/bootstrap-fileupload' %>
-<% @i = 0 %> - - -<%=form_for @file_to_show ,:url=>{:controller=>"patchfiles" ,:action=>"edit"} do |file|%> - <%= file.fields_for :file_show do |filefield|%> -
- - <% @file_to_show.file_show.each do |name,property| %> - - <%if property[:status].to_i == 1%> - <%=filefield.check_box name,{:checked=>true,:id=>"checkbox"+@i.to_s,:class=>"checkbox",:style=>"float:left;"}%> - <%else%> - <%=filefield.check_box name,{:checked=>false,:id=>"checkbox"+@i.to_s,:class=>"checkbox",:style=>"float:left;"}%> - <%end%> - -
- <% @i = @i+1 %> - <% @j = 0 %> - <%= file.fields_for :sub_file_fields do |each_files|%> - <%= each_files.fields_for name do |each_file|%> - <% property[:files].each do |file_name,sub_property| %> - <%if sub_property[:status].to_i == 1%> - <%=each_file.check_box file_name,{:checked=>true,:id=>"checkbox"+@i.to_s,:class=>"sub_checkbox",:style=>"float:left;margin-left:1em;",:index=>@j}%> - <%else%> - <%=each_file.check_box file_name,{:checked=>false,:id=>"checkbox"+@i.to_s,:class=>"sub_checkbox",:style=>"float:left;margin-left:1em;",:index=>@j}%> - <%end%> - <% file_name = file_name.gsub("@",".") %> - -
- <% @i = @i+1 %> - <% @j = @j+1 %> +<%=form_for @form_to_show ,:url=>{:controller=>"cancerpredicts" ,:action=>"edit"} do |form|%> + <%= t('cancerpredict.title') %> +
+ + <%=form.fields_for :title_texts do |locale_fields|%> + <%=locale_fields.text_field I18n.locale.to_s ,{:value => @form_to_show.title_texts[I18n.locale.to_s],:id=>"title_text"} %> + <% end %> + <% if @title_images.length != 0%> + <% @title_images.each_with_index do |temp_image,i| %> + <%= form.fields_for "title_images" do |image_fields| %> +
+ <%= image_fields.fields_for i.to_s do |image_field| %> + <%= render :partial => 'image_form', :object => temp_image, :locals => {:f => image_field, :i => i} %> + <% if i.to_i == @title_images.length - 1%> + <% end %> + <% end %> + <% end %> + <% end %> + <% else %> + <%= form.fields_for "title_images" do |image_fields| %> + <%= image_fields.fields_for "0" do |image_field| %> + + <% end %> + <% end %> + <% end %> +
+

+ <%= hidden_field_tag 'title_images_count', @title_images.count %> + <%= t('cancerpredict.add_image') %> +

+ <%= t('cancerpredict.tool_head_pictures') %> +
+ <% if @head_images.length != 0%> + <% @head_images.each_with_index do |temp_image,i| %> + <%= form.fields_for "head_images" do |image_fields| %> +
+ <%= image_fields.fields_for i.to_s do |image_field| %> + <%= render :partial => 'image_form', :object => temp_image, :locals => {:f => image_field, :i => i} %> + <% if i.to_i == @head_images.length - 1%> + + <% end %> + <% end %> + <% end %> + <% end %> + <% else %> + <%= form.fields_for "head_images" do |image_fields| %> + <%= image_fields.fields_for "0" do |image_field| %> + + <% end %> + <% end %> + <% end %> +
+

+ <%= hidden_field_tag 'head_images_count', @head_images.count %> + <%= t('cancerpredict.add_image') %> +

+ <%= t('cancerpredict.text_descibe') %> +
+ <%= form.fields_for 'text_descibe' do |locale_fields|%> + <%= locale_fields.text_field I18n.locale.to_s,{:value=> @form_to_show.text_descibe[I18n.locale.to_s],:style=>'width:100%;'} %> + <%end%> + <%= t('cancerpredict.font_size') %> +
+ <% @size=['small','medium','large'] %> + <% @size.each do |size|%> + <%= form.fields_for size do |make_size| %> +
<%= make_size.text_field 'font_size',{:value=> @form_to_show[size]['font_size'],:id=>'font_'+size} %> + <% if @form_to_show[size]['active'].to_i == 1%> + <%= make_size.check_box 'active',{:checked=>true,:class=>"checkbox text_choice",:style=>"float:left;"}%>
+ <% else%> + <%= make_size.check_box 'active',{:checked=>false,:class=>"checkbox text_choice",:style=>"float:left;"}%>
+ <%end%> + <%end%> + <%end%> + <%= t('cancerpredict.Input_fields') %> +
+
' + head + '
' + ((index == 0) ? (((i==0)? '' : '+') + choice) : '-') + '
+ + + <% @form_to_show.form_show.values[1].each do |key,vlaue|%> + + <%end%> + + + + <%= form.fields_for :form_show do |formfield|%> + <% @form_to_show.form_show.each do |num,property| %> + <%=formfield.fields_for num.to_s do |make_fields|%> + + <% property.each do |key,value|%> + <% @value= value %> + <% if @value.class == BSON::Document || @value.class == Hash %> + <% @disp_value = @value[I18n.locale.to_s] rescue "" %> + <%else%> + <% @disp_value = @value %> + <%end%> + <% if @value.class == Fixnum %> + <% if @value == 1%> + + <% else%> + + <%end%> + <% elsif @value.class == BSON::Document || @value.class == Hash %> + <%=make_fields.fields_for I18n.locale.to_s do |locale_fields|%> + + <%end%> + <% else %> + + <%end%> + <%end%> + <%end%> <%end%> - <%end%> - + +
<%=key%>
<%= make_fields.check_box key,{:checked=>true,:class=>"checkbox",:style=>"float:left;"}%><%= make_fields.check_box key,{:checked=>false,:class=>"checkbox",:style=>"float:left;"}%><%= locale_fields.text_field key,{:value=>@disp_value}%><%= make_fields.text_field key,{:value=>@disp_value}%>
+ <%=t('cancerpredict.table.Results')%> +
+ + <% if @form_to_show.form_result_is_right.to_i == 1%> +
<%= form.check_box "form_result_is_right",{:checked=>true,:class=>"checkbox",:style=>"float: left;position: relative;left: 0;transform: none!important;margin-left: 1em;",:id=>"form_result_is_right"}%>
+ <% else%> +
<%= form.check_box "form_result_is_right",{:checked=>false,:class=>"checkbox",:style=>"float: left;position: relative;left: 0;transform: none!important;margin-left: 1em;",:id=>"form_result_is_right"}%>
<%end%> - <%=file.submit "#{t(:updatefont)}",{:id=>"updatebtn",:onclick=>"return updatefcn()"}%> - <%=file.text_field :recovery_btn, {:id=>"hidden-recovery",:type => "hidden",:value=>"false"} %> - <%=file.text_field :refresh_btn, {:id=>"hidden-refresh",:type => "hidden",:value=>"false"} %> - - - +
+ <% @create_items = ['years','table_above_texts','text_above_texts','surgery_only_texts','extra_texts','extra_therapy_texts','danger_texts'] %> + <% @create_items.each do |item|%> + + <% if @form_to_show[item].class == BSON::Document || @form_to_show[item].class == Hash %> + <%= form.fields_for item do |locale_fields|%> + <%= locale_fields.text_field I18n.locale.to_s,{:value=>@form_to_show[item][I18n.locale.to_s] ,:id=> item} %> + <% end %> + <% else %> + <%= form.text_field item,{:value=>@form_to_show[item],:id=> item} %> + <% end %> +
+ <% end %> + + + + <% @form_to_show.form_show_in_result.values[1].each do |key,vlaue|%> + + <%end%> + + + + <%= form.fields_for :form_show_in_result do |formfield|%> + <% @form_to_show.form_show_in_result.each do |num,property| %> + <%=formfield.fields_for num.to_s do |make_fields|%> + + <% property.each do |key,value|%> + <% @value= value %> + <% if @value.class == BSON::Document || @value.class == Hash %> + <% @disp_value = @value[I18n.locale.to_s] rescue "" %> + <%else%> + <% @disp_value = @value %> + <%end%> + <% if @value.class == Fixnum %> + <% if @value == 1%> + + <% else%> + + <%end%> + <% elsif @value.class == BSON::Document || @value.class == Hash %> + <%=make_fields.fields_for I18n.locale.to_s do |locale_fields|%> + + <%end%> + <% else %> + + <%end%> + <%end%> + + <%end%> + <%end%> + <%end%> + +
<%=key%>
<%= make_fields.check_box key,{:checked=>true,:class=>"checkbox",:style=>"float:left;"}%><%= make_fields.check_box key,{:checked=>false,:class=>"checkbox",:style=>"float:left;"}%><%= locale_fields.text_field key,{:value=>@disp_value}%><%= make_fields.text_field key,{:value=>@disp_value}%>
+ <%=form.submit "#{t(:updatefont)}",{:id=>"updatebtn"}%> <%end%> -網站目錄根路徑:<%=Dir.pwd.to_s%> -
  • - CKEDITOR現有字形 - <% @ckicktosee_str = (I18n.locale.to_s == "en") ? "click me to see all font which CKEDITOR have now" : "點擊我來查看編輯器所有目前擁有的字形" %> - <%= @ckicktosee_str %> -
      - <% @font_array.each do |font|%> -
    • <%= font %>
    • - <%end%> -
    -
  • - - + \ No newline at end of file diff --git a/app/views/admin/cancerpredicts/showSubmit.html.erb b/app/views/admin/cancerpredicts/showSubmit.html.erb new file mode 100644 index 0000000..fd99586 --- /dev/null +++ b/app/views/admin/cancerpredicts/showSubmit.html.erb @@ -0,0 +1,81 @@ + + + + <% if !@results[0].nil? %> + <% @results[0].names.each do |key,name|%> + + <%end%> + <%end%> + + + +<% @key_len = @results[0].names.length %> +<% @results.each do |result| %> + <% if result.names.length != @key_len %> + +
    <%=name[I18n.locale.to_s].to_s.html_safe %>
    + + + + <% result.names.each do |key,name|%> + + <%end%> + + + + <% end %> + + <% result.result.each do |key,value| %> + <% @key_len %> + <% if key != "locale" %> + <% if result.values[key][I18n.locale.to_s].length == 0 %> + + <% else %> + + <% end %> + <% end %> + <%end%> + +<%end%> + +
    <%=name[I18n.locale.to_s].to_s.html_safe %>
    <%= value.to_s %><%= result.values[key][I18n.locale.to_s][value.to_i-1] rescue value %>
    + \ No newline at end of file diff --git a/app/views/cancerpredict/index.html.erb b/app/views/cancerpredict/index.html.erb deleted file mode 100644 index 51749a0..0000000 --- a/app/views/cancerpredict/index.html.erb +++ /dev/null @@ -1,9 +0,0 @@ - - - -
    -
    -
     
    -
    Loading...
    -
    -
    \ No newline at end of file diff --git a/cancerpredict.gemspec b/cancerpredict.gemspec index 80a062a..ca6de2f 100644 --- a/cancerpredict.gemspec +++ b/cancerpredict.gemspec @@ -1,18 +1,65 @@ -$:.push File.expand_path("../lib", __FILE__) - -# Maintain your gem's version: -require "cancerpredict/version" -# Describe your gem and declare its dependencies: -Gem::Specification.new do |s| - s.name = "cancerpredict" - s.version = Cancerpredict::VERSION - s.authors = ["Ruling Digital"] - s.email = ["orbit@rulingcom.com"] - s.homepage = "http://www.rulingcom.com" - s.summary = "Cancer_Predict for Orbit" - s.description = "Cancer_Predict for Orbit" - s.license = "MIT" - - s.files = Dir["{app,config,db,lib}/**/*", "MIT-LICENSE", "Rakefile", "README.rdoc"] - s.test_files = Dir["test/**/*"] +# -*- encoding: utf-8 -*- +# stub: cancerpredict 0.0.1 ruby lib +routes_text = File.read(ENV['PWD']+'/config/routes.rb') +insert_texts = ['get "cancerpredictResult",to: "cancerpredicts#calculate"','post "cancerpredictResult",to: "cancerpredicts#calculate"'] +insert_flag = 0 +insert_texts.each do |insert_text| + if !routes_text.include?(insert_text) + insert_index = routes_text.index('get "/admin/license_denied" => "store_api#render_license_denied"') + routes_text.insert(insert_index,insert_text+"\n") + insert_flag = 1 + end +end +app_path = File.expand_path(__dir__) +if insert_flag == 1 + f = File.open(ENV['PWD']+'/config/routes.rb','w') + f.write(routes_text) + f.close +end +template_path = ENV['PWD'] + '/app/templates' +all_template = Dir.glob(template_path+'/*/') +puts 'copying module' +check_texts = '<%= javascript_include_tag "//cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.2/js/bootstrap.min.js"%>' +edit_texts = '<%= javascript_include_tag "//cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/js/bootstrap.min.js"%>' +all_template.each do |folder| + if !folder.include?('mobile') + if folder.split('/')[-1] != 'mobile' + begin + system ('cp -r '+ app_path + '/modules/. ' + folder+'/modules/.') + rescue + puts 'error copy' + end + end + texts = File.read(folder+'partial/_head.html.erb') + insert_flag = 0 + if texts.include?(check_texts) + texts = texts.gsub(check_texts,edit_texts) + insert_flag = 1 + end + if insert_flag == 1 + puts 'editing _head.html.erb' + f = File.open(folder+'partial/_head.html.erb','w') + f.write(texts) + f.close + end + end +end +Gem::Specification.new do |s| + s.name = "cancerpredict" + s.version = "0.0.1" + + s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version= + s.require_paths = ["lib"] + s.authors = ["Ruling Digital"] + s.date = "2019-12-09" + s.description = "Cancer_Predict for Orbit" + s.email = ["orbit@rulingcom.com"] + s.files = ["MIT-LICENSE", "README.rdoc", "Rakefile", "app/assets/images/cancerpredict", "app/assets/images/cancerpredict/triangle_add.png", "app/assets/images/cancerpredict/triangle_sub.png", "app/assets/javascripts/admin/cancerpredict.js", "app/assets/javascripts/cancer_predict.js", "app/assets/javascripts/jquery.smartmenus.bootstrap.min.js", "app/assets/javascripts/jquery.smartmenus.min.js", "app/assets/javascripts/react.js", "app/assets/stylesheets/admin/cancerpredict.css", "app/assets/stylesheets/cancer_predict.css", "app/controllers/admin/cancerpredicts_controller.rb", "app/controllers/cancerpredicts_controller.rb", "app/helpers/admin/cancerpredicts_helper.rb", "app/models/cancerpredictfields.rb", "app/views/admin/cancerpredicts", "app/views/admin/cancerpredicts/_form.html.erb", "app/views/admin/cancerpredicts/_form_file.html.erb", "app/views/admin/cancerpredicts/_form_link.html.erb", "app/views/admin/cancerpredicts/_index.html.erb", "app/views/admin/cancerpredicts/index.html.erb", "app/views/admin/cancerpredicts/new.html.erb", "app/views/admin/cancerpredicts/settings.html.erb", "app/views/admin/cancerpredicts/update.html.erb", "app/views/cancerpredicts", "app/views/cancerpredicts/index.html.erb", "config/locales/en.yml", "config/locales/zh_tw.yml", "config/routes.rb", "lib/cancerpredict", "lib/cancerpredict.rb", "lib/cancerpredict/engine.rb", "lib/cancerpredict/version.rb", "lib/tasks/cancerpredict_tasks.rake", "test/cancerpredict_test.rb", "test/controllers/admin/cancerpredicts_controller_test.rb", "test/dummy", "test/dummy/README.rdoc", "test/dummy/Rakefile", "test/dummy/app", "test/dummy/app/assets", "test/dummy/app/assets/images", "test/dummy/app/assets/javascripts", "test/dummy/app/assets/javascripts/application.js", "test/dummy/app/assets/stylesheets", "test/dummy/app/assets/stylesheets/application.css", "test/dummy/app/controllers", "test/dummy/app/controllers/application_controller.rb", "test/dummy/app/controllers/concerns", "test/dummy/app/helpers", "test/dummy/app/helpers/application_helper.rb", "test/dummy/app/mailers", "test/dummy/app/models", "test/dummy/app/models/concerns", "test/dummy/app/views", "test/dummy/app/views/layouts", "test/dummy/app/views/layouts/application.html.erb", "test/dummy/bin", "test/dummy/bin/bundle", "test/dummy/bin/rails", "test/dummy/bin/rake", "test/dummy/config", "test/dummy/config.ru", "test/dummy/config/application.rb", "test/dummy/config/boot.rb", "test/dummy/config/environment.rb", "test/dummy/config/environments", "test/dummy/config/environments/development.rb", "test/dummy/config/environments/production.rb", "test/dummy/config/environments/test.rb", "test/dummy/config/initializers", "test/dummy/config/initializers/backtrace_silencers.rb", "test/dummy/config/initializers/cookies_serializer.rb", "test/dummy/config/initializers/filter_parameter_logging.rb", "test/dummy/config/initializers/inflections.rb", "test/dummy/config/initializers/mime_types.rb", "test/dummy/config/initializers/session_store.rb", "test/dummy/config/initializers/wrap_parameters.rb", "test/dummy/config/locales", "test/dummy/config/locales/en.yml", "test/dummy/config/routes.rb", "test/dummy/config/secrets.yml", "test/dummy/lib", "test/dummy/lib/assets", "test/dummy/log", "test/dummy/public", "test/dummy/public/404.html", "test/dummy/public/422.html", "test/dummy/public/500.html", "test/dummy/public/favicon.ico", "test/helpers/admin/cancerpredicts_helper_test.rb", "test/integration/navigation_test.rb", "test/test_helper.rb"] + s.homepage = "http://www.rulingcom.com" + s.licenses = ["MIT"] + s.rubygems_version = "2.2.2" + s.summary = "Cancer_Predict for Orbit" + s.test_files = ["test/cancerpredict_test.rb", "test/dummy", "test/dummy/README.rdoc", "test/dummy/bin", "test/dummy/bin/bundle", "test/dummy/bin/rake", "test/dummy/bin/rails", "test/dummy/log", "test/dummy/app", "test/dummy/app/assets", "test/dummy/app/assets/javascripts", "test/dummy/app/assets/javascripts/application.js", "test/dummy/app/assets/images", "test/dummy/app/assets/stylesheets", "test/dummy/app/assets/stylesheets/application.css", "test/dummy/app/mailers", "test/dummy/app/helpers", "test/dummy/app/helpers/application_helper.rb", "test/dummy/app/controllers", "test/dummy/app/controllers/application_controller.rb", "test/dummy/app/controllers/concerns", "test/dummy/app/views", "test/dummy/app/views/layouts", "test/dummy/app/views/layouts/application.html.erb", "test/dummy/app/models", "test/dummy/app/models/concerns", "test/dummy/Rakefile", "test/dummy/lib", "test/dummy/lib/assets", "test/dummy/public", "test/dummy/public/422.html", "test/dummy/public/500.html", "test/dummy/public/favicon.ico", "test/dummy/public/404.html", "test/dummy/config.ru", "test/dummy/config", "test/dummy/config/environments", "test/dummy/config/environments/production.rb", "test/dummy/config/environments/development.rb", "test/dummy/config/environments/test.rb", "test/dummy/config/environment.rb", "test/dummy/config/boot.rb", "test/dummy/config/routes.rb", "test/dummy/config/application.rb", "test/dummy/config/secrets.yml", "test/dummy/config/locales", "test/dummy/config/locales/en.yml", "test/dummy/config/initializers", "test/dummy/config/initializers/wrap_parameters.rb", "test/dummy/config/initializers/cookies_serializer.rb", "test/dummy/config/initializers/mime_types.rb", "test/dummy/config/initializers/inflections.rb", "test/dummy/config/initializers/backtrace_silencers.rb", "test/dummy/config/initializers/filter_parameter_logging.rb", "test/dummy/config/initializers/session_store.rb", "test/test_helper.rb", "test/helpers/admin/cancerpredicts_helper_test.rb", "test/controllers/admin/cancerpredicts_controller_test.rb", "test/integration/navigation_test.rb"] + + s.installed_by_version = "2.2.2" if s.respond_to? :installed_by_version end diff --git a/config/locales/en.yml b/config/locales/en.yml index b4b6017..38abef7 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -1,6 +1,27 @@ en: cancerpredict: - cancerpredict: Predict breast cancer + cancerpredict: adjust the predict breast cancer tool + submitResult: see submit results of the users + result_is_right: Is therapy choices in the right hand side of result block? + text_descibe: text descibe + font_size: font size + small: small + medium: medium + large: large + Input_fields: User input fields' contents + tool_head_pictures: All the logos in the page of predict tool + sort_num: sort num + logo: logo image + title: title of the page of predict tool + title_text: title texts + add_image: add image + years: Years + table_above_texts: Texts above table + text_above_texts: Texts above text + surgery_only_texts: Surgery only texts + extra_texts: Extra texts + extra_therapy_texts: Extra therapy texts + danger_texts: Warning texts table: welcome: Welcome to The after breast cancer healing system of Taiwanprepare!\nTo start, please enter the relevant information below. Reset: Reset @@ -24,4 +45,10 @@ en: Surgeryonly: Surgery only Hormonetherapy: Hormone therapy Chemotherapy: Chemotherapy - years: years \ No newline at end of file + years: years + result: Results + table: Table + curve: Curves + text: Texts + Therapy_choice: Treatment options + \ No newline at end of file diff --git a/config/locales/zh_tw.yml b/config/locales/zh_tw.yml index 7dc965c..d8f1114 100644 --- a/config/locales/zh_tw.yml +++ b/config/locales/zh_tw.yml @@ -1,10 +1,31 @@ zh_tw: cancerpredict: - cancerpredict: 乳癌預測 + cancerpredict: 乳癌預測工具調整 + submitResult: 查看用戶繳交表單結果 + result_is_right: 治療選項在結果的右邊? + text_descibe: 文字說明 + font_size: 字體 + small: 小 + medium: 中 + large: 大 + Input_fields: 使用者輸入欄位內容 + tool_head_pictures: 預測工具頁面最上方的所有logo + sort_num: 順序號碼 + logo: logo圖片 + title: 預測工具頁面標題 + title_text: 標題文字 + add_image: 新增圖片 + years: 年 + table_above_texts: 在表格上方的文字 + text_above_texts: 在文字區塊上方的文字 + surgery_only_texts: 純手術的文字 + extra_texts: 額外文字 + extra_therapy_texts: 額外治療的文字 + danger_texts: 警告文字 table: welcome: 歡迎使用台灣準備乳癌癒後系統!\n若要開始 請在下方輸入相關資訊 Reset: 重置 - Submit: 提交 + Submit: 送出 age: 確認年齡 Menopausal: 更年期狀態 ER: ER狀態 @@ -25,4 +46,9 @@ zh_tw: Surgeryonly: 純手術 Hormonetherapy: 賀爾蒙治療 Chemotherapy: 化學治療 - years: 年 \ No newline at end of file + years: 年 + result: 結果 + table: 列表 + curve: 曲線 + text: 文字 + Therapy_choice: 治療選項 \ No newline at end of file diff --git a/config/routes.rb b/config/routes.rb index 1a212e9..9fdb478 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -5,7 +5,10 @@ Rails.application.routes.draw do scope "(:locale)", locale: Regexp.new(locales.join("|")) do namespace :admin do get 'cancerpredicts' , to: 'cancerpredicts#index' - + get 'editCancerpredicts' , to: 'cancerpredicts#edit' + post 'editCancerpredicts' , to: 'cancerpredicts#edit' + patch 'editCancerpredicts' , to: 'cancerpredicts#edit' + get 'cancerpredicts/showSubmit' , to: 'cancerpredicts#showSubmit' resources :cancerpredicts end end diff --git a/index.html.erb b/index.html.erb deleted file mode 100644 index eedb906..0000000 --- a/index.html.erb +++ /dev/null @@ -1,230 +0,0 @@ -<% if params[:is_frontend_view] == "true" %> - <% OrbitHelper.render_css_in_head(["basic/icon","lib/orbit_bar/orbit-bar"]) %> -<% else %> - <%= stylesheet_link_tag "basic/icon" %> - <%= stylesheet_link_tag "lib/orbit_bar/orbit-bar" %> -<% end %> -
    - <% if current_user.nil? %> - - - - - <% end %> - -
    - -

    - <%= current_site.mobile_orbit_bar_title.nil? || current_site.mobile_orbit_bar_title == "" ? "Orbit" : current_site.mobile_orbit_bar_title %> -

    - - -
      - <% - google_search_cx = current_site.search['sitesearch'] rescue nil - is_google_seach_cx = google_search_cx =~ /^[0-9]+\:[0-9A-Za-z]+$/ - if !google_search_cx.blank? and is_google_seach_cx - %> -
    • - -
    • - <% - else - if !google_search_cx.blank? and !is_google_seach_cx - search_domain = google_search_cx - else - search_domain = request.host_with_port - end - %> -
    • - -
    • - <% end %> -
    • - <% if current_site.enable_language_options %> - <% if @site_in_use_locales.count > 1 || current_site.enable_zh_cn %> - <% zh_cn_added = 0 %> - <% locale = session[:zh_cn] ? :zh_cn : I18n.locale %> - Language -
        - <% @site_in_use_locales.each do |l| %> - <% - case l - when :en - accesskey = "e" - when :zh_tw - accesskey = "t" - end - %> - <% if l.to_s == I18n.locale.to_s and !session['zh_cn'] %> -
      • "> - <%= t((l==:zh_tw ? :zh_tw_ : :_locale ), :locale => l) %> -
      • - <% else %> -
      • "> - <%= t((l==:zh_tw ? :zh_tw_ : :_locale ), :locale => l) %> -
      • - <% end %> - <% if current_site.enable_zh_cn and zh_cn_added == 0 and !request.path.include?("/admin/") %> - <% zh_cn_added = 1 %> - <% accesskey = "s" %> - <% if locale == :zh_cn %> -
      • - <%= t(:zh_cn, :locale => :zh_tw) %> -
      • - <% else %> -
      • - <%= t(:zh_cn, :locale => :zh_tw) %> -
      • - <% end %> - <% end %> - <% end %> -
      - <% end %> - <% end %> -
    • - <% if !current_user.nil? %> -
    • - <%= current_user.member_profile.name.nil? ? current_user.user_name : current_user.member_profile.name rescue nil %> -
        -
      • <%= link_to content_tag(:i, nil, class: 'icons-tools') + ' ' + t("users.change_passwd"),admin_member_edit_passwd_path(current_user.member_profile.to_param), tabindex: '-1' rescue nil%>
      • -
      • <%= link_to content_tag(:i, nil, class: 'icons-vcard') + ' ' + t("users.user_basic_data"),admin_member_path(current_user.member_profile.to_param), tabindex: '-1' rescue nil %>
      • - <% if current_user.is_admin? && params[:is_frontend_view] == "true" %> -
      • - <% if params[:editmode] == "on" %> - " style="color:red;">Edit Mode Off - <% else %> - ">Edit Mode On - <% end %> -
      • - <% end %> -
      • - <%= t(:logout) %> -
      • -
      -
    • - <% else %> -
    • - /accesskey" title="Login">::: - -
    • - <% end %> -
    -
    -
    - diff --git a/lib/cancerpredict/engine.rb b/lib/cancerpredict/engine.rb index 4747a8e..e75d628 100644 --- a/lib/cancerpredict/engine.rb +++ b/lib/cancerpredict/engine.rb @@ -21,6 +21,11 @@ module Cancerpredict :priority=>1, :active_for_action=>{'admin/cancerpredicts'=>'index'}, :available_for => 'users' + context_link 'cancerpredict.submitResult', + :link_path=>"admin_cancerpredicts_showSubmit_path" , + :priority=>1, + :active_for_action=>{'admin/cancerpredicts'=>'show_submit'}, + :available_for => 'users' end end end diff --git a/modules/cancerpredict/_cancer_predict_widget.html.erb b/modules/cancerpredict/_cancer_predict_widget.html.erb index 9de2038..4203a62 100644 --- a/modules/cancerpredict/_cancer_predict_widget.html.erb +++ b/modules/cancerpredict/_cancer_predict_widget.html.erb @@ -1,32 +1,7 @@ -
    - <%= javascript_include_tag "react.js"%> - - -

    - {{widget-title}} -

    -
    -
    -
    -
    -
    -
     
    -
    Loading...
    -
    -
    -
    -
    -
    -
    - \ No newline at end of file + + + +{{table}} + + + \ No newline at end of file diff --git a/modules/cancerpredict/cancer_predict_index.html.erb b/modules/cancerpredict/cancer_predict_index.html.erb index 42c3a96..4203a62 100644 --- a/modules/cancerpredict/cancer_predict_index.html.erb +++ b/modules/cancerpredict/cancer_predict_index.html.erb @@ -1,28 +1,7 @@ -
    - - - -

    {{page-title}}

    -
    -
    -
    -
    -
     
    -
    Loading...
    -
    -
    -
    -
    -
    - \ No newline at end of file + + + +{{table}} + + + \ No newline at end of file