template.js 1.43 KB
module.exports = {
    HTML:function(title,ch,line, list, body,control){
      return `
      <!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>${title}</title>
    <script src="jquery.js"></script>
    <script>
    
    
    </script>
    <style >

    #banner {
            position: absolute;
            top: 0;
            width: 100%;
            margin-top: ${ch};
            color: white;
        }
    
    #footer {
            position: absolute;
            bottom: 0;
            width: 100%;
            height: 50px;
            text-align: center;
            color: white;
        }
    
    </style>
    ${line}
</head>
<body>
    <img src = "images/main_background.jpg" alt="" style="z-index:-1; min-width: 100%; height: 700px;"></img>
    <div id="banner">      
       ${body}
         
    
    <br><br><br> 

    
                
    ${control}
                

    
    </div>

    <div id="footer">오픈소스SW Project 2019-1 고다경 김용재 김태희</div>
</body>
</html>
      `;
    },list:function(filelist){
      var list = '<ul>';
      var i = 0;
      while(i < filelist.length){
        list = list + `<li><a href="/healthcare/${filelist[i]}">${filelist[i]}</a></li>`;
        i = i + 1;
      }
      list = list+'</ul>';
      return list;
    }
  }