641724.html (7992B)
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 2 <style type="text/css" rel="stylesheet" media="all"> 3 .form-item { padding:30px; } 4 .views-exposed-widget {float:left; clear:left;} 5 .views-exposed-widgets {column-width:250px;} 6 .clearfix:after 7 ,.clear-block:after{content:".";display:block;} 8 </style> 9 <script type="text/javascript"> 10 //<!-- DDBEGIN --> 11 (function () 12 { 13 var D = window.jQuery = window.$ = function (a, b) 14 { 15 return new D.fn.init(a, b) 16 }; 17 var u = /^[^<]*(<(.|\s)+>)[^>]*$|^#(\w+)$/; 18 D.fn = D.prototype = 19 { 20 init: function (d, b) 21 { 22 d = d || document; 23 if (d.nodeType) 24 { 25 this[0] = d; 26 this.length = 1; 27 } 28 if (typeof d == "string") 29 { 30 var c = u.exec(d); 31 if (c) 32 { 33 if (c[1]) d = D.clean([c[1]], b); 34 } 35 else 36 return D(b).find(d) 37 } 38 return this.setArray(D.makeArray(d)) 39 }, 40 pushStack: function (b) 41 { 42 return D(b); 43 }, 44 setArray: function (a) 45 { 46 Array.prototype.push.apply(this, a); 47 }, 48 each: function (a, b) 49 { 50 return D.each(this, a, b) 51 }, 52 after: function () 53 { 54 return this.domManip(arguments, false, true, function (a) 55 { 56 this.parentNode.insertBefore(a, this.nextSibling) 57 }) 58 }, 59 find: function (b) 60 { 61 var c = D.map(this, function (a) 62 { 63 return D.find(b, a) 64 }); 65 return this.pushStack(/[^+>] [^+>]/.test(b) ? D.unique(c) : c) 66 }, 67 domManip: function (g, f, h, d) 68 { 69 return this.each(function () 70 { 71 elems = D.clean(g, this.ownerDocument); 72 var b = this; 73 D.each(elems, function () 74 { 75 d.call(b, this) 76 }); 77 }) 78 } 79 }; 80 D.fn.init.prototype = D.fn; 81 D.extend = D.fn.extend = function () 82 { 83 var b = arguments[0]; 84 var i = 1; 85 var length = arguments.length; 86 if (length == 1) 87 { 88 b = this; 89 --i 90 } 91 if ((options = arguments[i]) != null) for (var c in options) 92 { 93 copy = options[c]; 94 if (copy !== undefined) b[c] = copy 95 } 96 return b 97 }; 98 D.extend( 99 { 100 each: function (d, a, c) 101 { 102 for (e in d) 103 if (a.call(d[e], e, d[e]) === false) 104 for (var b = d[0]; i < length; b = d[++i]) { } 105 return d 106 }, 107 curCSS: function (f, l, k) 108 { 109 l = l.replace(/([A-Z])/g, "-$1").toLowerCase(); 110 var c = document.defaultView.getComputedStyle(f); 111 c.getPropertyValue(l); 112 }, 113 clean: function (l, h) 114 { 115 var k = []; 116 D.each(l, function (i, d) 117 { 118 var div = document.createElement("div"); 119 div.innerHTML = "" + d 120 d = D.makeArray(div.childNodes) 121 if (d[0] == undefined) k.push(d); 122 else k = D.merge(k, d) 123 }); 124 return k 125 }, 126 makeArray: function (b) 127 { 128 var a = []; 129 var i = b.length; 130 while (i) a[--i] = b[i] 131 return a 132 }, 133 merge: function (a, b) 134 { 135 var i = 0; 136 var pos = a.length; 137 while (elem = b[i++]) a[pos++] = elem; 138 return a 139 }, 140 map: function (d, a) 141 { 142 var c = []; 143 for (var i = 0, length = d.length; i < length; i++) 144 { 145 var b = a(d[i], i); 146 if (b != null) c[c.length] = b 147 } 148 return c.concat.apply([], c) 149 } 150 }); 151 D.each( 152 { 153 insertAfter: "after", 154 }, function (c, b) 155 { 156 D.fn[c] = function () 157 { 158 var a = arguments; 159 return this.each(function () 160 { 161 for (var i = 0, length = a.length; i < length; i++) D(a[i])[b](this) 162 }) 163 } 164 }); 165 function num(a, b) 166 { 167 return a[0] && parseInt(D.curCSS(a[0], b, true), 10) 168 } 169 var quickClass = new RegExp("^([#.]?)(" + "(?:[\\w\u0128-\uFFFF*_-]|\\\\.)" + "*)"); 170 D.extend( 171 { 172 find: function (t, o) 173 { 174 var d = [o]; 175 var done = []; 176 while (t) 177 { 178 m = quickClass.exec(t) 179 var f = d[d.length - 1]; 180 if (m[1] == "#") 181 { 182 var p = f.getElementById(m[2]); 183 d = p && !m[3] ? [p] : [] 184 } 185 t = t.replace(quickClass, "") 186 } 187 return D.merge(done, d); 188 }, 189 }); 190 D.fn.extend( 191 { 192 bind: function (c, a, b) 193 { 194 return this.each(function () { }) 195 }, 196 ready: function (a) 197 { 198 bindReady(); 199 D.readyList.push(function () 200 { 201 return a.call(this, D) 202 }); 203 } 204 }); 205 D.extend( 206 { 207 readyList: [], 208 ready: function () 209 { 210 D.each(D.readyList, function () 211 { 212 this.call(document) 213 }); 214 } 215 }); 216 function bindReady() 217 { 218 document.addEventListener("DOMContentLoaded", D.ready); 219 } 220 D.each(["Height", "Width"], function (i, b) 221 { 222 D.fn["outer" + b] = function (a) 223 { 224 num(this, "borderRightWidth") 225 } 226 }) 227 })(); 228 var Drupal = { 229 'settings': { 230 }, 231 'behaviors': { 232 }, 233 }; 234 Drupal.attachBehaviors = function (context) 235 { 236 jQuery.each(Drupal.behaviors, function () 237 { 238 this(context); 239 }); 240 } 241 $(document).ready(function () 242 { 243 Drupal.attachBehaviors(this); 244 }); 245 (function (C) 246 { 247 C.ui = { } 248 C.widget = function (K, J) 249 { 250 var L = K.split(".")[0]; 251 K = K.split(".")[1]; 252 C.fn[K] = function (P) 253 { 254 return this.each(function () 255 { 256 C.data(this, K, new C[L][K](this, P)); 257 }) 258 }; 259 C[L][K] = function (O, N) 260 { 261 this.element = C(O).bind(); 262 this._init() 263 }; 264 C[L][K].prototype = C.extend( { }, J); 265 }; 266 })(jQuery); 267 (function (a) 268 { 269 a.widget("ui.dropdownchecklist", { 270 _appendDropContainer: function () 271 { 272 return a("<div/>"); 273 }, 274 _appendControl: function () 275 { 276 f.insertAfter(this.sourceSelect); 277 }, 278 _appendItems: function () 279 { 280 f = this.dropWrapper; 281 var e = f.find(".ui-dropdownchecklist-dropcontainer").outerHeight(); 282 }, 283 _init: function () 284 { 285 this.sourceSelect = this.element; 286 this.dropWrapper = this._appendDropContainer(); 287 this._appendItems(); 288 this._appendControl(); 289 } 290 }); 291 })(jQuery);; 292 Drupal.behaviors.sexyExposed = function (context) 293 { 294 var settings = Drupal.settings.sexyExposed; 295 $.each(settings, function (key, element) 296 { 297 $(key).dropdownchecklist(); 298 }); 299 }; 300 jQuery.extend(Drupal.settings, { 301 "sexyExposed": { 302 "select#edit-field-spec-otg-value-many-to-one": "0", 303 } 304 }); 305 </script> 306 <div class="views-exposed-widgets clear-block"> 307 <div class="views-exposed-widget"> 308 <div> 309 <div class="form-item"></div> 310 </div> 311 </div> 312 <div class="views-exposed-widget"> 313 <select multiple="multiple" id="edit-field-spec-otg-value-many-to-one"> </select> 314 </div> 315 </html>