Guest User

Untitled

a guest
Apr 20th, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.80 KB | None | 0 0
  1. <javascript>
  2. function calBig()
  3. {
  4.  
  5. $("#calviewsmall").click(function(){
  6. $("#caltopwhole").fadeOut("slow");
  7. $("#calbottomwhole").fadeOut("slow");
  8. $("#calviewsmall").animate({
  9. width: "100%",
  10. height: "100%",
  11. position: "absolute",
  12. top: "30",
  13. left: "0",
  14. }, 1500 );
  15.  
  16. $("#caldayview").fadeOut("slow");
  17. $("#calviewsmall").fadeOut("fast",function ()
  18. {
  19. $("#calviewbig1").fadeIn("fast");
  20. });
  21. });
  22.  
  23. }
  24.  
  25. function calSmall(day)
  26. {
  27. $("#calviewbig1").click(function(){
  28. $("#calviewbig1").fadeOut("fast");
  29. $("#calviewsmall").animate({
  30. width: "150px",
  31. height: "137px",
  32. position:"absolute",
  33. left:"147px",
  34. top:"110px",
  35. }, 1500, function()
  36. {
  37. $("#calbottomwhole").fadeIn("slow");
  38. $("#caltopwhole").fadeIn("slow");
  39. $("#caldayview").fadeIn("slow");
  40. $("#calviewsmall").fadeIn("slow");
  41. });
  42. });
  43.  
  44. }
  45.  
  46. </javascript>
  47.  
  48. {if $calendar_list|@count > 0}
  49. <div id="caldayview" style="z-index:1">
  50. <div id="caltopwhole">
  51. <center><strong><font size="3">{$monthyeardate}</font></strong></center>
  52.  
  53. <ul>
  54. {section name=i loop=$calendar_list}
  55. <li><a href="event/calendar.php?GID={$calendar_list[i].GID}" target="_blank">{$calendar_list[i].title}</a></li>
  56. {/section}
  57. </ul>
  58. </div>
  59. </div>
  60. <div id="calviewsmall" onclick="javascript:calBig();" style="cursor:hand; width:150px; height:137px; border:1px solid black; z-index:1; position:absolute; left:147px; top:110px">
  61. <div id="calbottomwhole">
  62. <table class='cal' cellspacing='1' style="width: 150px">
  63. <tr><center><strong>{$monthyear}</strong></center></tr>
  64. <tr class='dayhead' style="height:10px;">
  65. <td>&nbsp;S</td>
  66. <td>&nbsp;M</td>
  67. <td>&nbsp;T</td>
  68. <td>&nbsp;W</td>
  69. <td>&nbsp;T</td>
  70. <td>&nbsp;F</td>
  71. <td>&nbsp;S</td>
  72. </tr>
  73. {$caloutputsmall}
  74. </table>
  75. </div>
  76. </div>
  77. <div id="calviewbig1" style="display:none;">
  78. <table class='cal' cellspacing='1' style="width: 100%;">
  79. <tr><center><strong><font size="3">{$monthyear}</font></strong></center></tr>
  80. <tr class='dayhead' style="height:10px;">
  81. <td>&nbsp;S</td>
  82. <td>&nbsp;M</td>
  83. <td>&nbsp;T</td>
  84. <td>&nbsp;W</td>
  85. <td>&nbsp;T</td>
  86. <td>&nbsp;F</td>
  87. <td>&nbsp;S</td>
  88. </tr>
  89. {$caloutput}
  90. </table>
  91. </div>
  92. {else}
  93. <div id="calviewbig">
  94. <table class='cal' cellspacing='1' style="width: 100%">
  95. <tr><center><strong><font size="3">{$monthyear}</font></strong></center></tr>
  96. <tr class='dayhead' style="height:10px;">
  97. <td>&nbsp;S</td>
  98. <td>&nbsp;M</td>
  99. <td>&nbsp;T</td>
  100. <td>&nbsp;W</td>
  101. <td>&nbsp;T</td>
  102. <td>&nbsp;F</td>
  103. <td>&nbsp;S</td>
  104. </tr>
  105. {$caloutput}
  106. </table>
  107. </div>
  108. {/if}
Add Comment
Please, Sign In to add comment