Technical Calculator

Calorimetry Calculator

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

By:

The calorimetry calculator estimates the heat energy released or absorbed in a chemical reaction. By knowing the change in the heat energy, we can determine whether the reaction is exothermic or endothermic.

What Is Calorimetry?

“Calorimetry is the process of calculating the amount of heat energy released or absorbed in a chemical reaction”

When heat energy is released in a chemical reaction, then the chemical reaction is exothermic and a calorimetry calculator will indicate a positive value. On the other hand, if the heat energy is absorbed by the reaction, the reaction is endothermic and the calorimeter calculator will indicate a negative value.

Unit of Calorimetry:

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

How to Find the Heat Capacity of Calorimeter?

The total heat energy released in the chemical reaction is:  

Total heat energy = Q = \(\delta{Q_{1}} + \delta{Q_{2}} + \delta{Q_{3}}+ ... + \delta {Q_ {I}}\)

The amount of heat gained or lost can be calculated by the following equation.

\(\Delta Q = m c \Delta T\)

Where:

ΔQ = Heat change 

m = mass of an object 

The C = Heat capacity of an object (The amount of heat energy required to raise the temperature to 1 °C or 1 K)

ΔT = Change of temperature between the initial temperature and the final temperature

Example:

Consider you have dropped 100 g of ice into 5kg of water at a temperature of 20 °C. Let's assume the only materials exchanging heat or water and ice. The temperature of the ice was -25 °C, then find the final temperature of the system. The heat capacity of water and ice are 4.18 J/g.K and 2.05 J/g.K, respectively, and the heat of the fusion of water is 334 J/g.

Given:

Mass of water = 5 Kg

Mass of Ice = 100 g

The initial temperature of water = 20 °C + 273 = 293 K

Initial temperature of ice = -25 °C +273 = 248 K

The final temperature of water =?

Solution:

The calorimetry equation for the final temperature is: 

$$ \delta{Q_{1}}+\delta{Q_{2}}+\delta{Q_{3}}+\delta{Q_{4}} = $$

Putting in all the values 

$$ m_{\text{ice}} c_{\text{ice}} \left(T_{\text{fusion}} - T_{\text{ice}}\right) + m_{\text{ice}} \Delta H_{\text{fusion}} + m_{\text{water}} c_{\text{water}} \left(T_{f} - T_{\text{fusion}}\right) $$

Re-Arranging all the values of the final temperature as follows:

$$ T_f = \dfrac{m_1c_1(T_{fusion} - T_{i1})+m_1H_{fusion}-m_1c_2T_{fusion}-m_2c_2T_{i2}}{-m_1c_2-m_2c_2} $$

Now by putting the values in the given equation.

$$ T_f = \dfrac{(10)(25)(40-0.00027003080950275)+(10)(30)-(10)(50)(40)-(20)(50)(20)}{-(10)(50)-(20)(50)} $$ 

$$ T_f = \dfrac{(10)(25)(39.99972996919)+(10)(30)-(10)(50)(40)-(20)(50)(20)}{-(10)(50)-(20)(50)} $$

$$ T_f = \dfrac{(9999.9324922976)+(300)-(10000)-(20000)}{-(500)-(1000)} $$

$$ T_f = \dfrac{(-19700.067507702)}{(-1500)} $$

The final temperature is given below:

$$ T_f = 13.133K $$

The calorimetry problems can be used to find the initial or the final temperature of the substances when participating in a chemical reaction. The coffee cup calorimeter calculator can find the specific heat and the system's enthalpy involved in a chemical change.

Working of Calorimetry Calculator:

The calorimeter constant calculator is simple to use by following the instruction as under:

Input:

  • Select the type of reaction and number of objects from respective drop-down lists
  • Select if object 1 changes state or not
  • Select the parameter to be calculated 
  • Enter all the required parameters in their designated fields 
  • Hit the calculate button

Output:

  • Specific heat capacities, temperature changes, energies, and masses of objects in the reaction
  • Enthalpy changes and isolation time of the calorimetry reaction

FAQs:

What Is the Latent Heat of the Fusion?

The latent heat of fusion is the amount of heat required to change the physical state of a substance from a solid to a liquid or gaseous state. The latent heat of a substance is specific and you can calculate the latent heat with the online calorimetry calculator

What Is Enthalpy in Chemistry?

The enthalpy is the total content of heat energy of the whole system. It is equivalent to the system's internal energy plus the product of the pressure or volume of the system. The enthalpy of a system is different at a particular pressure. The coffee cup calorimeter calculator can spot the change in enthalpy by the minor change in the pressure or volume of the system.

References: 

From the source of hem.libretexts.org: Calorimetry, Calculate Heat Capacity of Calorimeter

From the source of wikipedia.org: Calorimetry, Heat Calculation 

$('#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(); } } } } }); });