Page 20 - MDP2020-1
P. 20

|    인천전자마이스터고등학교  ·············································································································
            14

                                    lunch  =  lunch  ===  ""  ?  "  점심  없음"  :  lunch;
                                    dinner  =  dinner  ===  ""  ?  "  저녁  없음"  :  dinner;
                                    breakfast  =  breakfast.replaceAll("(","");
                                    lunch  =  lunch.replaceAll("(","");

                                    dinner  =  dinner.replaceAll("(","");
                                    breakfast  =  breakfast.replaceAll(")","");
                                    lunch  =  lunch.replaceAll(")","");
                                    dinner  =  dinner.replaceAll(")","");

                                    breakfast  =  breakfast.replaceAll("고","");
                                    lunch  =  lunch.replaceAll("고","");
                                    dinner  =  dinner.replaceAll("고","");
                                    breakfast  =  breakfast.replaceAll("\"","");
                                    lunch  =  lunch.replaceAll("\"","");
                                    dinner  =  dinner.replaceAll("\"","");

                                    breakfast  =  breakfast.replaceAll("완제품","");
                                    lunch  =  lunch.replaceAll("완제품","");
                                    dinner  =  dinner.replaceAll("완제품","");
                                    Breakfast.innerText  =  `아침:${breakfast}`;

                                    Lunch.innerText  =  `점심:${lunch}`;
                                    Dinner.innerText  =  `저녁:${dinner}`;
                                    menuContainer.appendChild(Breakfast);
                                    menuContainer.appendChild(Lunch);
                                    menuContainer.appendChild(Dinner);
                            })

                    }
                    function  getDate(){
                            const  data  =  new  Date();
                            const  year  =  data.getFullYear();
                            const  month  =  data.getMonth()+1;

                            const  date  =  data.getHours()>18  ?  data.getDate()+1  :  data.getDate();
                            const  allergy  =  "hidden";
                            printMenus(year,month,date,allergy);
                    }
                    function  init(){

                            getDate();
                    }
                    init();
            }
            module.exports  =  menuModule;
   15   16   17   18   19   20   21   22   23   24   25