Advertisement
Guest User

Untitled

a guest
Sep 17th, 2014
181
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.71 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  5. <link rel="stylesheet" type="text/css" href="css/main.css">
  6. <script src="js/jquery1.js" type="text/javascript"></script>
  7. <script src="js/custom.js"></script>
  8. </head>
  9. <body>
  10. <div id="sidebar">
  11. <ul>
  12. <li id="ft-bar"><h3><a><span class="icon-signal"></span>Freshtime Context Bar</a></h3></li>
  13. </ul>
  14. </div>
  15. <div id="maincontent">
  16. </div>
  17. <script src="http://code.jquery.com/jquery-1.9.1.js" type="text/javascript"></script>
  18. <script type="text/javascript">
  19. </script>
  20. </body>
  21. </html>
  22.  
  23. $(document).ready(function(){
  24. $('#ft-bar').click(function(){
  25. $('#maincontent').load('ftp-bar.html');
  26. })
  27. });
  28.  
  29. <!DOCTYPE html>
  30. <html lang="en">
  31. <head>
  32. <title>Product Life range slider</title>
  33. <link rel="stylesheet" type="text/css" href="css/main.css" />
  34. <script src="js/jquery1.js"></script>
  35. <script src="js/colResizable-1.3.min.js"></script>
  36. <script type="text/javascript">
  37. $(function(){
  38.  
  39. //callback function
  40. var onSlide = function(e){
  41. var columns = $(e.currentTarget).find("td");
  42. var ranges = [], total = 0, i, s ="Ranges: ", w;
  43. for(i = 0; i<columns.length; i++){
  44. w = columns.eq(i).width()-10 - (i==0?1:0);
  45. ranges.push(w);
  46. total+=w;
  47. }
  48. for(i=0; i<columns.length; i++){
  49. ranges[i] = 100*ranges[i]/total;
  50. carriage = ranges[i]-w
  51. s+=" "+ Math.round(ranges[i]) + "%,";
  52. }
  53. s=s.slice(0,-1);
  54. $("#text").html(s);
  55. }
  56.  
  57. //colResize the table
  58. $("#product-life-slider").colResizable({
  59. liveDrag:true,
  60. draggingClass:"",
  61. onResize:onSlide,
  62. gripInnerHtml:"<div class='box1'>Grower <br> 2 Days</div> <div class='label1'></div>",
  63. minWidth:8
  64. });
  65.  
  66. });
  67. </script>
  68.  
  69. </head>
  70. <body>
  71. <div class="containerftp">
  72.  
  73. <table width="80%" border="0" cellspacing="5" cellpadding="0">
  74. <tr>
  75. <td width="20%"><input type="text" class="ftp" name="Days to Useby" placeholder="Days to Useby" value=""></td>
  76. <td width="20%"><input type="text" class="ftp" name="Storage Temp" placeholder="Storage Temp" value=""></td>
  77. <td width="20%"><input type="text" class="ftp" name="Storage Time" placeholder="Storage Time" value=""></td>
  78. <td width="20%"><input type="range" class="ftp" value="30" min="0" max="100"/></td>
  79. <td width="20%"><input type="text" class="ftp" name="Average Temperature" placeholder="Average Temp" value=""></td>
  80. </tr>
  81. </table>
  82.  
  83. <br/><br/><br/><br/><br/><br/>
  84.  
  85. <table id="product-life-slider" width="80%" cellspacing="0" cellpadding="0" border="0" padding-left="2%">
  86. <tr>
  87. <td class="partner" width="2%"></td>
  88. <td class="partner" width="24%"></td>
  89. <td class="partner" width="6%"></td>
  90. <td class="partner" width="27%"></td>
  91. <td class="consumer" width="14%"></td>
  92. <td class="useby" width="27%"></td>
  93. </tr>
  94. </table>
  95.  
  96. </div>
  97.  
  98. .containerftp{margin:5% auto;text-align:left; position:relative;}
  99.  
  100. input[type=range].ftp:first-of-type {width: 120px;}
  101. input.ftp {padding:10px;width:85%;border:1px solid #c5dbef;border-radius:5px; background:#e0effc;font-size:14px;}
  102. input.ftp ::-webkit-input-placeholder {color: rgba(0,5,143,.5);text-transform: uppercase;}
  103. input.ftp ::-moz-placeholder {color: rgba(0,5,143,.5);text-transform: uppercase;}
  104. input.ftp :-moz-placeholder {color: rgba(0,5,143,.5);text-transform: uppercase;} /* Older versions of Firefox */
  105. input.ftp :-ms-input-placeholder { color: rgba(0,5,143,.5);text-transform: uppercase;}
  106.  
  107. #product-life-slider {border:1px solid #A6C9E2; border-radius:5px;}
  108. #product-life-slider td{height:100px;border:none;}
  109.  
  110.  
  111. .partner{background: rgba(154,255,87,1);
  112. background: -moz-linear-gradient(top, rgba(154,255,87,1) 0%, rgba(68,201,59,1) 100%);
  113. background: -webkit-gradient(left top, left bottom, color-stop(0%, rgba(154,255,87,1)), color-stop(100%, rgba(68,201,59,1)));
  114. background: -webkit-linear-gradient(top, rgba(154,255,87,1) 0%, rgba(68,201,59,1) 100%);
  115. background: -o-linear-gradient(top, rgba(154,255,87,1) 0%, rgba(68,201,59,1) 100%);
  116. background: -ms-linear-gradient(top, rgba(154,255,87,1) 0%, rgba(68,201,59,1) 100%);
  117. background: linear-gradient(to bottom, rgba(154,255,87,1) 0%, rgba(68,201,59,1) 100%);
  118. filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#9aff57', endColorstr='#44c93b', GradientType=0 );
  119. border-right: 1px solid #000 !important;}
  120.  
  121. /* consumer */
  122. .consumer{background: rgba(255,238,87,1);
  123. background: -moz-linear-gradient(top, rgba(255,238,87,1) 0%, rgba(255,176,66,1) 100%);
  124. background: -webkit-gradient(left top, left bottom, color-stop(0%, rgba(255,238,87,1)), color-stop(100%, rgba(255,176,66,1)));
  125. background: -webkit-linear-gradient(top, rgba(255,238,87,1) 0%, rgba(255,176,66,1) 100%);
  126. background: -o-linear-gradient(top, rgba(255,238,87,1) 0%, rgba(255,176,66,1) 100%);
  127. background: -ms-linear-gradient(top, rgba(255,238,87,1) 0%, rgba(255,176,66,1) 100%);
  128. background: linear-gradient(to bottom, rgba(255,238,87,1) 0%, rgba(255,176,66,1) 100%);
  129. filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffee57', endColorstr='#ffb042', GradientType=0 );
  130. border-right: 1px solid #000 !important;}
  131.  
  132. /* UseBy */
  133. .useby{background: rgba(255,160,87,1);
  134. background: -moz-linear-gradient(top, rgba(255,160,87,1) 0%, rgba(255,88,66,1) 100%);
  135. background: -webkit-gradient(left top, left bottom, color-stop(0%, rgba(255,160,87,1)), color-stop(100%, rgba(255,88,66,1)));
  136. background: -webkit-linear-gradient(top, rgba(255,160,87,1) 0%, rgba(255,88,66,1) 100%);
  137. background: -o-linear-gradient(top, rgba(255,160,87,1) 0%, rgba(255,88,66,1) 100%);
  138. background: -ms-linear-gradient(top, rgba(255,160,87,1) 0%, rgba(255,88,66,1) 100%);
  139. background: linear-gradient(to bottom, rgba(255,160,87,1) 0%, rgba(255,88,66,1) 100%);
  140. filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffa057', endColorstr='#ff5842', GradientType=0 );}
  141.  
  142. /* column anchors */
  143. div.box1{ position: absolute;
  144. margin-top:-55px;
  145. margin-left:-36.8px;
  146. width:70px;height:40px;
  147. background:#e0effc;
  148. border-radius:5px;
  149. border:1px solid #c5dbef;
  150. font-size:13px;
  151. padding:5px;
  152. text-align:center;
  153. }
  154. div.label1 {position: absolute;
  155. margin-left:-9px;
  156. width:0;height:0;
  157. border-left:13px solid transparent;
  158. border-right: 13px solid transparent;
  159. border-top: 13px solid #e0effc;
  160. cursor:e-resize;}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement