<p>PW_16a installation EDF (Latex/Choix)</p>
<!--*******************************************************-->
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script type="text/javascript">// <![CDATA[
$(document).ready(function(){

/**
  * Styles are defined below in jQuery because they are not cleared by the Atto editor, but otherwise they could have been defined in <style>.
 *
 * Reference: W3Schools.com - Hoverable dropdown: https://www.w3schools.com/howto/howto_css_dropdown.asp
 * Maybe I should have made a clickable dropdown: https://www.w3schools.com/howto/howto_js_dropdown.asp
 */

/**
  * Add classes and dropdown button.
 */
    $("div.formulaspart").addClass("mcx_dropdown");
    $("div.multichoice_answer").addClass("mcx_dropdown_panel");
    $("<div class='mcx_dropbtn'>Choisir la bonne expression... &nbsp; <span style='vertical-align:3px;'>↕</span></div>").insertBefore("div.mcx_dropdown_panel");

/**
  * Style .mcx_dropdown, the <div> container needed to position the dropdown panel.
 */
  /* $(".mcx_dropdown").css("position","relative");
    $(".mcx_dropdown").css("display","inline-block");
    $(".mcx_dropdown").css("text-align","center");
    $(".mcx_dropdown").css("background-color","#FFF");
    $(".mcx_dropdown").css("border","1px solid #8f959e");
    $(".mcx_dropdown").css("padding","5px");

/**
  * Style .mcx_dropbtn, the dropdown button.
  */
    $(".mcx_dropbtn").css("background-color","#FFF");
    $(".mcx_dropbtn").css("text-align","center");
    $(".mcx_dropbtn").css("cursor","default");
    $(".mcx_dropbtn").css("display","inline-block");
    $(".mcx_dropbtn").css("vertical-align","middle");
    $(".mcx_dropbtn").css("padding","3px 10px 4px");

    // IF YOU HAVE WIDE EQUATIONS, YOU MAY WANT TO ADJUST THE WIDTH OF THE DROP-DOWN BUTTON BELOW:
    // ********************************************************************************************************************
    $(".mcx_dropbtn").css("width","280px");

/**
  * Style mcx_dropdown_panel, the dropdown panel (hidden by default).
  */
    $(".mcx_dropdown_panel").css("display","none");
    $(".mcx_dropdown_panel").css("position","absolute");
    $(".mcx_dropdown_panel").css("min-width","160px");
    $(".mcx_dropdown_panel").css("z-index","1");
    $(".mcx_dropdown_panel").css("background-color","#FFF");
    $(".mcx_dropdown_panel").css("border","1px solid #CCC");
    $(".mcx_dropdown_panel").css("padding","5px 10px 5px");
    $(".mcx_dropdown_panel").css("box-shadow","0px 8px 16px 0px rgba(0,0,0,0.2)");

/**
  * Style the elements inside the dropdown panel.
  */
    $(".mcx_dropdown_panel div").css("text-align","center");
    $(".mcx_dropdown_panel div").css("margin","15px 0px");

/**
  * Change color of the panel elements on hover.
  */
    $(".mcx_dropdown_panel div").hover(function(){
        $(this).css("background-color","#bcddf9");
    }, function(){
        $(this).css("background-color","#FFF");
    });

/**
  * Show the dropdown panel on hover.
  */
    $(".mcx_dropdown").hover(function(){
        $(".mcx_dropdown_panel").show();
        $(".mcx_dropdown_panel").css("text-align","center");
    }, function(){
        $(".mcx_dropdown_panel").hide();
    });

/**
  * Hide the radio buttons.
  */
    $('input[type=radio]').css("display","none");

/**
  * Copy the selected element to the dropdown button.
  */
    $("input[type=radio]").change(function(){
        $("div.mcx_dropbtn").empty();
        $("input[type=radio]:checked + label").clone().appendTo("div.mcx_dropbtn");
        $("div.mcx_dropbtn").append(" &nbsp; &nbsp; <span style='vertical-align:3px;'>↕</span>");
        $(".mcx_dropdown_panel").hide();
    });

/**
  * After clicking the [Check] button.
  */
    if ($("input[type=radio]").is(":checked")) {
        $("div.mcx_dropbtn").empty();
        $("input[type=radio]:checked + label").clone().appendTo("div.mcx_dropbtn");
        $("div.mcx_dropbtn").append(" &nbsp; &nbsp; <span style='vertical-align:3px;'>↕</span>");
        $(".mcx_dropdown_panel").hide();
        $(".mcx_dropdown").css("background-color","#e8eef0");
        $(".mcx_dropbtn").css("background-color","#e8eef0");
        //$(".mcx_dropdown").hover(function(){
                $(".mcx_dropdown_panel").hide();
        });
    }

/**
  * Extra space below the [Check] button required only for the Embed display.
  */
    $("<div style='height:250px;'></div>").appendTo(".formulation");

});
// ]]></script>
<!--*******************************************************-->
<p class="MsoNormalCxSpFirst" style="margin-bottom: .0001pt; mso-add-space: auto; text-align: justify;"><span style="font-family: 'Times New Roman','serif'; mso-ascii-theme-font: major-bidi; mso-hansi-theme-font: major-bidi; mso-bidi-theme-font: major-bidi;">Une installation électrique alimentée par le réseau EDF (230V/50Hz) est composée d’une ampoule de {p}VA, d’un radiateur de {p1}VA et d’un aspirateur branché (facteur de puissance cos </span><span style="font-family: Symbol; mso-ascii-font-family: 'Times New Roman'; mso-ascii-theme-font: major-bidi; mso-hansi-font-family: 'Times New Roman'; mso-hansi-theme-font: major-bidi; mso-bidi-font-family: 'Times New Roman'; mso-bidi-theme-font: major-bidi; mso-char-type: symbol; mso-symbol-font-family: Symbol;">j</span><span style="font-family: 'Times New Roman','serif'; mso-ascii-theme-font: major-bidi; mso-hansi-theme-font: major-bidi; mso-bidi-theme-font: major-bidi;">={a}).</span></p>