How to use Field method in pandera

Best Python code snippet using pandera_python

category.js

Source:category.js Github

copy

Full Screen

1$(function(){2 $(document).ready(function() {3 $(".parent").change(function(){4 var child = $(this).val();5 if (child == ''){6 $('.field__area__category__ledies').hide();7 $('.field__area__category__mens').hide();8 $('.field__area__category__kids').hide();9 $('.field__area__category__interior').hide();10 $('.field__area__category__book').hide();11 $('.field__area__category__hoby').hide();12 $('.field__area__category__cosme').hide();13 $('.field__area__category__machine').hide();14 $('.field__area__category__sports').hide();15 $('.field__area__category__handmade').hide();16 $('.field__area__category__ticket').hide();17 $('.field__area__category__automobil').hide();18 $('.field__area__category__other').hide();19 $(".ledies").prop("disabled",true);20 $(".mens").prop("disabled",true);21 $(".kids").prop("disabled",true);22 $(".interior").prop("disabled",true);23 $(".book").prop("disabled",true);24 $(".hoby").prop("disabled",true);25 $(".cosme").prop("disabled",true);26 $(".machine").prop("disabled",true);27 $(".sports").prop("disabled",true);28 $(".handmade").prop("disabled",true);29 $(".ticket").prop("disabled",true);30 $(".automobil").prop("disabled",true);31 $(".other").prop("disabled",true);32 }33 else if (child == '1/'){34 $('.field__area__category__mens').hide();35 $('.field__area__category__kids').hide();36 $('.field__area__category__interior').hide();37 $('.field__area__category__book').hide();38 $('.field__area__category__hoby').hide();39 $('.field__area__category__cosme').hide();40 $('.field__area__category__sports').hide();41 $('.field__area__category__machine').hide();42 $('.field__area__category__handmade').hide();43 $('.field__area__category__ticket').hide();44 $('.field__area__category__automobil').hide();45 $('.field__area__category__other').hide();46 $('.field__area__category__ledies').show();47 $(".ledies").prop("disabled",false);48 $(".mens").prop("disabled",true);49 $(".kids").prop("disabled",true);50 $(".interior").prop("disabled",true);51 $(".book").prop("disabled",true);52 $(".hoby").prop("disabled",true);53 $(".cosme").prop("disabled",true);54 $(".machine").prop("disabled",true);55 $(".sports").prop("disabled",true);56 $(".handmade").prop("disabled",true);57 $(".ticket").prop("disabled",true);58 $(".automobil").prop("disabled",true);59 $(".other").prop("disabled",true);60 $(".ledies").change(function(){61 var grandchild = $(this).val();62 if (grandchild == ''){63 $('.field__area__category__ledies__tops').hide();64 $('.field__area__category__ledies__outer').hide();65 $('.field__area__category__ledies__pans').hide();66 $('.field__area__category__ledies__skirt').hide();67 $('.field__area__category__ledies__onepiece').hide();68 $('.field__area__category__ledies__shoes').hide();69 $('.field__area__category__ledies__pajama').hide();70 $('.field__area__category__ledies__sox').hide();71 $('.field__area__category__ledies__hut').hide();72 $('.field__area__category__ledies__bag').hide();73 $('.field__area__category__ledies__accessory').hide();74 $('.field__area__category__ledies__hairaccessory').hide();75 $('.field__area__category__ledies__komono').hide();76 $('.field__area__category__ledies__watch').hide();77 $('.field__area__category__ledies__wig').hide();78 $('.field__area__category__ledies__summer').hide();79 $('.field__area__category__ledies__formal').hide();80 $('.field__area__category__ledies__matanity').hide();81 $('.field__area__category__ledies__other').hide();82 }83 else if (grandchild == '1/14'){84 $('.field__area__category__ledies__outer').hide();85 $('.field__area__category__ledies__pans').hide();86 $('.field__area__category__ledies__skirt').hide();87 $('.field__area__category__ledies__onepiece').hide();88 $('.field__area__category__ledies__shoes').hide();89 $('.field__area__category__ledies__pajama').hide();90 $('.field__area__category__ledies__sox').hide();91 $('.field__area__category__ledies__hut').hide();92 $('.field__area__category__ledies__bag').hide();93 $('.field__area__category__ledies__accessory').hide();94 $('.field__area__category__ledies__hairaccessory').hide();95 $('.field__area__category__ledies__komono').hide();96 $('.field__area__category__ledies__watch').hide();97 $('.field__area__category__ledies__wig').hide();98 $('.field__area__category__ledies__summer').hide();99 $('.field__area__category__ledies__formal').hide();100 $('.field__area__category__ledies__matanity').hide();101 $('.field__area__category__ledies__other').hide();102 $('.field__area__category__ledies__tops').show();103 }104 else if (grandchild == '1/15'){105 $('.field__area__category__ledies__tops').hide();106 $('.field__area__category__ledies__pans').hide();107 $('.field__area__category__ledies__skirt').hide();108 $('.field__area__category__ledies__onepiece').hide();109 $('.field__area__category__ledies__shoes').hide();110 $('.field__area__category__ledies__pajama').hide();111 $('.field__area__category__ledies__sox').hide();112 $('.field__area__category__ledies__hut').hide();113 $('.field__area__category__ledies__bag').hide();114 $('.field__area__category__ledies__accessory').hide();115 $('.field__area__category__ledies__hairaccessory').hide();116 $('.field__area__category__ledies__komono').hide();117 $('.field__area__category__ledies__watch').hide();118 $('.field__area__category__ledies__wig').hide();119 $('.field__area__category__ledies__summer').hide();120 $('.field__area__category__ledies__formal').hide();121 $('.field__area__category__ledies__matanity').hide();122 $('.field__area__category__ledies__other').hide();123 $('.field__area__category__ledies__outer').show();124 }125 else if (grandchild == '1/16'){126 $('.field__area__category__ledies__tops').hide();127 $('.field__area__category__ledies__outer').hide();128 $('.field__area__category__ledies__skirt').hide();129 $('.field__area__category__ledies__onepiece').hide();130 $('.field__area__category__ledies__shoes').hide();131 $('.field__area__category__ledies__pajama').hide();132 $('.field__area__category__ledies__sox').hide();133 $('.field__area__category__ledies__hut').hide();134 $('.field__area__category__ledies__bag').hide();135 $('.field__area__category__ledies__accessory').hide();136 $('.field__area__category__ledies__hairaccessory').hide();137 $('.field__area__category__ledies__komono').hide();138 $('.field__area__category__ledies__watch').hide();139 $('.field__area__category__ledies__wig').hide();140 $('.field__area__category__ledies__summer').hide();141 $('.field__area__category__ledies__formal').hide();142 $('.field__area__category__ledies__matanity').hide();143 $('.field__area__category__ledies__other').hide();144 $('.field__area__category__ledies__pans').show();145 }146 else if (grandchild == '1/17'){147 $('.field__area__category__ledies__tops').hide();148 $('.field__area__category__ledies__outer').hide();149 $('.field__area__category__ledies__pans').hide();150 $('.field__area__category__ledies__onepiece').hide();151 $('.field__area__category__ledies__shoes').hide();152 $('.field__area__category__ledies__pajama').hide();153 $('.field__area__category__ledies__sox').hide();154 $('.field__area__category__ledies__hut').hide();155 $('.field__area__category__ledies__bag').hide();156 $('.field__area__category__ledies__accessory').hide();157 $('.field__area__category__ledies__hairaccessory').hide();158 $('.field__area__category__ledies__komono').hide();159 $('.field__area__category__ledies__watch').hide();160 $('.field__area__category__ledies__wig').hide();161 $('.field__area__category__ledies__summer').hide();162 $('.field__area__category__ledies__formal').hide();163 $('.field__area__category__ledies__matanity').hide();164 $('.field__area__category__ledies__other').hide();165 $('.field__area__category__ledies__skirt').show();166 }167 else if (grandchild == '1/18'){168 $('.field__area__category__ledies__tops').hide();169 $('.field__area__category__ledies__outer').hide();170 $('.field__area__category__ledies__pans').hide();171 $('.field__area__category__ledies__skirt').hide();172 $('.field__area__category__ledies__shoes').hide();173 $('.field__area__category__ledies__pajama').hide();174 $('.field__area__category__ledies__sox').hide();175 $('.field__area__category__ledies__hut').hide();176 $('.field__area__category__ledies__bag').hide();177 $('.field__area__category__ledies__accessory').hide();178 $('.field__area__category__ledies__hairaccessory').hide();179 $('.field__area__category__ledies__komono').hide();180 $('.field__area__category__ledies__watch').hide();181 $('.field__area__category__ledies__wig').hide();182 $('.field__area__category__ledies__summer').hide();183 $('.field__area__category__ledies__formal').hide();184 $('.field__area__category__ledies__matanity').hide();185 $('.field__area__category__ledies__other').hide();186 $('.field__area__category__ledies__onepiece').show();187 }188 else if (grandchild == '1/19'){189 $('.field__area__category__ledies__tops').hide();190 $('.field__area__category__ledies__outer').hide();191 $('.field__area__category__ledies__pans').hide();192 $('.field__area__category__ledies__skirt').hide();193 $('.field__area__category__ledies__onepiece').hide();194 $('.field__area__category__ledies__pajama').hide();195 $('.field__area__category__ledies__sox').hide();196 $('.field__area__category__ledies__hut').hide();197 $('.field__area__category__ledies__bag').hide();198 $('.field__area__category__ledies__accessory').hide();199 $('.field__area__category__ledies__hairaccessory').hide();200 $('.field__area__category__ledies__komono').hide();201 $('.field__area__category__ledies__watch').hide();202 $('.field__area__category__ledies__wig').hide();203 $('.field__area__category__ledies__summer').hide();204 $('.field__area__category__ledies__formal').hide();205 $('.field__area__category__ledies__matanity').hide();206 $('.field__area__category__ledies__other').hide();207 $('.field__area__category__ledies__shoes').show();208 }209 else if (grandchild == '1/20'){210 $('.field__area__category__ledies__tops').hide();211 $('.field__area__category__ledies__outer').hide();212 $('.field__area__category__ledies__pans').hide();213 $('.field__area__category__ledies__skirt').hide();214 $('.field__area__category__ledies__onepiece').hide();215 $('.field__area__category__ledies__shoes').hide();216 $('.field__area__category__ledies__sox').hide();217 $('.field__area__category__ledies__hut').hide();218 $('.field__area__category__ledies__bag').hide();219 $('.field__area__category__ledies__accessory').hide();220 $('.field__area__category__ledies__hairaccessory').hide();221 $('.field__area__category__ledies__komono').hide();222 $('.field__area__category__ledies__watch').hide();223 $('.field__area__category__ledies__wig').hide();224 $('.field__area__category__ledies__summer').hide();225 $('.field__area__category__ledies__formal').hide();226 $('.field__area__category__ledies__matanity').hide();227 $('.field__area__category__ledies__other').hide();228 $('.field__area__category__ledies__pajama').show();229 }230 else if (grandchild == '1/21'){231 $('.field__area__category__ledies__tops').hide();232 $('.field__area__category__ledies__outer').hide();233 $('.field__area__category__ledies__pans').hide();234 $('.field__area__category__ledies__skirt').hide();235 $('.field__area__category__ledies__onepiece').hide();236 $('.field__area__category__ledies__shoes').hide();237 $('.field__area__category__ledies__pajama').hide();238 $('.field__area__category__ledies__hut').hide();239 $('.field__area__category__ledies__bag').hide();240 $('.field__area__category__ledies__accessory').hide();241 $('.field__area__category__ledies__hairaccessory').hide();242 $('.field__area__category__ledies__komono').hide();243 $('.field__area__category__ledies__watch').hide();244 $('.field__area__category__ledies__wig').hide();245 $('.field__area__category__ledies__summer').hide();246 $('.field__area__category__ledies__formal').hide();247 $('.field__area__category__ledies__matanity').hide();248 $('.field__area__category__ledies__other').hide();249 $('.field__area__category__ledies__sox').show();250 }251 else if (grandchild == '1/22'){252 $('.field__area__category__ledies__tops').hide();253 $('.field__area__category__ledies__outer').hide();254 $('.field__area__category__ledies__pans').hide();255 $('.field__area__category__ledies__skirt').hide();256 $('.field__area__category__ledies__onepiece').hide();257 $('.field__area__category__ledies__shoes').hide();258 $('.field__area__category__ledies__pajama').hide();259 $('.field__area__category__ledies__sox').hide();260 $('.field__area__category__ledies__bag').hide();261 $('.field__area__category__ledies__accessory').hide();262 $('.field__area__category__ledies__hairaccessory').hide();263 $('.field__area__category__ledies__komono').hide();264 $('.field__area__category__ledies__watch').hide();265 $('.field__area__category__ledies__wig').hide();266 $('.field__area__category__ledies__summer').hide();267 $('.field__area__category__ledies__formal').hide();268 $('.field__area__category__ledies__matanity').hide();269 $('.field__area__category__ledies__other').hide();270 $('.field__area__category__ledies__hut').show();271 }272 else if (grandchild == '1/23'){273 $('.field__area__category__ledies__tops').hide();274 $('.field__area__category__ledies__outer').hide();275 $('.field__area__category__ledies__pans').hide();276 $('.field__area__category__ledies__skirt').hide();277 $('.field__area__category__ledies__onepiece').hide();278 $('.field__area__category__ledies__shoes').hide();279 $('.field__area__category__ledies__pajama').hide();280 $('.field__area__category__ledies__sox').hide();281 $('.field__area__category__ledies__hut').hide();282 $('.field__area__category__ledies__accessory').hide();283 $('.field__area__category__ledies__hairaccessory').hide();284 $('.field__area__category__ledies__komono').hide();285 $('.field__area__category__ledies__watch').hide();286 $('.field__area__category__ledies__wig').hide();287 $('.field__area__category__ledies__summer').hide();288 $('.field__area__category__ledies__formal').hide();289 $('.field__area__category__ledies__matanity').hide();290 $('.field__area__category__ledies__other').hide();291 $('.field__area__category__ledies__bag').show();292 }293 else if (grandchild == '1/24'){294 $('.field__area__category__ledies__tops').hide();295 $('.field__area__category__ledies__outer').hide();296 $('.field__area__category__ledies__pans').hide();297 $('.field__area__category__ledies__skirt').hide();298 $('.field__area__category__ledies__onepiece').hide();299 $('.field__area__category__ledies__shoes').hide();300 $('.field__area__category__ledies__pajama').hide();301 $('.field__area__category__ledies__sox').hide();302 $('.field__area__category__ledies__hut').hide();303 $('.field__area__category__ledies__bag').hide();304 $('.field__area__category__ledies__hairaccessory').hide();305 $('.field__area__category__ledies__komono').hide();306 $('.field__area__category__ledies__watch').hide();307 $('.field__area__category__ledies__wig').hide();308 $('.field__area__category__ledies__summer').hide();309 $('.field__area__category__ledies__formal').hide();310 $('.field__area__category__ledies__matanity').hide();311 $('.field__area__category__ledies__other').hide();312 $('.field__area__category__ledies__accessory').show();313 }314 else if (grandchild == '1/25'){315 $('.field__area__category__ledies__tops').hide();316 $('.field__area__category__ledies__outer').hide();317 $('.field__area__category__ledies__pans').hide();318 $('.field__area__category__ledies__skirt').hide();319 $('.field__area__category__ledies__onepiece').hide();320 $('.field__area__category__ledies__shoes').hide();321 $('.field__area__category__ledies__pajama').hide();322 $('.field__area__category__ledies__sox').hide();323 $('.field__area__category__ledies__hut').hide();324 $('.field__area__category__ledies__bag').hide();325 $('.field__area__category__ledies__accessory').hide();326 $('.field__area__category__ledies__komono').hide();327 $('.field__area__category__ledies__watch').hide();328 $('.field__area__category__ledies__wig').hide();329 $('.field__area__category__ledies__summer').hide();330 $('.field__area__category__ledies__formal').hide();331 $('.field__area__category__ledies__matanity').hide();332 $('.field__area__category__ledies__other').hide();333 $('.field__area__category__ledies__hairaccessory').show();334 }335 else if (grandchild == '1/26'){336 $('.field__area__category__ledies__tops').hide();337 $('.field__area__category__ledies__outer').hide();338 $('.field__area__category__ledies__pans').hide();339 $('.field__area__category__ledies__skirt').hide();340 $('.field__area__category__ledies__onepiece').hide();341 $('.field__area__category__ledies__shoes').hide();342 $('.field__area__category__ledies__pajama').hide();343 $('.field__area__category__ledies__sox').hide();344 $('.field__area__category__ledies__hut').hide();345 $('.field__area__category__ledies__bag').hide();346 $('.field__area__category__ledies__accessory').hide();347 $('.field__area__category__ledies__hairaccessory').hide();348 $('.field__area__category__ledies__watch').hide();349 $('.field__area__category__ledies__wig').hide();350 $('.field__area__category__ledies__summer').hide();351 $('.field__area__category__ledies__formal').hide();352 $('.field__area__category__ledies__matanity').hide();353 $('.field__area__category__ledies__other').hide();354 $('.field__area__category__ledies__komono').show();355 }356 else if (grandchild == '1/27'){357 $('.field__area__category__ledies__tops').hide();358 $('.field__area__category__ledies__outer').hide();359 $('.field__area__category__ledies__pans').hide();360 $('.field__area__category__ledies__skirt').hide();361 $('.field__area__category__ledies__onepiece').hide();362 $('.field__area__category__ledies__shoes').hide();363 $('.field__area__category__ledies__pajama').hide();364 $('.field__area__category__ledies__sox').hide();365 $('.field__area__category__ledies__hut').hide();366 $('.field__area__category__ledies__bag').hide();367 $('.field__area__category__ledies__accessory').hide();368 $('.field__area__category__ledies__hairaccessory').hide();369 $('.field__area__category__ledies__komono').hide();370 $('.field__area__category__ledies__wig').hide();371 $('.field__area__category__ledies__summer').hide();372 $('.field__area__category__ledies__formal').hide();373 $('.field__area__category__ledies__matanity').hide();374 $('.field__area__category__ledies__other').hide();375 $('.field__area__category__ledies__watch').show();376 }377 else if (grandchild == '1/28'){378 $('.field__area__category__ledies__tops').hide();379 $('.field__area__category__ledies__outer').hide();380 $('.field__area__category__ledies__pans').hide();381 $('.field__area__category__ledies__skirt').hide();382 $('.field__area__category__ledies__onepiece').hide();383 $('.field__area__category__ledies__shoes').hide();384 $('.field__area__category__ledies__pajama').hide();385 $('.field__area__category__ledies__sox').hide();386 $('.field__area__category__ledies__hut').hide();387 $('.field__area__category__ledies__bag').hide();388 $('.field__area__category__ledies__accessory').hide();389 $('.field__area__category__ledies__hairaccessory').hide();390 $('.field__area__category__ledies__komono').hide();391 $('.field__area__category__ledies__watch').hide();392 $('.field__area__category__ledies__summer').hide();393 $('.field__area__category__ledies__formal').hide();394 $('.field__area__category__ledies__matanity').hide();395 $('.field__area__category__ledies__other').hide();396 $('.field__area__category__ledies__wig').show();397 }398 else if (grandchild == '1/29'){399 $('.field__area__category__ledies__tops').hide();400 $('.field__area__category__ledies__outer').hide();401 $('.field__area__category__ledies__pans').hide();402 $('.field__area__category__ledies__skirt').hide();403 $('.field__area__category__ledies__onepiece').hide();404 $('.field__area__category__ledies__shoes').hide();405 $('.field__area__category__ledies__pajama').hide();406 $('.field__area__category__ledies__sox').hide();407 $('.field__area__category__ledies__hut').hide();408 $('.field__area__category__ledies__bag').hide();409 $('.field__area__category__ledies__accessory').hide();410 $('.field__area__category__ledies__hairaccessory').hide();411 $('.field__area__category__ledies__komono').hide();412 $('.field__area__category__ledies__watch').hide();413 $('.field__area__category__ledies__wig').hide();414 $('.field__area__category__ledies__formal').hide();415 $('.field__area__category__ledies__matanity').hide();416 $('.field__area__category__ledies__other').hide();417 $('.field__area__category__ledies__summer').show();418 }419 else if (grandchild == '1/30'){420 $('.field__area__category__ledies__tops').hide();421 $('.field__area__category__ledies__outer').hide();422 $('.field__area__category__ledies__pans').hide();423 $('.field__area__category__ledies__skirt').hide();424 $('.field__area__category__ledies__onepiece').hide();425 $('.field__area__category__ledies__shoes').hide();426 $('.field__area__category__ledies__pajama').hide();427 $('.field__area__category__ledies__sox').hide();428 $('.field__area__category__ledies__hut').hide();429 $('.field__area__category__ledies__bag').hide();430 $('.field__area__category__ledies__accessory').hide();431 $('.field__area__category__ledies__hairaccessory').hide();432 $('.field__area__category__ledies__komono').hide();433 $('.field__area__category__ledies__watch').hide();434 $('.field__area__category__ledies__wig').hide();435 $('.field__area__category__ledies__summer').hide();436 $('.field__area__category__ledies__matanity').hide();437 $('.field__area__category__ledies__other').hide();438 $('.field__area__category__ledies__formal').show();439 }440 else if (grandchild == '1/31'){441 $('.field__area__category__ledies__tops').hide();442 $('.field__area__category__ledies__outer').hide();443 $('.field__area__category__ledies__pans').hide();444 $('.field__area__category__ledies__skirt').hide();445 $('.field__area__category__ledies__onepiece').hide();446 $('.field__area__category__ledies__shoes').hide();447 $('.field__area__category__ledies__pajama').hide();448 $('.field__area__category__ledies__sox').hide();449 $('.field__area__category__ledies__hut').hide();450 $('.field__area__category__ledies__bag').hide();451 $('.field__area__category__ledies__accessory').hide();452 $('.field__area__category__ledies__hairaccessory').hide();453 $('.field__area__category__ledies__komono').hide();454 $('.field__area__category__ledies__watch').hide();455 $('.field__area__category__ledies__wig').hide();456 $('.field__area__category__ledies__summer').hide();457 $('.field__area__category__ledies__formal').hide();458 $('.field__area__category__ledies__other').hide();459 $('.field__area__category__ledies__matanity').show();460 }461 else if (grandchild == '1/32'){462 $('.field__area__category__ledies__tops').hide();463 $('.field__area__category__ledies__outer').hide();464 $('.field__area__category__ledies__pans').hide();465 $('.field__area__category__ledies__skirt').hide();466 $('.field__area__category__ledies__onepiece').hide();467 $('.field__area__category__ledies__shoes').hide();468 $('.field__area__category__ledies__pajama').hide();469 $('.field__area__category__ledies__sox').hide();470 $('.field__area__category__ledies__hut').hide();471 $('.field__area__category__ledies__bag').hide();472 $('.field__area__category__ledies__accessory').hide();473 $('.field__area__category__ledies__hairaccessory').hide();474 $('.field__area__category__ledies__komono').hide();475 $('.field__area__category__ledies__watch').hide();476 $('.field__area__category__ledies__wig').hide();477 $('.field__area__category__ledies__summer').hide();478 $('.field__area__category__ledies__formal').hide();479 $('.field__area__category__ledies__matanity').hide();480 $('.field__area__category__ledies__other').show();481 }482 });483 }484 else if (child == '2/'){485 $('.field__area__category__ledies').hide();486 $('.field__area__category__kids').hide();487 $('.field__area__category__interior').hide();488 $('.field__area__category__book').hide();489 $('.field__area__category__hoby').hide();490 $('.field__area__category__cosme').hide();491 $('.field__area__category__machine').hide();492 $('.field__area__category__sports').hide();493 $('.field__area__category__handmade').hide();494 $('.field__area__category__ticket').hide();495 $('.field__area__category__automobil').hide();496 $('.field__area__category__other').hide();497 $('.field__area__category__mens').show();498 $(".ledies").prop("disabled",true);499 $(".mens").prop("disabled",false);500 $(".kids").prop("disabled",true);501 $(".interior").prop("disabled",true);502 $(".book").prop("disabled",true);503 $(".hoby").prop("disabled",true);504 $(".cosme").prop("disabled",true);505 $(".machine").prop("disabled",true);506 $(".sports").prop("disabled",true);507 $(".handmade").prop("disabled",true);508 $(".ticket").prop("disabled",true);509 $(".automobil").prop("disabled",true);510 $(".other").prop("disabled",true);511 $(".mens").change(function(){512 var grandchild = $(this).val();513 if (grandchild == ''){514 $('.field__area__category__mens__tops').hide();515 $('.field__area__category__mens__outer').hide();516 $('.field__area__category__mens__pans').hide();517 $('.field__area__category__mens__shoes').hide();518 $('.field__area__category__mens__bag').hide();519 $('.field__area__category__mens__suit').hide();520 $('.field__area__category__mens__hut').hide();521 $('.field__area__category__mens__accessary').hide();522 $('.field__area__category__mens__komono').hide();523 $('.field__area__category__mens__watch').hide();524 $('.field__area__category__mens__swim').hide();525 $('.field__area__category__mens__sox').hide();526 $('.field__area__category__mens__under').hide();527 }528 else if (grandchild == '2/33'){529 $('.field__area__category__mens__outer').hide();530 $('.field__area__category__mens__pans').hide();531 $('.field__area__category__mens__shoes').hide();532 $('.field__area__category__mens__bag').hide();533 $('.field__area__category__mens__suit').hide();534 $('.field__area__category__mens__hut').hide();535 $('.field__area__category__mens__accessary').hide();536 $('.field__area__category__mens__komono').hide();537 $('.field__area__category__mens__watch').hide();538 $('.field__area__category__mens__swim').hide();539 $('.field__area__category__mens__sox').hide();540 $('.field__area__category__mens__under').hide();541 $('.field__area__category__mens__tops').show();542 }543 else if (grandchild == '2/34'){544 $('.field__area__category__mens__tops').hide();545 $('.field__area__category__mens__pans').hide();546 $('.field__area__category__mens__shoes').hide();547 $('.field__area__category__mens__bag').hide();548 $('.field__area__category__mens__suit').hide();549 $('.field__area__category__mens__hut').hide();550 $('.field__area__category__mens__accessary').hide();551 $('.field__area__category__mens__komono').hide();552 $('.field__area__category__mens__watch').hide();553 $('.field__area__category__mens__swim').hide();554 $('.field__area__category__mens__sox').hide();555 $('.field__area__category__mens__under').hide();556 $('.field__area__category__mens__outer').show();557 }558 else if (grandchild == '2/35'){559 $('.field__area__category__mens__tops').hide();560 $('.field__area__category__mens__outer').hide();561 $('.field__area__category__mens__shoes').hide();562 $('.field__area__category__mens__bag').hide();563 $('.field__area__category__mens__suit').hide();564 $('.field__area__category__mens__hut').hide();565 $('.field__area__category__mens__accessary').hide();566 $('.field__area__category__mens__komono').hide();567 $('.field__area__category__mens__watch').hide();568 $('.field__area__category__mens__swim').hide();569 $('.field__area__category__mens__sox').hide();570 $('.field__area__category__mens__under').hide();571 $('.field__area__category__mens__pans').show();572 }573 else if (grandchild == '2/36'){574 $('.field__area__category__mens__tops').hide();575 $('.field__area__category__mens__outer').hide();576 $('.field__area__category__mens__pans').hide();577 $('.field__area__category__mens__bag').hide();578 $('.field__area__category__mens__suit').hide();579 $('.field__area__category__mens__hut').hide();580 $('.field__area__category__mens__accessary').hide();581 $('.field__area__category__mens__komono').hide();582 $('.field__area__category__mens__watch').hide();583 $('.field__area__category__mens__swim').hide();584 $('.field__area__category__mens__sox').hide();585 $('.field__area__category__mens__under').hide();586 $('.field__area__category__mens__shoes').show();587 }588 else if (grandchild == '2/37'){589 $('.field__area__category__mens__tops').hide();590 $('.field__area__category__mens__outer').hide();591 $('.field__area__category__mens__pans').hide();592 $('.field__area__category__mens__shoes').hide();593 $('.field__area__category__mens__suit').hide();594 $('.field__area__category__mens__hut').hide();595 $('.field__area__category__mens__accessary').hide();596 $('.field__area__category__mens__komono').hide();597 $('.field__area__category__mens__watch').hide();598 $('.field__area__category__mens__swim').hide();599 $('.field__area__category__mens__sox').hide();600 $('.field__area__category__mens__under').hide();601 $('.field__area__category__mens__bag').show();602 }603 else if (grandchild == '2/38'){604 $('.field__area__category__mens__tops').hide();605 $('.field__area__category__mens__outer').hide();606 $('.field__area__category__mens__pans').hide();607 $('.field__area__category__mens__shoes').hide();608 $('.field__area__category__mens__bag').hide();609 $('.field__area__category__mens__hut').hide();610 $('.field__area__category__mens__accessary').hide();611 $('.field__area__category__mens__komono').hide();612 $('.field__area__category__mens__watch').hide();613 $('.field__area__category__mens__swim').hide();614 $('.field__area__category__mens__sox').hide();615 $('.field__area__category__mens__under').hide();616 $('.field__area__category__mens__suit').show();617 }618 else if (grandchild == '2/39'){619 $('.field__area__category__mens__tops').hide();620 $('.field__area__category__mens__outer').hide();621 $('.field__area__category__mens__pans').hide();622 $('.field__area__category__mens__shoes').hide();623 $('.field__area__category__mens__bag').hide();624 $('.field__area__category__mens__suit').hide();625 $('.field__area__category__mens__accessary').hide();626 $('.field__area__category__mens__komono').hide();627 $('.field__area__category__mens__watch').hide();628 $('.field__area__category__mens__swim').hide();629 $('.field__area__category__mens__sox').hide();630 $('.field__area__category__mens__under').hide();631 $('.field__area__category__mens__hut').show();632 }633 else if (grandchild == '2/40'){634 $('.field__area__category__mens__tops').hide();635 $('.field__area__category__mens__outer').hide();636 $('.field__area__category__mens__pans').hide();637 $('.field__area__category__mens__shoes').hide();638 $('.field__area__category__mens__bag').hide();639 $('.field__area__category__mens__suit').hide();640 $('.field__area__category__mens__hut').hide();641 $('.field__area__category__mens__komono').hide();642 $('.field__area__category__mens__watch').hide();643 $('.field__area__category__mens__swim').hide();644 $('.field__area__category__mens__sox').hide();645 $('.field__area__category__mens__under').hide();646 $('.field__area__category__mens__accessary').show();647 }648 else if (grandchild == '2/41'){649 $('.field__area__category__mens__tops').hide();650 $('.field__area__category__mens__outer').hide();651 $('.field__area__category__mens__pans').hide();652 $('.field__area__category__mens__shoes').hide();653 $('.field__area__category__mens__bag').hide();654 $('.field__area__category__mens__suit').hide();655 $('.field__area__category__mens__hut').hide();656 $('.field__area__category__mens__accessary').hide();657 $('.field__area__category__mens__watch').hide();658 $('.field__area__category__mens__swim').hide();659 $('.field__area__category__mens__sox').hide();660 $('.field__area__category__mens__under').hide();661 $('.field__area__category__mens__komono').show();662 }663 else if (grandchild == '2/42'){664 $('.field__area__category__mens__tops').hide();665 $('.field__area__category__mens__outer').hide();666 $('.field__area__category__mens__pans').hide();667 $('.field__area__category__mens__shoes').hide();668 $('.field__area__category__mens__bag').hide();669 $('.field__area__category__mens__suit').hide();670 $('.field__area__category__mens__hut').hide();671 $('.field__area__category__mens__accessary').hide();672 $('.field__area__category__mens__komono').hide();673 $('.field__area__category__mens__swim').hide();674 $('.field__area__category__mens__sox').hide();675 $('.field__area__category__mens__under').hide();676 $('.field__area__category__mens__watch').show();677 }678 else if (grandchild == '2/43'){679 $('.field__area__category__mens__tops').hide();680 $('.field__area__category__mens__outer').hide();681 $('.field__area__category__mens__pans').hide();682 $('.field__area__category__mens__shoes').hide();683 $('.field__area__category__mens__bag').hide();684 $('.field__area__category__mens__suit').hide();685 $('.field__area__category__mens__hut').hide();686 $('.field__area__category__mens__accessary').hide();687 $('.field__area__category__mens__komono').hide();688 $('.field__area__category__mens__watch').hide();689 $('.field__area__category__mens__sox').hide();690 $('.field__area__category__mens__under').hide();691 $('.field__area__category__mens__swim').show();692 }693 else if (grandchild == '2/44'){694 $('.field__area__category__mens__tops').hide();695 $('.field__area__category__mens__outer').hide();696 $('.field__area__category__mens__pans').hide();697 $('.field__area__category__mens__shoes').hide();698 $('.field__area__category__mens__bag').hide();699 $('.field__area__category__mens__suit').hide();700 $('.field__area__category__mens__hut').hide();701 $('.field__area__category__mens__accessary').hide();702 $('.field__area__category__mens__komono').hide();703 $('.field__area__category__mens__watch').hide();704 $('.field__area__category__mens__swim').hide();705 $('.field__area__category__mens__under').hide();706 $('.field__area__category__mens__sox').show();707 }708 else if (grandchild == '2/45'){709 $('.field__area__category__mens__tops').hide();710 $('.field__area__category__mens__outer').hide();711 $('.field__area__category__mens__pans').hide();712 $('.field__area__category__mens__shoes').hide();713 $('.field__area__category__mens__bag').hide();714 $('.field__area__category__mens__suit').hide();715 $('.field__area__category__mens__hut').hide();716 $('.field__area__category__mens__accessary').hide();717 $('.field__area__category__mens__komono').hide();718 $('.field__area__category__mens__watch').hide();719 $('.field__area__category__mens__swim').hide();720 $('.field__area__category__mens__sox').hide();721 $('.field__area__category__mens__under').show();722 }723 if (grandchild == '3/46'){724 $('.field__area__category__mens__tops').hide();725 $('.field__area__category__mens__outer').hide();726 $('.field__area__category__mens__pans').hide();727 $('.field__area__category__mens__shoes').hide();728 $('.field__area__category__mens__bag').hide();729 $('.field__area__category__mens__suit').hide();730 $('.field__area__category__mens__hut').hide();731 $('.field__area__category__mens__accessary').hide();732 $('.field__area__category__mens__komono').hide();733 $('.field__area__category__mens__watch').hide();734 $('.field__area__category__mens__swim').hide();735 $('.field__area__category__mens__sox').hide();736 $('.field__area__category__mens__under').hide();737 }738 });739 }740 if (child == '3/'){741 $('.field__area__category__ledies').hide();742 $('.field__area__category__mens').hide();743 $('.field__area__category__interior').hide();744 $('.field__area__category__book').hide();745 $('.field__area__category__hoby').hide();746 $('.field__area__category__cosme').hide();747 $('.field__area__category__machine').hide();748 $('.field__area__category__sports').hide();749 $('.field__area__category__handmade').hide();750 $('.field__area__category__ticket').hide();751 $('.field__area__category__automobil').hide();752 $('.field__area__category__other').hide();753 $('.field__area__category__kids').show();754 $(".ledies").prop("disabled",true);755 $(".mens").prop("disabled",true);756 $(".kids").prop("disabled",false);757 $(".interior").prop("disabled",true);758 $(".book").prop("disabled",true);759 $(".hoby").prop("disabled",true);760 $(".cosme").prop("disabled",true);761 $(".machine").prop("disabled",true);762 $(".sports").prop("disabled",true);763 $(".handmade").prop("disabled",true);764 $(".ticket").prop("disabled",true);765 $(".automobil").prop("disabled",true);766 $(".other").prop("disabled",true);767 $(".kids").change(function(){768 var grandchild = $(this).val();769 if (grandchild == ''){770 $('.field__area__category__kids__girl95').hide();771 $('.field__area__category__kids__boy95').hide();772 $('.field__area__category__kids__baby95').hide();773 $('.field__area__category__kids__girl100').hide();774 $('.field__area__category__kids__boy100').hide();775 $('.field__area__category__kids__baby100').hide();776 $('.field__area__category__kids__shoes').hide();777 $('.field__area__category__kids__komono').hide();778 $('.field__area__category__kids__omutsu').hide();779 $('.field__area__category__kids__move').hide();780 $('.field__area__category__kids__meal').hide();781 $('.field__area__category__kids__sleep').hide();782 $('.field__area__category__kids__hoby').hide();783 $('.field__area__category__kids__memorial').hide();784 $('.field__area__category__kids__other').hide();785 }786 else if (grandchild == '3/47'){787 $('.field__area__category__kids__boy95').hide();788 $('.field__area__category__kids__baby95').hide();789 $('.field__area__category__kids__girl100').hide();790 $('.field__area__category__kids__boy100').hide();791 $('.field__area__category__kids__baby100').hide();792 $('.field__area__category__kids__shoes').hide();793 $('.field__area__category__kids__komono').hide();794 $('.field__area__category__kids__omutsu').hide();795 $('.field__area__category__kids__move').hide();796 $('.field__area__category__kids__meal').hide();797 $('.field__area__category__kids__sleep').hide();798 $('.field__area__category__kids__hoby').hide();799 $('.field__area__category__kids__memorial').hide();800 $('.field__area__category__kids__other').hide();801 $('.field__area__category__kids__girl95').show();802 }803 else if (grandchild == '3/48'){804 $('.field__area__category__kids__girl95').hide();805 $('.field__area__category__kids__baby95').hide();806 $('.field__area__category__kids__girl100').hide();807 $('.field__area__category__kids__boy100').hide();808 $('.field__area__category__kids__baby100').hide();809 $('.field__area__category__kids__shoes').hide();810 $('.field__area__category__kids__komono').hide();811 $('.field__area__category__kids__omutsu').hide();812 $('.field__area__category__kids__move').hide();813 $('.field__area__category__kids__meal').hide();814 $('.field__area__category__kids__sleep').hide();815 $('.field__area__category__kids__hoby').hide();816 $('.field__area__category__kids__memorial').hide();817 $('.field__area__category__kids__other').hide();818 $('.field__area__category__kids__boy95').show();819 }820 else if (grandchild == '3/49'){821 $('.field__area__category__kids__girl95').hide();822 $('.field__area__category__kids__boy95').hide();823 $('.field__area__category__kids__girl100').hide();824 $('.field__area__category__kids__boy100').hide();825 $('.field__area__category__kids__baby100').hide();826 $('.field__area__category__kids__shoes').hide();827 $('.field__area__category__kids__komono').hide();828 $('.field__area__category__kids__omutsu').hide();829 $('.field__area__category__kids__move').hide();830 $('.field__area__category__kids__meal').hide();831 $('.field__area__category__kids__sleep').hide();832 $('.field__area__category__kids__hoby').hide();833 $('.field__area__category__kids__memorial').hide();834 $('.field__area__category__kids__other').hide();835 $('.field__area__category__kids__baby95').show();836 }837 else if (grandchild == '3/50'){838 $('.field__area__category__kids__girl95').hide();839 $('.field__area__category__kids__boy95').hide();840 $('.field__area__category__kids__baby95').hide();841 $('.field__area__category__kids__boy100').hide();842 $('.field__area__category__kids__baby100').hide();843 $('.field__area__category__kids__shoes').hide();844 $('.field__area__category__kids__komono').hide();845 $('.field__area__category__kids__omutsu').hide();846 $('.field__area__category__kids__move').hide();847 $('.field__area__category__kids__meal').hide();848 $('.field__area__category__kids__sleep').hide();849 $('.field__area__category__kids__hoby').hide();850 $('.field__area__category__kids__memorial').hide();851 $('.field__area__category__kids__other').hide();852 $('.field__area__category__kids__girl100').show();853 }854 else if (grandchild == '3/51'){855 $('.field__area__category__kids__girl95').hide();856 $('.field__area__category__kids__boy95').hide();857 $('.field__area__category__kids__baby95').hide();858 $('.field__area__category__kids__girl100').hide();859 $('.field__area__category__kids__baby100').hide();860 $('.field__area__category__kids__shoes').hide();861 $('.field__area__category__kids__komono').hide();862 $('.field__area__category__kids__omutsu').hide();863 $('.field__area__category__kids__move').hide();864 $('.field__area__category__kids__meal').hide();865 $('.field__area__category__kids__sleep').hide();866 $('.field__area__category__kids__hoby').hide();867 $('.field__area__category__kids__memorial').hide();868 $('.field__area__category__kids__other').hide();869 $('.field__area__category__kids__boy100').show();870 }871 else if (grandchild == '3/52'){872 $('.field__area__category__kids__girl95').hide();873 $('.field__area__category__kids__boy95').hide();874 $('.field__area__category__kids__baby95').hide();875 $('.field__area__category__kids__girl100').hide();876 $('.field__area__category__kids__boy100').hide();877 $('.field__area__category__kids__shoes').hide();878 $('.field__area__category__kids__komono').hide();879 $('.field__area__category__kids__omutsu').hide();880 $('.field__area__category__kids__move').hide();881 $('.field__area__category__kids__meal').hide();882 $('.field__area__category__kids__sleep').hide();883 $('.field__area__category__kids__hoby').hide();884 $('.field__area__category__kids__memorial').hide();885 $('.field__area__category__kids__other').hide();886 $('.field__area__category__kids__baby100').show();887 }888 else if (grandchild == '3/53'){889 $('.field__area__category__kids__girl95').hide();890 $('.field__area__category__kids__boy95').hide();891 $('.field__area__category__kids__baby95').hide();892 $('.field__area__category__kids__girl100').hide();893 $('.field__area__category__kids__boy100').hide();894 $('.field__area__category__kids__baby100').hide();895 $('.field__area__category__kids__komono').hide();896 $('.field__area__category__kids__omutsu').hide();897 $('.field__area__category__kids__move').hide();898 $('.field__area__category__kids__meal').hide();899 $('.field__area__category__kids__sleep').hide();900 $('.field__area__category__kids__memorial').hide();901 $('.field__area__category__kids__other').hide();902 $('.field__area__category__kids__shoes').show();903 }904 else if (grandchild == '3/54'){905 $('.field__area__category__kids__girl95').hide();906 $('.field__area__category__kids__boy95').hide();907 $('.field__area__category__kids__baby95').hide();908 $('.field__area__category__kids__girl100').hide();909 $('.field__area__category__kids__boy100').hide();910 $('.field__area__category__kids__baby100').hide();911 $('.field__area__category__kids__shoes').hide();912 $('.field__area__category__kids__omutsu').hide();913 $('.field__area__category__kids__move').hide();914 $('.field__area__category__kids__meal').hide();915 $('.field__area__category__kids__sleep').hide();916 $('.field__area__category__kids__memorial').hide();917 $('.field__area__category__kids__other').hide();918 $('.field__area__category__kids__komono').show();919 }920 else if (grandchild == '3/55'){921 $('.field__area__category__kids__girl95').hide();922 $('.field__area__category__kids__boy95').hide();923 $('.field__area__category__kids__baby95').hide();924 $('.field__area__category__kids__girl100').hide();925 $('.field__area__category__kids__boy100').hide();926 $('.field__area__category__kids__baby100').hide();927 $('.field__area__category__kids__shoes').hide();928 $('.field__area__category__kids__komono').hide();929 $('.field__area__category__kids__move').hide();930 $('.field__area__category__kids__meal').hide();931 $('.field__area__category__kids__sleep').hide();932 $('.field__area__category__kids__hoby').hide();933 $('.field__area__category__kids__memorial').hide();934 $('.field__area__category__kids__other').hide();935 $('.field__area__category__kids__omutsu').show();936 }937 else if (grandchild == '3/56'){938 $('.field__area__category__kids__girl95').hide();939 $('.field__area__category__kids__boy95').hide();940 $('.field__area__category__kids__baby95').hide();941 $('.field__area__category__kids__girl100').hide();942 $('.field__area__category__kids__boy100').hide();943 $('.field__area__category__kids__baby100').hide();944 $('.field__area__category__kids__shoes').hide();945 $('.field__area__category__kids__komono').hide();946 $('.field__area__category__kids__omutsu').hide();947 $('.field__area__category__kids__meal').hide();948 $('.field__area__category__kids__sleep').hide();949 $('.field__area__category__kids__hoby').hide();950 $('.field__area__category__kids__memorial').hide();951 $('.field__area__category__kids__other').hide();952 $('.field__area__category__kids__move').show();953 }954 else if (grandchild == '3/57'){955 $('.field__area__category__kids__girl95').hide();956 $('.field__area__category__kids__boy95').hide();957 $('.field__area__category__kids__baby95').hide();958 $('.field__area__category__kids__girl100').hide();959 $('.field__area__category__kids__boy100').hide();960 $('.field__area__category__kids__baby100').hide();961 $('.field__area__category__kids__shoes').hide();962 $('.field__area__category__kids__komono').hide();963 $('.field__area__category__kids__omutsu').hide();964 $('.field__area__category__kids__move').hide();965 $('.field__area__category__kids__sleep').hide();966 $('.field__area__category__kids__hoby').hide();967 $('.field__area__category__kids__memorial').hide();968 $('.field__area__category__kids__other').hide();969 $('.field__area__category__kids__meal').show();970 }971 else if (grandchild == '3/58'){972 $('.field__area__category__kids__girl95').hide();973 $('.field__area__category__kids__boy95').hide();974 $('.field__area__category__kids__baby95').hide();975 $('.field__area__category__kids__girl100').hide();976 $('.field__area__category__kids__boy100').hide();977 $('.field__area__category__kids__baby100').hide();978 $('.field__area__category__kids__shoes').hide();979 $('.field__area__category__kids__komono').hide();980 $('.field__area__category__kids__omutsu').hide();981 $('.field__area__category__kids__move').hide();982 $('.field__area__category__kids__meal').hide();983 $('.field__area__category__kids__hoby').hide();984 $('.field__area__category__kids__memorial').hide();985 $('.field__area__category__kids__other').hide();986 $('.field__area__category__kids__sleep').show();987 }988 else if (grandchild == '3/59'){989 $('.field__area__category__kids__girl95').hide();990 $('.field__area__category__kids__boy95').hide();991 $('.field__area__category__kids__baby95').hide();992 $('.field__area__category__kids__girl100').hide();993 $('.field__area__category__kids__boy100').hide();994 $('.field__area__category__kids__baby100').hide();995 $('.field__area__category__kids__shoes').hide();996 $('.field__area__category__kids__komono').hide();997 $('.field__area__category__kids__omutsu').hide();998 $('.field__area__category__kids__move').hide();999 $('.field__area__category__kids__meal').hide();1000 $('.field__area__category__kids__sleep').hide();1001 $('.field__area__category__kids__memorial').hide();1002 $('.field__area__category__kids__other').hide();1003 $('.field__area__category__kids__hoby').show();1004 }1005 else if (grandchild == '3/60'){1006 $('.field__area__category__kids__girl95').hide();1007 $('.field__area__category__kids__boy95').hide();1008 $('.field__area__category__kids__baby95').hide();1009 $('.field__area__category__kids__girl100').hide();1010 $('.field__area__category__kids__boy100').hide();1011 $('.field__area__category__kids__baby100').hide();1012 $('.field__area__category__kids__shoes').hide();1013 $('.field__area__category__kids__komono').hide();1014 $('.field__area__category__kids__omutsu').hide();1015 $('.field__area__category__kids__move').hide();1016 $('.field__area__category__kids__meal').hide();1017 $('.field__area__category__kids__sleep').hide();1018 $('.field__area__category__kids__hoby').hide();1019 $('.field__area__category__kids__other').hide();1020 $('.field__area__category__kids__memorial').show();1021 }1022 else if (grandchild == '4/61'){1023 $('.field__area__category__kids__girl95').hide();1024 $('.field__area__category__kids__boy95').hide();1025 $('.field__area__category__kids__baby95').hide();1026 $('.field__area__category__kids__girl100').hide();1027 $('.field__area__category__kids__boy100').hide();1028 $('.field__area__category__kids__baby100').hide();1029 $('.field__area__category__kids__shoes').hide();1030 $('.field__area__category__kids__komono').hide();1031 $('.field__area__category__kids__omutsu').hide();1032 $('.field__area__category__kids__move').hide();1033 $('.field__area__category__kids__meal').hide();1034 $('.field__area__category__kids__sleep').hide();1035 $('.field__area__category__kids__hoby').hide();1036 $('.field__area__category__kids__memorial').hide();1037 $('.field__area__category__kids__other').show();1038 }1039 });1040 }1041 if (child == '4/'){1042 $('.field__area__category__ledies').hide();1043 $('.field__area__category__mens').hide();1044 $('.field__area__category__kids').hide();1045 $('.field__area__category__book').hide();1046 $('.field__area__category__hoby').hide();1047 $('.field__area__category__cosme').hide();1048 $('.field__area__category__machine').hide();1049 $('.field__area__category__sports').hide();1050 $('.field__area__category__handmade').hide();1051 $('.field__area__category__ticket').hide();1052 $('.field__area__category__automobil').hide();1053 $('.field__area__category__other').hide();1054 $('.field__area__category__interior').show();1055 $(".ledies").prop("disabled",true);1056 $(".mens").prop("disabled",true);1057 $(".kids").prop("disabled",true);1058 $(".interior").prop("disabled",false);1059 $(".book").prop("disabled",true);1060 $(".hoby").prop("disabled",true);1061 $(".cosme").prop("disabled",true);1062 $(".machine").prop("disabled",true);1063 $(".sports").prop("disabled",true);1064 $(".handmade").prop("disabled",true);1065 $(".ticket").prop("disabled",true);1066 $(".automobil").prop("disabled",true);1067 $(".other").prop("disabled",true);1068 $(".interior").change(function(){1069 var grandchild = $(this).val();1070 if (grandchild == ''){1071 $('.field__area__category__interior__kitchen').hide();1072 $('.field__area__category__interior__sleep').hide();1073 $('.field__area__category__interior__sofa').hide();1074 $('.field__area__category__interior__chair').hide();1075 $('.field__area__category__interior__table').hide();1076 $('.field__area__category__interior__storage').hide();1077 $('.field__area__category__interior__rag').hide();1078 $('.field__area__category__interior__curtain').hide();1079 $('.field__area__category__interior__light').hide();1080 $('.field__area__category__interior__sleeper').hide();1081 $('.field__area__category__interior__komono').hide();1082 $('.field__area__category__interior__season').hide();1083 }1084 else if (grandchild == '4/62'){1085 $('.field__area__category__interior__sleep').hide();1086 $('.field__area__category__interior__sofa').hide();1087 $('.field__area__category__interior__chair').hide();1088 $('.field__area__category__interior__table').hide();1089 $('.field__area__category__interior__storage').hide();1090 $('.field__area__category__interior__rag').hide();1091 $('.field__area__category__interior__curtain').hide();1092 $('.field__area__category__interior__light').hide();1093 $('.field__area__category__interior__sleeper').hide();1094 $('.field__area__category__interior__komono').hide();1095 $('.field__area__category__interior__season').hide();1096 $('.field__area__category__interior__kitchen').show();1097 }1098 else if (grandchild == '4/63'){1099 $('.field__area__category__interior__kitchen').hide();1100 $('.field__area__category__interior__sofa').hide();1101 $('.field__area__category__interior__chair').hide();1102 $('.field__area__category__interior__table').hide();1103 $('.field__area__category__interior__storage').hide();1104 $('.field__area__category__interior__rag').hide();1105 $('.field__area__category__interior__curtain').hide();1106 $('.field__area__category__interior__light').hide();1107 $('.field__area__category__interior__sleeper').hide();1108 $('.field__area__category__interior__komono').hide();1109 $('.field__area__category__interior__season').hide();1110 $('.field__area__category__interior__sleep').show();1111 }1112 else if (grandchild == '4/64'){1113 $('.field__area__category__interior__kitchen').hide();1114 $('.field__area__category__interior__sleep').hide();1115 $('.field__area__category__interior__chair').hide();1116 $('.field__area__category__interior__table').hide();1117 $('.field__area__category__interior__storage').hide();1118 $('.field__area__category__interior__rag').hide();1119 $('.field__area__category__interior__curtain').hide();1120 $('.field__area__category__interior__light').hide();1121 $('.field__area__category__interior__sleeper').hide();1122 $('.field__area__category__interior__komono').hide();1123 $('.field__area__category__interior__season').hide();1124 $('.field__area__category__interior__sofa').show();1125 }1126 else if (grandchild == '4/65'){1127 $('.field__area__category__interior__kitchen').hide();1128 $('.field__area__category__interior__sleep').hide();1129 $('.field__area__category__interior__sofa').hide();1130 $('.field__area__category__interior__table').hide();1131 $('.field__area__category__interior__storage').hide();1132 $('.field__area__category__interior__rag').hide();1133 $('.field__area__category__interior__curtain').hide();1134 $('.field__area__category__interior__light').hide();1135 $('.field__area__category__interior__sleeper').hide();1136 $('.field__area__category__interior__komono').hide();1137 $('.field__area__category__interior__season').hide();1138 $('.field__area__category__interior__chair').show();1139 }1140 else if (grandchild == '4/66'){1141 $('.field__area__category__interior__kitchen').hide();1142 $('.field__area__category__interior__sleep').hide();1143 $('.field__area__category__interior__sofa').hide();1144 $('.field__area__category__interior__chair').hide();1145 $('.field__area__category__interior__storage').hide();1146 $('.field__area__category__interior__rag').hide();1147 $('.field__area__category__interior__curtain').hide();1148 $('.field__area__category__interior__light').hide();1149 $('.field__area__category__interior__sleeper').hide();1150 $('.field__area__category__interior__komono').hide();1151 $('.field__area__category__interior__season').hide();1152 $('.field__area__category__interior__table').show();1153 }1154 else if (grandchild == '4/67'){1155 $('.field__area__category__interior__kitchen').hide();1156 $('.field__area__category__interior__sleep').hide();1157 $('.field__area__category__interior__sofa').hide();1158 $('.field__area__category__interior__chair').hide();1159 $('.field__area__category__interior__table').hide();1160 $('.field__area__category__interior__rag').hide();1161 $('.field__area__category__interior__curtain').hide();1162 $('.field__area__category__interior__light').hide();1163 $('.field__area__category__interior__sleeper').hide();1164 $('.field__area__category__interior__komono').hide();1165 $('.field__area__category__interior__season').hide();1166 $('.field__area__category__interior__storage').show();1167 }1168 else if (grandchild == '4/68'){1169 $('.field__area__category__interior__kitchen').hide();1170 $('.field__area__category__interior__sleep').hide();1171 $('.field__area__category__interior__sofa').hide();1172 $('.field__area__category__interior__chair').hide();1173 $('.field__area__category__interior__table').hide();1174 $('.field__area__category__interior__storage').hide();1175 $('.field__area__category__interior__curtain').hide();1176 $('.field__area__category__interior__light').hide();1177 $('.field__area__category__interior__sleeper').hide();1178 $('.field__area__category__interior__komono').hide();1179 $('.field__area__category__interior__season').hide();1180 $('.field__area__category__interior__rag').show();1181 }1182 else if (grandchild == '4/69'){1183 $('.field__area__category__interior__kitchen').hide();1184 $('.field__area__category__interior__sleep').hide();1185 $('.field__area__category__interior__sofa').hide();1186 $('.field__area__category__interior__chair').hide();1187 $('.field__area__category__interior__table').hide();1188 $('.field__area__category__interior__storage').hide();1189 $('.field__area__category__interior__rag').hide();1190 $('.field__area__category__interior__light').hide();1191 $('.field__area__category__interior__sleeper').hide();1192 $('.field__area__category__interior__komono').hide();1193 $('.field__area__category__interior__season').hide();1194 $('.field__area__category__interior__curtain').show();1195 }1196 else if (grandchild == '4/70'){1197 $('.field__area__category__interior__kitchen').hide();1198 $('.field__area__category__interior__sleep').hide();1199 $('.field__area__category__interior__sofa').hide();1200 $('.field__area__category__interior__chair').hide();1201 $('.field__area__category__interior__table').hide();1202 $('.field__area__category__interior__storage').hide();1203 $('.field__area__category__interior__rag').hide();1204 $('.field__area__category__interior__curtain').hide();1205 $('.field__area__category__interior__sleeper').hide();1206 $('.field__area__category__interior__komono').hide();1207 $('.field__area__category__interior__season').hide();1208 $('.field__area__category__interior__light').show();1209 }1210 else if (grandchild == '4/71'){1211 $('.field__area__category__interior__kitchen').hide();1212 $('.field__area__category__interior__sleep').hide();1213 $('.field__area__category__interior__sofa').hide();1214 $('.field__area__category__interior__chair').hide();1215 $('.field__area__category__interior__table').hide();1216 $('.field__area__category__interior__storage').hide();1217 $('.field__area__category__interior__rag').hide();1218 $('.field__area__category__interior__curtain').hide();1219 $('.field__area__category__interior__light').hide();1220 $('.field__area__category__interior__komono').hide();1221 $('.field__area__category__interior__season').hide();1222 $('.field__area__category__interior__sleeper').show();1223 }1224 else if (grandchild == '4/72'){1225 $('.field__area__category__interior__kitchen').hide();1226 $('.field__area__category__interior__sleep').hide();1227 $('.field__area__category__interior__sofa').hide();1228 $('.field__area__category__interior__chair').hide();1229 $('.field__area__category__interior__table').hide();1230 $('.field__area__category__interior__storage').hide();1231 $('.field__area__category__interior__rag').hide();1232 $('.field__area__category__interior__curtain').hide();1233 $('.field__area__category__interior__light').hide();1234 $('.field__area__category__interior__sleeper').hide();1235 $('.field__area__category__interior__season').hide();1236 $('.field__area__category__interior__komono').show();1237 }1238 if (grandchild == '4/73'){1239 $('.field__area__category__interior__kitchen').hide();1240 $('.field__area__category__interior__sleep').hide();1241 $('.field__area__category__interior__sofa').hide();1242 $('.field__area__category__interior__chair').hide();1243 $('.field__area__category__interior__table').hide();1244 $('.field__area__category__interior__storage').hide();1245 $('.field__area__category__interior__rag').hide();1246 $('.field__area__category__interior__curtain').hide();1247 $('.field__area__category__interior__light').hide();1248 $('.field__area__category__interior__sleeper').hide();1249 $('.field__area__category__interior__komono').hide();1250 $('.field__area__category__interior__season').show();1251 }1252 if (grandchild == '5/74'){1253 $('.field__area__category__interior__kitchen').hide();1254 $('.field__area__category__interior__sleep').hide();1255 $('.field__area__category__interior__sofa').hide();1256 $('.field__area__category__interior__chair').hide();1257 $('.field__area__category__interior__table').hide();1258 $('.field__area__category__interior__storage').hide();1259 $('.field__area__category__interior__rag').hide();1260 $('.field__area__category__interior__curtain').hide();1261 $('.field__area__category__interior__light').hide();1262 $('.field__area__category__interior__sleeper').hide();1263 $('.field__area__category__interior__komono').hide();1264 $('.field__area__category__interior__season').hide();1265 }1266 });1267 }1268 if (child == '5/'){1269 $('.field__area__category__ledies').hide();1270 $('.field__area__category__mens').hide();1271 $('.field__area__category__kids').hide();1272 $('.field__area__category__interior').hide();1273 $('.field__area__category__hoby').hide();1274 $('.field__area__category__cosme').hide();1275 $('.field__area__category__machine').hide();1276 $('.field__area__category__sports').hide();1277 $('.field__area__category__handmade').hide();1278 $('.field__area__category__ticket').hide();1279 $('.field__area__category__automobil').hide();1280 $('.field__area__category__other').hide();1281 $('.field__area__category__book').show();1282 $(".ledies").prop("disabled",true);1283 $(".mens").prop("disabled",true);1284 $(".kids").prop("disabled",true);1285 $(".interior").prop("disabled",true);1286 $(".book").prop("disabled",false);1287 $(".hoby").prop("disabled",true);1288 $(".cosme").prop("disabled",true);1289 $(".machine").prop("disabled",true);1290 $(".sports").prop("disabled",true);1291 $(".handmade").prop("disabled",true);1292 $(".ticket").prop("disabled",true);1293 $(".automobil").prop("disabled",true);1294 $(".other").prop("disabled",true);1295 $(".book").change(function(){1296 var grandchild = $(this).val();1297 if (grandchild == ''){1298 $('.field__area__category__book__books').hide();1299 $('.field__area__category__book__comic').hide();1300 $('.field__area__category__book__magazin').hide();1301 $('.field__area__category__book__cd').hide();1302 $('.field__area__category__book__dvd').hide();1303 $('.field__area__category__book__record').hide();1304 $('.field__area__category__book__game').hide();1305 }1306 else if (grandchild == '5/75'){1307 $('.field__area__category__book__comic').hide();1308 $('.field__area__category__book__magazin').hide();1309 $('.field__area__category__book__cd').hide();1310 $('.field__area__category__book__dvd').hide();1311 $('.field__area__category__book__record').hide();1312 $('.field__area__category__book__game').hide();1313 $('.field__area__category__book__books').show();1314 }1315 else if (grandchild == '5/76'){1316 $('.field__area__category__book__books').hide();1317 $('.field__area__category__book__magazin').hide();1318 $('.field__area__category__book__cd').hide();1319 $('.field__area__category__book__dvd').hide();1320 $('.field__area__category__book__record').hide();1321 $('.field__area__category__book__game').hide();1322 $('.field__area__category__book__comic').show();1323 }1324 else if (grandchild == '5/77'){1325 $('.field__area__category__book__books').hide();1326 $('.field__area__category__book__comic').hide();1327 $('.field__area__category__book__cd').hide();1328 $('.field__area__category__book__dvd').hide();1329 $('.field__area__category__book__record').hide();1330 $('.field__area__category__book__game').hide();1331 $('.field__area__category__book__magazin').show();1332 }1333 else if (grandchild == '5/78'){1334 $('.field__area__category__book__books').hide();1335 $('.field__area__category__book__comic').hide();1336 $('.field__area__category__book__magazin').hide();1337 $('.field__area__category__book__dvd').hide();1338 $('.field__area__category__book__record').hide();1339 $('.field__area__category__book__game').hide();1340 $('.field__area__category__book__cd').show();1341 }1342 else if (grandchild == '5/79'){1343 $('.field__area__category__book__books').hide();1344 $('.field__area__category__book__comic').hide();1345 $('.field__area__category__book__magazin').hide();1346 $('.field__area__category__book__cd').hide();1347 $('.field__area__category__book__record').hide();1348 $('.field__area__category__book__game').hide();1349 $('.field__area__category__book__dvd').show();1350 }1351 else if (grandchild == '5/80'){1352 $('.field__area__category__book__books').hide();1353 $('.field__area__category__book__comic').hide();1354 $('.field__area__category__book__magazin').hide();1355 $('.field__area__category__book__cd').hide();1356 $('.field__area__category__book__dvd').hide();1357 $('.field__area__category__book__game').hide();1358 $('.field__area__category__book__record').show();1359 }1360 else if (grandchild == '6/81'){1361 $('.field__area__category__book__books').hide();1362 $('.field__area__category__book__comic').hide();1363 $('.field__area__category__book__magazin').hide();1364 $('.field__area__category__book__cd').hide();1365 $('.field__area__category__book__dvd').hide();1366 $('.field__area__category__book__record').hide();1367 $('.field__area__category__book__game').show();1368 }1369 });1370 }1371 if (child == '6/'){1372 $('.field__area__category__ledies').hide();1373 $('.field__area__category__mens').hide();1374 $('.field__area__category__kids').hide();1375 $('.field__area__category__interior').hide();1376 $('.field__area__category__book').hide();1377 $('.field__area__category__cosme').hide();1378 $('.field__area__category__machine').hide();1379 $('.field__area__category__sports').hide();1380 $('.field__area__category__handmade').hide();1381 $('.field__area__category__ticket').hide();1382 $('.field__area__category__automobil').hide();1383 $('.field__area__category__other').hide();1384 $('.field__area__category__hoby').show();1385 $(".ledies").prop("disabled",true);1386 $(".mens").prop("disabled",true);1387 $(".kids").prop("disabled",true);1388 $(".interior").prop("disabled",true);1389 $(".book").prop("disabled",true);1390 $(".hoby").prop("disabled",false);1391 $(".cosme").prop("disabled",true);1392 $(".machine").prop("disabled",true);1393 $(".sports").prop("disabled",true);1394 $(".handmade").prop("disabled",true);1395 $(".ticket").prop("disabled",true);1396 $(".automobil").prop("disabled",true);1397 $(".other").prop("disabled",true);1398 $(".hoby").change(function(){1399 var grandchild = $(this).val();1400 if (grandchild == ''){1401 $('.field__area__category__hoby__hobies').hide();1402 $('.field__area__category__hoby__tallent').hide();1403 $('.field__area__category__hoby__anime').hide();1404 $('.field__area__category__hoby__card').hide();1405 $('.field__area__category__hoby__figure').hide();1406 $('.field__area__category__hoby__music').hide();1407 $('.field__area__category__hoby__collection').hide();1408 $('.field__area__category__hoby__miritary').hide();1409 $('.field__area__category__hoby__art').hide();1410 $('.field__area__category__hoby__artgoods').hide();1411 $('.field__area__category__hoby__other').hide();1412 }1413 else if (grandchild == '6/82'){1414 $('.field__area__category__hoby__tallent').hide();1415 $('.field__area__category__hoby__anime').hide();1416 $('.field__area__category__hoby__card').hide();1417 $('.field__area__category__hoby__figure').hide();1418 $('.field__area__category__hoby__music').hide();1419 $('.field__area__category__hoby__collection').hide();1420 $('.field__area__category__hoby__miritary').hide();1421 $('.field__area__category__hoby__art').hide();1422 $('.field__area__category__hoby__artgoods').hide();1423 $('.field__area__category__hoby__other').hide();1424 $('.field__area__category__hoby__hobies').show();1425 }1426 else if (grandchild == '6/83'){1427 $('.field__area__category__hoby__hobies').hide();1428 $('.field__area__category__hoby__anime').hide();1429 $('.field__area__category__hoby__card').hide();1430 $('.field__area__category__hoby__figure').hide();1431 $('.field__area__category__hoby__music').hide();1432 $('.field__area__category__hoby__collection').hide();1433 $('.field__area__category__hoby__miritary').hide();1434 $('.field__area__category__hoby__art').hide();1435 $('.field__area__category__hoby__artgoods').hide();1436 $('.field__area__category__hoby__other').hide();1437 $('.field__area__category__hoby__tallent').show();1438 }1439 else if (grandchild == '6/84'){1440 $('.field__area__category__hoby__hobies').hide();1441 $('.field__area__category__hoby__tallent').hide();1442 $('.field__area__category__hoby__card').hide();1443 $('.field__area__category__hoby__figure').hide();1444 $('.field__area__category__hoby__music').hide();1445 $('.field__area__category__hoby__collection').hide();1446 $('.field__area__category__hoby__miritary').hide();1447 $('.field__area__category__hoby__art').hide();1448 $('.field__area__category__hoby__artgoods').hide();1449 $('.field__area__category__hoby__other').hide();1450 $('.field__area__category__hoby__anime').show();1451 }1452 else if (grandchild == '6/85'){1453 $('.field__area__category__hoby__hobies').hide();1454 $('.field__area__category__hoby__tallent').hide();1455 $('.field__area__category__hoby__anime').hide();1456 $('.field__area__category__hoby__figure').hide();1457 $('.field__area__category__hoby__music').hide();1458 $('.field__area__category__hoby__collection').hide();1459 $('.field__area__category__hoby__miritary').hide();1460 $('.field__area__category__hoby__art').hide();1461 $('.field__area__category__hoby__artgoods').hide();1462 $('.field__area__category__hoby__other').hide();1463 $('.field__area__category__hoby__card').show();1464 }1465 else if (grandchild == '6/87'){1466 $('.field__area__category__hoby__hobies').hide();1467 $('.field__area__category__hoby__tallent').hide();1468 $('.field__area__category__hoby__anime').hide();1469 $('.field__area__category__hoby__card').hide();1470 $('.field__area__category__hoby__music').hide();1471 $('.field__area__category__hoby__collection').hide();1472 $('.field__area__category__hoby__miritary').hide();1473 $('.field__area__category__hoby__art').hide();1474 $('.field__area__category__hoby__artgoods').hide();1475 $('.field__area__category__hoby__other').hide();1476 $('.field__area__category__hoby__figure').show();1477 }1478 else if (grandchild == '6/88'){1479 $('.field__area__category__hoby__hobies').hide();1480 $('.field__area__category__hoby__tallent').hide();1481 $('.field__area__category__hoby__anime').hide();1482 $('.field__area__category__hoby__card').hide();1483 $('.field__area__category__hoby__figure').hide();1484 $('.field__area__category__hoby__collection').hide();1485 $('.field__area__category__hoby__miritary').hide();1486 $('.field__area__category__hoby__art').hide();1487 $('.field__area__category__hoby__artgoods').hide();1488 $('.field__area__category__hoby__other').hide();1489 $('.field__area__category__hoby__music').show();1490 }1491 else if (grandchild == '6/89'){1492 $('.field__area__category__hoby__hobies').hide();1493 $('.field__area__category__hoby__tallent').hide();1494 $('.field__area__category__hoby__anime').hide();1495 $('.field__area__category__hoby__card').hide();1496 $('.field__area__category__hoby__figure').hide();1497 $('.field__area__category__hoby__music').hide();1498 $('.field__area__category__hoby__miritary').hide();1499 $('.field__area__category__hoby__art').hide();1500 $('.field__area__category__hoby__artgoods').hide();1501 $('.field__area__category__hoby__other').hide();1502 $('.field__area__category__hoby__collection').show();1503 }1504 else if (grandchild == '6/90'){1505 $('.field__area__category__hoby__hobies').hide();1506 $('.field__area__category__hoby__tallent').hide();1507 $('.field__area__category__hoby__anime').hide();1508 $('.field__area__category__hoby__card').hide();1509 $('.field__area__category__hoby__figure').hide();1510 $('.field__area__category__hoby__music').hide();1511 $('.field__area__category__hoby__collection').hide();1512 $('.field__area__category__hoby__art').hide();1513 $('.field__area__category__hoby__artgoods').hide();1514 $('.field__area__category__hoby__other').hide();1515 $('.field__area__category__hoby__miritary').show();1516 }1517 else if (grandchild == '6/91'){1518 $('.field__area__category__hoby__hobies').hide();1519 $('.field__area__category__hoby__tallent').hide();1520 $('.field__area__category__hoby__anime').hide();1521 $('.field__area__category__hoby__card').hide();1522 $('.field__area__category__hoby__figure').hide();1523 $('.field__area__category__hoby__music').hide();1524 $('.field__area__category__hoby__collection').hide();1525 $('.field__area__category__hoby__miritary').hide();1526 $('.field__area__category__hoby__artgoods').hide();1527 $('.field__area__category__hoby__other').hide();1528 $('.field__area__category__hoby__art').show();1529 }1530 else if (grandchild == '6/92'){1531 $('.field__area__category__hoby__hobies').hide();1532 $('.field__area__category__hoby__tallent').hide();1533 $('.field__area__category__hoby__anime').hide();1534 $('.field__area__category__hoby__card').hide();1535 $('.field__area__category__hoby__figure').hide();1536 $('.field__area__category__hoby__music').hide();1537 $('.field__area__category__hoby__collection').hide();1538 $('.field__area__category__hoby__miritary').hide();1539 $('.field__area__category__hoby__art').hide();1540 $('.field__area__category__hoby__other').hide();1541 $('.field__area__category__hoby__artgoods').show();1542 }1543 else if (grandchild == '7/93'){1544 $('.field__area__category__hoby__hobies').hide();1545 $('.field__area__category__hoby__tallent').hide();1546 $('.field__area__category__hoby__anime').hide();1547 $('.field__area__category__hoby__card').hide();1548 $('.field__area__category__hoby__figure').hide();1549 $('.field__area__category__hoby__music').hide();1550 $('.field__area__category__hoby__collection').hide();1551 $('.field__area__category__hoby__miritary').hide();1552 $('.field__area__category__hoby__art').hide();1553 $('.field__area__category__hoby__artgoods').hide();1554 $('.field__area__category__hoby__other').show();1555 }1556 });1557 }1558 if (child == '7/'){1559 $('.field__area__category__ledies').hide();1560 $('.field__area__category__mens').hide();1561 $('.field__area__category__kids').hide();1562 $('.field__area__category__interior').hide();1563 $('.field__area__category__book').hide();1564 $('.field__area__category__hoby').hide();1565 $('.field__area__category__machine').hide();1566 $('.field__area__category__sports').hide();1567 $('.field__area__category__handmade').hide();1568 $('.field__area__category__ticket').hide();1569 $('.field__area__category__automobil').hide();1570 $('.field__area__category__other').hide();1571 $('.field__area__category__cosme').show();1572 $(".ledies").prop("disabled",true);1573 $(".mens").prop("disabled",true);1574 $(".kids").prop("disabled",true);1575 $(".interior").prop("disabled",true);1576 $(".book").prop("disabled",true);1577 $(".hoby").prop("disabled",true);1578 $(".cosme").prop("disabled",false);1579 $(".machine").prop("disabled",true);1580 $(".sports").prop("disabled",true);1581 $(".handmade").prop("disabled",true);1582 $(".ticket").prop("disabled",true);1583 $(".automobil").prop("disabled",true);1584 $(".other").prop("disabled",true);1585 $(".cosme").change(function(){1586 var grandchild = $(this).val();1587 if (grandchild == ''){1588 $('.field__area__category__cosme__base').hide();1589 $('.field__area__category__cosme__up').hide();1590 $('.field__area__category__cosme__nail').hide();1591 $('.field__area__category__cosme__freg').hide();1592 $('.field__area__category__cosme__skin').hide();1593 $('.field__area__category__cosme__hair').hide();1594 $('.field__area__category__cosme__body').hide();1595 $('.field__area__category__cosme__oral').hide();1596 $('.field__area__category__cosme__relax').hide();1597 $('.field__area__category__cosme__diet').hide();1598 $('.field__area__category__cosme__other').hide();1599 }1600 else if (grandchild == '7/94'){1601 $('.field__area__category__cosme__up').hide();1602 $('.field__area__category__cosme__nail').hide();1603 $('.field__area__category__cosme__freg').hide();1604 $('.field__area__category__cosme__skin').hide();1605 $('.field__area__category__cosme__hair').hide();1606 $('.field__area__category__cosme__body').hide();1607 $('.field__area__category__cosme__oral').hide();1608 $('.field__area__category__cosme__relax').hide();1609 $('.field__area__category__cosme__relax').hide();1610 $('.field__area__category__cosme__other').hide();1611 $('.field__area__category__cosme__base').show();1612 }1613 else if (grandchild == '7/95'){1614 $('.field__area__category__cosme__base').hide();1615 $('.field__area__category__cosme__nail').hide();1616 $('.field__area__category__cosme__freg').hide();1617 $('.field__area__category__cosme__skin').hide();1618 $('.field__area__category__cosme__hair').hide();1619 $('.field__area__category__cosme__body').hide();1620 $('.field__area__category__cosme__oral').hide();1621 $('.field__area__category__cosme__relax').hide();1622 $('.field__area__category__cosme__relax').hide();1623 $('.field__area__category__cosme__other').hide();1624 $('.field__area__category__cosme__up').show();1625 }1626 else if (grandchild == '7/96'){1627 $('.field__area__category__cosme__base').hide();1628 $('.field__area__category__cosme__up').hide();1629 $('.field__area__category__cosme__freg').hide();1630 $('.field__area__category__cosme__skin').hide();1631 $('.field__area__category__cosme__hair').hide();1632 $('.field__area__category__cosme__body').hide();1633 $('.field__area__category__cosme__oral').hide();1634 $('.field__area__category__cosme__relax').hide();1635 $('.field__area__category__cosme__relax').hide();1636 $('.field__area__category__cosme__other').hide();1637 $('.field__area__category__cosme__nail').show();1638 }1639 else if (grandchild == '7/97'){1640 $('.field__area__category__cosme__base').hide();1641 $('.field__area__category__cosme__up').hide();1642 $('.field__area__category__cosme__nail').hide();1643 $('.field__area__category__cosme__skin').hide();1644 $('.field__area__category__cosme__hair').hide();1645 $('.field__area__category__cosme__body').hide();1646 $('.field__area__category__cosme__oral').hide();1647 $('.field__area__category__cosme__relax').hide();1648 $('.field__area__category__cosme__relax').hide();1649 $('.field__area__category__cosme__other').hide();1650 $('.field__area__category__cosme__freg').show();1651 }1652 else if (grandchild == '7/98'){1653 $('.field__area__category__cosme__base').hide();1654 $('.field__area__category__cosme__up').hide();1655 $('.field__area__category__cosme__nail').hide();1656 $('.field__area__category__cosme__freg').hide();1657 $('.field__area__category__cosme__hair').hide();1658 $('.field__area__category__cosme__oral').hide();1659 $('.field__area__category__cosme__relax').hide();1660 $('.field__area__category__cosme__relax').hide();1661 $('.field__area__category__cosme__other').hide();1662 $('.field__area__category__cosme__skin').show();1663 }1664 else if (grandchild == '7/99'){1665 $('.field__area__category__cosme__base').hide();1666 $('.field__area__category__cosme__up').hide();1667 $('.field__area__category__cosme__nail').hide();1668 $('.field__area__category__cosme__freg').hide();1669 $('.field__area__category__cosme__skin').hide();1670 $('.field__area__category__cosme__body').hide();1671 $('.field__area__category__cosme__oral').hide();1672 $('.field__area__category__cosme__relax').hide();1673 $('.field__area__category__cosme__relax').hide();1674 $('.field__area__category__cosme__other').hide();1675 $('.field__area__category__cosme__hair').show();1676 }1677 else if (grandchild == '7/100'){1678 $('.field__area__category__cosme__base').hide();1679 $('.field__area__category__cosme__up').hide();1680 $('.field__area__category__cosme__nail').hide();1681 $('.field__area__category__cosme__freg').hide();1682 $('.field__area__category__cosme__skin').hide();1683 $('.field__area__category__cosme__hair').hide();1684 $('.field__area__category__cosme__oral').hide();1685 $('.field__area__category__cosme__relax').hide();1686 $('.field__area__category__cosme__relax').hide();1687 $('.field__area__category__cosme__other').hide();1688 $('.field__area__category__cosme__body').show();1689 }1690 else if (grandchild == '7/101'){1691 $('.field__area__category__cosme__base').hide();1692 $('.field__area__category__cosme__up').hide();1693 $('.field__area__category__cosme__nail').hide();1694 $('.field__area__category__cosme__freg').hide();1695 $('.field__area__category__cosme__skin').hide();1696 $('.field__area__category__cosme__hair').hide();1697 $('.field__area__category__cosme__body').hide();1698 $('.field__area__category__cosme__relax').hide();1699 $('.field__area__category__cosme__relax').hide();1700 $('.field__area__category__cosme__other').hide();1701 $('.field__area__category__cosme__oral').show();1702 }1703 else if (grandchild == '7/102'){1704 $('.field__area__category__cosme__base').hide();1705 $('.field__area__category__cosme__up').hide();1706 $('.field__area__category__cosme__nail').hide();1707 $('.field__area__category__cosme__freg').hide();1708 $('.field__area__category__cosme__skin').hide();1709 $('.field__area__category__cosme__hair').hide();1710 $('.field__area__category__cosme__body').hide();1711 $('.field__area__category__cosme__oral').hide();1712 $('.field__area__category__cosme__relax').hide();1713 $('.field__area__category__cosme__other').hide();1714 $('.field__area__category__cosme__relax').show();1715 }1716 else if (grandchild == '8/103'){1717 $('.field__area__category__cosme__base').hide();1718 $('.field__area__category__cosme__up').hide();1719 $('.field__area__category__cosme__nail').hide();1720 $('.field__area__category__cosme__freg').hide();1721 $('.field__area__category__cosme__skin').hide();1722 $('.field__area__category__cosme__hair').hide();1723 $('.field__area__category__cosme__body').hide();1724 $('.field__area__category__cosme__oral').hide();1725 $('.field__area__category__cosme__relax').hide();1726 $('.field__area__category__cosme__other').hide();1727 $('.field__area__category__cosme__diet').show();1728 }1729 else if (grandchild == '8/104'){1730 $('.field__area__category__cosme__base').hide();1731 $('.field__area__category__cosme__up').hide();1732 $('.field__area__category__cosme__nail').hide();1733 $('.field__area__category__cosme__freg').hide();1734 $('.field__area__category__cosme__skin').hide();1735 $('.field__area__category__cosme__hair').hide();1736 $('.field__area__category__cosme__body').hide();1737 $('.field__area__category__cosme__oral').hide();1738 $('.field__area__category__cosme__relax').hide();1739 $('.field__area__category__cosme__diet').hide();1740 $('.field__area__category__cosme__other').show();1741 }1742 });1743 }1744 if (child == '8/'){1745 $('.field__area__category__ledies').hide();1746 $('.field__area__category__mens').hide();1747 $('.field__area__category__kids').hide();1748 $('.field__area__category__interior').hide();1749 $('.field__area__category__book').hide();1750 $('.field__area__category__hoby').hide();1751 $('.field__area__category__cosme').hide();1752 $('.field__area__category__sports').hide();1753 $('.field__area__category__handmade').hide();1754 $('.field__area__category__ticket').hide();1755 $('.field__area__category__automobil').hide();1756 $('.field__area__category__other').hide();1757 $('.field__area__category__machine').show();1758 $(".ledies").prop("disabled",true);1759 $(".mens").prop("disabled",true);1760 $(".kids").prop("disabled",true);1761 $(".interior").prop("disabled",true);1762 $(".book").prop("disabled",true);1763 $(".hoby").prop("disabled",true);1764 $(".cosme").prop("disabled",true);1765 $(".machine").prop("disabled",false);1766 $(".sports").prop("disabled",true);1767 $(".handmade").prop("disabled",true);1768 $(".ticket").prop("disabled",true);1769 $(".automobil").prop("disabled",true);1770 $(".other").prop("disabled",true);1771 $(".machine").change(function(){1772 var grandchild = $(this).val();1773 if (grandchild == ''){1774 $('.field__area__category__machine__phone').hide();1775 $('.field__area__category__machine__accessary').hide();1776 $('.field__area__category__machine__pc').hide();1777 $('.field__area__category__machine__camera').hide();1778 $('.field__area__category__machine__tv').hide();1779 $('.field__area__category__machine__audio').hide();1780 $('.field__area__category__machine__helth').hide();1781 $('.field__area__category__machine__heat').hide();1782 $('.field__area__category__machine__home').hide();1783 $('.field__area__category__machine__other').hide();1784 }1785 else if (grandchild == '8/105'){1786 $('.field__area__category__machine__accessary').hide();1787 $('.field__area__category__machine__pc').hide();1788 $('.field__area__category__machine__camera').hide();1789 $('.field__area__category__machine__tv').hide();1790 $('.field__area__category__machine__audio').hide();1791 $('.field__area__category__machine__helth').hide();1792 $('.field__area__category__machine__heat').hide();1793 $('.field__area__category__machine__home').hide();1794 $('.field__area__category__machine__other').hide();1795 $('.field__area__category__machine__phone').show();1796 }1797 else if (grandchild == '8/106'){1798 $('.field__area__category__machine__phone').hide();1799 $('.field__area__category__machine__pc').hide();1800 $('.field__area__category__machine__camera').hide();1801 $('.field__area__category__machine__tv').hide();1802 $('.field__area__category__machine__audio').hide();1803 $('.field__area__category__machine__helth').hide();1804 $('.field__area__category__machine__heat').hide();1805 $('.field__area__category__machine__home').hide();1806 $('.field__area__category__machine__other').hide();1807 $('.field__area__category__machine__accessary').show();1808 }1809 else if (grandchild == '8/107'){1810 $('.field__area__category__machine__phone').hide();1811 $('.field__area__category__machine__accessary').hide();1812 $('.field__area__category__machine__camera').hide();1813 $('.field__area__category__machine__tv').hide();1814 $('.field__area__category__machine__audio').hide();1815 $('.field__area__category__machine__helth').hide();1816 $('.field__area__category__machine__heat').hide();1817 $('.field__area__category__machine__home').hide();1818 $('.field__area__category__machine__other').hide();1819 $('.field__area__category__machine__pc').show();1820 }1821 else if (grandchild == '8/108'){1822 $('.field__area__category__machine__phone').hide();1823 $('.field__area__category__machine__accessary').hide();1824 $('.field__area__category__machine__pc').hide();1825 $('.field__area__category__machine__tv').hide();1826 $('.field__area__category__machine__audio').hide();1827 $('.field__area__category__machine__helth').hide();1828 $('.field__area__category__machine__heat').hide();1829 $('.field__area__category__machine__home').hide();1830 $('.field__area__category__machine__other').hide();1831 $('.field__area__category__machine__camera').show();1832 }1833 else if (grandchild == '8/109'){1834 $('.field__area__category__machine__phone').hide();1835 $('.field__area__category__machine__accessary').hide();1836 $('.field__area__category__machine__pc').hide();1837 $('.field__area__category__machine__camera').hide();1838 $('.field__area__category__machine__audio').hide();1839 $('.field__area__category__machine__helth').hide();1840 $('.field__area__category__machine__heat').hide();1841 $('.field__area__category__machine__home').hide();1842 $('.field__area__category__machine__other').hide();1843 $('.field__area__category__machine__tv').show();1844 }1845 else if (grandchild == '8/110'){1846 $('.field__area__category__machine__phone').hide();1847 $('.field__area__category__machine__accessary').hide();1848 $('.field__area__category__machine__pc').hide();1849 $('.field__area__category__machine__camera').hide();1850 $('.field__area__category__machine__tv').hide();1851 $('.field__area__category__machine__helth').hide();1852 $('.field__area__category__machine__heat').hide();1853 $('.field__area__category__machine__home').hide();1854 $('.field__area__category__machine__other').hide();1855 $('.field__area__category__machine__audio').show();1856 }1857 else if (grandchild == '8/111'){1858 $('.field__area__category__machine__phone').hide();1859 $('.field__area__category__machine__accessary').hide();1860 $('.field__area__category__machine__pc').hide();1861 $('.field__area__category__machine__camera').hide();1862 $('.field__area__category__machine__tv').hide();1863 $('.field__area__category__machine__audio').hide();1864 $('.field__area__category__machine__heat').hide();1865 $('.field__area__category__machine__home').hide();1866 $('.field__area__category__machine__other').hide();1867 $('.field__area__category__machine__helth').show();1868 }1869 else if (grandchild == '8/112'){1870 $('.field__area__category__machine__phone').hide();1871 $('.field__area__category__machine__accessary').hide();1872 $('.field__area__category__machine__pc').hide();1873 $('.field__area__category__machine__camera').hide();1874 $('.field__area__category__machine__tv').hide();1875 $('.field__area__category__machine__audio').hide();1876 $('.field__area__category__machine__helth').hide();1877 $('.field__area__category__machine__home').hide();1878 $('.field__area__category__machine__other').hide();1879 $('.field__area__category__machine__heat').show();1880 }1881 else if (grandchild == '9/113'){1882 $('.field__area__category__machine__phone').hide();1883 $('.field__area__category__machine__accessary').hide();1884 $('.field__area__category__machine__pc').hide();1885 $('.field__area__category__machine__camera').hide();1886 $('.field__area__category__machine__tv').hide();1887 $('.field__area__category__machine__audio').hide();1888 $('.field__area__category__machine__helth').hide();1889 $('.field__area__category__machine__heat').hide();1890 $('.field__area__category__machine__other').hide();1891 $('.field__area__category__machine__home').show();1892 }1893 else if (grandchild == '9/114'){1894 $('.field__area__category__machine__phone').hide();1895 $('.field__area__category__machine__accessary').hide();1896 $('.field__area__category__machine__pc').hide();1897 $('.field__area__category__machine__camera').hide();1898 $('.field__area__category__machine__tv').hide();1899 $('.field__area__category__machine__audio').hide();1900 $('.field__area__category__machine__helth').hide();1901 $('.field__area__category__machine__heat').hide();1902 $('.field__area__category__machine__home').hide();1903 $('.field__area__category__machine__other').show();1904 }1905 });1906 }1907 if (child == '9/'){1908 $('.field__area__category__ledies').hide();1909 $('.field__area__category__mens').hide();1910 $('.field__area__category__kids').hide();1911 $('.field__area__category__interior').hide();1912 $('.field__area__category__book').hide();1913 $('.field__area__category__hoby').hide();1914 $('.field__area__category__cosme').hide();1915 $('.field__area__category__machine').hide();1916 $('.field__area__category__handmade').hide();1917 $('.field__area__category__ticket').hide();1918 $('.field__area__category__automobil').hide();1919 $('.field__area__category__other').hide();1920 $('.field__area__category__sports').show();1921 $(".ledies").prop("disabled",true);1922 $(".mens").prop("disabled",true);1923 $(".kids").prop("disabled",true);1924 $(".interior").prop("disabled",true);1925 $(".book").prop("disabled",true);1926 $(".hoby").prop("disabled",true);1927 $(".cosme").prop("disabled",true);1928 $(".machine").prop("disabled",true);1929 $(".sports").prop("disabled",false);1930 $(".handmade").prop("disabled",true);1931 $(".ticket").prop("disabled",true);1932 $(".automobil").prop("disabled",true);1933 $(".other").prop("disabled",true);1934 $(".sports").change(function(){1935 var grandchild = $(this).val();1936 if (grandchild == ''){1937 $('.field__area__category__sports__golf').hide();1938 $('.field__area__category__sports__fishing').hide();1939 $('.field__area__category__sports__bike').hide();1940 $('.field__area__category__sports__training').hide();1941 $('.field__area__category__sports__soccor').hide();1942 $('.field__area__category__sports__baseball').hide();1943 $('.field__area__category__sports__tennis').hide();1944 $('.field__area__category__sports__snowboard').hide();1945 $('.field__area__category__sports__ski').hide();1946 $('.field__area__category__sports__othersports').hide();1947 $('.field__area__category__sports__outdoor').hide();1948 $('.field__area__category__sports__other').hide();1949 }1950 else if (grandchild == '9/115'){1951 $('.field__area__category__sports__fishing').hide();1952 $('.field__area__category__sports__bike').hide();1953 $('.field__area__category__sports__training').hide();1954 $('.field__area__category__sports__baseball').hide();1955 $('.field__area__category__sports__soccor').hide();1956 $('.field__area__category__sports__tennis').hide();1957 $('.field__area__category__sports__snowboard').hide();1958 $('.field__area__category__sports__ski').hide();1959 $('.field__area__category__sports__othersports').hide();1960 $('.field__area__category__sports__outdoor').hide();1961 $('.field__area__category__sports__other').hide();1962 $('.field__area__category__sports__golf').show();1963 }1964 else if (grandchild == '9/116'){1965 $('.field__area__category__sports__golf').hide();1966 $('.field__area__category__sports__bike').hide();1967 $('.field__area__category__sports__training').hide();1968 $('.field__area__category__sports__baseball').hide();1969 $('.field__area__category__sports__soccor').hide();1970 $('.field__area__category__sports__tennis').hide();1971 $('.field__area__category__sports__snowboard').hide();1972 $('.field__area__category__sports__ski').hide();1973 $('.field__area__category__sports__othersports').hide();1974 $('.field__area__category__sports__outdoor').hide();1975 $('.field__area__category__sports__other').hide();1976 $('.field__area__category__sports__fishing').show();1977 }1978 else if (grandchild == '9/117'){1979 $('.field__area__category__sports__golf').hide();1980 $('.field__area__category__sports__fishing').hide();1981 $('.field__area__category__sports__training').hide();1982 $('.field__area__category__sports__baseball').hide();1983 $('.field__area__category__sports__soccor').hide();1984 $('.field__area__category__sports__tennis').hide();1985 $('.field__area__category__sports__snowboard').hide();1986 $('.field__area__category__sports__ski').hide();1987 $('.field__area__category__sports__othersports').hide();1988 $('.field__area__category__sports__outdoor').hide();1989 $('.field__area__category__sports__other').hide();1990 $('.field__area__category__sports__bike').show();1991 }1992 else if (grandchild == '9/118'){1993 $('.field__area__category__sports__golf').hide();1994 $('.field__area__category__sports__fishing').hide();1995 $('.field__area__category__sports__bike').hide();1996 $('.field__area__category__sports__baseball').hide();1997 $('.field__area__category__sports__soccor').hide();1998 $('.field__area__category__sports__tennis').hide();1999 $('.field__area__category__sports__snowboard').hide();2000 $('.field__area__category__sports__ski').hide();2001 $('.field__area__category__sports__othersports').hide();2002 $('.field__area__category__sports__outdoor').hide();2003 $('.field__area__category__sports__other').hide();2004 $('.field__area__category__sports__training').show();2005 }2006 else if (grandchild == '9/119'){2007 $('.field__area__category__sports__golf').hide();2008 $('.field__area__category__sports__fishing').hide();2009 $('.field__area__category__sports__bike').hide();2010 $('.field__area__category__sports__training').hide();2011 $('.field__area__category__sports__soccor').hide();2012 $('.field__area__category__sports__tennis').hide();2013 $('.field__area__category__sports__snowboard').hide();2014 $('.field__area__category__sports__ski').hide();2015 $('.field__area__category__sports__othersports').hide();2016 $('.field__area__category__sports__outdoor').hide();2017 $('.field__area__category__sports__other').hide();2018 $('.field__area__category__sports__baseball').show();2019 }2020 else if (grandchild == '9/120'){2021 $('.field__area__category__sports__golf').hide();2022 $('.field__area__category__sports__fishing').hide();2023 $('.field__area__category__sports__bike').hide();2024 $('.field__area__category__sports__training').hide();2025 $('.field__area__category__sports__baseball').hide();2026 $('.field__area__category__sports__tennis').hide();2027 $('.field__area__category__sports__snowboard').hide();2028 $('.field__area__category__sports__ski').hide();2029 $('.field__area__category__sports__othersports').hide();2030 $('.field__area__category__sports__outdoor').hide();2031 $('.field__area__category__sports__other').hide();2032 $('.field__area__category__sports__soccor').show();2033 }2034 else if (grandchild == '9/121'){2035 $('.field__area__category__sports__golf').hide();2036 $('.field__area__category__sports__fishing').hide();2037 $('.field__area__category__sports__bike').hide();2038 $('.field__area__category__sports__training').hide();2039 $('.field__area__category__sports__soccor').hide();2040 $('.field__area__category__sports__baseball').hide();2041 $('.field__area__category__sports__snowboard').hide();2042 $('.field__area__category__sports__ski').hide();2043 $('.field__area__category__sports__othersports').hide();2044 $('.field__area__category__sports__outdoor').hide();2045 $('.field__area__category__sports__other').hide();2046 $('.field__area__category__sports__tennis').show();2047 }2048 else if (grandchild == '9/122'){2049 $('.field__area__category__sports__golf').hide();2050 $('.field__area__category__sports__fishing').hide();2051 $('.field__area__category__sports__bike').hide();2052 $('.field__area__category__sports__training').hide();2053 $('.field__area__category__sports__soccor').hide();2054 $('.field__area__category__sports__baseball').hide();2055 $('.field__area__category__sports__tennis').hide();2056 $('.field__area__category__sports__ski').hide();2057 $('.field__area__category__sports__othersports').hide();2058 $('.field__area__category__sports__outdoor').hide();2059 $('.field__area__category__sports__other').hide();2060 $('.field__area__category__sports__snowboard').show();2061 }2062 else if (grandchild == '9/123'){2063 $('.field__area__category__sports__golf').hide();2064 $('.field__area__category__sports__fishing').hide();2065 $('.field__area__category__sports__bike').hide();2066 $('.field__area__category__sports__training').hide();2067 $('.field__area__category__sports__soccor').hide();2068 $('.field__area__category__sports__baseball').hide();2069 $('.field__area__category__sports__tennis').hide();2070 $('.field__area__category__sports__snowboard').hide();2071 $('.field__area__category__sports__othersports').hide();2072 $('.field__area__category__sports__outdoor').hide();2073 $('.field__area__category__sports__other').hide();2074 $('.field__area__category__sports__ski').show();2075 }2076 else if (grandchild == '9/124'){2077 $('.field__area__category__sports__golf').hide();2078 $('.field__area__category__sports__fishing').hide();2079 $('.field__area__category__sports__bike').hide();2080 $('.field__area__category__sports__training').hide();2081 $('.field__area__category__sports__soccor').hide();2082 $('.field__area__category__sports__baseball').hide();2083 $('.field__area__category__sports__tennis').hide();2084 $('.field__area__category__sports__snowboard').hide();2085 $('.field__area__category__sports__ski').hide();2086 $('.field__area__category__sports__outdoor').hide();2087 $('.field__area__category__sports__other').hide();2088 $('.field__area__category__sports__othersports').show();2089 }2090 else if (grandchild == '10/115'){2091 $('.field__area__category__sports__golf').hide();2092 $('.field__area__category__sports__fishing').hide();2093 $('.field__area__category__sports__bike').hide();2094 $('.field__area__category__sports__training').hide();2095 $('.field__area__category__sports__soccor').hide();2096 $('.field__area__category__sports__baseball').hide();2097 $('.field__area__category__sports__tennis').hide();2098 $('.field__area__category__sports__snowboard').hide();2099 $('.field__area__category__sports__ski').hide();2100 $('.field__area__category__sports__othersports').hide();2101 $('.field__area__category__sports__other').hide();2102 $('.field__area__category__sports__outdoor').show();2103 }2104 else if (grandchild == '10/125'){2105 $('.field__area__category__sports__golf').hide();2106 $('.field__area__category__sports__fishing').hide();2107 $('.field__area__category__sports__bike').hide();2108 $('.field__area__category__sports__training').hide();2109 $('.field__area__category__sports__soccor').hide();2110 $('.field__area__category__sports__baseball').hide();2111 $('.field__area__category__sports__tennis').hide();2112 $('.field__area__category__sports__snowboard').hide();2113 $('.field__area__category__sports__ski').hide();2114 $('.field__area__category__sports__othersports').hide();2115 $('.field__area__category__sports__outdoor').hide();2116 $('.field__area__category__sports__other').show();2117 }2118 });2119 }2120 if (child == '10/'){2121 $('.field__area__category__ledies').hide();2122 $('.field__area__category__mens').hide();2123 $('.field__area__category__kids').hide();2124 $('.field__area__category__interior').hide();2125 $('.field__area__category__book').hide();2126 $('.field__area__category__hoby').hide();2127 $('.field__area__category__cosme').hide();2128 $('.field__area__category__machine').hide();2129 $('.field__area__category__sports').hide();2130 $('.field__area__category__ticket').hide();2131 $('.field__area__category__automobil').hide();2132 $('.field__area__category__other').hide();2133 $('.field__area__category__handmade').show();2134 $(".ledies").prop("disabled",true);2135 $(".mens").prop("disabled",true);2136 $(".kids").prop("disabled",true);2137 $(".interior").prop("disabled",true);2138 $(".book").prop("disabled",true);2139 $(".hoby").prop("disabled",true);2140 $(".cosme").prop("disabled",true);2141 $(".machine").prop("disabled",true);2142 $(".sports").prop("disabled",true);2143 $(".handmade").prop("disabled",false);2144 $(".ticket").prop("disabled",true);2145 $(".automobil").prop("disabled",true);2146 $(".other").prop("disabled",true);2147 $(".handmade").change(function(){2148 var grandchild = $(this).val();2149 if (grandchild == ''){2150 $('.field__area__category__handmade__ledies').hide();2151 $('.field__area__category__handmade__komono').hide();2152 $('.field__area__category__handmade__watch').hide();2153 $('.field__area__category__handmade__interior').hide();2154 $('.field__area__category__handmade__hoby').hide();2155 $('.field__area__category__handmade__kids').hide();2156 $('.field__area__category__handmade__material').hide();2157 $('.field__area__category__handmade__second').hide();2158 }2159 else if (grandchild == '10/127'){2160 $('.field__area__category__handmade__komono').hide();2161 $('.field__area__category__handmade__watch').hide();2162 $('.field__area__category__handmade__interior').hide();2163 $('.field__area__category__handmade__hoby').hide();2164 $('.field__area__category__handmade__kids').hide();2165 $('.field__area__category__handmade__material').hide();2166 $('.field__area__category__handmade__second').hide();2167 $('.field__area__category__handmade__ledies').show();2168 }2169 else if (grandchild == '10/128'){2170 $('.field__area__category__handmade__ledies').hide();2171 $('.field__area__category__handmade__watch').hide();2172 $('.field__area__category__handmade__interior').hide();2173 $('.field__area__category__handmade__hoby').hide();2174 $('.field__area__category__handmade__kids').hide();2175 $('.field__area__category__handmade__material').hide();2176 $('.field__area__category__handmade__second').hide();2177 $('.field__area__category__handmade__komono').show();2178 }2179 else if (grandchild == '10/129'){2180 $('.field__area__category__handmade__ledies').hide();2181 $('.field__area__category__handmade__komono').hide();2182 $('.field__area__category__handmade__interior').hide();2183 $('.field__area__category__handmade__hoby').hide();2184 $('.field__area__category__handmade__kids').hide();2185 $('.field__area__category__handmade__material').hide();2186 $('.field__area__category__handmade__second').hide();2187 $('.field__area__category__handmade__watch').show();2188 }2189 else if (grandchild == '10/130'){2190 $('.field__area__category__handmade__ledies').hide();2191 $('.field__area__category__handmade__komono').hide();2192 $('.field__area__category__handmade__watch').hide();2193 $('.field__area__category__handmade__hoby').hide();2194 $('.field__area__category__handmade__kids').hide();2195 $('.field__area__category__handmade__material').hide();2196 $('.field__area__category__handmade__second').hide();2197 $('.field__area__category__handmade__interior').show();2198 }2199 else if (grandchild == '10/131'){2200 $('.field__area__category__handmade__ledies').hide();2201 $('.field__area__category__handmade__komono').hide();2202 $('.field__area__category__handmade__watch').hide();2203 $('.field__area__category__handmade__interior').hide();2204 $('.field__area__category__handmade__kids').hide();2205 $('.field__area__category__handmade__material').hide();2206 $('.field__area__category__handmade__second').hide();2207 $('.field__area__category__handmade__hoby').show();2208 }2209 else if (grandchild == '10/132'){2210 $('.field__area__category__handmade__ledies').hide();2211 $('.field__area__category__handmade__komono').hide();2212 $('.field__area__category__handmade__watch').hide();2213 $('.field__area__category__handmade__interior').hide();2214 $('.field__area__category__handmade__hoby').hide();2215 $('.field__area__category__handmade__material').hide();2216 $('.field__area__category__handmade__second').hide();2217 $('.field__area__category__handmade__kids').show();2218 }2219 else if (grandchild == '11/133'){2220 $('.field__area__category__handmade__ledies').hide();2221 $('.field__area__category__handmade__komono').hide();2222 $('.field__area__category__handmade__watch').hide();2223 $('.field__area__category__handmade__interior').hide();2224 $('.field__area__category__handmade__hoby').hide();2225 $('.field__area__category__handmade__kids').hide();2226 $('.field__area__category__handmade__second').hide();2227 $('.field__area__category__handmade__material').show();2228 }2229 else if (grandchild == '11/134'){2230 $('.field__area__category__handmade__ledies').hide();2231 $('.field__area__category__handmade__komono').hide();2232 $('.field__area__category__handmade__watch').hide();2233 $('.field__area__category__handmade__interior').hide();2234 $('.field__area__category__handmade__hoby').hide();2235 $('.field__area__category__handmade__kids').hide();2236 $('.field__area__category__handmade__material').hide();2237 $('.field__area__category__handmade__second').show();2238 }2239 else if (grandchild == '0'){2240 $('.field__area__category__handmade__ledies').hide();2241 $('.field__area__category__handmade__komono').hide();2242 $('.field__area__category__handmade__watch').hide();2243 $('.field__area__category__handmade__interior').hide();2244 $('.field__area__category__handmade__hoby').hide();2245 $('.field__area__category__handmade__kids').hide();2246 $('.field__area__category__handmade__material').hide();2247 $('.field__area__category__handmade__second').hide();2248 }2249 });2250 }2251 if (child == '11/'){2252 $('.field__area__category__ledies').hide();2253 $('.field__area__category__mens').hide();2254 $('.field__area__category__kids').hide();2255 $('.field__area__category__interior').hide();2256 $('.field__area__category__book').hide();2257 $('.field__area__category__hoby').hide();2258 $('.field__area__category__cosme').hide();2259 $('.field__area__category__machine').hide();2260 $('.field__area__category__sports').hide();2261 $('.field__area__category__handmade').hide();2262 $('.field__area__category__automobil').hide();2263 $('.field__area__category__other').hide();2264 $('.field__area__category__ticket').show();2265 $(".ledies").prop("disabled",true);2266 $(".mens").prop("disabled",true);2267 $(".kids").prop("disabled",true);2268 $(".interior").prop("disabled",true);2269 $(".book").prop("disabled",true);2270 $(".hoby").prop("disabled",true);2271 $(".cosme").prop("disabled",true);2272 $(".machine").prop("disabled",true);2273 $(".sports").prop("disabled",true);2274 $(".handmade").prop("disabled",true);2275 $(".ticket").prop("disabled",false);2276 $(".automobil").prop("disabled",true);2277 $(".other").prop("disabled",true);2278 $(".ticket").change(function(){2279 var grandchild = $(this).val();2280 if (grandchild == ''){2281 $('.field__area__category__ticket__music').hide();2282 $('.field__area__category__ticket__sports').hide();2283 $('.field__area__category__ticket__musical').hide();2284 $('.field__area__category__ticket__event').hide();2285 $('.field__area__category__ticket__cinema').hide();2286 $('.field__area__category__ticket__right').hide();2287 $('.field__area__category__ticket__discount').hide();2288 }2289 else if (grandchild == '11/135'){2290 $('.field__area__category__ticket__sports').hide();2291 $('.field__area__category__ticket__musical').hide();2292 $('.field__area__category__ticket__event').hide();2293 $('.field__area__category__ticket__cinema').hide();2294 $('.field__area__category__ticket__right').hide();2295 $('.field__area__category__ticket__discount').hide();2296 $('.field__area__category__ticket__music').show();2297 }2298 else if (grandchild == '11/136'){2299 $('.field__area__category__ticket__music').hide();2300 $('.field__area__category__ticket__musical').hide();2301 $('.field__area__category__ticket__event').hide();2302 $('.field__area__category__ticket__cinema').hide();2303 $('.field__area__category__ticket__right').hide();2304 $('.field__area__category__ticket__discount').hide();2305 $('.field__area__category__ticket__sports').show();2306 }2307 else if (grandchild == '11/137'){2308 $('.field__area__category__ticket__music').hide();2309 $('.field__area__category__ticket__sports').hide();2310 $('.field__area__category__ticket__event').hide();2311 $('.field__area__category__ticket__cinema').hide();2312 $('.field__area__category__ticket__right').hide();2313 $('.field__area__category__ticket__discount').hide();2314 $('.field__area__category__ticket__musical').show();2315 }2316 else if (grandchild == '11/138'){2317 $('.field__area__category__ticket__music').hide();2318 $('.field__area__category__ticket__sports').hide();2319 $('.field__area__category__ticket__musical').hide();2320 $('.field__area__category__ticket__cinema').hide();2321 $('.field__area__category__ticket__right').hide();2322 $('.field__area__category__ticket__discount').hide();2323 $('.field__area__category__ticket__event').show();2324 }2325 else if (grandchild == '11/139'){2326 $('.field__area__category__ticket__music').hide();2327 $('.field__area__category__ticket__sports').hide();2328 $('.field__area__category__ticket__musical').hide();2329 $('.field__area__category__ticket__event').hide();2330 $('.field__area__category__ticket__right').hide();2331 $('.field__area__category__ticket__discount').hide();2332 $('.field__area__category__ticket__cinema').show();2333 }2334 else if (grandchild == '12/140'){2335 $('.field__area__category__ticket__music').hide();2336 $('.field__area__category__ticket__sports').hide();2337 $('.field__area__category__ticket__musical').hide();2338 $('.field__area__category__ticket__event').hide();2339 $('.field__area__category__ticket__cinema').hide();2340 $('.field__area__category__ticket__discount').hide();2341 $('.field__area__category__ticket__right').show();2342 }2343 else if (grandchild == '12/141'){2344 $('.field__area__category__ticket__music').hide();2345 $('.field__area__category__ticket__sports').hide();2346 $('.field__area__category__ticket__musical').hide();2347 $('.field__area__category__ticket__event').hide();2348 $('.field__area__category__ticket__cinema').hide();2349 $('.field__area__category__ticket__right').hide();2350 $('.field__area__category__ticket__discount').show();2351 }2352 else if (grandchild == 0){2353 $('.field__area__category__ticket__music').hide();2354 $('.field__area__category__ticket__sports').hide();2355 $('.field__area__category__ticket__musical').hide();2356 $('.field__area__category__ticket__event').hide();2357 $('.field__area__category__ticket__cinema').hide();2358 $('.field__area__category__ticket__right').hide();2359 $('.field__area__category__ticket__discount').hide();2360 }2361 });2362 }2363 if (child == '12/'){2364 $('.field__area__category__ledies').hide();2365 $('.field__area__category__mens').hide();2366 $('.field__area__category__kids').hide();2367 $('.field__area__category__interior').hide();2368 $('.field__area__category__book').hide();2369 $('.field__area__category__hoby').hide();2370 $('.field__area__category__cosme').hide();2371 $('.field__area__category__machine').hide();2372 $('.field__area__category__sports').hide();2373 $('.field__area__category__handmade').hide();2374 $('.field__area__category__ticket').hide();2375 $('.field__area__category__other').hide();2376 $('.field__area__category__automobil').show();2377 $(".ledies").prop("disabled",true);2378 $(".mens").prop("disabled",true);2379 $(".kids").prop("disabled",true);2380 $(".interior").prop("disabled",true);2381 $(".book").prop("disabled",true);2382 $(".hoby").prop("disabled",true);2383 $(".cosme").prop("disabled",true);2384 $(".machine").prop("disabled",true);2385 $(".sports").prop("disabled",true);2386 $(".handmade").prop("disabled",true);2387 $(".ticket").prop("disabled",true);2388 $(".automobil").prop("disabled",false);2389 $(".other").prop("disabled",true);2390 $(".automobil").change(function(){2391 var grandchild = $(this).val();2392 if (grandchild == ''){2393 $('.field__area__category__automobil__car').hide();2394 $('.field__area__category__automobil__tire').hide();2395 $('.field__area__category__automobil__parts').hide();2396 $('.field__area__category__automobil__accessory').hide();2397 $('.field__area__category__automobil__bikeparts').hide();2398 $('.field__area__category__automobil__bikeaccessory').hide();2399 }2400 else if (grandchild == '12/142'){2401 $('.field__area__category__automobil__tire').hide();2402 $('.field__area__category__automobil__parts').hide();2403 $('.field__area__category__automobil__accessory').hide();2404 $('.field__area__category__automobil__bikeparts').hide();2405 $('.field__area__category__automobil__bikeaccessory').hide();2406 $('.field__area__category__automobil__car').show();2407 }2408 else if (grandchild == '12/143'){2409 $('.field__area__category__automobil__car').hide();2410 $('.field__area__category__automobil__parts').hide();2411 $('.field__area__category__automobil__accessory').hide();2412 $('.field__area__category__automobil__bikeparts').hide();2413 $('.field__area__category__automobil__bikeaccessory').hide();2414 $('.field__area__category__automobil__tire').show();2415 }2416 else if (grandchild == '12/144'){2417 $('.field__area__category__automobil__car').hide();2418 $('.field__area__category__automobil__tire').hide();2419 $('.field__area__category__automobil__accessory').hide();2420 $('.field__area__category__automobil__bikeparts').hide();2421 $('.field__area__category__automobil__bikeaccessory').hide();2422 $('.field__area__category__automobil__parts').show();2423 }2424 else if (grandchild == '12/145'){2425 $('.field__area__category__automobil__car').hide();2426 $('.field__area__category__automobil__tire').hide();2427 $('.field__area__category__automobil__parts').hide();2428 $('.field__area__category__automobil__bikeparts').hide();2429 $('.field__area__category__automobil__bikeaccessory').hide();2430 $('.field__area__category__automobil__accessory').show();2431 }2432 else if (grandchild == 0){2433 $('.field__area__category__automobil__car').hide();2434 $('.field__area__category__automobil__tire').hide();2435 $('.field__area__category__automobil__parts').hide();2436 $('.field__area__category__automobil__accessory').hide();2437 $('.field__area__category__automobil__bikeaccessory').hide();2438 $('.field__area__category__automobil__bikeparts').hide();2439 }2440 else if (grandchild == '12/146'){2441 $('.field__area__category__automobil__car').hide();2442 $('.field__area__category__automobil__tire').hide();2443 $('.field__area__category__automobil__parts').hide();2444 $('.field__area__category__automobil__accessory').hide();2445 $('.field__area__category__automobil__bikeaccessory').hide();2446 $('.field__area__category__automobil__bikeparts').show();2447 }2448 else if (grandchild == '13/147'){2449 $('.field__area__category__automobil__car').hide();2450 $('.field__area__category__automobil__tire').hide();2451 $('.field__area__category__automobil__parts').hide();2452 $('.field__area__category__automobil__accessory').hide();2453 $('.field__area__category__automobil__bikeparts').hide();2454 $('.field__area__category__automobil__bikeaccessory').show();2455 }2456 });2457 }2458 if (child == '13/'){2459 $('.field__area__category__ledies').hide();2460 $('.field__area__category__mens').hide();2461 $('.field__area__category__kids').hide();2462 $('.field__area__category__interior').hide();2463 $('.field__area__category__book').hide();2464 $('.field__area__category__hoby').hide();2465 $('.field__area__category__cosme').hide();2466 $('.field__area__category__machine').hide();2467 $('.field__area__category__sports').hide();2468 $('.field__area__category__handmade').hide();2469 $('.field__area__category__ticket').hide();2470 $('.field__area__category__automobil').hide();2471 $('.field__area__category__other').show();2472 $(".ledies").prop("disabled",true);2473 $(".mens").prop("disabled",true);2474 $(".kids").prop("disabled",true);2475 $(".interior").prop("disabled",true);2476 $(".book").prop("disabled",true);2477 $(".hoby").prop("disabled",true);2478 $(".cosme").prop("disabled",true);2479 $(".machine").prop("disabled",true);2480 $(".sports").prop("disabled",true);2481 $(".handmade").prop("disabled",true);2482 $(".ticket").prop("disabled",true);2483 $(".automobil").prop("disabled",true);2484 $(".other").prop("disabled",false);2485 $(".other").change(function(){2486 var grandchild = $(this).val();2487 if (grandchild == ''){2488 $('.field__area__category__other__pet').hide();2489 $('.field__area__category__other__meal').hide();2490 $('.field__area__category__other__drink').hide();2491 $('.field__area__category__other__life').hide();2492 $('.field__area__category__other__collection').hide();2493 $('.field__area__category__other__stationary').hide();2494 $('.field__area__category__other__office').hide();2495 }2496 else if (grandchild == 0){2497 $('.field__area__category__other__pet').hide();2498 $('.field__area__category__other__meal').hide();2499 $('.field__area__category__other__drink').hide();2500 $('.field__area__category__other__life').hide();2501 $('.field__area__category__other__collection').hide();2502 $('.field__area__category__other__stationary').hide();2503 $('.field__area__category__other__office').hide();2504 }2505 else if (grandchild == '13/148'){2506 $('.field__area__category__other__meal').hide();2507 $('.field__area__category__other__drink').hide();2508 $('.field__area__category__other__life').hide();2509 $('.field__area__category__other__collection').hide();2510 $('.field__area__category__other__stationary').hide();2511 $('.field__area__category__other__office').hide();2512 $('.field__area__category__other__pet').show();2513 }2514 else if (grandchild == '13/149'){2515 $('.field__area__category__other__pet').hide();2516 $('.field__area__category__other__drink').hide();2517 $('.field__area__category__other__life').hide();2518 $('.field__area__category__other__collection').hide();2519 $('.field__area__category__other__stationary').hide();2520 $('.field__area__category__other__office').hide();2521 $('.field__area__category__other__meal').show();2522 }2523 else if (grandchild == '13/150'){2524 $('.field__area__category__other__pet').hide();2525 $('.field__area__category__other__meal').hide();2526 $('.field__area__category__other__life').hide();2527 $('.field__area__category__other__collection').hide();2528 $('.field__area__category__other__stationary').hide();2529 $('.field__area__category__other__office').hide();2530 $('.field__area__category__other__drink').show();2531 }2532 else if (grandchild == '13/151'){2533 $('.field__area__category__other__pet').hide();2534 $('.field__area__category__other__meal').hide();2535 $('.field__area__category__other__drink').hide();2536 $('.field__area__category__other__collection').hide();2537 $('.field__area__category__other__stationary').hide();2538 $('.field__area__category__other__office').hide();2539 $('.field__area__category__other__life').show();2540 }2541 else if (grandchild == '13/152'){2542 $('.field__area__category__other__pet').hide();2543 $('.field__area__category__other__meal').hide();2544 $('.field__area__category__other__drink').hide();2545 $('.field__area__category__other__life').hide();2546 $('.field__area__category__other__stationary').hide();2547 $('.field__area__category__other__office').hide();2548 $('.field__area__category__other__collection').show();2549 }2550 else if (grandchild == '13/153'){2551 $('.field__area__category__other__pet').hide();2552 $('.field__area__category__other__meal').hide();2553 $('.field__area__category__other__drink').hide();2554 $('.field__area__category__other__life').hide();2555 $('.field__area__category__other__collection').hide();2556 $('.field__area__category__other__office').hide();2557 $('.field__area__category__other__stationary').show();2558 }2559 else if (grandchild == '13/154'){2560 $('.field__area__category__other__pet').hide();2561 $('.field__area__category__other__meal').hide();2562 $('.field__area__category__other__drink').hide();2563 $('.field__area__category__other__life').hide();2564 $('.field__area__category__other__collection').hide();2565 $('.field__area__category__other__stationary').hide();2566 $('.field__area__category__other__office').show();2567 }2568 else if (grandchild == 0){2569 $('.field__area__category__other__pet').hide();2570 $('.field__area__category__other__meal').hide();2571 $('.field__area__category__other__drink').hide();2572 $('.field__area__category__other__life').hide();2573 $('.field__area__category__other__collection').hide();2574 $('.field__area__category__other__stationary').hide();2575 $('.field__area__category__other__office').hide();2576 }2577 });2578 }2579 });2580 });2581 // カテゴリーセレクトボックスのオプションを作成2582 function appendOption(category){2583 var html = `<option value="${category.id}" data-category="${category.id}">${category.name}</option>`;2584 return html;2585 }2586 // 子カテゴリーの表示作成2587 function appendChidrenBox(insertHTML){2588 var childSelectHtml = '';2589 childSelectHtml = `<div class='listing-select-wrapper__added' id= 'children_wrapper'>2590 <div class='listing-select-wrapper__box select-wrap'>2591 <select class="listing-select-wrapper__box--select" id="child_category" name="product[category_id]">2592 <option value="---" data-category="---">---</option>2593 ${insertHTML}2594 <select>2595 <i class='fas fa-chevron-down'></i>2596 </div>2597 </div>`;2598 $('.category_form').append(childSelectHtml);2599 }2600 // 孫カテゴリーの表示作成2601 function appendGrandchidrenBox(insertHTML){2602 var grandchildSelectHtml = '';2603 grandchildSelectHtml = `<div class='listing-select-wrapper__added' id= 'grandchildren_wrapper'>2604 <div class='listing-select-wrapper__box select-wrap'>2605 <select class="listing-select-wrapper__box--select" id="grandchild_category" name="product[category_id]">2606 <option value="---" data-category="---">---</option>2607 ${insertHTML}2608 </select>2609 <i class='fas fa-chevron-down listing-select-wrapper__box--arrow-down'></i>2610 </div>2611 </div>`;2612 $('.category_form').append(grandchildSelectHtml);2613 }2614 // 親カテゴリー選択後のイベント2615 $('#product_category_id').on('change', function(){2616 var parentCategory = $('#product_category_id option:selected').text(); //選択された親カテゴリーの名前を取得2617 if (parentCategory != "---"){ //親カテゴリーが初期値でないことを確認2618 $.ajax({2619 url: 'get_category_children',2620 type: 'GET',2621 data: { parent_name: parentCategory },2622 dataType: 'json'2623 })2624 .done(function(children){2625 $('#children_wrapper').remove(); //親が変更された時、子以下を削除するする2626 $('#grandchildren_wrapper').remove();2627 $('#size_wrapper').remove();2628 $('#brand_wrapper').remove();2629 var insertHTML = '';2630 children.forEach(function(child){2631 insertHTML += appendOption(child);2632 });2633 appendChidrenBox(insertHTML);2634 })2635 .fail(function(){2636 alert('カテゴリー取得に失敗しました');2637 })2638 }else{2639 $('#children_wrapper').remove(); //親カテゴリーが初期値になった時、子以下を削除するする2640 $('#grandchildren_wrapper').remove();2641 $('#size_wrapper').remove();2642 $('#brand_wrapper').remove();2643 }2644 });2645 // 子カテゴリー選択後のイベント2646 $('.category_form').on('change', '#child_category', function(){2647 var childId = $('#child_category option:selected').data('category'); //選択された子カテゴリーのidを取得2648 if (childId != "---"){ //子カテゴリーが初期値でないことを確認2649 $.ajax({2650 url: 'get_category_grandchildren',2651 type: 'GET',2652 data: { child_id: childId },2653 dataType: 'json'2654 })2655 .done(function(grandchildren){2656 if (grandchildren.length != 0) {2657 $('#grandchildren_wrapper').remove(); //子が変更された時、孫以下を削除するする2658 $('#size_wrapper').remove();2659 $('#brand_wrapper').remove();2660 var insertHTML = '';2661 grandchildren.forEach(function(grandchild){2662 insertHTML += appendOption(grandchild);2663 });2664 appendGrandchidrenBox(insertHTML);2665 }2666 })2667 .fail(function(){2668 alert('カテゴリー取得に失敗しました');2669 })2670 }else{2671 $('#grandchildren_wrapper').remove(); //子カテゴリーが初期値になった時、孫以下を削除する2672 $('#size_wrapper').remove();2673 $('#brand_wrapper').remove();2674 }2675 });...

Full Screen

Full Screen

office-vsdoc.js

Source:office-vsdoc.js Github

copy

Full Screen

1/// <reference path="outlook-15.debug.js" />2Office._ExcelMask = 0x1;3Office._WordMask = 0x2;4Office._ProjectMask = 0x4;5Office._OutlookMask = 0x8;6Office._PowerPointMask = 0x16;7//Definitions8Office._BindingDataChangedEvents = function (eventType) {9 this.binding = new Office._Binding(bindingType);10 this.type = eventType;11 this.startColumn = {};12 this.startRow = {};13}14Office._CustomXmlNodeEvents = function (eventType) {15 this.type = eventType;16 this.inUndoRedo = {};17 if (eventType == 'nodeDeleted') {18 this.oldNode = new Office._CustomXmlNode();19 this.oldNextSibling = new Office._CustomXmlNode();20 }21 if (eventType == 'nodeInserted') {22 this.newNode = new Office._CustomXmlNode();23 24 }25 if (eventType == 'nodeReplaced') {26 this.oldNode = new Office._CustomXmlNode();27 this.newNode = new Office._CustomXmlNode();28 }29}30Office._Error = function () {31 this.id = {};32 this.message = {};33 this.name = {};34}35Office._CustomXmlNode= function () {36 this.baseName = {};37 this.namespaceUri = {};38 this.nodeType = {};39 this.getNodesAsync = function (xPath, callback) {40 ///<summary> Gets the nodes associated with the xPath expression. </summary>41 ///<param name="xPath" type="string">The xPath expression</param>42 ///<param name="callback" type="function" optional="true">The optional callback method</param>43 var result = new Office._AsyncResult("getNodesAsync");44 callback(result);45 };46 this.getNodeValueAsync = function (callback) {47 ///<summary> Gets the node value. </summary>48 ///<param name="callback" type="function" optional="true">The optional callback method</param>49 50 var result = new Office._AsyncResult("getNodeValueAsync");51 callback(result);52 };53 this.getXmlAsync = function (callback) {54 ///<summary> Gets the node's XML. </summary>55 ///<param name="callback" type="function" optional="true">The optional callback method</param>56 var result = new Office._AsyncResult("getXmlAsync");57 callback(result);58 };59 this.setNodeValueAsync = function (value, callback) {60 ///<summary> Sets the node value. </summary>61 ///<param name="value" type="string">The value to be set on the node</param>62 ///<param name="callback" type="function" optional="true">The optional callback method</param>63 var result = new Office._AsyncResult("setNodeValueAsync");64 callback(result);65 };66 this.setXmlAsync = function (xml, callback) {67 ///<summary> Sets the node XML. </summary>68 ///<param name="xml" type="string">The XML to be set on the node</param>69 ///<param name="callback" type="function" optional="true">The optional callback method</param>70 var result = new Office._AsyncResult("setXmlAsync");71 callback(result);72 };73}74Office._context_document_customXmlParts_customXmlPrefixMappings = function () {75 this.addNamespaceAsync = function (prefix, nsUri, callback) {76 ///<summary>Adds a namespace. </summary>77 //////<param name="prefix" type="string">The namespace prefix</param>78 //////<param name="nsUri" type="string">The namespace URI</param>79 ///<param name="callback" type="function" optional="true">The optional callback method</param>80 81 var result = new Office._AsyncResult("addNamespaceAsync");82 callback(result);83 };84 this.getNamespaceAsync = function (prefix, callback) {85 ///<summary> Gets a namespace with the specified prefix </summary>86 ///<param name="prefix" type="string">The namespace prefix</param>87 ///<param name="callback" type="function" optional="true">The optional callback method</param>88 var result = new Office._AsyncResult("getNamespaceAsync");89 callback(result);90 };91 this.getPrefixAsync = function (nsUri, callback) {92 ///<summary> Gets a prefix for the specified URI </summary>93 ///<param name="nsUri" type="string">The namespace URI</param>94 ///<param name="callback" type="function" optional="true">The optional callback method</param>95 96 var result = new Office._AsyncResult("getPrefixAsync");97 callback(result);98 };99}100Office._CustomXmlPart = function () {101 this.builtIn = {};102 this.id = {};103 this.namespaceManager = new Office._context_document_customXmlParts_customXmlPrefixMappings();104 105 this.deleteAsync = function (callback) {106 ///<summary> Deletes the Custom XML Part. </summary>107 ///<param name="callback" type="function" optional="true">The optional callback method</param>108 var result = new Office._AsyncResult("deleteAsync");109 callback(result);110 };111 this.getNodesAsync = function (xPath, callback) {112 ///<summary> Gets the nodes associated with the xPath expression. </summary>113 ///<param name="xPath" type="string">The xPath expression</param>114 ///<param name="callback" type="function" optional="true">The optional callback method</param>115 var result = new Office._AsyncResult("getNodesAsync");116 callback(result);117 };118 this.getXmlAsync = function (callback) {119 ///<summary> Gets the XML for the Custom XML Part. </summary>120 ///<param name="callback" type="function" optional="true">The optional callback method</param>121 var result = new Office._AsyncResult("getXmlAsync");122 callback(result);123 };124 this.addHandlerAsync = function (eventType, handler, callback) {125 ///<summary> Adds an event handler to the object using the specified event type. </summary>126 ///<param name="eventType" type="Office.EventType">The event type. For CustomXmlPartNode it can be 'nodeDeleted', 'nodeInserted' or 'nodeReplaced' </param>127 ///<param name="handler" type="function">The name of the handler </param>128 ///<param name="callback" type="function" optional="true">The optional callback method</param>129 var events = new Office._CustomXmlNodeEvents(eventType);130 handler(events);131 var result = new Office._AsyncResult("addHandlerAsync");132 callback(result);133 };134 this.removeHandlerAsync = function (eventType, options, callback) {135 ///<summary> Removes an event handler from the object using the specified event type. </summary>136 ///<param name="eventType" type="Office.EventType">The event type. For CustomXmlPartNode it can be 'nodeDeleted', 'nodeInserted' or 'nodeReplaced' </param>137 ///<param name="options" type="Object" optional="true">138 /// Syntax example: {handler:eventHandler}139 /// &#10; handler: Indicates a specific handler to be removed, if not specified all handlers are removed140 /// &#10; asyncContext: Object keeping state for the callback141 ///</param>142 ///<param name="callback" type="function" optional="true">The optional callback method</param>143 ///144 var result = new Office._AsyncResult("removeHandlerAsync");145 callback(result);146 }147}148 Office._Binding = function (bindingType) {149 ///<field type="String">Id of the Binding</field>};150 this.id = {};151 152 this.type = {};153 this.document = {};154 this.setDataAsync = function (data, options, callback) {155 ///<summary> Writes the specified data into the current selection.</summary>156 ///<param name="data" type="Object">The data to be set. Either a string or value, 2d array or TableData object</param>157 ///<param name="options" type="Object" optional="true">158 /// Syntax example: {coercionType:Office.CoercionType.Matrix} or {coercionType: 'matrix'}159 /// &#10; coercionType: Explicitly sets the shape of the data object. Use Office.CoercionType or text value. If not supplied is inferred from the data type.160 /// &#10; startRow: Used in partial set for table/matrix. Indicates the start row.161 /// &#10; startColumn: Used in partial set for table/matrix. Indicates the start column.162 163 /// &#10; asyncContext: Object keeping state for the callback164 ///</param>165 ///<param name="callback" type="function" optional="true">The optional callback method</param>166 var result = new Office._AsyncResult("setDataAsync");167 callback(result);168 };169 this.getDataAsync = function (options, callback) {170 ///<summary> Returns the current selection.</summary>171 ///<param name="options" type="Object" optional="true">172 /// Syntax example: {coercionType: 'matrix,'valueFormat: 'formatted', filterType:'all'}173 /// &#10; coercionType: The expected shape of the selection. If not specified returns the bindingType shape. Use Office.CoercionType or text value.174 /// &#10; valueFormat: Get data with or without format. Use Office.ValueFormat or text value.175 /// &#10; startRow: Used in partial get for table/matrix. Indicates the start row.176 /// &#10; startColumn: Used in partial get for table/matrix. Indicates the start column.177 /// &#10; rowCount: Used in partial get for table/matrix. Indicates the number of rows from the start row.178 /// &#10; columnCount: Used in partial get for table/matrix. Indicates the number of columns from the start column.179 /// &#10; filterType: Get the visible or all the data. Useful when filtering data. Use Office.FilterType or text value.180 /// &#10; asyncContext: Object keeping state for the callback181 ///</param>182 ///<param name="callback" type="function" optional="true">The optional callback method</param>183 if (arguments.length == 1) {184 callback = options;185 }186 var result = new Office._AsyncResult("getDataAsync", options.coercionType);187 callback(result);188 };189 190 this.addHandlerAsync = function (eventType, handler, callback) {191 ///<summary> Adds an event handler to the object using the specified event type. </summary>192 ///<param name="eventType" type="Office.EventType">The event type. For binding it can be 'bindingDataChanged' and 'bindingSelectionChanged' </param>193 ///<param name="handler" type="function">The name of the handler </param>194 ///<param name="callback" type="function" optional="true">The optional callback method</param>195 var events = new Office._BindingDataChangedEvents(eventType);196 handler(events);197 var result = new Office._AsyncResult("addHandlerAsync");198 callback(result);199 };200 this.removeHandlerAsync = function (eventType, options, callback) {201 ///<summary> Removes an event handler from the object using the specified event type. </summary>202 ///<param name="eventType" type="Office.EventType">The event type. For binding can be 'bindingDataChanged' and 'bindingSelectionChanged' </param>203 ///<param name="options" type="Object" optional="true">204 /// Syntax example: {handler:eventHandler}205 /// &#10; handler: Indicates a specific handler to be removed, if not specified all handlers are removed206 /// &#10; asyncContext: Object keeping state for the callback207 ///</param>208 ///<param name="callback" type="function" optional="true">The optional callback method</param>209 var events = new Office._BindingDataChangedEvents(eventType);210 handler(events);211 var result = new Office._AsyncResult("removeHandlerAsync");212 callback(result);213 };214 215 if ((bindingType == undefined) || (bindingType == Office.BindingType.Matrix) || (bindingType == Office.BindingType.Table))216 {217 this.columnCount = {};218 this.rowCount = {};219 }220 if ((bindingType == undefined) || (bindingType == Office.BindingType.Table))221 {222 223 this.hasHeaders = {};224 this.addRowsAsync = function (data, callback) {225 ///<summary> Adds the specified rows to the table </summary>226 ///<param name="data" type="Object"> A 2D array with the rows to add </param>227 228 ///<param name="callback" type="function" optional="true">The optional callback method</param>229 };230 this.addColumnsAsync = function (tableData, callback) {231 ///<summary> Adds the specified columns to the table </summary>232 ///<param name="tableData" type="Object"> A TableData object with the headers and rows </param>233 234 ///<param name="callback" type="function" optional="true">The optional callback method</param>};235 };236 this.deleteAllDataValuesAsync = function (callback) { 237 ///<summary> Clears the table</summary>238 ///<param name="callback" type="function" optional="true">The optional callback method</param>};239 };240 }241 }242 Office._TableData = function () {243 this.headers = new Array(new Array());244 this.rows = new Array(new Array());245 }246 Office._File = function () {247 this.size = {};248 this.sliceCount={};249 this.getSliceAsync = function (sliceIndex, callback) {250 ///<summary> Gets the specified slice. </summary>251 ///<param name="sliceIndex" type="Integer">The index of the slice to be retrieved </param>252 ///<param name="callback" type="function" optional="true">The optional callback method</param>253 var result = new Office._AsyncResult("getSliceAsync");254 callback(result);255 };256 this.closeAsync = function (callback) {257 ///<summary> Closes the File. </summary>258 ///<param name="callback" type="function" optional="true">The optional callback method</param>259 };260 }261 Office._Slice = function () {262 this.data = {};263 this.index = {};264 this.size = {};265 }266 Office._AsyncResult = function (method, bindingType) {267 this.asyncContext = {};268 this.error = new Office._Error();269 this.status = {};270 if ((method == "addfromSelectionAsync") || (method == "addFromNamedItemAsync") || (method == "getByIdAsync") || (method == "addFromPromptAsync")) {271 this.value = new Office._Binding(bindingType);272 }273 else if ((method == "getDataAsync") || (method == "getSelectedDataAsync")) {274 if (bindingType == "table")275 this.value = new Office._TableData();276 else if(bindingType == "matrix")277 this.value = new Array(new Array);278 else279 this.value = {};280 }281 else if (method == "getAllAsync") {282 this.value = new Array(new Office._Binding(bindingType));283 }284 285 else if ((method == "getByNamespaceAsync")) {286 this.value = new Array(new Office._CustomXmlPart());287 }288 289 else if (method == "getNodesAsync") {290 this.value = new Array(new Office._CustomXmlNode());291 }292 else if ((method == "XMLgetByIdAsync") || (method == "addAsync")) {293 this.value = new Office._CustomXmlPart();294 }295 else if (method =="refreshAsync")296 this.value = new Office._context_document_settings();297 else if(method =="getFileAsync")298 this.value = new Office._File();299 else if(method=="getSliceAsync")300 this.value = new Office._Slice();301 else302 this.value = {};303 }304 Office._context_license = function () {305 this.value = {306 ///<summary>License summary.</summary>307 };308 }309 Office._context_document_settings = function () {310 this.addHandlerAsync = function (eventType, handler, callback) {311 ///<summary> Adds an event handler for the object using the specified event type. </summary>312 ///<param name="eventType" type="Office.EventType">The event type. For settings can be 'settingsChanged' </param>313 ///<param name="handler" type="function">The name of the handler </param>314 ///<param name="callback" type="function" optional="true">The optional callback method</param>315 316 var result = new Office._AsyncResult("addHandlerAsync", coercionType);317 callback(result);318 };319 this.removeHandlerAsync = function (eventType, handler, callback) {320 ///<summary> Removes an event handler for the specified event type. </summary>321 ///<param name="eventType" type="Office.EventType">The event type. For settings can be 'settingsChanged' </param>322 ///<param name="handler" type="Object" optional="true">323 /// Syntax example: {handler:eventHandler}324 /// &#10; handler: Indicates a specific handler to be removed, if not specified all handlers are removed325 /// &#10; asyncContext: Object keeping state for the callback326 ///</param>327 ///<param name="callback" type="function" optional="true">The optional callback method</param>328 var result = new Office._AsyncResult("removeHandlerAsync", coercionType);329 callback(result);330 };331 this.get = function (settingName) {332 ///<summary>Retrieves the setting with the specified name.</summary>333 ///<param name="settingName" type="string">The name of the setting </param>334 335 };336 this.refreshAsync = function (callback) {337 ///<summary>Gets the latest version of the settings object.</summary>338 ///<param name="callback" type="function" optional="true">The optional callback method</param>339 var result = new Office._AsyncResult("refreshAsync", coercionType);340 callback(result);341 };342 this.remove = function (settingName) {343 ///<summary>Removes the setting with the specified name.</summary>344 ///<param name="settingName" type="string">The name of the setting </param>345 ///346 };347 this.saveAsync = function (options, callback) {348 ///<summary>Saves all settings.</summary>349 ///<param name="options" type="Object" optional="true">350 /// Syntax example: {overwriteIfStale:false}351 /// &#10; overwriteIfStale: Indicates whether the setting will be replaced if stale.352 /// &#10; asyncContext: Object keeping state for the callback353 ///</param>354 ///<param name="callback" type="function" optional="true">The optional callback method</param>355 ///356 var result = new Office._AsyncResult("saveAsync", coercionType);357 callback(result);358 };359 this.set = function (settingName, value) {360 ///<summary>Sets a value for the setting with the specified name.</summary>361 ///<param name="settingName" type="string">The name of the setting</param>362 ///<param name="value" type="object">The value for the setting</param>363 };364 };365 Office._context_document_bindings = function () {366 this.document ={};367 this.addFromSelectionAsync = function (bindingType, options, callback) {368 ///<summary>Create a binding based on what the user's current selection.</summary>369 ///<param name="bindingType" type="Office.BindingType">The Office BindingType for the data</param>370 ///<param name="options" type="Object" optional="true">371 /// addFromSelectionAsyncOptions- e.g. {id: "BindingID"}372 /// &#10; id: Identifier.373 /// &#10; asyncContext: Object keeping state for the callback374 ///</param>375 ///<param name="callback" type="function" optional="true">The optional callback method</param>376 if (arguments.length == 2) { callback = options; };377 var result = new Office._AsyncResult("addfromSelectionAsync", bindingType);378 callback(result);379 }380 this.addFromNamedItemAsync = function (itemName, bindingType, options, callback) {381 ///<summary>Creates a binding against a named object in the document</summary>382 ///<param name="itemName" type="String">Name of the bindable object in the document. For Example 'MyExpenses' table in Excel." </param>383 ///<param name="bindingType" type="Office.BindingType">The Office BindingType for the data</param>384 ///<param name="options" type="Object" optional="true">385 /// Syntax example: {id: "BindingID"}386 /// &#10; id: Name of the binding, autogenerated if not supplied. 387 /// &#10; asyncContext: Object keeping state for the callback388 ///</param>389 ///<param name="callback" type="function" optional="true">The optional callback method</param>390 if (arguments.length == 3) { callback = options; };391 var result = new Office._AsyncResult("addFromNamedItemAsync", bindingType);392 callback(result);393 }394 this.getByIdAsync = function (id, callback) {395 ///<summary>Retrieves a binding based on its Name</summary>396 ///<param name="id" type="String">The binding id</param>397 ///<param name="callback" type="function" optional="true">The optional callback method</param>398 399 var result = new Office._AsyncResult("getByIdAsync")400 callback(result);401 }402 this.getAllAsync = function (callback) {403 ///<summary>Gets an array with all the binding objects in the document.</summary>404 ///<param name="callback" type="function" optional="true">The optional callback method</param>405 var result = new Office._AsyncResult("getAllAsync")406 callback(result);407 };408 this.releaseByIdAsync = function (id, callback) {409 ///<summary>Removes the binding from the document</summary>410 ///<param name="id" type="String">The binding id</param>411 ///<param name="callback" type="function" optional="true">The optional callback method</param>412 var result = new Office._AsyncResult("releaseByIdAsync")413 callback(result);414 };415 416 if (Office._ExcelMask & Office._appContext) {417 this.addFromPromptAsync = function (bindingType, options, callback) {418 ///<summary>(Excel only) Create a binding by prompting the user to make a selection on the document.</summary>419 ///<param name="bindingType" type="Office.BindingType">The Office BindingType for the data</param>420 ///<param name="options" type="Object" optional="true">421 /// addFromPromptAsyncOptions- e.g. {promptText: "Please select data", id: "mySales"}422 /// &#10; promptText: Greet your users with a friendly word.423 /// &#10; asyncContext: Object keeping state for the callback424 /// &#10; id: Identifier.425 ///</param>426 ///<param name="callback" type="function" optional="true">The optional callback method</param>427 if (arguments.length == 2) { callback = options; };428 var result = new Office._AsyncResult("addFromPromptAsync", bindingType)429 callback(result);430 431 }432 }433 }434 Office._context_document_customXmlParts = function () {435 ///<summary>(Word Only) customXML parts </summary>436 this.addAsync = function (xml, callback) {437 ///<summary>(Word Only) Asynchronously adds a new custom XML part to a file.</summary>438 ///<param name="xml" type="String">The XML to add to the newly created custom XML part.</param>439 ///<param name="callback" type="function" optional="true">A function that is invoked when the callback returns, whose only parameter is of type AsyncResult.</param>440 var result = new Office._AsyncResult("addAsync");441 callback(result);442 };443 444 this.getByIdAsync = function (id, callback) {445 ///<summary>(Word Only) Asynchronously gets the specified custom XML part by its id.</summary>446 ///<param name="id" type="String">The id of the custom XML part.</param>447 ///<param name="callback" type="function" optional="true">A function that is invoked when the callback returns, whose only parameter is of type AsyncResult.</param>448 449 var result = new Office._AsyncResult("XMLgetByIdAsync");450 callback(result);451 };452 this.getByNamespaceAsync = function (ns, callback) {453 ///<summary>(Word Only) Asynchronously gets the specified custom XML part(s) by its namespace. </summary>454 ///<param name="ns" type="String"> The namespace to search.</param>455 ///<param name="callback" type="function" optional="true">A function that is invoked when the callback returns, whose only parameter is of type AsyncResult.</param>456 var result = new Office._AsyncResult("getByNamespaceAsync");457 callback(result);458 };459 }460 Office._context_document = function () {461 ///<summary>Office Document</summary>462 this.mode ={463 ///<summary>Gets the document mode</summary>464 };465 this.url ={466 ///<summary>Gets the document URL</summary>467 };468 this.addHandlerAsync = function (eventType, handler, callback) {469 ///<summary> Adds an event handler for the specified event type. </summary>470 ///<param name="eventType" type="Office.EventType">The event type. For document can be 'DocumentSelectionChanged' </param>471 ///<param name="handler" type="function">The name of the handler </param>472 ///<param name="callback" type="function" optional="true">The optional callback method</param>473 var result = new Office._AsyncResult("addHandlerAsync", coercionType);474 callback(result);475 };476 this.removeHandlerAsync = function (eventType, handler, callback) {477 ///<summary> Removes an event handler for the specified event type. </summary>478 ///<param name="eventType" type="Office.EventType">The event type. For document can be 'DocumentSelectionChanged' </param>479 ///<param name="handler" type="function" optional="true">The name of the handler. If not specified all handlers are removed </param>480 ///<param name="callback" type="function" optional="true">The optional callback method</param>481 ///482 var result = new Office._AsyncResult("removeHandlerAsync", coercionType);483 callback(result);484 };485 //common methods for excel, word and ppt...486 if ((Office._WordMask & Office._appContext) || (Office._ExcelMask & Office._appContext) || (Office._PowerPointMask & Office._appContext)) {487 this.settings = new Office._context_document_settings();488 this.setSelectedDataAsync = function (data, options, callback) {489 ///<summary> Writes the specified data into the current selection.</summary>490 ///<param name="data" type="Object">The data to be set. Either a string or value, 2d array or TableData object</param>491 ///<param name="options" type="Object" optional="true">492 /// Syntax example: {coercionType:Office.CoercionType.Matrix} or {coercionType: 'matrix'}493 /// &#10; coercionType: Explicitly sets the shape of the data object. Use Office.CoercionType or text value. If not supplied is inferred from the data type.494 /// &#10; asyncContext: Object keeping state for the callback495 ///</param>496 ///<param name="callback" type="function" optional="true">The optional callback method</param>497 ///498 if (arguments.length == 2) { callback = options; };499 var result = new Office._AsyncResult("setSelectedDataAsync");500 callback(result);501 };502 }503 //methods for excel and word.504 if ((Office._WordMask & Office._appContext) || (Office._ExcelMask & Office._appContext)) {505 this.bindings = new Office._context_document_bindings();506 507 }508 //methods for word and ppt...509 if ((Office._WordMask & Office._appContext) || (Office._PowerPointMask & Office._appContext)) {510 511 this.getFileAsync = function (fileType,options, callback) {512 ///<summary>(Word and PowerPoint only) Gets the entire file in slices of up to 4MB.</summary>513 ///<param name="fileType" type="Office.FileType">The format in which the file will be returned</param>514 ///<param name="options" type="Object" optional="true">515 /// Syntax example: {sliceSize:1024}516 /// &#10; sliceSize: Specifies the desired slice size (in Kbytes) up to 4MB. If not specified a default slice size of 4MB will be used.517 ///</param>518 ///<param name="callback" type="function" optional="true">The optional callback method</param>519 if (arguments.length == 2) { callback = options; };520 var result = new Office._AsyncResult("getFileAsync");521 callback(result);522 };523 }524 //methods for all apps525 this.getSelectedDataAsync = function (coercionType, options, callback) {526 ///<summary> Returns the current selection.</summary>527 ///<param name="coercionType" type="Office.CoercionType">The expected shape of the selection.</param>528 ///<param name="options" type="Object" optional="true">529 /// Syntax example: {valueFormat: 'formatted', filterType:'all'}530 /// &#10; valueFormat: Get data with or without format. Use Office.ValueFormat or text value.531 /// &#10; filterType: Get the visible or all the data. Useful when filtering data. Use Office.FilterType or text value.532 /// &#10; asyncContext: Object keeping state for the callback533 ///</param>534 ///<param name="callback" type="function" optional="true">The optional callback method</param>535 ///536 if (arguments.length == 2) { callback = options; };537 var result = new Office._AsyncResult("getSelectedDataAsync", coercionType);538 callback(result);539 };540 541 if (Office._WordMask & Office._appContext) {542 //word-specific methods543 this.customXmlParts = new Office._context_document_customXmlParts();544 545 Office.CustomXmlNodeType = {546 ///<field type="String">Element</field>547 Element: "element",548 ///<field type="String">Attribute</field>549 Attribute: "attribute",550 ///<field type="String">String/field>551 Text: "text",552 ///<field type="String">CData</field>553 Cdata: "cdata",554 ///<field type="String">ProcessingInstruction</field>555 ProcessingInstruction: "processingInstruction",556 ///<field type="String">NodeComment</field>557 NodeComment: "nodeComment",558 ///<field type="String">NodeDocument</field>559 NodeDocument: "nodeDocument"560 }561 562 }563 if (Office._ProjectMask & Office._appContext) {564 //project specific methods565 Office.ProjectProjectFields = {566 ///<field type="Number">CurrencySymbol</field>567 CurrencySymbol: 1,568 ///<field type="Number">CurrencySymbolPosition</field>569 CurrencySymbolPosition: 2,570 ///<field type="Number">DurationUnits</field>571 DurationUnits: 3,572 ///<field type="Number">GUID</field>573 GUID: 4,574 ///<field type="Number">Finish</field>575 Finish: 5,576 ///<field type="Number">Start</field>577 Start: 6,578 ///<field type="Number">ReadOnly</field>579 ReadOnly: 7,580 ///<field type="Number">VERSION</field>581 VERSION: 8,582 ///<field type="Number">WorkUnits</field>583 WorkUnits: 9,584 ///<field type="Number">ProjectServerUrl</field>585 ProjectServerUrl: 10,586 ///<field type="Number">WSSUrl</field>587 WSSUrl: 11,588 ///<field type="Number">WSSList</field>589 WSSList: 12590 }591 Office.ProjectViewTypes = {592 ///<field type="Number">Gantt</field>593 Gantt: 1,594 ///<field type="Number">NetworkDiagram</field>595 NetworkDiagram: 2,596 ///<field type="Number">TaskDiagram</field>597 TaskDiagram: 3,598 ///<field type="Number">TaskForm</field>599 TaskForm: 4,600 ///<field type="Number">TaskSheet</field>601 TaskSheet: 5,602 ///<field type="Number">ResourceForm</field>603 ResourceForm: 6,604 ///<field type="Number">ResourceSheet</field>605 ResourceSheet: 7,606 ///<field type="Number">ResourceGraph</field>607 ResourceGraph: 8,608 ///<field type="Number">TeamPlanner</field>609 TeamPlanner: 9,610 ///<field type="Number">TaskDetails</field>611 TaskDetails: 10,612 ///<field type="Number">TaskNameForm</field>613 TaskNameForm: 11,614 ///<field type="Number">ResourceNames</field>615 ResourceNames: 12,616 ///<field type="Number">Calendar</field>617 Calendar: 13,618 ///<field type="Number">TaskUsage</field>619 TaskUsage: 14,620 ///<field type="Number">ResourceUsage</field>621 ResourceUsage: 15,622 ///<field type="Number">Timeline</field>623 Timeline: 16624 }625 Office.ProjectTaskFields = {626 ///<field type="Number">ActualCost</field>627 ActualCost: 0,628 ///<field type="Number">ActualDuration</field>629 ActualDuration: 1,630 ///<field type="Number">ActualFinish</field>631 ActualFinish: 2,632 ///<field type="Number">ActualOvertimeCost</field>633 ActualOvertimeCost: 3,634 ///<field type="Number">ActualOvertimeWork</field>635 ActualOvertimeWork: 4,636 ///<field type="Number">ActualStart</field>637 ActualStart: 5,638 ///<field type="Number">ActualWork</field>639 ActualWork: 6,640 ///<field type="Number">Text1</field>641 Text1: 7,642 ///<field type="Number">Text10</field>643 Text10: 8,644 ///<field type="Number">Finish10</field>645 Finish10: 9,646 ///<field type="Number">Start10</field>647 Start10: 10,648 ///<field type="Number">Text11</field>649 Text11: 11,650 ///<field type="Number">Text12</field>651 Text12: 12,652 ///<field type="Number">Text13</field>653 Text13: 13,654 ///<field type="Number">Text14</field>655 Text14: 14,656 ///<field type="Number">Text15</field>657 Text15: 15,658 ///<field type="Number">Text16</field>659 Text16: 16,660 ///<field type="Number">Text17</field>661 Text17: 17,662 ///<field type="Number">Text18</field>663 Text18: 18,664 ///<field type="Number">Text19</field>665 Text19: 19,666 ///<field type="Number">Finish1</field>667 Finish1: 20,668 ///<field type="Number">Start1</field>669 Start1: 21,670 ///<field type="Number">Text2</field>671 Text2: 22,672 ///<field type="Number">Text20</field>673 Text20: 23,674 ///<field type="Number">Text21</field>675 Text21: 24,676 ///<field type="Number">Text22</field>677 Text22: 25,678 ///<field type="Number">Text23</field>679 Text23: 26,680 ///<field type="Number">Text24</field>681 Text24: 27,682 ///<field type="Number">Text25</field>683 Text25: 28,684 ///<field type="Number">Text26</field>685 Text26: 29,686 ///<field type="Number">Text27</field>687 Text27: 30,688 ///<field type="Number">Text28</field>689 Text28: 31,690 ///<field type="Number">Text29</field>691 Text29: 32,692 ///<field type="Number">Finish2</field>693 Finish2: 33,694 ///<field type="Number">Start2</field>695 Start2: 34,696 ///<field type="Number">Text3</field>697 Text3: 35,698 ///<field type="Number">Text30</field>699 Text30: 36,700 ///<field type="Number">Finish3</field>701 Finish3: 37,702 ///<field type="Number">Start3</field>703 Start3: 38,704 ///<field type="Number">Text4</field>705 Text4: 39,706 ///<field type="Number">Finish4</field>707 Finish4: 40,708 ///<field type="Number">Start4</field>709 Start4: 41,710 ///<field type="Number">Text5</field>711 Text5: 42,712 ///<field type="Number">Finish5</field>713 Finish5: 43,714 ///<field type="Number">Start5</field>715 Start5: 44,716 ///<field type="Number">Text6</field>717 Text6: 45,718 ///<field type="Number">Finish6</field>719 Finish6: 46,720 ///<field type="Number">Start6</field>721 Start6: 47,722 ///<field type="Number">Text7</field>723 Text7: 48,724 ///<field type="Number">Finish7</field>725 Finish7: 49,726 ///<field type="Number">Start7</field>727 Start7: 50,728 ///<field type="Number">Text8</field>729 Text8: 51,730 ///<field type="Number">Finish8</field>731 Finish8: 52,732 ///<field type="Number">Start8</field>733 Start8: 53,734 ///<field type="Number">Text9</field>735 Text9: 54,736 ///<field type="Number">Finish9</field>737 Finish9: 55,738 ///<field type="Number">Start9</field>739 Start9: 56,740 ///<field type="Number">Baseline10BudgetCost</field>741 Baseline10BudgetCost: 57,742 ///<field type="Number">Baseline10BudgetWork</field>743 Baseline10BudgetWork: 58,744 ///<field type="Number">Baseline10Cost</field>745 Baseline10Cost: 59,746 ///<field type="Number">Baseline10Duration</field>747 Baseline10Duration: 60,748 ///<field type="Number">Baseline10Finish</field>749 Baseline10Finish: 61,750 ///<field type="Number">Baseline10FixedCost</field>751 Baseline10FixedCost: 62,752 ///<field type="Number">Baseline10FixedCostAccrual</field>753 Baseline10FixedCostAccrual: 63,754 ///<field type="Number">Baseline10Start</field>755 Baseline10Start: 64,756 ///<field type="Number">Baseline10Work</field>757 Baseline10Work: 65,758 ///<field type="Number">Baseline1BudgetCost</field>759 Baseline1BudgetCost: 66,760 ///<field type="Number">Baseline1BudgetWork</field>761 Baseline1BudgetWork: 67,762 ///<field type="Number">Baseline1Cost</field>763 Baseline1Cost: 68,764 ///<field type="Number">Baseline1Duration</field>765 Baseline1Duration: 69,766 ///<field type="Number">Baseline1Finish</field>767 Baseline1Finish: 70,768 ///<field type="Number">Baseline1FixedCost</field>769 Baseline1FixedCost: 71,770 ///<field type="Number">Baseline1FixedCostAccrual</field>771 Baseline1FixedCostAccrual: 72,772 ///<field type="Number">Baseline1Start</field>773 Baseline1Start: 73,774 ///<field type="Number">Baseline1Work</field>775 Baseline1Work: 74,776 ///<field type="Number">Baseline2BudgetCost</field>777 Baseline2BudgetCost: 75,778 ///<field type="Number">Baseline2BudgetWork</field>779 Baseline2BudgetWork: 76,780 ///<field type="Number">Baseline2Cost</field>781 Baseline2Cost: 77,782 ///<field type="Number">Baseline2Duration</field>783 Baseline2Duration: 78,784 ///<field type="Number">Baseline2Finish</field>785 Baseline2Finish: 79,786 ///<field type="Number">Baseline2FixedCost</field>787 Baseline2FixedCost: 80,788 ///<field type="Number">Baseline2FixedCostAccrual</field>789 Baseline2FixedCostAccrual: 81,790 ///<field type="Number">Baseline2Start</field>791 Baseline2Start: 82,792 ///<field type="Number">Baseline2Work</field>793 Baseline2Work: 83,794 ///<field type="Number">Baseline3BudgetCost</field>795 Baseline3BudgetCost: 84,796 ///<field type="Number">Baseline3BudgetWork</field>797 Baseline3BudgetWork: 85,798 ///<field type="Number">Baseline3Cost</field>799 Baseline3Cost: 86,800 ///<field type="Number">Baseline3Duration</field>801 Baseline3Duration: 87,802 ///<field type="Number">Baseline3Finish</field>803 Baseline3Finish: 88,804 ///<field type="Number">Baseline3FixedCost</field>805 Baseline3FixedCost: 89,806 ///<field type="Number">Baseline3FixedCostAccrual</field>807 Baseline3FixedCostAccrual: 90,808 ///<field type="Number">Basline3Start</field>809 Basline3Start: 91,810 ///<field type="Number">Baseline3Work</field>811 Baseline3Work: 92,812 ///<field type="Number">Baseline4BudgetCost</field>813 Baseline4BudgetCost: 93,814 ///<field type="Number">Baseline4BudgetWork</field>815 Baseline4BudgetWork: 94,816 ///<field type="Number">Baseline4Cost</field>817 Baseline4Cost: 95,818 ///<field type="Number">Baseline4Duration</field>819 Baseline4Duration: 96,820 ///<field type="Number">Baseline4Finish</field>821 Baseline4Finish: 97,822 ///<field type="Number">Baseline4FixedCost</field>823 Baseline4FixedCost: 98,824 ///<field type="Number">Baseline4FixedCostAccrual</field>825 Baseline4FixedCostAccrual: 99,826 ///<field type="Number">Baseline4Start</field>827 Baseline4Start: 100,828 ///<field type="Number">Baseline4Work</field>829 Baseline4Work: 101,830 ///<field type="Number">Baseline5BudgetCost</field>831 Baseline5BudgetCost: 102,832 ///<field type="Number">Baseline5BudgetWork</field>833 Baseline5BudgetWork: 103,834 ///<field type="Number">Baseline5Cost</field>835 Baseline5Cost: 104,836 ///<field type="Number">Baseline5Duration</field>837 Baseline5Duration: 105,838 ///<field type="Number">Baseline5Finish</field>839 Baseline5Finish: 106,840 ///<field type="Number">Baseline5FixedCost</field>841 Baseline5FixedCost: 107,842 ///<field type="Number">Baseline5FixedCostAccrual</field>843 Baseline5FixedCostAccrual: 108,844 ///<field type="Number">Baseline5Start</field>845 Baseline5Start: 109,846 ///<field type="Number">Baseline5Work</field>847 Baseline5Work: 110,848 ///<field type="Number">Baseline6BudgetCost</field>849 Baseline6BudgetCost: 111,850 ///<field type="Number">Baseline6BudgetWork</field>851 Baseline6BudgetWork: 112,852 ///<field type="Number">Baseline6Cost</field>853 Baseline6Cost: 113,854 ///<field type="Number">Baseline6Duration</field>855 Baseline6Duration: 114,856 ///<field type="Number">Baseline6Finish</field>857 Baseline6Finish: 115,858 ///<field type="Number">Baseline6FixedCost</field>859 Baseline6FixedCost: 116,860 ///<field type="Number">Baseline6FixedCostAccrual</field>861 Baseline6FixedCostAccrual: 117,862 ///<field type="Number">Baseline6Start</field>863 Baseline6Start: 118,864 ///<field type="Number">Baseline6Work</field>865 Baseline6Work: 119,866 ///<field type="Number">Baseline7BudgetCost</field>867 Baseline7BudgetCost: 120,868 ///<field type="Number">Baseline7BudgetWork</field>869 Baseline7BudgetWork: 121,870 ///<field type="Number">Baseline7Cost</field>871 Baseline7Cost: 122,872 ///<field type="Number">Baseline7Duration</field>873 Baseline7Duration: 123,874 ///<field type="Number">Baseline7Finish</field>875 Baseline7Finish: 124,876 ///<field type="Number">Baseline7FixedCost</field>877 Baseline7FixedCost: 125,878 ///<field type="Number">Baseline7FixedCostAccrual</field>879 Baseline7FixedCostAccrual: 126,880 ///<field type="Number">Baseline7Start</field>881 Baseline7Start: 127,882 ///<field type="Number">Baseline7Work</field>883 Baseline7Work: 128,884 ///<field type="Number">Baseline8BudgetCost</field>885 Baseline8BudgetCost: 129,886 ///<field type="Number">Baseline8BudgetWork</field>887 Baseline8BudgetWork: 130,888 ///<field type="Number">Baseline8Cost</field>889 Baseline8Cost: 131,890 ///<field type="Number">Baseline8Duration</field>891 Baseline8Duration: 132,892 ///<field type="Number">Baseline8Finish</field>893 Baseline8Finish: 133,894 ///<field type="Number">Baseline8FixedCost</field>895 Baseline8FixedCost: 134,896 ///<field type="Number">Baseline8FixedCostAccrual</field>897 Baseline8FixedCostAccrual: 135,898 ///<field type="Number">Baseline8Start</field>899 Baseline8Start: 136,900 ///<field type="Number">Baseline8Work</field>901 Baseline8Work: 137,902 ///<field type="Number">Baseline9BudgetCost</field>903 Baseline9BudgetCost: 138,904 ///<field type="Number">Baseline9BudgetWork</field>905 Baseline9BudgetWork: 139,906 ///<field type="Number">Baseline9Cost</field>907 Baseline9Cost: 140,908 ///<field type="Number">Baseline9Duration</field>909 Baseline9Duration: 141,910 ///<field type="Number">Baseline9Finish</field>911 Baseline9Finish: 142,912 ///<field type="Number">Baseline9FixedCost</field>913 Baseline9FixedCost: 143,914 ///<field type="Number">Baseline9FixedCostAccrual</field>915 Baseline9FixedCostAccrual: 144,916 ///<field type="Number">Baseline9Start</field>917 Baseline9Start: 145,918 ///<field type="Number">Baseline9Work</field>919 Baseline9Work: 146,920 ///<field type="Number">BaselineBudgetCost</field>921 BaselineBudgetCost: 147,922 ///<field type="Number">BaselineBudgetWork</field>923 BaselineBudgetWork: 148,924 ///<field type="Number">BaselineCost</field>925 BaselineCost: 149,926 ///<field type="Number">BaselineDuration</field>927 BaselineDuration: 150,928 ///<field type="Number">BaselineFinish</field>929 BaselineFinish: 151,930 ///<field type="Number">BaselineFixedCost</field>931 BaselineFixedCost: 152,932 ///<field type="Number">BaselineFixedCostAccrual</field>933 BaselineFixedCostAccrual: 153,934 ///<field type="Number">BaselineStart</field>935 BaselineStart: 154,936 ///<field type="Number">BaselineWork</field>937 BaselineWork: 155,938 ///<field type="Number">BudgetCost</field>939 BudgetCost: 156,940 ///<field type="Number">BudgetFixedCost</field>941 BudgetFixedCost: 157,942 ///<field type="Number">BudgetFixedWork</field>943 BudgetFixedWork: 158,944 ///<field type="Number">BudgetWork</field>945 BudgetWork: 159,946 ///<field type="Number">TaskCalendarGUID</field>947 TaskCalendarGUID: 160,948 ///<field type="Number">ConstraintDate</field>949 ConstraintDate: 161,950 ///<field type="Number">ConstraintType</field>951 ConstraintType: 162,952 ///<field type="Number">Cost1</field>953 Cost1: 163,954 ///<field type="Number">Cost10</field>955 Cost10: 164,956 ///<field type="Number">Cost2</field>957 Cost2: 165,958 ///<field type="Number">Cost3</field>959 Cost3: 166,960 ///<field type="Number">Cost4</field>961 Cost4: 167,962 ///<field type="Number">Cost5</field>963 Cost5: 168,964 ///<field type="Number">Cost6</field>965 Cost6: 169,966 ///<field type="Number">Cost7</field>967 Cost7: 170,968 ///<field type="Number">Cost8</field>969 Cost8: 171,970 ///<field type="Number">Cost9</field>971 Cost9: 172,972 ///<field type="Number">Date1</field>973 Date1: 173,974 ///<field type="Number">Date10</field>975 Date10: 174,976 ///<field type="Number">Date2</field>977 Date2: 175,978 ///<field type="Number">Date3</field>979 Date3: 176,980 ///<field type="Number">Date4</field>981 Date4: 177,982 ///<field type="Number">Date5</field>983 Date5: 178,984 ///<field type="Number">Date6</field>985 Date6: 179,986 ///<field type="Number">Date7</field>987 Date7: 180,988 ///<field type="Number">Date8</field>989 Date8: 181,990 ///<field type="Number">Date9</field>991 Date9: 182,992 ///<field type="Number">Deadline</field>993 Deadline: 183,994 ///<field type="Number">Duration1</field>995 Duration1: 184,996 ///<field type="Number">Duration10</field>997 Duration10: 185,998 ///<field type="Number">Duration2</field>999 Duration2: 186,1000 ///<field type="Number">Duration3</field>1001 Duration3: 187,1002 ///<field type="Number">Duration4</field>1003 Duration4: 188,1004 ///<field type="Number">Duration5</field>1005 Duration5: 189,1006 ///<field type="Number">Duration6</field>1007 Duration6: 190,1008 ///<field type="Number">Duration7</field>1009 Duration7: 191,1010 ///<field type="Number">Duration8</field>1011 Duration8: 192,1012 ///<field type="Number">Duration9</field>1013 Duration9: 193,1014 ///<field type="Number">Duration</field>1015 Duration: 194,1016 ///<field type="Number">EarnedValueMethod</field>1017 EarnedValueMethod: 195,1018 ///<field type="Number">FinishSlack</field>1019 FinishSlack: 196,1020 ///<field type="Number">FixedCost</field>1021 FixedCost: 197,1022 ///<field type="Number">FixedCostAccrual</field>1023 FixedCostAccrual: 198,1024 ///<field type="Number">Flag10</field>1025 Flag10: 199,1026 ///<field type="Number">Flag1</field>1027 Flag1: 200,1028 ///<field type="Number">Flag11</field>1029 Flag11: 201,1030 ///<field type="Number">Flag12</field>1031 Flag12: 202,1032 ///<field type="Number">Flag13</field>1033 Flag13: 203,1034 ///<field type="Number">Flag14</field>1035 Flag14: 204,1036 ///<field type="Number">Flag15</field>1037 Flag15: 205,1038 ///<field type="Number">Flag16</field>1039 Flag16: 206,1040 ///<field type="Number">Flag17</field>1041 Flag17: 207,1042 ///<field type="Number">Flag18</field>1043 Flag18: 208,1044 ///<field type="Number">Flag19</field>1045 Flag19: 209,1046 ///<field type="Number">Flag2</field>1047 Flag2: 210,1048 ///<field type="Number">Flag20</field>1049 Flag20: 211,1050 ///<field type="Number">Flag3</field>1051 Flag3: 212,1052 ///<field type="Number">Flag4</field>1053 Flag4: 213,1054 ///<field type="Number">Flag5</field>1055 Flag5: 214,1056 ///<field type="Number">Flag6</field>1057 Flag6: 215,1058 ///<field type="Number">Flag7</field>1059 Flag7: 216,1060 ///<field type="Number">Flag8</field>1061 Flag8: 217,1062 ///<field type="Number">Flag9</field>1063 Flag9: 218,1064 ///<field type="Number">FreeSlack</field>1065 FreeSlack: 219,1066 ///<field type="Number">HasRollupSubTasks</field>1067 HasRollupSubTasks: 220,1068 ///<field type="Number">ID</field>1069 ID: 221,1070 ///<field type="Number">Name</field>1071 Name: 222,1072 ///<field type="Number">Notes</field>1073 Notes: 223,1074 ///<field type="Number">Number1</field>1075 Number1: 224,1076 ///<field type="Number">Number10</field>1077 Number10: 225,1078 ///<field type="Number">Number11</field>1079 Number11: 226,1080 ///<field type="Number">Number12</field>1081 Number12: 227,1082 ///<field type="Number">Number13</field>1083 Number13: 228,1084 ///<field type="Number">Number14</field>1085 Number14: 229,1086 ///<field type="Number">Number15</field>1087 Number15: 230,1088 ///<field type="Number">Number16</field>1089 Number16: 231,1090 ///<field type="Number">Number17</field>1091 Number17: 232,1092 ///<field type="Number">Number18</field>1093 Number18: 233,1094 ///<field type="Number">Number19</field>1095 Number19: 234,1096 ///<field type="Number">Number2</field>1097 Number2: 235,1098 ///<field type="Number">Number20</field>1099 Number20: 236,1100 ///<field type="Number">Number3</field>1101 Number3: 237,1102 ///<field type="Number">Number4</field>1103 Number4: 238,1104 ///<field type="Number">Number5</field>1105 Number5: 239,1106 ///<field type="Number">Number6</field>1107 Number6: 240,1108 ///<field type="Number">Number7</field>1109 Number7: 241,1110 ///<field type="Number">Number8</field>1111 Number8: 242,1112 ///<field type="Number">Number9</field>1113 Number9: 243,1114 ///<field type="Number">ScheduledDuration</field>1115 ScheduledDuration: 244,1116 ///<field type="Number">ScheduledFinish</field>1117 ScheduledFinish: 245,1118 ///<field type="Number">ScheduledStart</field>1119 ScheduledStart: 246,1120 ///<field type="Number">OutlineLevel</field>1121 OutlineLevel: 247,1122 ///<field type="Number">OvertimeCost</field>1123 OvertimeCost: 248,1124 ///<field type="Number">OvertimeWork</field>1125 OvertimeWork: 249,1126 ///<field type="Number">PercentComplete</field>1127 PercentComplete: 250,1128 ///<field type="Number">PercentWorkComplete</field>1129 PercentWorkComplete: 251,1130 ///<field type="Number">Predecessors</field>1131 Predecessors: 252,1132 ///<field type="Number">PreleveledFinish</field>1133 PreleveledFinish: 253,1134 ///<field type="Number">PreleveledStart</field>1135 PreleveledStart: 254,1136 ///<field type="Number">Priority</field>1137 Priority: 255,1138 ///<field type="Number">Active</field>1139 Active: 256,1140 ///<field type="Number">Critical</field>1141 Critical: 257,1142 ///<field type="Number">Milestone</field>1143 Milestone: 258,1144 ///<field type="Number">Overallocated</field>1145 Overallocated: 259,1146 ///<field type="Number">IsRollup</field>1147 IsRollup: 260,1148 ///<field type="Number">Summary</field>1149 Summary: 261,1150 ///<field type="Number">RegularWork</field>1151 RegularWork: 262,1152 ///<field type="Number">RemainingCost</field>1153 RemainingCost: 263,1154 ///<field type="Number">RemainingDuration</field>1155 RemainingDuration: 264,1156 ///<field type="Number">RemainingOvertimeCost</field>1157 RemainingOvertimeCost: 265,1158 ///<field type="Number">RemainingWork</field>1159 RemainingWork: 266,1160 ///<field type="Number">ResourceNames</field>1161 ResourceNames: 267,1162 ///<field type="Number">ResourceNames</field>1163 ResourceNames: 268,1164 ///<field type="Number">Cost</field>1165 Cost: 269,1166 ///<field type="Number">Finish</field>1167 Finish: 270,1168 ///<field type="Number">Start</field>1169 Start: 271,1170 ///<field type="Number">Work</field>1171 Work: 272,1172 ///<field type="Number">StartSlack</field>1173 StartSlack: 273,1174 ///<field type="Number">Status</field>1175 Status: 274,1176 ///<field type="Number">Successors</field>1177 Successors: 275,1178 ///<field type="Number">StatusManager</field>1179 StatusManager: 276,1180 ///<field type="Number">TotalSlack</field>1181 TotalSlack: 277,1182 ///<field type="Number">TaskGUID</field>1183 TaskGUID: 278,1184 ///<field type="Number">Type</field>1185 Type: 279,1186 ///<field type="Number">WBS</field>1187 WBS: 280,1188 ///<field type="Number">WBSPREDECESSORS</field>1189 WBSPREDECESSORS: 281,1190 ///<field type="Number">WBSSUCCESSORS</field>1191 WBSSUCCESSORS: 282,1192 ///<field type="Number">WSSID</field>1193 WSSID: 2831194 }1195 Office.ProjectResourceFields = {1196 ///<field type="Number">Accrual</field>1197 Accrual: 0,1198 ///<field type="Number">ActualCost</field>1199 ActualCost: 1,1200 ///<field type="Number">ActualOvertimeCost</field>1201 ActualOvertimeCost: 2,1202 ///<field type="Number">ActualOvertimeWork</field>1203 ActualOvertimeWork: 3,1204 ///<field type="Number">ActualOvertimeWorkProtected</field>1205 ActualOvertimeWorkProtected: 4,1206 ///<field type="Number">ActualWork</field>1207 ActualWork: 5,1208 ///<field type="Number">ActualWorkProtected</field>1209 ActualWorkProtected: 6,1210 ///<field type="Number">BaseCalendar</field>1211 BaseCalendar: 7,1212 ///<field type="Number">Baseline10BudgetCost</field>1213 Baseline10BudgetCost: 8,1214 ///<field type="Number">Baseline10BudgetWork</field>1215 Baseline10BudgetWork: 9,1216 ///<field type="Number">Baseline10Cost</field>1217 Baseline10Cost: 10,1218 ///<field type="Number">Baseline10Work</field>1219 Baseline10Work: 11,1220 ///<field type="Number">Baseline1BudgetCost</field>1221 Baseline1BudgetCost: 12,1222 ///<field type="Number">Baseline1BudgetWork</field>1223 Baseline1BudgetWork: 13,1224 ///<field type="Number">Baseline1Cost</field>1225 Baseline1Cost: 14,1226 ///<field type="Number">Baseline1Work</field>1227 Baseline1Work: 15,1228 ///<field type="Number">Baseline2BudgetCost</field>1229 Baseline2BudgetCost: 16,1230 ///<field type="Number">Baseline2BudgetWork</field>1231 Baseline2BudgetWork: 17,1232 ///<field type="Number">Baseline2Cost</field>1233 Baseline2Cost: 18,1234 ///<field type="Number">Baseline2Work</field>1235 Baseline2Work: 19,1236 ///<field type="Number">Baseline3BudgetCost</field>1237 Baseline3BudgetCost: 20,1238 ///<field type="Number">Baseline3BudgetWork</field>1239 Baseline3BudgetWork: 21,1240 ///<field type="Number">Baseline3Cost</field>1241 Baseline3Cost: 22,1242 ///<field type="Number">Baseline3Work</field>1243 Baseline3Work: 23,1244 ///<field type="Number">Baseline4BudgetCost</field>1245 Baseline4BudgetCost: 24,1246 ///<field type="Number">Baseline4BudgetWork</field>1247 Baseline4BudgetWork: 25,1248 ///<field type="Number">Baseline4Cost</field>1249 Baseline4Cost: 26,1250 ///<field type="Number">Baseline4Work</field>1251 Baseline4Work: 27,1252 ///<field type="Number">Baseline5BudgetCost</field>1253 Baseline5BudgetCost: 28,1254 ///<field type="Number">Baseline5BudgetWork</field>1255 Baseline5BudgetWork: 29,1256 ///<field type="Number">Baseline5Cost</field>1257 Baseline5Cost: 30,1258 ///<field type="Number">Baseline5Work</field>1259 Baseline5Work: 31,1260 ///<field type="Number">Baseline6BudgetCost</field>1261 Baseline6BudgetCost: 32,1262 ///<field type="Number">Baseline6BudgetWork</field>1263 Baseline6BudgetWork: 33,1264 ///<field type="Number">Baseline6Cost</field>1265 Baseline6Cost: 34,1266 ///<field type="Number">Baseline6Work</field>1267 Baseline6Work: 35,1268 ///<field type="Number">Baseline7BudgetCost</field>1269 Baseline7BudgetCost: 36,1270 ///<field type="Number">Baseline7BudgetWork</field>1271 Baseline7BudgetWork: 37,1272 ///<field type="Number">Baseline7Cost</field>1273 Baseline7Cost: 38,1274 ///<field type="Number">Baseline7Work</field>1275 Baseline7Work: 39,1276 ///<field type="Number">Baseline8BudgetCost</field>1277 Baseline8BudgetCost: 40,1278 ///<field type="Number">Baseline8BudgetWork</field>1279 Baseline8BudgetWork: 41,1280 ///<field type="Number">Baseline8Cost</field>1281 Baseline8Cost: 42,1282 ///<field type="Number">Baseline8Work</field>1283 Baseline8Work: 43,1284 ///<field type="Number">Baseline9BudgetCost</field>1285 Baseline9BudgetCost: 44,1286 ///<field type="Number">Baseline9BudgetWork</field>1287 Baseline9BudgetWork: 45,1288 ///<field type="Number">Baseline9Cost</field>1289 Baseline9Cost: 46,1290 ///<field type="Number">Baseline9Work</field>1291 Baseline9Work: 47,1292 ///<field type="Number">BaselineBudgetCost</field>1293 BaselineBudgetCost: 48,1294 ///<field type="Number">BaselineBudgetWork</field>1295 BaselineBudgetWork: 49,1296 ///<field type="Number">BaselineCost</field>1297 BaselineCost: 50,1298 ///<field type="Number">BaselineWork</field>1299 BaselineWork: 51,1300 ///<field type="Number">BudgetCost</field>1301 BudgetCost: 52,1302 ///<field type="Number">BudgetWork</field>1303 BudgetWork: 53,1304 ///<field type="Number">ResourceCalendarGUID</field>1305 ResourceCalendarGUID: 54,1306 ///<field type="Number">Code</field>1307 Code: 55,1308 ///<field type="Number">Cost1</field>1309 Cost1: 56,1310 ///<field type="Number">Cost10</field>1311 Cost10: 57,1312 ///<field type="Number">Cost2</field>1313 Cost2: 58,1314 ///<field type="Number">Cost3</field>1315 Cost3: 59,1316 ///<field type="Number">Cost4</field>1317 Cost4: 60,1318 ///<field type="Number">Cost5</field>1319 Cost5: 61,1320 ///<field type="Number">Cost6</field>1321 Cost6: 62,1322 ///<field type="Number">Cost7</field>1323 Cost7: 63,1324 ///<field type="Number">Cost8</field>1325 Cost8: 64,1326 ///<field type="Number">Cost9</field>1327 Cost9: 65,1328 ///<field type="Number">ResourceCreationDate</field>1329 ResourceCreationDate: 66,1330 ///<field type="Number">Date1</field>1331 Date1: 67,1332 ///<field type="Number">Date10</field>1333 Date10: 68,1334 ///<field type="Number">Date2</field>1335 Date2: 69,1336 ///<field type="Number">Date3</field>1337 Date3: 70,1338 ///<field type="Number">Date4</field>1339 Date4: 71,1340 ///<field type="Number">Date5</field>1341 Date5: 72,1342 ///<field type="Number">Date6</field>1343 Date6: 73,1344 ///<field type="Number">Date7</field>1345 Date7: 74,1346 ///<field type="Number">Date8</field>1347 Date8: 75,1348 ///<field type="Number">Date9</field>1349 Date9: 76,1350 ///<field type="Number">Duration1</field>1351 Duration1: 77,1352 ///<field type="Number">Duration10</field>1353 Duration10: 78,1354 ///<field type="Number">Duration2</field>1355 Duration2: 79,1356 ///<field type="Number">Duration3</field>1357 Duration3: 80,1358 ///<field type="Number">Duration4</field>1359 Duration4: 81,1360 ///<field type="Number">Duration5</field>1361 Duration5: 82,1362 ///<field type="Number">Duration6</field>1363 Duration6: 83,1364 ///<field type="Number">Duration7</field>1365 Duration7: 84,1366 ///<field type="Number">Duration8</field>1367 Duration8: 85,1368 ///<field type="Number">Duration9</field>1369 Duration9: 86,1370 ///<field type="Number">Email</field>1371 Email: 87,1372 ///<field type="Number">End</field>1373 End: 88,1374 ///<field type="Number">Finish1</field>1375 Finish1: 89,1376 ///<field type="Number">Finish10</field>1377 Finish10: 90,1378 ///<field type="Number">Finish2</field>1379 Finish2: 91,1380 ///<field type="Number">Finish3</field>1381 Finish3: 92,1382 ///<field type="Number">Finish4</field>1383 Finish4: 93,1384 ///<field type="Number">Finish5</field>1385 Finish5: 94,1386 ///<field type="Number">Finish6</field>1387 Finish6: 95,1388 ///<field type="Number">Finish7</field>1389 Finish7: 96,1390 ///<field type="Number">Finish8</field>1391 Finish8: 97,1392 ///<field type="Number">Finish9</field>1393 Finish9: 98,1394 ///<field type="Number">Flag10</field>1395 Flag10: 99,1396 ///<field type="Number">Flag1</field>1397 Flag1: 100,1398 ///<field type="Number">Flag11</field>1399 Flag11: 101,1400 ///<field type="Number">Flag12</field>1401 Flag12: 102,1402 ///<field type="Number">Flag13</field>1403 Flag13: 103,1404 ///<field type="Number">Flag14</field>1405 Flag14: 104,1406 ///<field type="Number">Flag15</field>1407 Flag15: 105,1408 ///<field type="Number">Flag16</field>1409 Flag16: 106,1410 ///<field type="Number">Flag17</field>1411 Flag17: 107,1412 ///<field type="Number">Flag18</field>1413 Flag18: 108,1414 ///<field type="Number">Flag19</field>1415 Flag19: 109,1416 ///<field type="Number">Flag2</field>1417 Flag2: 110,1418 ///<field type="Number">Flag20</field>1419 Flag20: 111,1420 ///<field type="Number">Flag3</field>1421 Flag3: 112,1422 ///<field type="Number">Flag4</field>1423 Flag4: 113,1424 ///<field type="Number">Flag5</field>1425 Flag5: 114,1426 ///<field type="Number">Flag6</field>1427 Flag6: 115,1428 ///<field type="Number">Flag7</field>1429 Flag7: 116,1430 ///<field type="Number">Flag8</field>1431 Flag8: 117,1432 ///<field type="Number">Flag9</field>1433 Flag9: 118,1434 ///<field type="Number">Group</field>1435 Group: 119,1436 ///<field type="Number">Units</field>1437 Units: 120,1438 ///<field type="Number">Name</field>1439 Name: 121,1440 ///<field type="Number">Notes</field>1441 Notes: 122,1442 ///<field type="Number">Number1</field>1443 Number1: 123,1444 ///<field type="Number">Number10</field>1445 Number10: 124,1446 ///<field type="Number">Number11</field>1447 Number11: 125,1448 ///<field type="Number">Number12</field>1449 Number12: 126,1450 ///<field type="Number">Number13</field>1451 Number13: 127,1452 ///<field type="Number">Number14</field>1453 Number14: 128,1454 ///<field type="Number">Number15</field>1455 Number15: 129,1456 ///<field type="Number">Number16</field>1457 Number16: 130,1458 ///<field type="Number">Number17</field>1459 Number17: 131,1460 ///<field type="Number">Number18</field>1461 Number18: 132,1462 ///<field type="Number">Number19</field>1463 Number19: 133,1464 ///<field type="Number">Number2</field>1465 Number2: 134,1466 ///<field type="Number">Number20</field>1467 Number20: 135,1468 ///<field type="Number">Number3</field>1469 Number3: 136,1470 ///<field type="Number">Number4</field>1471 Number4: 137,1472 ///<field type="Number">Number5</field>1473 Number5: 138,1474 ///<field type="Number">Number6</field>1475 Number6: 139,1476 ///<field type="Number">Number7</field>1477 Number7: 140,1478 ///<field type="Number">Number8</field>1479 Number8: 141,1480 ///<field type="Number">Number9</field>1481 Number9: 142,1482 ///<field type="Number">OvertimeCost</field>1483 OvertimeCost: 143,1484 ///<field type="Number">OvertimeRate</field>1485 OvertimeRate: 144,1486 ///<field type="Number">OvertimeWork</field>1487 OvertimeWork: 145,1488 ///<field type="Number">PercentWorkComplete</field>1489 PercentWorkComplete: 146,1490 ///<field type="Number">CostPerUse</field>1491 CostPerUse: 147,1492 ///<field type="Number">Generic</field>1493 Generic: 148,1494 ///<field type="Number">OverAllocated</field>1495 OverAllocated: 149,1496 ///<field type="Number">RegularWork</field>1497 RegularWork: 150,1498 ///<field type="Number">RemainingCost</field>1499 RemainingCost: 151,1500 ///<field type="Number">RemainingOvertimeCost</field>1501 RemainingOvertimeCost: 152,1502 ///<field type="Number">RemainingOvertimeWork</field>1503 RemainingOvertimeWork: 153,1504 ///<field type="Number">RemainingWork</field>1505 RemainingWork: 154,1506 ///<field type="Number">ResourceGUID</field>1507 ResourceGUID: 155,1508 ///<field type="Number">Cost</field>1509 Cost: 156,1510 ///<field type="Number">Work</field>1511 Work: 157,1512 ///<field type="Number">Start</field>1513 Start: 158,1514 ///<field type="Number">Start1</field>1515 Start1: 159,1516 ///<field type="Number">Start10</field>1517 Start10: 160,1518 ///<field type="Number">Start2</field>1519 Start2: 161,1520 ///<field type="Number">Start3</field>1521 Start3: 162,1522 ///<field type="Number">Start4</field>1523 Start4: 163,1524 ///<field type="Number">Start5</field>1525 Start5: 164,1526 ///<field type="Number">Start6</field>1527 Start6: 165,1528 ///<field type="Number">Start7</field>1529 Start7: 166,1530 ///<field type="Number">Start8</field>1531 Start8: 167,1532 ///<field type="Number">Start9</field>1533 Start9: 168,1534 ///<field type="Number">StandardRate</field>1535 StandardRate: 169,1536 ///<field type="Number">Text1</field>1537 Text1: 170,1538 ///<field type="Number">Text10</field>1539 Text10: 171,1540 ///<field type="Number">Text11</field>1541 Text11: 172,1542 ///<field type="Number">Text12</field>1543 Text12: 173,1544 ///<field type="Number">Text13</field>1545 Text13: 174,1546 ///<field type="Number">Text14</field>1547 Text14: 175,1548 ///<field type="Number">Text15</field>1549 Text15: 176,1550 ///<field type="Number">Text16</field>1551 Text16: 177,1552 ///<field type="Number">Text17</field>1553 Text17: 178,1554 ///<field type="Number">Text18</field>1555 Text18: 179,1556 ///<field type="Number">Text19</field>1557 Text19: 180,1558 ///<field type="Number">Text2</field>1559 Text2: 181,1560 ///<field type="Number">Text20</field>1561 Text20: 182,1562 ///<field type="Number">Text21</field>1563 Text21: 183,1564 ///<field type="Number">Text22</field>1565 Text22: 184,1566 ///<field type="Number">Text23</field>1567 Text23: 185,1568 ///<field type="Number">Text24</field>1569 Text24: 186,1570 ///<field type="Number">Text25</field>1571 Text25: 187,1572 ///<field type="Number">Text26</field>1573 Text26: 188,1574 ///<field type="Number">Text27</field>1575 Text27: 189,1576 ///<field type="Number">Text28</field>1577 Text28: 190,1578 ///<field type="Number">Text29</field>1579 Text29: 191,1580 ///<field type="Number">Text3</field>1581 Text3: 192,1582 ///<field type="Number">Text30</field>1583 Text30: 193,1584 ///<field type="Number">Text4</field>1585 Text4: 194,1586 ///<field type="Number">Text5</field>1587 Text5: 195,1588 ///<field type="Number">Text6</field>1589 Text6: 196,1590 ///<field type="Number">Text7</field>1591 Text7: 197,1592 ///<field type="Number">Text8</field>1593 Text8: 198,1594 ///<field type="Number">Text9</field>1595 Text9: 199,1596 }1597 this.getSelectedTaskAsync = function (callback) {1598 ///<summary> (Project only) Get the current selected Task's Id.</summary>1599 ///<param name="callback" type="function" optional="true">The optional callback method</param>1600 };1601 this.getTaskAsync = function (taskId, callback) {1602 ///<summary> (Project only) Get the Task Name, WSS Task Id, and ResourceNames for given taskId .</summary>1603 ///<param name="taskId" type="Object">Either a string or value of the Task Id.</param>1604 ///<param name="callback" type="function" optional="true">The optional callback method</param>1605 }1606 this.getTaskFieldAsync = function (taskId, taskField, callback) {1607 ///<summary> (Project only) Get task field for provided task Id. (Ex. StartDate).</summary>1608 ///<param name="taskId" type="Object">Either a string or value of the Task Id.</param>1609 ///<param name="taskField" type="Office.ProjectTaskFields">Task Fields.</param>1610 ///<param name="callback" type="function" optional="true">The optional callback method</param>1611 }1612 this.getSelectedResourceAsync = function (callback) {1613 ///<summary> (Project only) Get the current selected Resource's Id.</summary>1614 ///<param name="callback" type="function" optional="true">The optional callback method</param>1615 };1616 this.getResourceFieldAsync = function (resourceId, resourceField, callback) {1617 ///<summary> (Project only) Get resource field for provided resource Id. (Ex.ResourceName)</summary>1618 ///<param name="resourceId" type="Object">Either a string or value of the Resource Id.</param>1619 ///<param name="resourceField" type="Office.ProjectResourceFields">Resource Fields.</param>1620 ///<param name="callback" type="function" optional="true">The optional callback method</param>1621 };1622 this.getProjectFieldAsync = function (projectField, callback) {1623 ///<summary> (Project only) Get Project field (Ex. ProjectWebAccessURL).</summary>1624 ///<param name="projectField" type="Office.ProjectProjectFields">Project level fields.</param>1625 ///<param name="callback" type="function" optional="true">The optional callback method</param>1626 };1627 this.getSelectedViewAsync = function (callback) {1628 ///<summary> (Project only) Get the current selected View Type (Ex. Gantt) and View Name.</summary>1629 ///<param name="callback" type="function" optional="true">The optional callback method</param>1630 };1631 this.getWSSURLAsync = function (callback) {1632 ///<summary> (Project only) Get the WSS Url and list name for the Tasks List, the MPP is synced too.</summary>1633 ///<param name="callback" type="function" optional="true">The optional callback method</param>1634 };1635 }1636 }1637 //Eveything under Office Namepsace for all apps1638 Office.context = {1639 1640 1641 };1642 Office.context.contentLanguage = {};1643 Office.context.displayLanguage = {};1644 Office.context.license = new Office._context_license();1645 Office.TableData = function() { 1646 return (new Office._TableData());1647 }1648 1649 Office.useShortNamespace = function (useShortNamespace) {1650 ///<summary> Indicates if the large namespace for objects will be used or not.</summary>1651 ///<param name="useShortNamespace" type="boolean"> Indicates if 'true' that the short namespace will be used</param>1652 1653 }1654 Office.initialize = function (reason) {1655 ///<summary> This method is called after the Office API was loaded.</summary>1656 ///<param name="reason" type="Office.InitializationReason" optional="true"> Indicates how the app was initialized</param>1657 }1658 // Everything under Office for all apps except Outlook1659 if (!(Office._OutlookMask & Office._appContext)) {1660 Office.AsyncResultStatus = {1661 ///<field type="String">Operation failed, check error object</field>1662 Failed: "failed",1663 ///<field type="String">Operation succeeded</field>1664 Succeeded: "succeeded"1665 1666 };1667 Office.BindingType = {1668 ///<field type="String">Text based Binding</field>1669 Text: "text",1670 ///<field type="String">Matrix based Binding</field>1671 Matrix: "matrix",1672 ///<field type="String">Table based Binding</field>1673 Table: "table"1674 };1675 Office.CoercionType = {1676 ///<field type="String">Coerce as Table</field>1677 Table: "table",1678 ///<field type="String">Coerce as Text</field>1679 Text: "text",1680 ///<field type="String">Coerce as Matrix</field>1681 Matrix: "matrix",1682 ///<field type="String">Coerce as HTML</field>1683 Html: "html",1684 ///<field type="String">Coerce as Office Open XML</field>1685 Ooxml: "ooxml"1686 };1687 1688 Office.DocumentMode = {1689 ///<field type="String">Document in Read Only Mode</field>1690 ReadOnly: "readOnly",1691 ///<field type="String">Document in Read/Write Mode</field>1692 ReadWrite: "readWrite"1693 };1694 1695 1696 Office.EventType ={1697 ///<field type="String">Triggers when a document level selection happens</field>1698 DocumentSelectionChanged:"documentSelectionChanged",1699 ///<field type="String"> Triggers when a binding level selection happens</field>1700 BindingSelectionChanged:"bindingSelectionChanged",1701 ///<field type="String">Triggers when a binding level data change happens</field>1702 BindingDataChanged:"bindingDataChanged",1703 ///<field type="String">Triggers when settings change in a co-Auth session.</field>1704 SettingsChanged:"settingsChanged",1705 ///<field type="String">Triggers when a customXmlPart node was deleted</field>1706 NodeDeleted:"nodeDeleted",1707 ///<field type="String">Triggers when a customXmlPart node was inserted</field>1708 NodeInserted:"nodeInserted",1709 ///<field type="String">Triggers when a customXmlPart node was replaced</field>1710 NodeReplaced: "nodeReplaced",1711 ///<field type="String">Triggers when a Task selection happens in Project.</field>1712 TaskSelectionChanged:"taskSelectionChanged",1713 ///<field type="String"> Triggers when a Resource selection happens in Project.</field>1714 ResourceSelectionChanged:"resourceSelectionChanged",1715 ///<field type="String">Triggers when a View selection happens in Project.</field>1716 ViewSelectionChanged:"viewSelectionChanged"1717 }1718 Office.FileType = {1719 ///<field type="String">Returns the file as a byte array </field>1720 Compressed: "compressed",1721 ///<field type="String">Returns the file as plain text</field>1722 Text:"text"1723 }; 1724 Office.FilterType = {1725 ///<field type="String">Returns all items</field>1726 All: "all",1727 ///<field type="String">Returns only visible items</field>1728 OnlyVisible: "onlyVisible"1729 };1730 Office.InitializationReason = {1731 ///<field type="String">Indicates the app was just inserted in the document /field>1732 Inserted: "inserted",1733 ///<field type="String">Indicated if the extension already existed in the document</field>1734 DocumentOpened: "documentOpened"1735 }1736 Office.ValueFormat = {1737 ///<field type="String">Returns items with format</field>1738 Formatted: "formatted",1739 ///<field type="String">Returns items without format</field>1740 Unformatted: "unformatted"1741 };1742 Office.select = function (expression, callback) {1743 ///<summary> Returns a promise of an object described in the expression. Callback is invoked only if method fails.</summary>1744 ///<param name="expression" type="string">The object to be retrieved. Example "bindings#BindingName", retrieves a binding promise for a binding named 'BindingName'</param>1745 ///<param name="callback" type="function" optional="true">The optional callback method</param>1746 ///1747 var result = new Office._AsyncResult("select");1748 callback(result);1749 return (new Office._Binding("select")); 1750 }1751 }1752 //Everything under Office.context for all apps except outlook1753 if (!(Office._OutlookMask & Office._appContext)) {1754 Office.context.document = new Office._context_document();1755 }1756 1757 //For Outlook1758 if (Office._OutlookMask & Office._appContext) {1759 Office.context.mailbox = new Office._context_mailbox();1760 Office.context.roamingSettings = new Office._context_document_settings();1761 1762 ///<field name="this.context.application.outlookAppOm" type='Object'>The Outlook Application</field>1763 ///<field name="MailBoxEnums" type='Object'>The MailboxEnums</field>1764 Office.MailboxEnums = new Office._MailboxEnums();1765 }1766 document.addEventListener("DOMContentLoaded", function () {1767 Office.initialize();1768 });1769 if (!!intellisense) {1770 intellisense.addEventListener('statementcompletion', function (event) {1771 if (event.targetName === "this" || event.target === undefined || event.target === window) return;1772 event.items = event.items.filter(function (item) {1773 return !(item.name && item.name.charAt(0) === "_");1774 });1775 });...

Full Screen

Full Screen

generic_field_set.py

Source:generic_field_set.py Github

copy

Full Screen

...116 size += field._address117 field = field._parent118 return field._size - size119 autofix = property(lambda self: self.root.autofix)120 def _addField(self, field):121 """122 Add a field to the field set:123 * add it into _fields124 * update _current_size125 May raise a StopIteration() on error126 """127 if not issubclass(field.__class__, Field):128 raise ParserError("Field type (%s) is not a subclass of 'Field'!"129 % field.__class__.__name__)130 assert isinstance(field._name, str)131 if field._name.endswith("[]"):132 self.setUniqueFieldName(field)133 if config.debug:134 self.info("[+] DBG: _addField(%s)" % field.name)135 # required for the msoffice parser136 if field._address != self._current_size:137 self.warning("Fix address of %s to %s (was %s)" %138 (field.path, self._current_size, field._address))139 field._address = self._current_size140 ask_stop = False141 # Compute field size and check that there is enough place for it142 self.__is_feeding = True143 try:144 field_size = field.size145 except HACHOIR_ERRORS, err:146 if field.is_field_set and field.current_length and field.eof:147 self.warning("Error when getting size of '%s': %s" % (field.name, err))148 field._stopFeeding()149 ask_stop = True150 else:151 self.warning("Error when getting size of '%s': delete it" % field.name)152 self.__is_feeding = False153 raise154 self.__is_feeding = False155 # No more place?156 dsize = self._checkSize(field._address + field.size, False)157 if (dsize is not None and dsize < 0) or (field.is_field_set and field.size <= 0):158 if self.autofix and self._current_size:159 self._fixFieldSize(field, field.size + dsize)160 else:161 raise ParserError("Field %s is too large!" % field.path)162 self._current_size += field.size163 try:164 self._fields.append(field._name, field)165 except UniqKeyError, err:166 self.warning("Duplicate field name " + unicode(err))167 field._name += "[]"168 self.setUniqueFieldName(field)169 self._fields.append(field._name, field)170 if ask_stop:171 raise StopIteration()172 def _fixFieldSize(self, field, new_size):173 if new_size > 0:174 if field.is_field_set and 0 < field.size:175 field._truncate(new_size)176 return177 # Don't add the field <=> delete item178 if self._size is None:179 self._size = self._current_size + new_size180 self.warning("[Autofix] Delete '%s' (too large)" % field.path)181 raise StopIteration()182 def _getField(self, name, const):183 field = Field._getField(self, name, const)184 if field is None:185 if name in self._fields:186 field = self._fields[name]187 elif self._field_generator is not None and not const:188 field = self._feedUntil(name)189 return field190 def getField(self, key, const=True):191 if isinstance(key, (int, long)):192 if key < 0:193 raise KeyError("Key must be positive!")194 if not const:195 self.readFirstFields(key+1)196 if len(self._fields.values) <= key:197 raise MissingField(self, key)198 return self._fields.values[key]199 return Field.getField(self, key, const)200 def _truncate(self, size):201 assert size > 0202 if size < self._current_size:203 self._size = size204 while True:205 field = self._fields.values[-1]206 if field._address < size:207 break208 del self._fields[-1]209 self._current_size = field._address210 size -= field._address211 if size < field._size:212 if field.is_field_set:213 field._truncate(size)214 else:215 del self._fields[-1]216 field = createRawField(self, size, "raw[]")217 self._fields.append(field._name, field)218 self._current_size = self._size219 else:220 assert size < self._size or self._size is None221 self._size = size222 if self._size == self._current_size:223 self._field_generator = None224 def _deleteField(self, index):225 field = self._fields.values[index]226 size = field.size227 self._current_size -= size228 del self._fields[index]229 return field230 def _fixLastField(self):231 """232 Try to fix last field when we know current field set size.233 Returns new added field if any, or None.234 """235 assert self._size is not None236 # Stop parser237 message = ["stop parser"]238 self._field_generator = None239 # If last field is too big, delete it240 while self._size < self._current_size:241 field = self._deleteField(len(self._fields)-1)242 message.append("delete field %s" % field.path)243 assert self._current_size <= self._size244 # If field size current is smaller: add a raw field245 size = self._size - self._current_size246 if size:247 field = createRawField(self, size, "raw[]")248 message.append("add padding")249 self._current_size += field.size250 self._fields.append(field._name, field)251 else:252 field = None253 message = ", ".join(message)254 self.warning("[Autofix] Fix parser error: " + message)255 assert self._current_size == self._size256 return field257 def _stopFeeding(self):258 new_field = None259 if self._size is None:260 if self._parent:261 self._size = self._current_size262 elif self._size != self._current_size:263 if self.autofix:264 new_field = self._fixLastField()265 else:266 raise ParserError("Invalid parser \"%s\" size!" % self.path)267 self._field_generator = None268 return new_field269 def _fixFeedError(self, exception):270 """271 Try to fix a feeding error. Returns False if error can't be fixed,272 otherwise returns new field if any, or None.273 """274 if self._size is None or not self.autofix:275 return False276 self.warning(unicode(exception))277 return self._fixLastField()278 def _feedUntil(self, field_name):279 """280 Return the field if it was found, None else281 """282 if self.__is_feeding \283 or (self._field_generator and self._field_generator.gi_running):284 self.warning("Unable to get %s (and generator is already running)"285 % field_name)286 return None287 try:288 while True:289 field = self._field_generator.next()290 self._addField(field)291 if field.name == field_name:292 return field293 except HACHOIR_ERRORS, err:294 if self._fixFeedError(err) is False:295 raise296 except StopIteration:297 self._stopFeeding()298 return None299 def readMoreFields(self, number):300 """301 Read more number fields, or do nothing if parsing is done.302 Returns number of new added fields.303 """304 if self._field_generator is None:305 return 0306 oldlen = len(self._fields)307 try:308 for index in xrange(number):309 self._addField( self._field_generator.next() )310 except HACHOIR_ERRORS, err:311 if self._fixFeedError(err) is False:312 raise313 except StopIteration:314 self._stopFeeding()315 return len(self._fields) - oldlen316 def _feedAll(self):317 if self._field_generator is None:318 return319 try:320 while True:321 field = self._field_generator.next()322 self._addField(field)323 except HACHOIR_ERRORS, err:324 if self._fixFeedError(err) is False:325 raise326 except StopIteration:327 self._stopFeeding()328 def __iter__(self):329 """330 Create a generator to iterate on each field, may create new331 fields when needed332 """333 try:334 done = 0335 while True:336 if done == len(self._fields):337 if self._field_generator is None:338 break339 self._addField( self._field_generator.next() )340 for field in self._fields.values[done:]:341 yield field342 done += 1343 except HACHOIR_ERRORS, err:344 field = self._fixFeedError(err)345 if isinstance(field, Field):346 yield field347 elif hasattr(field, '__iter__'):348 for f in field:349 yield f350 elif field is False:351 raise352 except StopIteration:353 field = self._stopFeeding()354 if isinstance(field, Field):355 yield field356 elif hasattr(field, '__iter__'):357 for f in field:358 yield f359 def _isDone(self):360 return (self._field_generator is None)361 done = property(_isDone, doc="Boolean to know if parsing is done or not")362 #363 # FieldSet_SeekUtility364 #365 def seekBit(self, address, name="padding[]",366 description=None, relative=True, null=False):367 """368 Create a field to seek to specified address,369 or None if it's not needed.370 May raise an (ParserError) exception if address is invalid.371 """372 if relative:373 nbits = address - self._current_size374 else:375 nbits = address - (self.absolute_address + self._current_size)376 if nbits < 0:377 raise ParserError("Seek error, unable to go back!")378 if 0 < nbits:379 if null:380 return createNullField(self, nbits, name, description)381 else:382 return createPaddingField(self, nbits, name, description)383 else:384 return None385 def seekByte(self, address, name="padding[]", description=None, relative=True, null=False):386 """387 Same as seekBit(), but with address in byte.388 """389 return self.seekBit(address * 8, name, description, relative, null=null)390 #391 # RandomAccessFieldSet392 #393 def replaceField(self, name, new_fields):394 # TODO: Check in self and not self.field395 # Problem is that "generator is already executing"396 if name not in self._fields:397 raise ParserError("Unable to replace %s: field doesn't exist!" % name)398 assert 1 <= len(new_fields)399 old_field = self[name]400 total_size = sum( (field.size for field in new_fields) )401 if old_field.size != total_size:402 raise ParserError("Unable to replace %s: "403 "new field(s) hasn't same size (%u bits instead of %u bits)!"404 % (name, total_size, old_field.size))405 field = new_fields[0]406 if field._name.endswith("[]"):407 self.setUniqueFieldName(field)408 field._address = old_field.address409 if field.name != name and field.name in self._fields:410 raise ParserError(411 "Unable to replace %s: name \"%s\" is already used!"412 % (name, field.name))413 self._fields.replace(name, field.name, field)414 self.raiseEvent("field-replaced", old_field, field)415 if 1 < len(new_fields):416 index = self._fields.index(new_fields[0].name)+1417 address = field.address + field.size418 for field in new_fields[1:]:419 if field._name.endswith("[]"):420 self.setUniqueFieldName(field)421 field._address = address422 if field.name in self._fields:423 raise ParserError(424 "Unable to replace %s: name \"%s\" is already used!"425 % (name, field.name))426 self._fields.insert(index, field.name, field)427 self.raiseEvent("field-inserted", index, field)428 index += 1429 address += field.size430 def getFieldByAddress(self, address, feed=True):431 """432 Only search in existing fields433 """434 if feed and self._field_generator is not None:435 self._feedAll()436 if address < self._current_size:437 i = lowerBound(self._fields.values, lambda x: x.address + x.size <= address)438 if i is not None:439 return self._fields.values[i]440 return None441 def writeFieldsIn(self, old_field, address, new_fields):442 """443 Can only write in existing fields (address < self._current_size)444 """445 # Check size446 total_size = sum( field.size for field in new_fields )447 if old_field.size < total_size:448 raise ParserError( \449 "Unable to write fields at address %s " \450 "(too big)!" % (address))451 # Need padding before?452 replace = []453 size = address - old_field.address454 assert 0 <= size455 if 0 < size:456 padding = createPaddingField(self, size)457 padding._address = old_field.address458 replace.append(padding)459 # Set fields address460 for field in new_fields:461 field._address = address462 address += field.size463 replace.append(field)464 # Need padding after?465 size = (old_field.address + old_field.size) - address466 assert 0 <= size467 if 0 < size:468 padding = createPaddingField(self, size)469 padding._address = address470 replace.append(padding)471 self.replaceField(old_field.name, replace)472 def nextFieldAddress(self):473 return self._current_size474 def getFieldIndex(self, field):...

Full Screen

Full Screen

jsgrid.field.tests.js

Source:jsgrid.field.tests.js Github

copy

Full Screen

...74 test("basic", function() {75 var customSortingFunc = function() {76 return 1;77 },78 field = new jsGrid.Field({79 name: "testField",80 title: "testTitle",81 sorter: customSortingFunc82 });8384 equal(field.headerTemplate(), "testTitle");85 equal(field.itemTemplate("testValue"), "testValue");86 equal(field.filterTemplate(), "");87 equal(field.insertTemplate(), "");88 equal(field.editTemplate("testValue"), "testValue");89 strictEqual(field.filterValue(), "");90 strictEqual(field.insertValue(), "");91 strictEqual(field.editValue(), "testValue");92 strictEqual(field.sortingFunc, customSortingFunc);93 });949596 module("jsGrid.field.text");9798 test("basic", function() {99 var field = new jsGrid.TextField({ name: "testField" });100101 equal(field.itemTemplate("testValue"), "testValue");102 equal(field.filterTemplate()[0].tagName.toLowerCase(), "input");103 equal(field.insertTemplate()[0].tagName.toLowerCase(), "input");104 equal(field.editTemplate("testEditValue")[0].tagName.toLowerCase(), "input");105 strictEqual(field.filterValue(), "");106 strictEqual(field.insertValue(), "");107 strictEqual(field.editValue(), "testEditValue");108 });109110 test("set default field options with setDefaults", function() {111 jsGrid.setDefaults("text", {112 defaultOption: "test"113 });114115 var $element = $("#jsGrid").jsGrid({116 fields: [{ type: "text" }]117 });118119 equal($element.jsGrid("option", "fields")[0].defaultOption, "test", "default field option set");120 });121122123 module("jsGrid.field.number");124125 test("basic", function() {126 var field = new jsGrid.NumberField({ name: "testField" });127128 equal(field.itemTemplate(5), "5");129 equal(field.filterTemplate()[0].tagName.toLowerCase(), "input");130 equal(field.insertTemplate()[0].tagName.toLowerCase(), "input");131 equal(field.editTemplate(6)[0].tagName.toLowerCase(), "input");132 strictEqual(field.filterValue(), undefined);133 strictEqual(field.insertValue(), undefined);134 strictEqual(field.editValue(), 6);135 });136137138 module("jsGrid.field.textArea");139140 test("basic", function() {141 var field = new jsGrid.TextAreaField({ name: "testField" });142143 equal(field.itemTemplate("testValue"), "testValue");144 equal(field.filterTemplate()[0].tagName.toLowerCase(), "input");145 equal(field.insertTemplate()[0].tagName.toLowerCase(), "textarea");146 equal(field.editTemplate("testEditValue")[0].tagName.toLowerCase(), "textarea");147 strictEqual(field.insertValue(), "");148 strictEqual(field.editValue(), "testEditValue");149 });150151152 module("jsGrid.field.checkbox");153154 test("basic", function() {155 var field = new jsGrid.CheckboxField({ name: "testField" }),156 itemTemplate,157 filterTemplate,158 insertTemplate,159 editTemplate;160161 itemTemplate = field.itemTemplate("testValue");162 equal(itemTemplate[0].tagName.toLowerCase(), "input");163 equal(itemTemplate.attr("type"), "checkbox");164 equal(itemTemplate.attr("disabled"), "disabled");165166 filterTemplate = field.filterTemplate();167 equal(filterTemplate[0].tagName.toLowerCase(), "input");168 equal(filterTemplate.attr("type"), "checkbox");169 equal(filterTemplate.prop("indeterminate"), true);170171 insertTemplate = field.insertTemplate();172 equal(insertTemplate[0].tagName.toLowerCase(), "input");173 equal(insertTemplate.attr("type"), "checkbox");174175 editTemplate = field.editTemplate(true);176 equal(editTemplate[0].tagName.toLowerCase(), "input");177 equal(editTemplate.attr("type"), "checkbox");178 equal(editTemplate.is(":checked"), true);179180 strictEqual(field.filterValue(), undefined);181 strictEqual(field.insertValue(), false);182 strictEqual(field.editValue(), true);183 });184185186 module("jsGrid.field.select");187188 test("basic", function() {189 var field,190 filterTemplate,191 insertTemplate,192 editTemplate;193194 field = new jsGrid.SelectField({195 name: "testField",196 items: ["test1", "test2", "test3"],197 selectedIndex: 1198 });199200 equal(field.itemTemplate(1), "test2");201202 filterTemplate = field.filterTemplate();203 equal(filterTemplate[0].tagName.toLowerCase(), "select");204 equal(filterTemplate.children().length, 3);205206 insertTemplate = field.insertTemplate();207 equal(insertTemplate[0].tagName.toLowerCase(), "select");208 equal(insertTemplate.children().length, 3);209210 editTemplate = field.editTemplate(2);211 equal(editTemplate[0].tagName.toLowerCase(), "select");212 equal(editTemplate.find("option:selected").length, 1);213 ok(editTemplate.children().eq(2).is(":selected"));214215 strictEqual(field.filterValue(), 1);216 strictEqual(field.insertValue(), 1);217 strictEqual(field.editValue(), 2);218 });219220 test("items as array of integers", function() {221 var field,222 filterTemplate,223 insertTemplate,224 editTemplate;225226 field = new jsGrid.SelectField({227 name: "testField",228 items: [0, 10, 20],229 selectedIndex: 0230 });231232 strictEqual(field.itemTemplate(0), 0);233234 filterTemplate = field.filterTemplate();235 equal(filterTemplate[0].tagName.toLowerCase(), "select");236 equal(filterTemplate.children().length, 3);237238 insertTemplate = field.insertTemplate();239 equal(insertTemplate[0].tagName.toLowerCase(), "select");240 equal(insertTemplate.children().length, 3);241242 editTemplate = field.editTemplate(1);243 equal(editTemplate[0].tagName.toLowerCase(), "select");244 equal(editTemplate.find("option:selected").length, 1);245 ok(editTemplate.children().eq(1).is(":selected"));246247 strictEqual(field.filterValue(), 0);248 strictEqual(field.insertValue(), 0);249 strictEqual(field.editValue(), 1);250 });251252 test("string value type", function() {253 var field = new jsGrid.SelectField({254 name: "testField",255 items: [256 { text: "test1", value: "1" },257 { text: "test2", value: "2" },258 { text: "test3", value: "3" }259 ],260 textField: "text",261 valueField: "value",262 valueType: "string",263 selectedIndex: 1264 });265266 field.filterTemplate();267 strictEqual(field.filterValue(), "2");268269 field.editTemplate("2");270 strictEqual(field.editValue(), "2");271272 field.insertTemplate();273 strictEqual(field.insertValue(), "2");274 });275276 test("value type auto-defined", function() {277 var field = new jsGrid.SelectField({278 name: "testField",279 items: [280 { text: "test1", value: "1" },281 { text: "test2", value: "2" },282 { text: "test3", value: "3" }283 ],284 textField: "text",285 valueField: "value",286 selectedIndex: 1287 });288289 strictEqual(field.sorter, "string", "sorter set according to value type");290291 field.filterTemplate();292 strictEqual(field.filterValue(), "2");293294 field.editTemplate("2");295 strictEqual(field.editValue(), "2");296297 field.insertTemplate();298 strictEqual(field.insertValue(), "2");299 });300301 test("value type defaulted to string", function() {302 var field = new jsGrid.SelectField({303 name: "testField",304 items: [305 { text: "test1" },306 { text: "test2", value: "2" }307 ],308 textField: "text",309 valueField: "value"310 });311312 strictEqual(field.sorter, "string", "sorter set to string if first item has no value field");313 });314315 test("object items", function() {316 var field = new jsGrid.SelectField({317 name: "testField",318 items: [319 { text: "test1", value: 1 },320 { text: "test2", value: 2 },321 { text: "test3", value: 3 }322 ]323 });324325 strictEqual(field.itemTemplate(1), field.items[1]);326327 field.textField = "text";328 strictEqual(field.itemTemplate(1), "test2");329330 field.textField = "";331 field.valueField = "value";332 strictEqual(field.itemTemplate(1), field.items[0]);333 ok(field.editTemplate(2));334 strictEqual(field.editValue(), 2);335336 field.textField = "text";337 strictEqual(field.itemTemplate(1), "test1");338 });339340341 module("jsGrid.field.control");342343 test("basic", function() {344 var field,345 itemTemplate,346 headerTemplate,347 filterTemplate,348 insertTemplate,349 editTemplate;350351 field = new jsGrid.ControlField();352 field._grid = {353 filtering: true,354 inserting: true,355 option: $.noop356 };357358 itemTemplate = field.itemTemplate("any_value");359 equal(itemTemplate.filter("." + field.editButtonClass).length, 1);360 equal(itemTemplate.filter("." + field.deleteButtonClass).length, 1);361362 headerTemplate = field.headerTemplate();363 equal(headerTemplate.filter("." + field.insertModeButtonClass).length, 1);364365 var $modeSwitchButton = headerTemplate.filter("." + field.modeButtonClass);366 $modeSwitchButton.trigger("click");367368 equal(headerTemplate.filter("." + field.searchModeButtonClass).length, 1);369370 filterTemplate = field.filterTemplate();371 equal(filterTemplate.filter("." + field.searchButtonClass).length, 1);372 equal(filterTemplate.filter("." + field.clearFilterButtonClass).length, 1);373374 insertTemplate = field.insertTemplate();375 equal(insertTemplate.filter("." + field.insertButtonClass).length, 1);376377 editTemplate = field.editTemplate("any_value");378 equal(editTemplate.filter("." + field.updateButtonClass).length, 1);379 equal(editTemplate.filter("." + field.cancelEditButtonClass).length, 1);380381 strictEqual(field.filterValue(), "");382 strictEqual(field.insertValue(), "");383 strictEqual(field.editValue(), "");384 });385386 test("switchMode button should consider filtering=false", function() {387 var optionArgs = {};388389 var field = new jsGrid.ControlField();390 field._grid = {391 filtering: false,392 inserting: true,393 option: function(name, value) {394 optionArgs = {395 name: name,396 value: value397 };398 }399 };400401 var headerTemplate = field.headerTemplate();402 equal(headerTemplate.filter("." + field.insertModeButtonClass).length, 1, "inserting switch button rendered");403404 var $modeSwitchButton = headerTemplate.filter("." + field.modeButtonClass);405406 $modeSwitchButton.trigger("click");407 ok($modeSwitchButton.hasClass(field.modeOnButtonClass), "on class is attached");408 equal(headerTemplate.filter("." + field.insertModeButtonClass).length, 1, "insert button rendered");409 equal(headerTemplate.filter("." + field.searchModeButtonClass).length, 0, "search button not rendered");410 deepEqual(optionArgs, { name: "inserting", value: true }, "turn on grid inserting mode");411412 $modeSwitchButton.trigger("click");413 ok(!$modeSwitchButton.hasClass(field.modeOnButtonClass), "on class is detached");414 deepEqual(optionArgs, { name: "inserting", value: false }, "turn off grid inserting mode");415 });416417 test("switchMode button should consider inserting=false", function() {418 var optionArgs = {};419420 var field = new jsGrid.ControlField();421 field._grid = {422 filtering: true,423 inserting: false,424 option: function(name, value) {425 optionArgs = {426 name: name,427 value: value428 };429 }430 };431432 var headerTemplate = field.headerTemplate();433 equal(headerTemplate.filter("." + field.searchModeButtonClass).length, 1, "filtering switch button rendered");434435 var $modeSwitchButton = headerTemplate.filter("." + field.modeButtonClass);436437 $modeSwitchButton.trigger("click");438 ok(!$modeSwitchButton.hasClass(field.modeOnButtonClass), "on class is detached");439 equal(headerTemplate.filter("." + field.searchModeButtonClass).length, 1, "search button rendered");440 equal(headerTemplate.filter("." + field.insertModeButtonClass).length, 0, "insert button not rendered");441 deepEqual(optionArgs, { name: "filtering", value: false }, "turn off grid filtering mode");442443 $modeSwitchButton.trigger("click");444 ok($modeSwitchButton.hasClass(field.modeOnButtonClass), "on class is attached");445 deepEqual(optionArgs, { name: "filtering", value: true }, "turn on grid filtering mode");446 });447448 test("switchMode is not rendered if inserting=false and filtering=false", function() {449 var optionArgs = {};450451 var field = new jsGrid.ControlField();452 field._grid = {453 filtering: false,454 inserting: false455 };456457 var headerTemplate = field.headerTemplate();458 strictEqual(headerTemplate, "", "empty header");459 });460 ...

Full Screen

Full Screen

Automation Testing Tutorials

Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.

LambdaTest Learning Hubs:

YouTube

You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.

Run pandera automation tests on LambdaTest cloud grid

Perform automation testing on 3000+ real desktop and mobile devices online.

Try LambdaTest Now !!

Get 100 minutes of automation test minutes FREE!!

Next-Gen App & Browser Testing Cloud

Was this article helpful?

Helpful

NotHelpful