Guest User

Untitled

a guest
Jan 21st, 2019
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.37 KB | None | 0 0
  1. <div id='cse-search-form' style='width: 100%;'>Loading</div>
  2. <script src='//www.google.com/jsapi' type='text/javascript'></script>
  3. <script type='text/javascript'>
  4. google.load('search', '1', {language: 'en', style: google.loader.themes.V2_DEFAULT});
  5. google.setOnLoadCallback(function() {
  6. var customSearchOptions = {};
  7. var orderByOptions = {};
  8. orderByOptions['keys'] = [{label: 'Relevance', key: ''} , {label: 'Date', key: 'date'}];
  9. customSearchOptions['enableOrderBy'] = true;
  10. customSearchOptions['orderByOptions'] = orderByOptions;
  11. var customSearchControl = new google.search.CustomSearchControl('XXXXXXXXXXXXXXX:x-xxxxxxx', customSearchOptions);
  12. customSearchControl.setResultSetSize(google.search.Search.FILTERED_CSE_RESULTSET);
  13. var options = new google.search.DrawOptions();
  14. options.enableSearchboxOnly('https://www.google.com/cse?cx=XXXXXXX:x-xxxxxxx', null, true);
  15. options.setAutoComplete(true);
  16. customSearchControl.draw('cse-search-form', options);
  17. }, true);
  18. </script>
  19. <style type='text/css'>
  20. input.gsc-input, .gsc-input-box, .gsc-input-box-hover, .gsc-input-box-focus {
  21. border-color: #D9D9D9;
  22. }
  23. input.gsc-search-button, input.gsc-search-button:hover, input.gsc-search-button:focus {
  24. border-color: #444444;
  25. background-color: #444444;
  26. background-image: none;
  27. filter: none;
  28.  
  29. }
  30. </style>
  31.  
  32. #___gcse_0 input[type="text"] {
  33. background: #F00 !important;
  34. }
  35.  
  36. /* Google Search box styles */
  37. #___gcse_0 {
  38. display: inline-block !important;
  39. }
  40.  
  41. #___gcse_0 table {
  42. border-top: none !important;
  43. border-right: none !important;
  44. border-left: none !important;
  45. border-bottom: none !important;
  46. background: transparent !important;
  47. margin: 0 0 0 0 !important;
  48. }
  49.  
  50. #___gcse_0 tbody {
  51. border-top: none !important;
  52. }
  53.  
  54. #___gcse_0 .forum-table td,
  55. #___gcse_0 td,
  56. #___gcse_0 tr,
  57. .gsc-completion-container td {
  58. padding: 0 !important;
  59. border-top: none !important;
  60. border-right: none !important;
  61. border: none !important;
  62. }
  63.  
  64. #___gcse_0 input[type="text"] {
  65. padding: 4px !important;
  66. -webkit-border-radius: none;
  67. -moz-border-radius: none;
  68. border-radius: none;
  69. max-width: 999px;
  70. background: transparent !important;
  71. border: none !important;
  72. }
  73.  
  74. .gsc-completion-container {
  75. border: 1px solid #6D7552 !important;
  76. background: #F0F1CB !important;
  77. font-family: inherit !important;
  78. padding: 4px !important;
  79. color: #D14F2D !important;
  80. -webkit-border-radius: 4px;
  81. -moz-border-radius: 4px;
  82. border-radius: 4px;
  83. box-shadow: 2px 2px 10px #363636;
  84. }
  85.  
  86. .gsc-completion-selected {
  87. margin: 0 -4px -4px -4px;
  88. }
  89.  
  90. .gsc-completion-container b {
  91. color: #242424 !important;
  92. font-weight: 300;
  93. }
  94.  
  95. .gsc-completion-container table {
  96. border-top: none !important;
  97. border-right: none !important;
  98. border-left: none !important;
  99. border-bottom: none !important;
  100. }
  101.  
  102.  
  103. .gsc-modal-background-image {
  104. background-color: #000 !important;
  105. }
  106.  
  107. .gsc-modal-background-image-visible {
  108. opacity: 0.4 !important;
  109. -ms-filter: "alpha(opacity=40)" !important;
  110. filter: alpha(opacity=40) !important;
  111. }
  112.  
  113. .gsc-results-wrapper-overlay {
  114. background: #F0F1ED !important;
  115. border: solid 1px #A9ADA4 !important;
  116. }
  117.  
  118. .gsc-webResult.gsc-result,
  119. .gsc-results .gsc-imageResult,
  120. .gsc-webResult.gsc-result:hover,
  121. .gsc-imageResult:hover {
  122. border-color: transparent !important;
  123. background-color: transparent !important;
  124. }
  125.  
  126. .gsc-webResult.gsc-result {
  127. border: 1px solid transparent !important;
  128. }
  129.  
  130. .gsc-webResult .gsc-result {
  131. border-bottom: 1px solid transparent !important;
  132. }
  133.  
  134. #___gcse_0 .cse .gsc-control-cse,
  135. #___gcse_0 .gsc-control-cse {
  136. padding: 0 !important;
  137. width: 280px !important;
  138. display: inline-block;
  139. }
  140.  
  141. form.gsc-search-box {
  142. margin-bottom: 0 !important;
  143. }
  144.  
  145. #___gcse_0 .cse .gsc-control-cse,
  146. #___gcse_0 .gsc-control-cse {
  147. background-color: rgba(0, 0, 0, 0) !important;
  148. border: none !important;
  149. }
  150.  
  151. #___gcse_0 .gsc-search-box .gsc-input>input:hover,
  152. #___gcse_0 .gsc-input-box-hover {
  153. border: none !important;
  154. border-top-color: rgba(0, 0, 0, 0) !important;
  155. -moz-box-shadow: none !important;
  156. -webkit-box-shadow: none !important;
  157. box-shadow: none !important;
  158. }
  159.  
  160. #___gcse_0 .gsc-input-box {
  161. background: #F0F1ED !important;
  162. border: solid 1px #A9ADA4 !important;
  163. height: 25px;
  164. -webkit-border-radius: 4px;
  165. -moz-border-radius: 4px;
  166. border-radius: 4px;
  167. }
  168.  
  169. input.gsc-search-button,
  170. input.gsc-search-button:hover,
  171. input.gsc-search-button:focus {
  172. background-image: none !important;
  173. height: 14px !important;
  174. width: 14px !important;
  175. margin-left: 5px !important;
  176. -webkit-border-radius: 4px 4px !important;
  177. -moz-border-radius: 4px 4px !important;
  178. border-radius: 4px !important;
  179. padding: 5px !important;
  180. filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#d5d6d3', endColorstr='#a8aca3',GradientType=0 ) !important;
  181. border: solid 1px #858A7F !important;
  182. border-color: #858A7F;
  183. }
  184.  
  185. <div class="top-search">
  186. <form method="get" id="searchform" id="searchbox_XXXXXXXXXXXXXXXXXXXXX:YYYYYYYYYYY" action="search-result.html">
  187. <div>
  188. <input value="XXXXXXXXXXXXXXXXXXXXX:YYYYYYYYYYY" name="cx" type="hidden"/>
  189. <input value="FORID:11" name="cof" type="hidden"/>
  190. <input type="text" value="Search..." name="s" id="s" onfocus="defaultInput(this)" onblur="clearInput(this)" />
  191. <input type="submit" id="searchsubmit" value=" " />
  192. </div>
  193. </form>
  194. </div>
Add Comment
Please, Sign In to add comment