index2 - 복사본.ejs 4.72 KB
<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <title><%= title %></title>





    <!-- http://www.blueb.co.kr/?c=1/7&cat=%EB%8B%AC%EB%A0%A5&uid=4076 -->
    <link href="http://www.blueb.co.kr/SRC2/fullcalendar/fullcalendar.css" rel='stylesheet' />
    <link href="http://www.blueb.co.kr/SRC2/fullcalendar/fullcalendar.print.css" rel='stylesheet' media='print' />
    <link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css">
    <script src="http://www.blueb.co.kr/SRC2/fullcalendar/lib/moment.min.js"></script>
    <script src="http://www.blueb.co.kr/SRC2/fullcalendar/lib/jquery.min.js"></script>
    <script src="http://www.blueb.co.kr/SRC2/fullcalendar/fullcalendar.min.js"></script>


    <!-- <script src="https://code.jquery.com/jquery-3.2.1.min.js" integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4=" crossorigin="anonymous"></script> -->
    <!-- <style> @import url("http://fonts.googleapis.com/earlyaccess/nanumgothic.css");</style> -->
    <script>
    $(document).ready(function(){
      $("button#searchButton").click(function(){
        var name = $("input").val();
        location.href = "http://127.0.0.1:3000/search/" + name;
      })
    });
    </script>
    <script>

    	$(document).ready(function() {

    		$('#calendar').fullCalendar({
    			header: {
    				left: 'prev,next today',
    				center: 'title',
    				right: 'month,agendaWeek,agendaDay'
    			},
    			defaultDate: '2017-12-06',
    			businessHours: true, // display business hours
    			editable: true,
    			events: [
            {
              title: 'Business Lasdfasunch',
              start: '2017-12-25',
              constraint: 'businessHours'
            },
            {
              title: 'Conference',
              start: '2017-12-01',
              end: '2017-12-01',
              color: '#257e4a'
            },

            //   //검정 250분 이상
            //   color: '#000000'E
            //   //빨강 200분 미만D
            //   color: '#990000'
            //   //주황 150분미만C
            //   color: '#ff6600'
            //   //노랑 100분 미만B
            //   color: '#ffff00'
            //   //초록 40분 미만A
            //   color: '#00ff99'
            //var asa = new Date(print1[0]);
            <% var p = 0 %>
              <% for (var p = 0; p < _day.length ;p++ ) { %>
            {

                start: <%-  _day[p] %>,
                end:    <%- _day[p] %>,
                overlap: false,
                rendering: 'background',
                // color: '#ff6600'//투명
                <% if ( _color[p] == "A") { %>
                color: '#00ff99'//초록
                <% } else if ( _color[p] == "B") { %>
                  color: '#ffff00'//노랑
                <% } else if ( _color[p] == "C") { %>
                  color: '#ff6600'//주황
                <% } else if ( _color[p] == "D") { %>
                  color: '#990000'//빨강
                <% } else if ( _color[p] == "E") { %>
                  color: '#000000'//검정
                <% } else if ( _color[0] == "F") { %>
                  color: '#ffffff'//투명
                <% } else  { %>
                  color: '#ffffff'//투명
                <% } %>
              },
              <% } %>
              {
                  //빨강 200분 미만
                  start: '2017-12-09',
                  //end: '2015-02-02',
                  overlap: false,
                  rendering: 'background',
                  color: '#ffffff'//투명
                }
    			]
    		});
    	});

    </script>

    <style>
    body {
      width: 980px;
  		font-family: "Lucida Grande",Helvetica,Arial,Verdana,sans-serif;
  		font-size: 14px;
  	}

  	#calendar {
  		max-width: 900px;
  		margin: 0 auto;
  	}
    </style>
  </head>
  <body class="w3-content" style="padding-top: 16px">
      <!-- 상단 이미지 -->
      <div>
              <img src = "https://i.ytimg.com/vi/nhX6W0mzVOE/maxresdefault.jpg" width="100%" height="250">
      </div>

      <div>
     	  <input type="text" class="input_text" style="width: 90%" placeholder="소환사 이름"/>
          <span class="input-group-btn">
            <button id="searchButton"  style="width:9%" class="btn btn-primary" type="button" onclick="search(name)">검색!</button>
          </span>
      </div>
      <div>

        <a>닉네임 : <%=  name %></a><br>
        <a>고유ID : <%= _profileIconId %></a><br>
        <a>레  벨 : <%= _summonerLevel %></a><br>
        <% for (var i = 0; i < _day.length ; i++ ) { %>
        <a>시  간 : <%= _day[i] %></a>
        <a>  <%= _time[i] %></a>
        <a>  <%= _color[i] %></a><br>
        <% } %>
      </div>
      <div>

	       <div id='calendar'></div>



      </div>




    </body>
</html>