Calculator-Online.net

Calculator Online

Calculator-Online.net

Calculator Online

Follow Us On:

Your Result is copied!
Advertisement

Calorimetry Calculator

The tool will find all the parameters involved in a calorimetry reaction scheme.

By Isolation:
g/mol
Advertisement

The calorimetry calculator estimates the heat energy released or absorbed in a chemical reaction. Knowing the heat change allows you to determine whether a reaction is exothermic or endothermic.

What Is Calorimetry?

“Calorimetry is the technique used to measure the amount of heat energy released or absorbed during a chemical reaction.”

If a reaction releases heat, it is exothermic (positive value), and if it absorbs heat, it is endothermic (negative value).

Units of Calorimetry:

The calorimeter constant is usually expressed in joules per degree Celsius (J/°C) or joules per Kelvin (J/K).

Heat Transfer Formula:

The heat gained or lost is calculated using:

ΔQ = m × c × ΔT

Where:

  • ΔQ = Heat change
  • m = Mass of the substance
  • c = Specific heat capacity (J/g·K)
  • ΔT = Temperature change (T_final − T_initial)

Example:

100 g of ice at -25 °C is added to 5 kg of water at 20 °C. Calculate the final temperature. Specific heat capacities: water = 4.18 J/g·K, ice = 2.05 J/g·K; latent heat of fusion of ice = 334 J/g.

Given:

  • Mass of water = 5 kg
  • Mass of ice = 100 g
  • Initial temperature of water = 20 °C
  • Initial temperature of ice = -25 °C
  • Final temperature = ?

Solution:

Heat balance equation (sum of heat changes = 0):

Q_ice warming + Q_ice melting + Q_water cooling = 0

Substitute values:

T_f = [(m_ice × c_ice × (0 − T_ice)) + (m_ice × L_fusion) − (m_water × c_water × T_water)] ÷ (−m_ice × c_water − m_water × c_water)

Calculations:

T_f = [(100 × 2.05 × 25) + (100 × 334) − (5000 × 4.18 × 20)] ÷ (−418 − 20900)

T_f = (5125 + 33400 − 418000) ÷ (−21318)

T_f ≈ 17.8 °C

The final temperature of the system is 17.8 °C. Calorimetry calculators can simplify these computations for any reaction or phase change.

How the Calorimetry Calculator Works:

Input:

  • Select the type of reaction and the number of substances.
  • Specify whether the substance undergoes a phase change.
  • Enter masses, specific heat capacities, latent heats, and temperatures.
  • Click “Calculate”.

Output:

  • Final temperature of the system
  • Heat absorbed or released by each substance
  • Step-by-step calculations
  • Enthalpy changes and energy transfers

FAQs:

What Is the Latent Heat of Fusion?

It is the heat required to convert a solid into a liquid without changing its temperature. Example: Ice melting at 0 °C absorbs 334 J/g.

What Is Enthalpy in Chemistry?

Enthalpy is the total heat content of a system, equal to internal energy plus pressure × volume. Calorimetry calculators measure enthalpy changes in chemical reactions.

References:

animal image
sales modal popup close

Easter into Action, Save With Satisfaction

UPTO

50 %

OFF

Online Calculator

Calculator Online

Get the ease of calculating anything from the source of calculator online

Email us at

Contact Us

© Copyrights 2026 by Calculator-Online.net

$('#myselection').on('change', function() { var demovalue = $(this).val(); if (demovalue == 'heat exchange between several objects') { $(".single_object, .formula").hide(); $("div.fimg3, div.state, .obj_1, .obj_2").show(); $(".two_time, div.f_temp_two, div.t_fusion, div.h_fusion, div.mass1").hide(); } else { $("div.fimg3, div.state, .obj_1, .obj_2, .obj_3").hide(); $(".single_object, .formula").show(); } }); $('#objects').on('change', function() { var demovalue = $(this).val(); if (demovalue == '2') { $("div.object_2, .obj_1").show(); $(".obj_3").hide(); } else if (demovalue == '3') { $(".obj_1, div.object_2").hide(); $(".obj_3").show(); } }); $('#obj_change').on('change', function() { var demovalue = $(this).val(); if (demovalue == 'No') { $("select#object_formula_change, div.f_temp1, div.f_temp2, div.f_temp1, select#object3_formula_change").show(); $(".two_time, div.f_temp_two, div.t_fusion, div.h_fusion, .three_time").hide(); } else if (demovalue == 'Yes,two times') { $("select#object_formula_change").hide(); $(".two_time, .three_time, div.f_temp_two, div.t_fusion, div.h_fusion").show(); $("div.mass1, div.f_temp2, div.f_temp1, select#object3_formula_change").hide(); } }); $('#object_formula_change').on('change', function() { var demovalue = $(this).val(); if (demovalue == 'm1') { $("div.mass2, div.s_h_c2, div.f_temp2, div.i_temp2, div.s_h_c1, div.f_temp1, div.i_temp1").show(); $("div.mass1").hide(); } else if (demovalue == 'c1') { $("div.mass2, div.s_h_c2, div.f_temp2, div.i_temp2, div.mass1, div.f_temp1, div.i_temp1").show(); $("div.s_h_c1").hide(); } else if (demovalue == 'Ti(1)') { $("div.mass2, div.s_h_c2, div.f_temp2, div.i_temp2, div.f_temp1, div.mass1, div.s_h_c1").show(); $("div.i_temp1").hide(); } else if (demovalue == 'Tf(1)') { $("div.mass2, div.s_h_c2, div.f_temp2, div.i_temp2, div.i_temp1, div.mass1, div.s_h_c1").show(); $("div.f_temp1").hide(); } else if (demovalue == 'm2') { $("div.mass1, div.s_h_c1, div.f_temp1, div.i_temp1, div.s_h_c2, div.f_temp2, div.i_temp2").show(); $("div.mass2").hide(); } else if (demovalue == 'c2') { $("div.mass1, div.s_h_c1, div.f_temp1, div.i_temp1, div.mass2, div.f_temp2, div.i_temp2").show(); $("div.s_h_c2").hide(); } else if (demovalue == 'Ti(2)') { $("div.mass1, div.s_h_c1, div.f_temp1, div.i_temp1, div.f_temp2, div.mass2, div.s_h_c2").show(); $("div.i_temp2").hide(); } else if (demovalue == 'Tf(2)') { $("div.mass1, div.s_h_c1, div.f_temp1, div.i_temp1, div.mass2, div.s_h_c2").show(); $("div.f_temp2, div.i_temp2").hide(); } else if (demovalue == 'q1') { $("div.mass1, div.s_h_c1, div.f_temp1, div.i_temp1").show(); $("div.mass2, div.s_h_c2, div.f_temp2, div.i_temp2").hide(); } else if (demovalue == 'q2') { $("div.mass2, div.s_h_c2, div.f_temp2, div.i_temp2").show(); $("div.mass1, div.s_h_c1, div.f_temp1, div.i_temp1").hide(); } }); $('#two_time').on('change', function() { var demovalue = $(this).val(); if (demovalue == 'm1_two') { $("div.mass2, div.s_h_c2, div.f_temp_two, div.i_temp2, div.s_h_c1, div.t_fusion, div.i_temp1, div.h_fusion").show(); $("div.mass1, div.f_temp1, div.f_temp2").hide(); } else if (demovalue == 'c1_two') { $("div.mass1, div.h_fusion, div.s_h_c2, div.f_temp, div.t_fusion, div.mass2, div.i_temp2").show(); $("div.s_h_c1").hide(); } else if (demovalue == 'Ti(1)') { $("div.mass1, div.h_fusion, div.s_h_c2, div.f_temp, div.t_fusion, div.mass2, div.i_temp2, div.s_h_c1").show(); $("div.i_temp1").hide(); } else if (demovalue == 'Tfusion') { $("div.mass1, div.h_fusion, div.mass2, div.s_h_c2, div.f_temp, div.i_temp2, div.s_h_c1").show(); $("div.i_temp1, div.t_fusion").hide(); } else if (demovalue == 'ΔHfusion') { $("div.mass1, div.s_h_c1, div.t_fusion, div.i_temp1, div.s_h_c2, div.f_temp, div.mass2, div.i_temp2").show(); $("div.h_fusion").hide(); } else if (demovalue == 'c2') { $("div.mass1, div.s_h_c1, div.t_fusion, div.i_temp1, div.f_temp, div.mass2, div.i_temp2, div.h_fusion").show(); $("div.s_h_c2").hide(); } else if (demovalue == 'm2') { $("div.mass1, div.s_h_c1, div.t_fusion, div.i_temp1, div.f_temp, div.i_temp2, div.h_fusion, div.s_h_c2").show(); $("div.mass2").hide(); } else if (demovalue == 'Ti(2)') { $("div.mass1, div.s_h_c1, div.h_fusion, div.i_temp1, div.s_h_c2, div.f_temp, div.t_fusion, div.mass2").show(); $("div.i_temp2").hide(); } else if (demovalue == 'Tf') { $("div.mass1, div.s_h_c1, div.t_fusion, div.i_temp1, div.i_temp2, div.mass2, div.h_fusion,div.s_h_c2").show(); $("div.f_temp, div.f_temp_two").hide(); } }); $('#object3_formula_change').on('change', function() { var demovalue = $(this).val(); if (demovalue == 'm1') { $("div.mass2, div.s_h_c2, div.f_temp2, div.i_temp2, div.mass3, div.s_h_c3, div.f_temp3, div.i_temp3, div.s_h_c1, div.f_temp1, div.i_temp1").show(); $("div.mass1").hide(); } else if (demovalue == 'c1') { $("div.mass2, div.s_h_c2, div.f_temp2, div.i_temp2, div.mass3, div.s_h_c3, div.f_temp3, div.i_temp3, div.f_temp1, div.i_temp1, div.mass1").show(); $("div.s_h_c1").hide(); } else if (demovalue == 'Tf(1)') { $("div.mass2, div.s_h_c2, div.f_temp2, div.i_temp2, div.mass3, div.s_h_c3, div.f_temp3, div.i_temp3, div.i_temp1, div.mass1, div.s_h_c1").show(); $("div.f_temp1").hide(); } else if (demovalue == 'Ti(1)') { $("div.mass2, div.s_h_c2, div.f_temp2, div.i_temp2, div.mass3, div.s_h_c3, div.f_temp3, div.i_temp3, div.f_temp1, div.mass1, div.s_h_c1").show(); $("div.i_temp1").hide(); } else if (demovalue == 'm2') { $("div.mass1, div.s_h_c1, div.f_temp1, div.i_temp1, div.mass3, div.s_h_c3, div.f_temp3, div.i_temp3, div.s_h_c2, div.f_temp2, div.i_temp2").show(); $("div.mass2").hide(); } else if (demovalue == 'c2') { $("div.mass1, div.s_h_c1, div.f_temp1, div.i_temp1, div.mass3, div.s_h_c3, div.f_temp3, div.i_temp3, div.mass2, div.f_temp2, div.i_temp2").show(); $("div.s_h_c2").hide(); } else if (demovalue == 'Tf(2)') { $("div.mass1, div.s_h_c1, div.f_temp1, div.i_temp1, div.mass3, div.s_h_c3, div.f_temp3, div.i_temp3, div.i_temp2, div.mass2, div.s_h_c2").show(); $("div.f_temp2").hide(); } else if (demovalue == 'Ti(2)') { $("div.mass1, div.s_h_c1, div.f_temp1, div.i_temp1, div.mass3, div.s_h_c3, div.f_temp3, div.i_temp3, div.mass2, div.s_h_c2, div.f_temp2").show(); $("div.i_temp2").hide(); } else if (demovalue == 'm3') { $("div.mass1, div.s_h_c1, div.f_temp1, div.i_temp1, div.s_h_c3, div.f_temp3, div.i_temp3, div.mass2, div.s_h_c2, div.f_temp2, div.i_temp2").show(); $("div.mass3").hide(); } else if (demovalue == 'c3') { $("div.mass1, div.s_h_c1, div.f_temp1, div.i_temp1, div.f_temp3, div.i_temp3, div.mass2, div.s_h_c2, div.f_temp2, div.i_temp2, div.mass3").show(); $("div.s_h_c3").hide(); } else if (demovalue == 'Tf(3)') { $("div.mass1, div.s_h_c1, div.f_temp1, div.i_temp1, div.i_temp3, div.mass2, div.s_h_c2, div.f_temp2, div.i_temp2, div.mass3, div.s_h_c3").show(); $("div.f_temp3").hide(); } else if (demovalue == 'Ti(3)') { $("div.mass1, div.s_h_c1, div.f_temp1, div.i_temp1, div.mass2, div.s_h_c2, div.f_temp2, div.i_temp2, div.mass3, div.s_h_c3, div.f_temp3").show(); $("div.i_temp3").hide(); } }); $('#three_time').on('change', function() { var demovalue = $(this).val(); if (demovalue == 'm1') { $("div.mass2, div.s_h_c2, div.f_temp, div.i_temp2, div.mass3, div.s_h_c3, div.i_temp3, div.s_h_c1, div.t_fusion, div.i_temp1, div.h_fusion").show(); $("div.mass1,div.f_temp3").hide(); } else if (demovalue == 'c1') { $("div.mass1, div.h_fusion, div.s_h_c2, div.f_temp, div.t_fusion, div.mass2, div.i_temp2, div.mass3, div.s_h_c3, div.i_temp3").show(); $("div.s_h_c1, div.i_temp1, div.f_temp3").hide(); } else if (demovalue == 'Tfusion') { $("div.mass2, div.s_h_c2, div.f_temp, div.i_temp2, div.mass3, div.s_h_c3, div.i_temp3, div.mass1, div.h_fusion, div.s_h_c1, div.i_temp1").show(); $("div.t_fusion, div.f_temp3").hide(); } else if (demovalue == 'Ti(1)') { $("div.mass1, div.h_fusion, div.s_h_c2, div.f_temp, div.t_fusion, div.mass2, div.i_temp2, div.mass3, div.s_h_c3, div.i_temp3, div.s_h_c1").show(); $("div.i_temp1, div.f_temp3").hide(); } else if (demovalue == 'Hfusion') { $("div.mass1, div.s_h_c1, div.t_fusion, div.i_temp1, div.s_h_c2, div.f_temp, div.mass2, div.i_temp2, div.mass3, div.s_h_c3, div.i_temp3").show(); $("div.h_fusion, div.f_temp3").hide(); } else if (demovalue == 'c2') { $("div.mass1, div.s_h_c1, div.t_fusion, div.i_temp1, div.f_temp, div.mass2, div.i_temp2, div.mass3, div.s_h_c3, div.i_temp3, div.h_fusion").show(); $("div.s_h_c2, div.f_temp3").hide(); } else if (demovalue == 'm2') { $("div.mass1, div.s_h_c1, div.t_fusion, div.i_temp1, div.f_temp, div.i_temp2, div.mass3, div.s_h_c3, div.i_temp3, div.h_fusion, div.s_h_c2").show(); $("div.mass2, div.f_temp3").hide(); } else if (demovalue == 'Ti(2)') { $("div.mass1, div.s_h_c1, div.t_fusion, div.i_temp1, div.f_temp, div.mass3, div.s_h_c3, div.i_temp3, div.h_fusion, div.s_h_c2, div.mass2").show(); $("div.i_temp2, div.f_temp3").hide(); } else if (demovalue == 'm3') { $("div.mass1, div.s_h_c1, div.t_fusion, div.i_temp1, div.f_temp, div.s_h_c3, div.i_temp3, div.h_fusion, div.s_h_c2, div.mass2, div.i_temp2").show(); $("div.mass3, div.f_temp3").hide(); } else if (demovalue == 'c3') { $("div.mass1, div.s_h_c1, div.t_fusion, div.i_temp1, div.f_temp, div.i_temp3, div.h_fusion, div.s_h_c2, div.mass2, div.i_temp2, div.mass3").show(); $("div.s_h_c3, div.f_temp3").hide(); } else if (demovalue == 'Tf') { $("div.mass1, div.s_h_c1, div.t_fusion, div.i_temp1, div.i_temp3, div.h_fusion, div.s_h_c2, div.mass2, div.i_temp2, div.mass3, div.s_h_c3").show(); $("div.f_temp_two, div.f_temp, div.f_temp3").hide(); } }); $('#formula_change').on('change', function() { var demovalue = $(this).val(); if (demovalue == 'Heat Energy') { $("p.he, div.s_h_c, div.mass, div.temp, div.formula, p.by, div.temp_change").show(); $("p.sh, p.m, p.i_t, p.f_t, p.t_i, p.e_c, div.s_m, div.m_m, div.en").hide(); if ($('input[name="type"]:checked').val() == 'temp_change') { $("div.temp_change, .t_c").show(); $("div.i_temp, div.f_temp, .i_f_t").hide(); } else if ($('input[name="type"]:checked').val() == 'i_f_temp') { $("div.temp_change, .t_c").hide(); $("div.i_temp, div.f_temp, .i_f_t").show(); } } else if (demovalue == 'Specific Heat') { $("p.sh, div.en, div.mass, div.formula, div.temp, p.by, div.temp_change").show(); $("p.m, p.he, div.m_m, p.i_t, p.f_t, p.t_i, p.e_c, div.s_h_c, div.s_m").hide(); if ($('input[name="type"]:checked').val() == 'temp_change') { $("div.temp_change, .t_c").show(); $("div.i_temp, div.f_temp, .i_f_t").hide(); } else if ($('input[name="type"]:checked').val() == 'i_f_temp') { $("div.temp_change, .t_c").hide(); $("div.i_temp, div.f_temp, .i_f_t").show(); } } else if (demovalue == 'Mass') { $("p.m, div.en, div.s_h_c, div.temp, div.formula, p.by, div.temp_change").show(); $("p.he, p.sh, p.i_t, p.f_t, p.t_i, p.e_c, div.mass, div.s_m, div.m_m").hide(); if ($('input[name="type"]:checked').val() == 'temp_change') { $("div.temp_change, .t_c").show(); $("div.i_temp, div.f_temp, .i_f_t").hide(); } else if ($('input[name="type"]:checked').val() == 'i_f_temp') { $("div.temp_change, .t_c").hide(); $("div.i_temp, div.f_temp, .i_f_t").show(); } } else if (demovalue == 'Enthalpy_change') { $("p.e_c, div.s_m, div.m_m, div.en").show(); $("p.he, p.sh, p.m, p.i_t, p.f_t, p.t_i, div.temp, div.mass, div.temp_change, div.s_h_c, div.i_temp, div.f_temp, p.by").hide(); } else if (demovalue == 'Initial_Temperature') { $("div.mass, div.en, div.s_h_c, p.i_t, div.f_temp, div.formula").show(); $("div.temp, p.he, p.sh, p.m, p.f_t, p.t_i, p.e_c, div.s_m, div.m_m, div.temp_change, div.i_temp, p.by").hide(); $("input.h_change").attr('checked', 'checked'); } else if (demovalue == 'Final_Temperature') { $("div.mass, div.en, div.s_h_c, p.f_t, div.i_temp, div.formula").show(); $("div.temp, p.he, p.sh, p.m, p.i_t, p.t_i, p.e_c, div.s_m, div.m_m, div.temp_change, div.f_temp, p.by").hide(); $("input.h_change").attr('checked', 'checked'); } else if (demovalue == 'Time_of_isolation') { $("p.t_i, div.en, div.mass, div.s_h_c, div.formula, div.temp, p.by, div.temp_change").show(); $("p.sh, p.m, p.he, div.m_m, p.i_t, p.f_t, p.e_c, div.s_m").hide(); if ($('input[name="type"]:checked').val() == 'temp_change') { $("div.temp_change, .t_c").show(); $("div.i_temp, div.f_temp, .i_f_t").hide(); } else if ($('input[name="type"]:checked').val() == 'i_f_temp') { $("div.temp_change, .t_c").hide(); $("div.i_temp, div.f_temp, .i_f_t").show(); } } }); $('.with-gap').on('click', function() { var demovalue = $(this).val(); if (demovalue == 'temp_change') { $("div.temp_change, .t_c").show(); $("div.i_temp, div.f_temp, .i_f_t").hide(); } else { $("div.temp_change, .t_c").hide(); $("div.i_temp, div.f_temp, .i_f_t").show(); } }); $('#myselection').on('change', function() { let myselection = $('#myselection').val(); if (myselection == 'heat exchange between several objects') { $(".single_object").hide(); $("div.fimg3, div.state, .obj_1, .obj_2").show(); $(".two_time, div.f_temp_two, div.t_fusion, div.h_fusion, div.mass1").hide(); let objects = $('#objects').val(); if (objects == '2') { $("div.object_2, .obj_1").show(); $(".obj_3").hide(); let obj_change = $('#obj_change').val(); if (obj_change == 'No') { $("select#object_formula_change, div.f_temp1, div.f_temp2, div.f_temp1, select#object3_formula_change").show(); $(".two_time, div.f_temp_two, div.t_fusion, div.h_fusion, .three_time").hide(); let objformula = $('#object_formula_change').val(); if (objformula == 'm1') { $("div.mass2, div.s_h_c2, div.f_temp2, div.i_temp2, div.s_h_c1, div.f_temp1, div.i_temp1").show(); $("div.mass1").hide(); } else if (objformula == 'c1') { $("div.mass2, div.s_h_c2, div.f_temp2, div.i_temp2, div.mass1, div.f_temp1, div.i_temp1").show(); $("div.s_h_c1").hide(); } else if (objformula == 'Ti(1)') { $("div.mass2, div.s_h_c2, div.f_temp2, div.i_temp2, div.f_temp1, div.mass1, div.s_h_c1").show(); $("div.i_temp1").hide(); } else if (objformula == 'Tf(1)') { $("div.mass2, div.s_h_c2, div.f_temp2, div.i_temp2, div.i_temp1, div.mass1, div.s_h_c1").show(); $("div.f_temp1").hide(); } else if (objformula == 'm2') { $("div.mass1, div.s_h_c1, div.f_temp1, div.i_temp1, div.s_h_c2, div.f_temp2, div.i_temp2").show(); $("div.mass2").hide(); } else if (objformula == 'c2') { $("div.mass1, div.s_h_c1, div.f_temp1, div.i_temp1, div.mass2, div.f_temp2, div.i_temp2").show(); $("div.s_h_c2").hide(); } else if (objformula == 'Ti(2)') { $("div.mass1, div.s_h_c1, div.f_temp1, div.i_temp1, div.f_temp2, div.mass2, div.s_h_c2").show(); $("div.i_temp2").hide(); } else if (objformula == 'Tf(2)') { $("div.mass1, div.s_h_c1, div.f_temp1, div.i_temp1, div.mass2, div.s_h_c2").show(); $("div.f_temp2, div.i_temp2").hide(); } else if (objformula == 'q1') { $("div.mass1, div.s_h_c1, div.f_temp1, div.i_temp1").show(); $("div.mass2, div.s_h_c2, div.f_temp2, div.i_temp2").hide(); } else if (objformula == 'q2') { $("div.mass2, div.s_h_c2, div.f_temp2, div.i_temp2").show(); $("div.mass1, div.s_h_c1, div.f_temp1, div.i_temp1").hide(); } } else if (obj_change == 'Yes,two times') { $("select#object_formula_change, div.mass1, div.f_temp2, div.f_temp1, select#object3_formula_change").hide(); $(".two_time, .three_time, div.f_temp_two, div.t_fusion, div.h_fusion").show(); let twoTime = $('#two_time').val(); if (twoTime == 'm1_two') { $("div.mass2, div.s_h_c2, div.f_temp_two, div.i_temp2, div.s_h_c1, div.t_fusion, div.i_temp1, div.h_fusion").show(); $("div.mass1, div.f_temp1, div.f_temp2").hide(); } else if (twoTime == 'c1_two') { $("div.mass1, div.h_fusion, div.s_h_c2, div.f_temp, div.t_fusion, div.mass2, div.i_temp2").show(); $("div.s_h_c1").hide(); } else if (twoTime == 'Ti(1)') { $("div.mass1, div.h_fusion, div.s_h_c2, div.f_temp, div.t_fusion, div.mass2, div.i_temp2, div.s_h_c1").show(); $("div.i_temp1").hide(); } else if (twoTime == 'Tfusion') { $("div.mass1, div.h_fusion, div.mass2, div.s_h_c2, div.f_temp, div.i_temp2, div.s_h_c1").show(); $("div.i_temp1, div.t_fusion").hide(); } else if (twoTime == 'ΔHfusion') { $("div.mass1, div.s_h_c1, div.t_fusion, div.i_temp1, div.s_h_c2, div.f_temp, div.mass2, div.i_temp2").show(); $("div.h_fusion").hide(); } else if (twoTime == 'c2') { $("div.mass1, div.s_h_c1, div.t_fusion, div.i_temp1, div.f_temp, div.mass2, div.i_temp2, div.h_fusion").show(); $("div.s_h_c2").hide(); } else if (twoTime == 'm2') { $("div.mass1, div.s_h_c1, div.t_fusion, div.i_temp1, div.f_temp, div.i_temp2, div.h_fusion, div.s_h_c2").show(); $("div.mass2").hide(); } else if (twoTime == 'Ti(2)') { $("div.mass1, div.s_h_c1, div.h_fusion, div.i_temp1, div.s_h_c2, div.f_temp, div.t_fusion, div.mass2").show(); $("div.i_temp2").hide(); } else if (twoTime == 'Tf') { $("div.mass1, div.s_h_c1, div.t_fusion, div.i_temp1, div.i_temp2, div.mass2, div.h_fusion,div.s_h_c2").show(); $("div.f_temp, div.f_temp_two").hide(); } } } else if (objects == '3') { $(".obj_1, div.object_2").hide(); $(".obj_3").show(); let obj_change = $('#obj_change').val(); if (obj_change == 'No') { $("div.object_2, .obj_3").show(); $(".obj_1").hide(); let obj_change3 = $('#object3_formula_change').val(); if (obj_change3 == 'm1') { $("div.mass2, div.s_h_c2, div.f_temp2, div.i_temp2, div.mass3, div.s_h_c3, div.f_temp3, div.i_temp3, div.s_h_c1, div.f_temp1, div.i_temp1").show(); $("div.mass1").hide(); } else if (obj_change3 == 'c1') { $("div.mass2, div.s_h_c2, div.f_temp2, div.i_temp2, div.mass3, div.s_h_c3, div.f_temp3, div.i_temp3, div.f_temp1, div.i_temp1, div.mass1").show(); $("div.s_h_c1").hide(); } else if (obj_change3 == 'Tf(1)') { $("div.mass2, div.s_h_c2, div.f_temp2, div.i_temp2, div.mass3, div.s_h_c3, div.f_temp3, div.i_temp3, div.i_temp1, div.mass1, div.s_h_c1").show(); $("div.f_temp1").hide(); } else if (obj_change3 == 'Ti(1)') { $("div.mass2, div.s_h_c2, div.f_temp2, div.i_temp2, div.mass3, div.s_h_c3, div.f_temp3, div.i_temp3, div.f_temp1, div.mass1, div.s_h_c1").show(); $("div.i_temp1").hide(); } else if (obj_change3 == 'm2') { $("div.mass1, div.s_h_c1, div.f_temp1, div.i_temp1, div.mass3, div.s_h_c3, div.f_temp3, div.i_temp3, div.s_h_c2, div.f_temp2, div.i_temp2").show(); $("div.mass2").hide(); } else if (obj_change3 == 'c2') { $("div.mass1, div.s_h_c1, div.f_temp1, div.i_temp1, div.mass3, div.s_h_c3, div.f_temp3, div.i_temp3, div.mass2, div.f_temp2, div.i_temp2").show(); $("div.s_h_c2").hide(); } else if (obj_change3 == 'Tf(2)') { $("div.mass1, div.s_h_c1, div.f_temp1, div.i_temp1, div.mass3, div.s_h_c3, div.f_temp3, div.i_temp3, div.i_temp2, div.mass2, div.s_h_c2").show(); $("div.f_temp2").hide(); } else if (obj_change3 == 'Ti(2)') { $("div.mass1, div.s_h_c1, div.f_temp1, div.i_temp1, div.mass3, div.s_h_c3, div.f_temp3, div.i_temp3, div.mass2, div.s_h_c2, div.f_temp2").show(); $("div.i_temp2").hide(); } else if (obj_change3 == 'm3') { $("div.mass1, div.s_h_c1, div.f_temp1, div.i_temp1, div.s_h_c3, div.f_temp3, div.i_temp3, div.mass2, div.s_h_c2, div.f_temp2, div.i_temp2").show(); $("div.mass3").hide(); } else if (obj_change3 == 'c3') { $("div.mass1, div.s_h_c1, div.f_temp1, div.i_temp1, div.f_temp3, div.i_temp3, div.mass2, div.s_h_c2, div.f_temp2, div.i_temp2, div.mass3").show(); $("div.s_h_c3").hide(); } else if (obj_change3 == 'Tf(3)') { $("div.mass1, div.s_h_c1, div.f_temp1, div.i_temp1, div.i_temp3, div.mass2, div.s_h_c2, div.f_temp2, div.i_temp2, div.mass3, div.s_h_c3").show(); $("div.f_temp3").hide(); } else if (obj_change3 == 'Ti(3)') { $("div.mass1, div.s_h_c1, div.f_temp1, div.i_temp1, div.mass2, div.s_h_c2, div.f_temp2, div.i_temp2, div.mass3, div.s_h_c3, div.f_temp3").show(); $("div.i_temp3").hide(); } } else if (obj_change == 'Yes,two times') { $("select#object_formula_change, div.mass1, div.f_temp2, div.f_temp1, select#object3_formula_change").hide(); $(".two_time, .three_time, div.f_temp_two, div.t_fusion, div.h_fusion").show(); let three_time = $('#three_time').val(); if (three_time == 'm1') { $("div.mass2, div.s_h_c2, div.f_temp, div.i_temp2, div.mass3, div.s_h_c3, div.i_temp3, div.s_h_c1, div.t_fusion, div.i_temp1, div.h_fusion").show(); $("div.mass1,div.f_temp3").hide(); } else if (three_time == 'c1') { $("div.mass1, div.h_fusion, div.s_h_c2, div.f_temp, div.t_fusion, div.mass2, div.i_temp2, div.mass3, div.s_h_c3, div.i_temp3").show(); $("div.s_h_c1, div.i_temp1, div.f_temp3").hide(); } else if (three_time == 'Tfusion') { $("div.mass2, div.s_h_c2, div.f_temp, div.i_temp2, div.mass3, div.s_h_c3, div.i_temp3, div.mass1, div.h_fusion, div.s_h_c1, div.i_temp1").show(); $("div.t_fusion, div.f_temp3").hide(); } else if (three_time == 'Ti(1)') { $("div.mass1, div.h_fusion, div.s_h_c2, div.f_temp, div.t_fusion, div.mass2, div.i_temp2, div.mass3, div.s_h_c3, div.i_temp3, div.s_h_c1").show(); $("div.i_temp1, div.f_temp3").hide(); } else if (three_time == 'Hfusion') { $("div.mass1, div.s_h_c1, div.t_fusion, div.i_temp1, div.s_h_c2, div.f_temp, div.mass2, div.i_temp2, div.mass3, div.s_h_c3, div.i_temp3").show(); $("div.h_fusion, div.f_temp3").hide(); } else if (three_time == 'c2') { $("div.mass1, div.s_h_c1, div.t_fusion, div.i_temp1, div.f_temp, div.mass2, div.i_temp2, div.mass3, div.s_h_c3, div.i_temp3, div.h_fusion").show(); $("div.s_h_c2, div.f_temp3").hide(); } else if (three_time == 'm2') { $("div.mass1, div.s_h_c1, div.t_fusion, div.i_temp1, div.f_temp, div.i_temp2, div.mass3, div.s_h_c3, div.i_temp3, div.h_fusion, div.s_h_c2").show(); $("div.mass2, div.f_temp3").hide(); } else if (three_time == 'Ti(2)') { $("div.mass1, div.s_h_c1, div.t_fusion, div.i_temp1, div.f_temp, div.mass3, div.s_h_c3, div.i_temp3, div.h_fusion, div.s_h_c2, div.mass2").show(); $("div.i_temp2, div.f_temp3").hide(); } else if (three_time == 'm3') { $("div.mass1, div.s_h_c1, div.t_fusion, div.i_temp1, div.f_temp, div.s_h_c3, div.i_temp3, div.h_fusion, div.s_h_c2, div.mass2, div.i_temp2").show(); $("div.mass3, div.f_temp3").hide(); } else if (three_time == 'c3') { $("div.mass1, div.s_h_c1, div.t_fusion, div.i_temp1, div.f_temp, div.i_temp3, div.h_fusion, div.s_h_c2, div.mass2, div.i_temp2, div.mass3").show(); $("div.s_h_c3, div.f_temp3").hide(); } else if (three_time == 'Tf') { $("div.mass1, div.s_h_c1, div.t_fusion, div.i_temp1, div.i_temp3, div.h_fusion, div.s_h_c2, div.mass2, div.i_temp2, div.mass3, div.s_h_c3").show(); $("div.f_temp_two, div.f_temp, div.f_temp3").hide(); } } } } else if (myselection == 'a chemical reaction in a cofee cup calorimeter') { $("div.fimg3, div.state, .obj_1, .obj_2, .obj_3").hide(); $(".single_object").show(); } }); $('#objects').on('change', function() { var objects = $(this).val(); if (objects == '2') { $("div.object_2, .obj_1").show(); $(".obj_3").hide(); let obj_change = $('#obj_change').val(); if (obj_change == 'No') { $("select#object_formula_change, div.f_temp1, div.f_temp2, div.f_temp1, select#object3_formula_change").show(); $(".two_time, div.f_temp_two, div.t_fusion, div.h_fusion, .three_time").hide(); let objformula = $('#object_formula_change').val(); if (objformula == 'm1') { $("div.mass2, div.s_h_c2, div.f_temp2, div.i_temp2, div.s_h_c1, div.f_temp1, div.i_temp1").show(); $("div.mass1").hide(); } else if (objformula == 'c1') { $("div.mass2, div.s_h_c2, div.f_temp2, div.i_temp2, div.mass1, div.f_temp1, div.i_temp1").show(); $("div.s_h_c1").hide(); } else if (objformula == 'Ti(1)') { $("div.mass2, div.s_h_c2, div.f_temp2, div.i_temp2, div.f_temp1, div.mass1, div.s_h_c1").show(); $("div.i_temp1").hide(); } else if (objformula == 'Tf(1)') { $("div.mass2, div.s_h_c2, div.f_temp2, div.i_temp2, div.i_temp1, div.mass1, div.s_h_c1").show(); $("div.f_temp1").hide(); } else if (objformula == 'm2') { $("div.mass1, div.s_h_c1, div.f_temp1, div.i_temp1, div.s_h_c2, div.f_temp2, div.i_temp2").show(); $("div.mass2").hide(); } else if (objformula == 'c2') { $("div.mass1, div.s_h_c1, div.f_temp1, div.i_temp1, div.mass2, div.f_temp2, div.i_temp2").show(); $("div.s_h_c2").hide(); } else if (objformula == 'Ti(2)') { $("div.mass1, div.s_h_c1, div.f_temp1, div.i_temp1, div.f_temp2, div.mass2, div.s_h_c2").show(); $("div.i_temp2").hide(); } else if (objformula == 'Tf(2)') { $("div.mass1, div.s_h_c1, div.f_temp1, div.i_temp1, div.mass2, div.s_h_c2").show(); $("div.f_temp2, div.i_temp2").hide(); } else if (objformula == 'q1') { $("div.mass1, div.s_h_c1, div.f_temp1, div.i_temp1").show(); $("div.mass2, div.s_h_c2, div.f_temp2, div.i_temp2").hide(); } else if (objformula == 'q2') { $("div.mass2, div.s_h_c2, div.f_temp2, div.i_temp2").show(); $("div.mass1, div.s_h_c1, div.f_temp1, div.i_temp1").hide(); } } else if (obj_change == 'Yes,two times') { $("select#object_formula_change, div.mass1, div.f_temp2, div.f_temp1, select#object3_formula_change").hide(); $(".two_time, .three_time, div.f_temp_two, div.t_fusion, div.h_fusion").show(); let twoTime = $('#two_time').val(); if (twoTime == 'm1_two') { $("div.mass2, div.s_h_c2, div.f_temp_two, div.i_temp2, div.s_h_c1, div.t_fusion, div.i_temp1, div.h_fusion").show(); $("div.mass1, div.f_temp1, div.f_temp2").hide(); } else if (twoTime == 'c1_two') { $("div.mass1, div.h_fusion, div.s_h_c2, div.f_temp, div.t_fusion, div.mass2, div.i_temp2").show(); $("div.s_h_c1").hide(); } else if (twoTime == 'Ti(1)') { $("div.mass1, div.h_fusion, div.s_h_c2, div.f_temp, div.t_fusion, div.mass2, div.i_temp2, div.s_h_c1").show(); $("div.i_temp1").hide(); } else if (twoTime == 'Tfusion') { $("div.mass1, div.h_fusion, div.mass2, div.s_h_c2, div.f_temp, div.i_temp2, div.s_h_c1").show(); $("div.i_temp1, div.t_fusion").hide(); } else if (twoTime == 'ΔHfusion') { $("div.mass1, div.s_h_c1, div.t_fusion, div.i_temp1, div.s_h_c2, div.f_temp, div.mass2, div.i_temp2").show(); $("div.h_fusion").hide(); } else if (twoTime == 'c2') { $("div.mass1, div.s_h_c1, div.t_fusion, div.i_temp1, div.f_temp, div.mass2, div.i_temp2, div.h_fusion").show(); $("div.s_h_c2").hide(); } else if (twoTime == 'm2') { $("div.mass1, div.s_h_c1, div.t_fusion, div.i_temp1, div.f_temp, div.i_temp2, div.h_fusion, div.s_h_c2").show(); $("div.mass2").hide(); } else if (twoTime == 'Ti(2)') { $("div.mass1, div.s_h_c1, div.h_fusion, div.i_temp1, div.s_h_c2, div.f_temp, div.t_fusion, div.mass2").show(); $("div.i_temp2").hide(); } else if (twoTime == 'Tf') { $("div.mass1, div.s_h_c1, div.t_fusion, div.i_temp1, div.i_temp2, div.mass2, div.h_fusion,div.s_h_c2").show(); $("div.f_temp, div.f_temp_two").hide(); } } } else if (objects == '3') { $(".obj_1, div.object_2").hide(); $(".obj_3").show(); let obj_change = $('#obj_change').val(); if (obj_change == 'No') { $("div.object_2, .obj_3").show(); $(".obj_1").hide(); let obj_change3 = $('#object3_formula_change').val(); if (obj_change3 == 'm1') { $("div.mass2, div.s_h_c2, div.f_temp2, div.i_temp2, div.mass3, div.s_h_c3, div.f_temp3, div.i_temp3, div.s_h_c1, div.f_temp1, div.i_temp1").show(); $("div.mass1").hide(); } else if (obj_change3 == 'c1') { $("div.mass2, div.s_h_c2, div.f_temp2, div.i_temp2, div.mass3, div.s_h_c3, div.f_temp3, div.i_temp3, div.f_temp1, div.i_temp1, div.mass1").show(); $("div.s_h_c1").hide(); } else if (obj_change3 == 'Tf(1)') { $("div.mass2, div.s_h_c2, div.f_temp2, div.i_temp2, div.mass3, div.s_h_c3, div.f_temp3, div.i_temp3, div.i_temp1, div.mass1, div.s_h_c1").show(); $("div.f_temp1").hide(); } else if (obj_change3 == 'Ti(1)') { $("div.mass2, div.s_h_c2, div.f_temp2, div.i_temp2, div.mass3, div.s_h_c3, div.f_temp3, div.i_temp3, div.f_temp1, div.mass1, div.s_h_c1").show(); $("div.i_temp1").hide(); } else if (obj_change3 == 'm2') { $("div.mass1, div.s_h_c1, div.f_temp1, div.i_temp1, div.mass3, div.s_h_c3, div.f_temp3, div.i_temp3, div.s_h_c2, div.f_temp2, div.i_temp2").show(); $("div.mass2").hide(); } else if (obj_change3 == 'c2') { $("div.mass1, div.s_h_c1, div.f_temp1, div.i_temp1, div.mass3, div.s_h_c3, div.f_temp3, div.i_temp3, div.mass2, div.f_temp2, div.i_temp2").show(); $("div.s_h_c2").hide(); } else if (obj_change3 == 'Tf(2)') { $("div.mass1, div.s_h_c1, div.f_temp1, div.i_temp1, div.mass3, div.s_h_c3, div.f_temp3, div.i_temp3, div.i_temp2, div.mass2, div.s_h_c2").show(); $("div.f_temp2").hide(); } else if (obj_change3 == 'Ti(2)') { $("div.mass1, div.s_h_c1, div.f_temp1, div.i_temp1, div.mass3, div.s_h_c3, div.f_temp3, div.i_temp3, div.mass2, div.s_h_c2, div.f_temp2").show(); $("div.i_temp2").hide(); } else if (obj_change3 == 'm3') { $("div.mass1, div.s_h_c1, div.f_temp1, div.i_temp1, div.s_h_c3, div.f_temp3, div.i_temp3, div.mass2, div.s_h_c2, div.f_temp2, div.i_temp2").show(); $("div.mass3").hide(); } else if (obj_change3 == 'c3') { $("div.mass1, div.s_h_c1, div.f_temp1, div.i_temp1, div.f_temp3, div.i_temp3, div.mass2, div.s_h_c2, div.f_temp2, div.i_temp2, div.mass3").show(); $("div.s_h_c3").hide(); } else if (obj_change3 == 'Tf(3)') { $("div.mass1, div.s_h_c1, div.f_temp1, div.i_temp1, div.i_temp3, div.mass2, div.s_h_c2, div.f_temp2, div.i_temp2, div.mass3, div.s_h_c3").show(); $("div.f_temp3").hide(); } else if (obj_change3 == 'Ti(3)') { $("div.mass1, div.s_h_c1, div.f_temp1, div.i_temp1, div.mass2, div.s_h_c2, div.f_temp2, div.i_temp2, div.mass3, div.s_h_c3, div.f_temp3").show(); $("div.i_temp3").hide(); } } else if (obj_change == 'Yes,two times') { $("select#object_formula_change, div.mass1, div.f_temp2, div.f_temp1, select#object3_formula_change").hide(); $(".two_time, .three_time, div.f_temp_two, div.t_fusion, div.h_fusion").show(); let three_time = $('#three_time').val(); if (three_time == 'm1') { $("div.mass2, div.s_h_c2, div.f_temp, div.i_temp2, div.mass3, div.s_h_c3, div.i_temp3, div.s_h_c1, div.t_fusion, div.i_temp1, div.h_fusion").show(); $("div.mass1,div.f_temp3").hide(); } else if (three_time == 'c1') { $("div.mass1, div.h_fusion, div.s_h_c2, div.f_temp, div.t_fusion, div.mass2, div.i_temp2, div.mass3, div.s_h_c3, div.i_temp3").show(); $("div.s_h_c1, div.i_temp1, div.f_temp3").hide(); } else if (three_time == 'Tfusion') { $("div.mass2, div.s_h_c2, div.f_temp, div.i_temp2, div.mass3, div.s_h_c3, div.i_temp3, div.mass1, div.h_fusion, div.s_h_c1, div.i_temp1").show(); $("div.t_fusion, div.f_temp3").hide(); } else if (three_time == 'Ti(1)') { $("div.mass1, div.h_fusion, div.s_h_c2, div.f_temp, div.t_fusion, div.mass2, div.i_temp2, div.mass3, div.s_h_c3, div.i_temp3, div.s_h_c1").show(); $("div.i_temp1, div.f_temp3").hide(); } else if (three_time == 'Hfusion') { $("div.mass1, div.s_h_c1, div.t_fusion, div.i_temp1, div.s_h_c2, div.f_temp, div.mass2, div.i_temp2, div.mass3, div.s_h_c3, div.i_temp3").show(); $("div.h_fusion, div.f_temp3").hide(); } else if (three_time == 'c2') { $("div.mass1, div.s_h_c1, div.t_fusion, div.i_temp1, div.f_temp, div.mass2, div.i_temp2, div.mass3, div.s_h_c3, div.i_temp3, div.h_fusion").show(); $("div.s_h_c2, div.f_temp3").hide(); } else if (three_time == 'm2') { $("div.mass1, div.s_h_c1, div.t_fusion, div.i_temp1, div.f_temp, div.i_temp2, div.mass3, div.s_h_c3, div.i_temp3, div.h_fusion, div.s_h_c2").show(); $("div.mass2, div.f_temp3").hide(); } else if (three_time == 'Ti(2)') { $("div.mass1, div.s_h_c1, div.t_fusion, div.i_temp1, div.f_temp, div.mass3, div.s_h_c3, div.i_temp3, div.h_fusion, div.s_h_c2, div.mass2").show(); $("div.i_temp2, div.f_temp3").hide(); } else if (three_time == 'm3') { $("div.mass1, div.s_h_c1, div.t_fusion, div.i_temp1, div.f_temp, div.s_h_c3, div.i_temp3, div.h_fusion, div.s_h_c2, div.mass2, div.i_temp2").show(); $("div.mass3, div.f_temp3").hide(); } else if (three_time == 'c3') { $("div.mass1, div.s_h_c1, div.t_fusion, div.i_temp1, div.f_temp, div.i_temp3, div.h_fusion, div.s_h_c2, div.mass2, div.i_temp2, div.mass3").show(); $("div.s_h_c3, div.f_temp3").hide(); } else if (three_time == 'Tf') { $("div.mass1, div.s_h_c1, div.t_fusion, div.i_temp1, div.i_temp3, div.h_fusion, div.s_h_c2, div.mass2, div.i_temp2, div.mass3, div.s_h_c3").show(); $("div.f_temp_two, div.f_temp, div.f_temp3").hide(); } } } }); $('#obj_change').on('change', function() { var demovalue = $(this).val(); if (demovalue == 'No') { $("select#object_formula_change, div.f_temp1, div.f_temp2, div.f_temp1, select#object3_formula_change").show(); $(".two_time, div.f_temp_two, div.t_fusion, div.h_fusion, .three_time").hide(); let objChange = $('#object_formula_change').val(); if (objChange == 'm1') { $("div.mass2, div.s_h_c2, div.f_temp2, div.i_temp2, div.s_h_c1, div.f_temp1, div.i_temp1").show(); $("div.mass1").hide(); } else if (objChange == 'c1') { $("div.mass2, div.s_h_c2, div.f_temp2, div.i_temp2, div.mass1, div.f_temp1, div.i_temp1").show(); $("div.s_h_c1").hide(); } else if (objChange == 'Ti(1)') { $("div.mass2, div.s_h_c2, div.f_temp2, div.i_temp2, div.f_temp1, div.mass1, div.s_h_c1").show(); $("div.i_temp1").hide(); } else if (objChange == 'Tf(1)') { $("div.mass2, div.s_h_c2, div.f_temp2, div.i_temp2, div.i_temp1, div.mass1, div.s_h_c1").show(); $("div.f_temp1").hide(); } else if (objChange == 'm2') { $("div.mass1, div.s_h_c1, div.f_temp1, div.i_temp1, div.s_h_c2, div.f_temp2, div.i_temp2").show(); $("div.mass2").hide(); } else if (objChange == 'c2') { $("div.mass1, div.s_h_c1, div.f_temp1, div.i_temp1, div.mass2, div.f_temp2, div.i_temp2").show(); $("div.s_h_c2").hide(); } else if (objChange == 'Ti(2)') { $("div.mass1, div.s_h_c1, div.f_temp1, div.i_temp1, div.f_temp2, div.mass2, div.s_h_c2").show(); $("div.i_temp2").hide(); } else if (objChange == 'Tf(2)') { $("div.mass1, div.s_h_c1, div.f_temp1, div.i_temp1, div.mass2, div.s_h_c2").show(); $("div.f_temp2, div.i_temp2").hide(); } else if (objChange == 'q1') { $("div.mass1, div.s_h_c1, div.f_temp1, div.i_temp1").show(); $("div.mass2, div.s_h_c2, div.f_temp2, div.i_temp2").hide(); } else if (objChange == 'q2') { $("div.mass2, div.s_h_c2, div.f_temp2, div.i_temp2").show(); $("div.mass1, div.s_h_c1, div.f_temp1, div.i_temp1").hide(); } let objects = $('#objects').val(); if (objects == '3') { $(".obj_1, div.object_2").hide(); $(".obj_3").show(); let obj_change = $('#obj_change').val(); if (obj_change == 'No') { $("div.object_2, .obj_3").show(); $(".obj_1").hide(); let obj_change3 = $('#object3_formula_change').val(); if (obj_change3 == 'm1') { $("div.mass2, div.s_h_c2, div.f_temp2, div.i_temp2, div.mass3, div.s_h_c3, div.f_temp3, div.i_temp3, div.s_h_c1, div.f_temp1, div.i_temp1").show(); $("div.mass1").hide(); } else if (obj_change3 == 'c1') { $("div.mass2, div.s_h_c2, div.f_temp2, div.i_temp2, div.mass3, div.s_h_c3, div.f_temp3, div.i_temp3, div.f_temp1, div.i_temp1, div.mass1").show(); $("div.s_h_c1").hide(); } else if (obj_change3 == 'Tf(1)') { $("div.mass2, div.s_h_c2, div.f_temp2, div.i_temp2, div.mass3, div.s_h_c3, div.f_temp3, div.i_temp3, div.i_temp1, div.mass1, div.s_h_c1").show(); $("div.f_temp1").hide(); } else if (obj_change3 == 'Ti(1)') { $("div.mass2, div.s_h_c2, div.f_temp2, div.i_temp2, div.mass3, div.s_h_c3, div.f_temp3, div.i_temp3, div.f_temp1, div.mass1, div.s_h_c1").show(); $("div.i_temp1").hide(); } else if (obj_change3 == 'm2') { $("div.mass1, div.s_h_c1, div.f_temp1, div.i_temp1, div.mass3, div.s_h_c3, div.f_temp3, div.i_temp3, div.s_h_c2, div.f_temp2, div.i_temp2").show(); $("div.mass2").hide(); } else if (obj_change3 == 'c2') { $("div.mass1, div.s_h_c1, div.f_temp1, div.i_temp1, div.mass3, div.s_h_c3, div.f_temp3, div.i_temp3, div.mass2, div.f_temp2, div.i_temp2").show(); $("div.s_h_c2").hide(); } else if (obj_change3 == 'Tf(2)') { $("div.mass1, div.s_h_c1, div.f_temp1, div.i_temp1, div.mass3, div.s_h_c3, div.f_temp3, div.i_temp3, div.i_temp2, div.mass2, div.s_h_c2").show(); $("div.f_temp2").hide(); } else if (obj_change3 == 'Ti(2)') { $("div.mass1, div.s_h_c1, div.f_temp1, div.i_temp1, div.mass3, div.s_h_c3, div.f_temp3, div.i_temp3, div.mass2, div.s_h_c2, div.f_temp2").show(); $("div.i_temp2").hide(); } else if (obj_change3 == 'm3') { $("div.mass1, div.s_h_c1, div.f_temp1, div.i_temp1, div.s_h_c3, div.f_temp3, div.i_temp3, div.mass2, div.s_h_c2, div.f_temp2, div.i_temp2").show(); $("div.mass3").hide(); } else if (obj_change3 == 'c3') { $("div.mass1, div.s_h_c1, div.f_temp1, div.i_temp1, div.f_temp3, div.i_temp3, div.mass2, div.s_h_c2, div.f_temp2, div.i_temp2, div.mass3").show(); $("div.s_h_c3").hide(); } else if (obj_change3 == 'Tf(3)') { $("div.mass1, div.s_h_c1, div.f_temp1, div.i_temp1, div.i_temp3, div.mass2, div.s_h_c2, div.f_temp2, div.i_temp2, div.mass3, div.s_h_c3").show(); $("div.f_temp3").hide(); } else if (obj_change3 == 'Ti(3)') { $("div.mass1, div.s_h_c1, div.f_temp1, div.i_temp1, div.mass2, div.s_h_c2, div.f_temp2, div.i_temp2, div.mass3, div.s_h_c3, div.f_temp3").show(); $("div.i_temp3").hide(); } } } } else if (demovalue == 'Yes,two times') { $("select#object_formula_change, div.mass1, div.f_temp2, div.f_temp1, select#object3_formula_change").hide(); $(".two_time, .three_time, div.f_temp_two, div.t_fusion, div.h_fusion").show(); let twoTime = $('#two_time').val(); if (twoTime == 'm1_two') { $("div.mass2, div.s_h_c2, div.f_temp_two, div.i_temp2, div.s_h_c1, div.t_fusion, div.i_temp1, div.h_fusion").show(); $("div.mass1, div.f_temp1, div.f_temp2").hide(); } else if (twoTime == 'c1_two') { $("div.mass1, div.h_fusion, div.s_h_c2, div.f_temp, div.t_fusion, div.mass2, div.i_temp2").show(); $("div.s_h_c1").hide(); } else if (twoTime == 'Ti(1)') { $("div.mass1, div.h_fusion, div.s_h_c2, div.f_temp, div.t_fusion, div.mass2, div.i_temp2, div.s_h_c1").show(); $("div.i_temp1").hide(); } else if (twoTime == 'Tfusion') { $("div.mass1, div.h_fusion, div.mass2, div.s_h_c2, div.f_temp, div.i_temp2, div.s_h_c1").show(); $("div.i_temp1, div.t_fusion").hide(); } else if (twoTime == 'ΔHfusion') { $("div.mass1, div.s_h_c1, div.t_fusion, div.i_temp1, div.s_h_c2, div.f_temp, div.mass2, div.i_temp2").show(); $("div.h_fusion").hide(); } else if (twoTime == 'c2') { $("div.mass1, div.s_h_c1, div.t_fusion, div.i_temp1, div.f_temp, div.mass2, div.i_temp2, div.h_fusion").show(); $("div.s_h_c2").hide(); } else if (twoTime == 'm2') { $("div.mass1, div.s_h_c1, div.t_fusion, div.i_temp1, div.f_temp, div.i_temp2, div.h_fusion, div.s_h_c2").show(); $("div.mass2").hide(); } else if (twoTime == 'Ti(2)') { $("div.mass1, div.s_h_c1, div.h_fusion, div.i_temp1, div.s_h_c2, div.f_temp, div.t_fusion, div.mass2").show(); $("div.i_temp2").hide(); } else if (twoTime == 'Tf') { $("div.mass1, div.s_h_c1, div.t_fusion, div.i_temp1, div.i_temp2, div.mass2, div.h_fusion,div.s_h_c2").show(); $("div.f_temp, div.f_temp_two").hide(); } let objects = $('#objects').val(); if (objects == '3') { $(".obj_1, div.object_2").hide(); $(".obj_3").show(); let obj_change = $('#obj_change').val(); if (obj_change == 'Yes,two times') { $("select#object_formula_change, div.mass1, div.f_temp2, div.f_temp1, select#object3_formula_change").hide(); $(".two_time, .three_time, div.f_temp_two, div.t_fusion, div.h_fusion").show(); let three_time = $('#three_time').val(); if (three_time == 'm1') { $("div.mass2, div.s_h_c2, div.f_temp, div.i_temp2, div.mass3, div.s_h_c3, div.i_temp3, div.s_h_c1, div.t_fusion, div.i_temp1, div.h_fusion").show(); $("div.mass1,div.f_temp3").hide(); } else if (three_time == 'c1') { $("div.mass1, div.h_fusion, div.s_h_c2, div.f_temp, div.t_fusion, div.mass2, div.i_temp2, div.mass3, div.s_h_c3, div.i_temp3").show(); $("div.s_h_c1, div.i_temp1, div.f_temp3").hide(); } else if (three_time == 'Tfusion') { $("div.mass2, div.s_h_c2, div.f_temp, div.i_temp2, div.mass3, div.s_h_c3, div.i_temp3, div.mass1, div.h_fusion, div.s_h_c1, div.i_temp1").show(); $("div.t_fusion, div.f_temp3").hide(); } else if (three_time == 'Ti(1)') { $("div.mass1, div.h_fusion, div.s_h_c2, div.f_temp, div.t_fusion, div.mass2, div.i_temp2, div.mass3, div.s_h_c3, div.i_temp3, div.s_h_c1").show(); $("div.i_temp1, div.f_temp3").hide(); } else if (three_time == 'Hfusion') { $("div.mass1, div.s_h_c1, div.t_fusion, div.i_temp1, div.s_h_c2, div.f_temp, div.mass2, div.i_temp2, div.mass3, div.s_h_c3, div.i_temp3").show(); $("div.h_fusion, div.f_temp3").hide(); } else if (three_time == 'c2') { $("div.mass1, div.s_h_c1, div.t_fusion, div.i_temp1, div.f_temp, div.mass2, div.i_temp2, div.mass3, div.s_h_c3, div.i_temp3, div.h_fusion").show(); $("div.s_h_c2, div.f_temp3").hide(); } else if (three_time == 'm2') { $("div.mass1, div.s_h_c1, div.t_fusion, div.i_temp1, div.f_temp, div.i_temp2, div.mass3, div.s_h_c3, div.i_temp3, div.h_fusion, div.s_h_c2").show(); $("div.mass2, div.f_temp3").hide(); } else if (three_time == 'Ti(2)') { $("div.mass1, div.s_h_c1, div.t_fusion, div.i_temp1, div.f_temp, div.mass3, div.s_h_c3, div.i_temp3, div.h_fusion, div.s_h_c2, div.mass2").show(); $("div.i_temp2, div.f_temp3").hide(); } else if (three_time == 'm3') { $("div.mass1, div.s_h_c1, div.t_fusion, div.i_temp1, div.f_temp, div.s_h_c3, div.i_temp3, div.h_fusion, div.s_h_c2, div.mass2, div.i_temp2").show(); $("div.mass3, div.f_temp3").hide(); } else if (three_time == 'c3') { $("div.mass1, div.s_h_c1, div.t_fusion, div.i_temp1, div.f_temp, div.i_temp3, div.h_fusion, div.s_h_c2, div.mass2, div.i_temp2, div.mass3").show(); $("div.s_h_c3, div.f_temp3").hide(); } else if (three_time == 'Tf') { $("div.mass1, div.s_h_c1, div.t_fusion, div.i_temp1, div.i_temp3, div.h_fusion, div.s_h_c2, div.mass2, div.i_temp2, div.mass3, div.s_h_c3").show(); $("div.f_temp_two, div.f_temp, div.f_temp3").hide(); } } } } }); });