Advertisement
KroniK907

Daily Agenda Page

Nov 26th, 2015
177
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5 4.57 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <script type="text/javascript">
  3.   var googleCalendar     = "";
  4.   var todoSpreadsheet    = "";
  5.   var contactSpreadsheet = "";
  6. </script>
  7.  
  8.  
  9.  
  10.  
  11. <html>
  12.   <head>
  13.     <title>Daily Agenda</title>
  14.     <style>
  15.       body {width: 100%; height: 100%; background-color: #fff;}
  16.       div.page {margin: 0 auto; width: 8in; height: 10.5in; border: none;}
  17.       div.header{width: 100%; border: none;}
  18.       div.left {width: 20%; height: 8in; float: left; box-sizing: border-box;}
  19.       div.middle{width: 50%; height: 8in; float: left; box-sizing: border-box; border: none;}
  20.       div.right{width: 30%; height: 8in; float: left; box-sizing: border-box;}
  21.       div.month{width: 100%; height: 1.5in;box-sizing: border-box;}
  22.       iframe.month{width: 100%; height: 1.5in; box-sizing: border-box; margin: none; border: none;}
  23.       div.input{width: 100%; height: 6.5in;box-sizing: border-box;}
  24.       iframe.agenda{width: 100%; height: 8in; border: none; margin: none;}
  25.       div.todo{width: 100%; height: 4in; box-sizing: border-box;}
  26.       iframe.todo, iframe.tocontact{width: 100%; height: 358px; border: none; margin: none; box-sizing: border-box;}
  27.       div.tocontact{width: 100%; height: 4in; box-sizing: border-box;}
  28.       div.bottom{width: 100%; height: 2.25in; box-sizing: border-box;}
  29.       div.clear{clear: both;}
  30.  
  31.       h1 {font-size: 14pt; font-weight: bold; color: white; background-color: black; margin: 0; text-align: center; height: 0.25in; padding-top: 2px;}
  32.  
  33.        @media print {
  34.             body{
  35.                 visibility:hidden;
  36.             }
  37.             div.page, div.page * {
  38.                 visibility:visible;
  39.             }
  40.             div.page { /* aligning the printable area */
  41.                 position:absolute;
  42.                 left:0;
  43.                 top:0;
  44.             }
  45.         }
  46.     </style>
  47.   </head>
  48.  
  49.  
  50.   <body>
  51.     <div class="page">
  52.       <div class="header">
  53.         <script type="text/javascript">
  54.           var monthNames = [
  55.             "January", "February", "March",
  56.             "April", "May", "June", "July",
  57.             "August", "September", "October",
  58.             "November", "December"
  59.           ];
  60.           var today = new Date();
  61.           var dd = today.getDate();
  62.           var yyyy = today.getFullYear();
  63.           var mm = today.getMonth()
  64.  
  65.           var longdate = monthNames[mm] + " " + dd.toString() + ", " + yyyy.toString();
  66.  
  67.           document.write("<h1>Agenda for " + longdate + "</h1>");
  68.         </script>
  69.       </div>
  70.       <div class="left">
  71.         <div class="month">
  72.           <iframe class="month" src="http://www.calendarlabs.com/calendars/web-content/calendar.php?cid=1001&amp;uid=1119331399&amp;c=8&amp;l=en&amp;cbg=FFFFFF&amp;cfg=333333&amp;hfg=333333&amp;hfg1=333333&amp;ct=1&amp;cb=0&amp;cbc=FFFFFF&amp;cf=verdana&amp;cp=bottom&amp;sw=0&amp;hp=t&amp;ib=0&amp;ibc=&amp;i=images/" align="center" marginwidth=0 marginheight=0 frameborder=no scrolling=no>Loading...</iframe>
  73.         </div>
  74.         <div class="input">
  75.           <h1>Input Online</h1>
  76.         </div>
  77.       </div>
  78.       <div class="middle">
  79.         <script type="text/javascript">
  80.           var today = new Date();
  81.           var year = today.getFullYear();
  82.           var month = today.getMonth() + 1;
  83.           if (month < 10) {
  84.           month = "0" + month;
  85.          }
  86.          var day = today.getDate();
  87.          if (day < 10) {
  88.           day = "0" + day;
  89.          }
  90.          var datestring = year.toString() + month.toString() + day.toString();
  91.          document.write("<iframe class=\"agenda\" src=\"https://calendar.google.com/calendar/embed?showTitle=0&amp;showNav=0&amp;showPrint=0&amp;showTabs=0&amp;showCalendars=0&amp;showTz=0&amp;mode=DAY&amp;dates=" + datestring + "/" + datestring + "&amp;wkst=1&amp;bgcolor=%23FFFFFF&amp;src=" + googleCalendar + "&amp;color=%232952A3\" frameborder=\"0\" scrolling=\"no\"></iframe>");
  92.         </script>
  93.       </div>
  94.       <div class="right">
  95.         <div class="todo">
  96.           <h1>To Do:</h1>
  97.           <script type="text/javascript">
  98.             document.write("<iframe class=\"todo\" src=\"" + todoSpreadsheet + "/preview?gid=0\"></iframe>");
  99.           </script>
  100.         </div>
  101.         <div class="tocontact">
  102.           <h1>To Contact:</h1>
  103.           <script type="text/javascript">
  104.             document.write("<iframe class=\"todo\" src=\"" + contactSpreadsheet + "/preview?gid=0\"></iframe>");
  105.           </script>
  106.         </div>
  107.       </div>
  108.       <div class="clear"></div>
  109.       <div class="bottom">
  110.         <h1>Notes</h1>
  111.       </div>
  112.     </div>
  113.   </body>
  114. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement