How to use iconURL method in wpt

Best JavaScript code snippet using wpt

Icons.js

Source:Icons.js Github

copy

Full Screen

1// goverment_miltiary //2var gov_mil1 = L.icon({3 iconUrl: `korvosa/placements/goverment_military/G1.png`,4 iconSize: [25, 25],5 iconAnchor: [10, 12],6 popupAnchor: [3, -15],7});8var gov_mil2 = L.icon({9 iconUrl: `korvosa/placements/goverment_military/G2.png`,10 iconSize: [25, 25],11 iconAnchor: [10, 12],12 popupAnchor: [-3, -76],13});14var gov_mil3 = L.icon({15 iconUrl: `korvosa/placements/goverment_military/G3.png`,16 iconSize: [25, 25],17 iconAnchor: [10, 12],18 popupAnchor: [-3, -76],19});20var gov_mil4 = L.icon({21 iconUrl: `korvosa/placements/goverment_military/G4.png`,22 iconSize: [25, 25],23 iconAnchor: [10, 12],24 popupAnchor: [-3, -76],25});26var gov_mil5 = L.icon({27 iconUrl: `korvosa/placements/goverment_military/G5.png`,28 iconSize: [25, 25],29 iconAnchor: [10, 12],30 popupAnchor: [-3, -76],31});32var gov_mil6 = L.icon({33 iconUrl: `korvosa/placements/goverment_military/G6.png`,34 iconSize: [25, 25],35 iconAnchor: [10, 12],36 popupAnchor: [-3, -76],37});38var gov_mil7 = L.icon({39 iconUrl: `korvosa/placements/goverment_military/G7.png`,40 iconSize: [25, 25],41 iconAnchor: [10, 12],42 popupAnchor: [-3, -76],43});44var gov_mil8 = L.icon({45 iconUrl: `korvosa/placements/goverment_military/G8.png`,46 iconSize: [25, 25],47 iconAnchor: [10, 12],48 popupAnchor: [-3, -76],49});50var gov_mil9 = L.icon({51 iconUrl: `korvosa/placements/goverment_military/G9.png`,52 iconSize: [25, 25],53 iconAnchor: [10, 12],54 popupAnchor: [-3, -76],55});56var gov_mil10 = L.icon({57 iconUrl: `korvosa/placements/goverment_military/G10.png`,58 iconSize: [25, 25],59 iconAnchor: [10, 12],60 popupAnchor: [-3, -76],61});62var gov_mil11 = L.icon({63 iconUrl: `korvosa/placements/goverment_military/G11.png`,64 iconSize: [25, 25],65 iconAnchor: [10, 12],66 popupAnchor: [-3, -76],67});68var gov_mil12 = L.icon({69 iconUrl: `korvosa/placements/goverment_military/G12.png`,70 iconSize: [25, 25],71 iconAnchor: [10, 12],72 popupAnchor: [-3, -76],73});74var gov_mil13 = L.icon({75 iconUrl: `korvosa/placements/goverment_military/G13.png`,76 iconSize: [25, 25],77 iconAnchor: [10, 12],78 popupAnchor: [-3, -76],79});8081// // homes_innss //82var homes_inns1 = L.icon({83 iconUrl: `korvosa/placements/homes_inns/H1.png`,84 iconSize: [25, 25],85 iconAnchor: [10, 12],86 popupAnchor: [-3, -76],87});88var homes_inns2 = L.icon({89 iconUrl: `korvosa/placements/homes_inns/H2.png`,90 iconSize: [25, 25],91 iconAnchor: [10, 12],92 popupAnchor: [-3, -76],93});94var homes_inns3 = L.icon({95 iconUrl: `korvosa/placements/homes_inns/H3.png`,96 iconSize: [25, 25],97 iconAnchor: [10, 12],98 popupAnchor: [-3, -76],99});100var homes_inns4 = L.icon({101 iconUrl: `korvosa/placements/homes_inns/H4.png`,102 iconSize: [25, 25],103 iconAnchor: [10, 12],104 popupAnchor: [-3, -76],105});106var homes_inns5 = L.icon({107 iconUrl: `korvosa/placements/homes_inns/H5.png`,108 iconSize: [25, 25],109 iconAnchor: [10, 12],110 popupAnchor: [-3, -76],111});112var homes_inns6 = L.icon({113 iconUrl: `korvosa/placements/homes_inns/H6.png`,114 iconSize: [25, 25],115 iconAnchor: [10, 12],116 popupAnchor: [-3, -76],117});118var homes_inns7 = L.icon({119 iconUrl: `korvosa/placements/homes_inns/H7.png`,120 iconSize: [25, 25],121 iconAnchor: [10, 12],122 popupAnchor: [-3, -76],123});124var homes_inns8 = L.icon({125 iconUrl: `korvosa/placements/homes_inns/H8.png`,126 iconSize: [25, 25],127 iconAnchor: [10, 12],128 popupAnchor: [-3, -76],129});130var homes_inns9 = L.icon({131 iconUrl: `korvosa/placements/homes_inns/H9.png`,132 iconSize: [25, 25],133 iconAnchor: [10, 12],134 popupAnchor: [-3, -76],135});136var homes_inns10 = L.icon({137 iconUrl: `korvosa/placements/homes_inns/H10.png`,138 iconSize: [25, 25],139 iconAnchor: [10, 12],140 popupAnchor: [-3, -76],141});142var homes_inns11 = L.icon({143 iconUrl: `korvosa/placements/homes_inns/H11.png`,144 iconSize: [25, 25],145 iconAnchor: [10, 12],146 popupAnchor: [-3, -76],147});148var homes_inns12 = L.icon({149 iconUrl: `korvosa/placements/homes_inns/H12.png`,150 iconSize: [25, 25],151 iconAnchor: [10, 12],152 popupAnchor: [-3, -76],153});154var homes_inns13 = L.icon({155 iconUrl: `korvosa/placements/homes_inns/H13.png`,156 iconSize: [25, 25],157 iconAnchor: [10, 12],158 popupAnchor: [-3, -76],159});160var homes_inns14 = L.icon({161 iconUrl: `korvosa/placements/homes_inns/H14.png`,162 iconSize: [25, 25],163 iconAnchor: [10, 12],164 popupAnchor: [-3, -76],165});166var homes_inns15 = L.icon({167 iconUrl: `korvosa/placements/homes_inns/H15.png`,168 iconSize: [25, 25],169 iconAnchor: [10, 12],170 popupAnchor: [-3, -76],171});172var homes_inns16 = L.icon({173 iconUrl: `korvosa/placements/homes_inns/H16.png`,174 iconSize: [25, 25],175 iconAnchor: [10, 12],176 popupAnchor: [-3, -76],177});178var homes_inns17 = L.icon({179 iconUrl: `korvosa/placements/homes_inns/H17.png`,180 iconSize: [25, 25],181 iconAnchor: [10, 12],182 popupAnchor: [-3, -76],183});184var homes_inns18 = L.icon({185 iconUrl: `korvosa/placements/homes_inns/H18.png`,186 iconSize: [25, 25],187 iconAnchor: [10, 12],188 popupAnchor: [-3, -76],189});190var homes_inns19 = L.icon({191 iconUrl: `korvosa/placements/homes_inns/H19.png`,192 iconSize: [25, 25],193 iconAnchor: [10, 12],194 popupAnchor: [-3, -76],195});196// // restaurants_taverns //197var rest_tavern1 = L.icon({198 iconUrl: `korvosa/placements/restaurants_taverns/R1.png`,199 iconSize: [25, 25],200 iconAnchor: [10, 12],201 popupAnchor: [-3, -76],202});203var rest_tavern2 = L.icon({204 iconUrl: `korvosa/placements/restaurants_taverns/R2.png`,205 iconSize: [25, 25],206 iconAnchor: [10, 12],207 popupAnchor: [-3, -76],208});209var rest_tavern3 = L.icon({210 iconUrl: `korvosa/placements/restaurants_taverns/R3.png`,211 iconSize: [25, 25],212 iconAnchor: [10, 12],213 popupAnchor: [-3, -76],214});215var rest_tavern4 = L.icon({216 iconUrl: `korvosa/placements/restaurants_taverns/R4.png`,217 iconSize: [25, 25],218 iconAnchor: [10, 12],219 popupAnchor: [-3, -76],220});221var rest_tavern5 = L.icon({222 iconUrl: `korvosa/placements/restaurants_taverns/R5.png`,223 iconSize: [25, 25],224 iconAnchor: [10, 12],225 popupAnchor: [-3, -76],226});227var rest_tavern6 = L.icon({228 iconUrl: `korvosa/placements/restaurants_taverns/R6.png`,229 iconSize: [25, 25],230 iconAnchor: [10, 12],231 popupAnchor: [-3, -76],232});233var rest_tavern7 = L.icon({234 iconUrl: `korvosa/placements/restaurants_taverns/R7.png`,235 iconSize: [25, 25],236 iconAnchor: [10, 12],237 popupAnchor: [-3, -76],238});239var rest_tavern8 = L.icon({240 iconUrl: `korvosa/placements/restaurants_taverns/R8.png`,241 iconSize: [25, 25],242 iconAnchor: [10, 12],243 popupAnchor: [-3, -76],244});245var rest_tavern9 = L.icon({246 iconUrl: `korvosa/placements/restaurants_taverns/R9.png`,247 iconSize: [25, 25],248 iconAnchor: [10, 12],249 popupAnchor: [-3, -76],250});251var rest_tavern10 = L.icon({252 iconUrl: `korvosa/placements/restaurants_taverns/R10.png`,253 iconSize: [25, 25],254 iconAnchor: [10, 12],255 popupAnchor: [-3, -76],256});257// // shops_services //258var shop_service1 = L.icon({259 iconUrl: `korvosa/placements/shops_services/S1.png`,260 iconSize: [25, 25],261 iconAnchor: [10, 12],262 popupAnchor: [-3, -76],263});264var shop_service2 = L.icon({265 iconUrl: `korvosa/placements/shops_services/S2.png`,266 iconSize: [25, 25],267 iconAnchor: [10, 12],268 popupAnchor: [-3, -76],269});270var shop_service3 = L.icon({271 iconUrl: `korvosa/placements/shops_services/S3.png`,272 iconSize: [25, 25],273 iconAnchor: [10, 12],274 popupAnchor: [-3, -76],275});276var shop_service4 = L.icon({277 iconUrl: `korvosa/placements/shops_services/S4.png`,278 iconSize: [25, 25],279 iconAnchor: [10, 12],280 popupAnchor: [-3, -76],281});282var shop_service5 = L.icon({283 iconUrl: `korvosa/placements/shops_services/S5.png`,284 iconSize: [25, 25],285 iconAnchor: [10, 12],286 popupAnchor: [-3, -76],287});288var shop_service6 = L.icon({289 iconUrl: `korvosa/placements/shops_services/S6.png`,290 iconSize: [25, 25],291 iconAnchor: [10, 12],292 popupAnchor: [-3, -76],293});294var shop_service7 = L.icon({295 iconUrl: `korvosa/placements/shops_services/S7.png`,296 iconSize: [25, 25],297 iconAnchor: [10, 12],298 popupAnchor: [-3, -76],299});300var shop_service8 = L.icon({301 iconUrl: `korvosa/placements/shops_services/S8.png`,302 iconSize: [25, 25],303 iconAnchor: [10, 12],304 popupAnchor: [-3, -76],305});306var shop_service9 = L.icon({307 iconUrl: `korvosa/placements/shops_services/S9.png`,308 iconSize: [25, 25],309 iconAnchor: [10, 12],310 popupAnchor: [-3, -76],311});312var shop_service10 = L.icon({313 iconUrl: `korvosa/placements/shops_services/S10.png`,314 iconSize: [25, 25],315 iconAnchor: [10, 12],316 popupAnchor: [-3, -76],317});318var shop_service11 = L.icon({319 iconUrl: `korvosa/placements/shops_services/S11.png`,320 iconSize: [25, 25],321 iconAnchor: [10, 12],322 popupAnchor: [-3, -76],323});324var shop_service12 = L.icon({325 iconUrl: `korvosa/placements/shops_services/S12.png`,326 iconSize: [25, 25],327 iconAnchor: [10, 12],328 popupAnchor: [-3, -76],329});330var shop_service13 = L.icon({331 iconUrl: `korvosa/placements/shops_services/S13.png`,332 iconSize: [25, 25],333 iconAnchor: [10, 12],334 popupAnchor: [-3, -76],335});336var shop_service14 = L.icon({337 iconUrl: `korvosa/placements/shops_services/S14.png`,338 iconSize: [25, 25],339 iconAnchor: [10, 12],340 popupAnchor: [-3, -76],341});342var shop_service15 = L.icon({343 iconUrl: `korvosa/placements/shops_services/S15.png`,344 iconSize: [25, 25],345 iconAnchor: [10, 12],346 popupAnchor: [-3, -76],347});348var shop_service16 = L.icon({349 iconUrl: `korvosa/placements/shops_services/S16.png`,350 iconSize: [25, 25],351 iconAnchor: [10, 12],352 popupAnchor: [-3, -76],353});354var shop_service17 = L.icon({355 iconUrl: `korvosa/placements/shops_services/S17.png`,356 iconSize: [25, 25],357 iconAnchor: [10, 12],358 popupAnchor: [-3, -76],359});360var shop_service18 = L.icon({361 iconUrl: `korvosa/placements/shops_services/S18.png`,362 iconSize: [25, 25],363 iconAnchor: [10, 12],364 popupAnchor: [-3, -76],365});366// // important landmarks //367var site1 = L.icon({368 iconUrl: `korvosa/placements/sites/V1.png`,369 iconSize: [25, 25],370 iconAnchor: [10, 12],371 popupAnchor: [-3, -76],372});373var site2 = L.icon({374 iconUrl: `korvosa/placements/sites/V2.png`,375 iconSize: [25, 25],376 iconAnchor: [10, 12],377 popupAnchor: [-3, -76],378});379var site3 = L.icon({380 iconUrl: `korvosa/placements/sites/V3.png`,381 iconSize: [25, 25],382 iconAnchor: [10, 12],383 popupAnchor: [-3, -76],384});385var site4 = L.icon({386 iconUrl: `korvosa/placements/sites/V4.png`,387 iconSize: [25, 25],388 iconAnchor: [10, 12],389 popupAnchor: [-3, -76],390});391var site5 = L.icon({392 iconUrl: `korvosa/placements/sites/V5.png`,393 iconSize: [25, 25],394 iconAnchor: [10, 12],395 popupAnchor: [-3, -76],396});397var site6 = L.icon({398 iconUrl: `korvosa/placements/sites/V6.png`,399 iconSize: [25, 25],400 iconAnchor: [10, 12],401 popupAnchor: [-3, -76],402});403var site7 = L.icon({404 iconUrl: `korvosa/placements/sites/V7.png`,405 iconSize: [25, 25],406 iconAnchor: [10, 12],407 popupAnchor: [-3, -76],408});409var site8 = L.icon({410 iconUrl: `korvosa/placements/sites/V8.png`,411 iconSize: [25, 25],412 iconAnchor: [10, 12],413 popupAnchor: [-3, -76],414});415var site9 = L.icon({416 iconUrl: `korvosa/placements/sites/V9.png`,417 iconSize: [25, 25],418 iconAnchor: [10, 12],419 popupAnchor: [-3, -76],420});421var site10 = L.icon({422 iconUrl: `korvosa/placements/sites/V10.png`,423 iconSize: [25, 25],424 iconAnchor: [10, 12],425 popupAnchor: [-3, -76],426});427var site11 = L.icon({428 iconUrl: `korvosa/placements/sites/V11.png`,429 iconSize: [25, 25],430 iconAnchor: [10, 12],431 popupAnchor: [-3, -76],432});433var site12 = L.icon({434 iconUrl: `korvosa/placements/sites/V12.png`,435 iconSize: [25, 25],436 iconAnchor: [10, 12],437 popupAnchor: [-3, -76],438});439var site13 = L.icon({440 iconUrl: `korvosa/placements/sites/V13.png`,441 iconSize: [25, 25],442 iconAnchor: [10, 12],443 popupAnchor: [-3, -76],444});445// // temples_schools //446var tems1 = L.icon({447 iconUrl: `korvosa/placements/temples_schools/T1.png`,448 iconSize: [25, 25],449 iconAnchor: [10, 12],450 popupAnchor: [-3, -76],451});452var tems2 = L.icon({453 iconUrl: `korvosa/placements/temples_schools/T2.png`,454 iconSize: [25, 25],455 iconAnchor: [10, 12],456 popupAnchor: [-3, -76],457});458var tems3 = L.icon({459 iconUrl: `korvosa/placements/temples_schools/T3.png`,460 iconSize: [25, 25],461 iconAnchor: [10, 12],462 popupAnchor: [-3, -76],463});464var tems4 = L.icon({465 iconUrl: `korvosa/placements/temples_schools/T4.png`,466 iconSize: [25, 25],467 iconAnchor: [10, 12],468 popupAnchor: [-3, -76],469});470var tems5 = L.icon({471 iconUrl: `korvosa/placements/temples_schools/T5.png`,472 iconSize: [25, 25],473 iconAnchor: [10, 12],474 popupAnchor: [-3, -76],475});476var tems6 = L.icon({477 iconUrl: `korvosa/placements/temples_schools/T6.png`,478 iconSize: [25, 25],479 iconAnchor: [10, 12],480 popupAnchor: [-3, -76],481});482var tems7 = L.icon({483 iconUrl: `korvosa/placements/temples_schools/T7.png`,484 iconSize: [25, 25],485 iconAnchor: [10, 12],486 popupAnchor: [-3, -76],487});488var tems8 = L.icon({489 iconUrl: `korvosa/placements/temples_schools/T8.png`,490 iconSize: [25, 25],491 iconAnchor: [10, 12],492 popupAnchor: [-3, -76],493});494var tems9 = L.icon({495 iconUrl: `korvosa/placements/temples_schools/T9.png`,496 iconSize: [25, 25],497 iconAnchor: [10, 12],498 popupAnchor: [-3, -76],499});500var tems10 = L.icon({501 iconUrl: `korvosa/placements/temples_schools/T10.png`,502 iconSize: [25, 25],503 iconAnchor: [10, 12],504 popupAnchor: [-3, -76],505});506var tems11 = L.icon({507 iconUrl: `korvosa/placements/temples_schools/T11.png`,508 iconSize: [25, 25],509 iconAnchor: [10, 12],510 popupAnchor: [-3, -76], ...

Full Screen

Full Screen

data.js

Source:data.js Github

copy

Full Screen

1var Players = [];2for (let index = 0; index < 5; index++) {3 var player = {4 name: '',5 attackopers: [6 {7 id: -18 },9 {10 id: -111 },12 {13 id: -114 },15 {16 id: -117 },18 {19 id: -120 },21 ],22 defenceopers: [23 {24 id: -125 },26 {27 id: -128 },29 {30 id: -131 },32 {33 id: -134 },35 {36 id: -137 },38 ]39 }40 Players.push(player);41}42var Opers = [43 // ШТУРМОТРЯД -------------------------------44 {45 side: "ШТУРМОТРЯД",46 id: 0,47 name: "sledge",48 imgurl: '/images/opers/sledge.webp',49 iconurl: '/images/opers/sledgeicon.webp',50 },51 {52 side: "ШТУРМОТРЯД",53 id: 1,54 name: "thatcher",55 imgurl: '/images/opers/thatcher.webp',56 iconurl: '/images/opers/thatchericon.webp',57 },58 {59 side: "ШТУРМОТРЯД",60 id: 2,61 name: "ash",62 imgurl: '/images/opers/ash.webp',63 iconurl: '/images/opers/ashicon.webp',64 },65 {66 side: "ШТУРМОТРЯД",67 id: 3,68 name: "thermite",69 imgurl: '/images/opers/thermite.webp',70 iconurl: '/images/opers/thermiteicon.webp',71 },72 {73 side: "ШТУРМОТРЯД",74 id: 4,75 name: "twitch",76 imgurl: '/images/opers/twitch.webp',77 iconurl: '/images/opers/twitchicon.webp',78 },79 {80 side: "ШТУРМОТРЯД",81 id: 5,82 name: "montagne",83 imgurl: '/images/opers/montagne.webp',84 iconurl: '/images/opers/montagneicon.webp',85 },86 {87 side: "ШТУРМОТРЯД",88 id: 6,89 name: "glaz",90 imgurl: '/images/opers/glaz.webp',91 iconurl: '/images/opers/glazicon.webp',92 },93 {94 side: "ШТУРМОТРЯД",95 id: 7,96 name: "fuze",97 imgurl: '/images/opers/fuze.webp',98 iconurl: '/images/opers/fuzeicon.webp',99 },100 {101 side: "ШТУРМОТРЯД",102 id: 8,103 name: "blitz",104 imgurl: '/images/opers/blitz.webp',105 iconurl: '/images/opers/blitzicon.webp',106 },107 {108 side: "ШТУРМОТРЯД",109 id: 9,110 name: "iq",111 imgurl: '/images/opers/iq.webp',112 iconurl: '/images/opers/iqicon.webp',113 },114 {115 side: "ШТУРМОТРЯД",116 id: 10,117 name: "buck",118 imgurl: '/images/opers/buck.webp',119 iconurl: '/images/opers/buckicon.webp',120 },121 {122 side: "ШТУРМОТРЯД",123 id: 11,124 name: "blackbeard",125 imgurl: '/images/opers/blackbeard.webp',126 iconurl: '/images/opers/blackbeardicon.webp',127 },128 {129 side: "ШТУРМОТРЯД",130 id: 12,131 name: "capitao",132 imgurl: '/images/opers/capitao.webp',133 iconurl: '/images/opers/capitaoicon.webp',134 },135 {136 side: "ШТУРМОТРЯД",137 id: 13,138 name: "hibana",139 imgurl: '/images/opers/hibana.webp',140 iconurl: '/images/opers/hibanaicon.webp',141 },142 {143 side: "ШТУРМОТРЯД",144 id: 14,145 name: "jackal",146 imgurl: '/images/opers/jackal.webp',147 iconurl: '/images/opers/jackalicon.webp',148 },149 {150 side: "ШТУРМОТРЯД",151 id: 15,152 name: "ying",153 imgurl: '/images/opers/ying.webp',154 iconurl: '/images/opers/yingicon.webp',155 },156 {157 side: "ШТУРМОТРЯД",158 id: 16,159 name: "zofia",160 imgurl: '/images/opers/zofia.webp',161 iconurl: '/images/opers/zofiaicon.webp',162 },163 {164 side: "ШТУРМОТРЯД",165 id: 17,166 name: "dokkaebi",167 imgurl: '/images/opers/dokkaebi.webp',168 iconurl: '/images/opers/dokkaebiicon.webp',169 },170 {171 side: "ШТУРМОТРЯД",172 id: 18,173 name: "lion",174 imgurl: '/images/opers/lion.webp',175 iconurl: '/images/opers/lionicon.webp',176 },177 {178 side: "ШТУРМОТРЯД",179 id: 19,180 name: "finka",181 imgurl: '/images/opers/finka.webp',182 iconurl: '/images/opers/finkaicon.webp',183 },184 {185 side: "ШТУРМОТРЯД",186 id: 20,187 name: "maverick",188 imgurl: '/images/opers/maverick.webp',189 iconurl: '/images/opers/maverickicon.webp',190 },191 {192 side: "ШТУРМОТРЯД",193 id: 21,194 name: "nomad",195 imgurl: '/images/opers/nomad.webp',196 iconurl: '/images/opers/nomadicon.webp',197 },198 {199 side: "ШТУРМОТРЯД",200 id: 22,201 name: "gridlock",202 imgurl: '/images/opers/gridlock.webp',203 iconurl: '/images/opers/gridlockicon.webp',204 },205 {206 side: "ШТУРМОТРЯД",207 id: 23,208 name: "nokk",209 imgurl: '/images/opers/nokk.webp',210 iconurl: '/images/opers/nokkicon.webp',211 },212 {213 side: "ШТУРМОТРЯД",214 id: 24,215 name: "amaru",216 imgurl: '/images/opers/amaru.webp',217 iconurl: '/images/opers/amaruicon.webp',218 },219 {220 side: "ШТУРМОТРЯД",221 id: 25,222 name: "kali",223 imgurl: '/images/opers/kali.webp',224 iconurl: '/images/opers/kaliicon.webp',225 },226 {227 side: "ШТУРМОТРЯД",228 id: 26,229 name: "iana",230 imgurl: '/images/opers/iana.webp',231 iconurl: '/images/opers/ianaicon.webp',232 },233 // ЗАЩИТНИКИ -------------------------------234 {235 side: "ЗАЩИТНИКИ",236 id: 50,237 name: "smoke",238 imgurl: '/images/opers/smoke.webp',239 iconurl: '/images/opers/smokeicon.webp',240 },241 {242 side: "ЗАЩИТНИКИ",243 id: 51,244 name: "mute",245 imgurl: '/images/opers/mute.webp',246 iconurl: '/images/opers/muteicon.webp',247 },248 {249 side: "ЗАЩИТНИКИ",250 id: 52,251 name: "castle",252 imgurl: '/images/opers/castle.webp',253 iconurl: '/images/opers/castleicon.webp',254 },255 {256 side: "ЗАЩИТНИКИ",257 id: 53,258 name: "pulse",259 imgurl: '/images/opers/pulse.webp',260 iconurl: '/images/opers/pulseicon.webp',261 },262 {263 side: "ЗАЩИТНИКИ",264 id: 54,265 name: "doc",266 imgurl: '/images/opers/doc.webp',267 iconurl: '/images/opers/docicon.webp',268 },269 {270 side: "ЗАЩИТНИКИ",271 id: 55,272 name: "rook",273 imgurl: '/images/opers/rook.webp',274 iconurl: '/images/opers/rookicon.webp',275 },276 {277 side: "ЗАЩИТНИКИ",278 id: 56,279 name: "kapkan",280 imgurl: '/images/opers/kapkan.webp',281 iconurl: '/images/opers/kapkanicon.webp',282 },283 {284 side: "ЗАЩИТНИКИ",285 id: 57,286 name: "tachanka",287 imgurl: '/images/opers/tachanka.webp',288 iconurl: '/images/opers/tachankaicon.webp',289 },290 {291 side: "ЗАЩИТНИКИ",292 id: 58,293 name: "jager",294 imgurl: '/images/opers/jager.webp',295 iconurl: '/images/opers/jagericon.webp',296 },297 {298 side: "ЗАЩИТНИКИ",299 id: 59,300 name: "bandit",301 imgurl: '/images/opers/bandit.webp',302 iconurl: '/images/opers/banditicon.webp',303 },304 {305 side: "ЗАЩИТНИКИ",306 id: 60,307 name: "frost",308 imgurl: '/images/opers/frost.webp',309 iconurl: '/images/opers/frosticon.webp',310 },311 {312 side: "ЗАЩИТНИКИ",313 id: 61,314 name: "valkyrie",315 imgurl: '/images/opers/valkyrie.webp',316 iconurl: '/images/opers/valkyrieicon.webp',317 },318 {319 side: "ЗАЩИТНИКИ",320 id: 62,321 name: "caveira",322 imgurl: '/images/opers/caveira.webp',323 iconurl: '/images/opers/caveiraicon.webp',324 },325 {326 side: "ЗАЩИТНИКИ",327 id: 63,328 name: "echo",329 imgurl: '/images/opers/echo.webp',330 iconurl: '/images/opers/echoicon.webp',331 },332 {333 side: "ЗАЩИТНИКИ",334 id: 64,335 name: "mira",336 imgurl: '/images/opers/mira.webp',337 iconurl: '/images/opers/miraicon.webp',338 },339 {340 side: "ЗАЩИТНИКИ",341 id: 65,342 name: "lesion",343 imgurl: '/images/opers/lesion.webp',344 iconurl: '/images/opers/lesionicon.webp',345 },346 {347 side: "ЗАЩИТНИКИ",348 id: 67,349 name: "ela",350 imgurl: '/images/opers/ela.webp',351 iconurl: '/images/opers/elaicon.webp',352 },353 {354 side: "ЗАЩИТНИКИ",355 id: 68,356 name: "vigil",357 imgurl: '/images/opers/vigil.webp',358 iconurl: '/images/opers/vigilicon.webp',359 },360 {361 side: "ЗАЩИТНИКИ",362 id: 69,363 name: "maestro",364 imgurl: '/images/opers/maestro.webp',365 iconurl: '/images/opers/maestroicon.webp',366 },367 {368 side: "ЗАЩИТНИКИ",369 id: 70,370 name: "alibi",371 imgurl: '/images/opers/alibi.webp',372 iconurl: '/images/opers/alibiicon.webp',373 },374 {375 side: "ЗАЩИТНИКИ",376 id: 71,377 name: "clash",378 imgurl: '/images/opers/clash.webp',379 iconurl: '/images/opers/clashicon.webp',380 },381 {382 side: "ЗАЩИТНИКИ",383 id: 72,384 name: "kaid",385 imgurl: '/images/opers/kaid.webp',386 iconurl: '/images/opers/kaidicon.webp',387 },388 {389 side: "ЗАЩИТНИКИ",390 id: 73,391 name: "mozzie",392 imgurl: '/images/opers/mozzie.webp',393 iconurl: '/images/opers/mozzieicon.png',394 },395 {396 side: "ЗАЩИТНИКИ",397 id: 74,398 name: "warden",399 imgurl: '/images/opers/warden.webp',400 iconurl: '/images/opers/wardenicon.webp',401 },402 {403 side: "ЗАЩИТНИКИ",404 id: 75,405 name: "goyo",406 imgurl: '/images/opers/goyo.webp',407 iconurl: '/images/opers/goyoicon.webp',408 },409 {410 side: "ЗАЩИТНИКИ",411 id: 76,412 name: "wamai",413 imgurl: '/images/opers/wamai.webp',414 iconurl: '/images/opers/wamaiicon.webp',415 },416 {417 side: "ЗАЩИТНИКИ",418 id: 77,419 name: "wamai",420 imgurl: '/images/opers/oryx.webp',421 iconurl: '/images/opers/oryxicon.webp',422 },423];424module.exports.Opers = Opers;...

Full Screen

Full Screen

ProviderViewModelSpec.js

Source:ProviderViewModelSpec.js Github

copy

Full Screen

1import { knockout } from "../../../Source/Cesium.js";2import { ProviderViewModel } from "../../../Source/Cesium.js";3import { createCommand } from "../../../Source/Cesium.js";4describe("Widgets/BaseLayerPicker/ProviderViewModel", function () {5 let spyCreationFunction;6 beforeEach(function () {7 spyCreationFunction = jasmine.createSpy("creationFunction");8 });9 describe("with observables", function () {10 it("constructor sets expected parameters", function () {11 const options = {12 name: knockout.observable("name"),13 tooltip: knockout.observable("tooltip"),14 iconUrl: knockout.observable("iconUrl"),15 category: "mycategory",16 creationFunction: createCommand(spyCreationFunction),17 };18 const viewModel = new ProviderViewModel(options);19 expect(viewModel.name).toBe(options.name());20 expect(viewModel.tooltip).toBe(options.tooltip());21 expect(viewModel.iconUrl).toBe(options.iconUrl());22 expect(viewModel.category).toBe(options.category);23 expect(viewModel.creationCommand).toBeDefined();24 viewModel.creationCommand();25 expect(spyCreationFunction).toHaveBeenCalled();26 });27 it("constructor throws with no name", function () {28 const options = {29 tooltip: knockout.observable("tooltip"),30 iconUrl: knockout.observable("iconUrl"),31 creationFunction: createCommand(spyCreationFunction),32 };33 expect(function () {34 return new ProviderViewModel(options);35 }).toThrowDeveloperError();36 });37 it("constructor throws with no tooltip", function () {38 const options = {39 name: knockout.observable("name"),40 iconUrl: knockout.observable("iconUrl"),41 creationFunction: createCommand(spyCreationFunction),42 };43 expect(function () {44 return new ProviderViewModel(options);45 }).toThrowDeveloperError();46 });47 it("constructor throws with no iconUrl", function () {48 const options = {49 name: knockout.observable("name"),50 tooltip: knockout.observable("tooltip"),51 creationFunction: createCommand(spyCreationFunction),52 };53 expect(function () {54 return new ProviderViewModel(options);55 }).toThrowDeveloperError();56 });57 it("constructor throws with no creationFunction", function () {58 const options = {59 name: knockout.observable("name"),60 tooltip: knockout.observable("tooltip"),61 iconUrl: knockout.observable("iconUrl"),62 };63 expect(function () {64 return new ProviderViewModel(options);65 }).toThrowDeveloperError();66 });67 });68 describe("with values", function () {69 it("constructor sets expected parameters", function () {70 const options = {71 name: "name",72 tooltip: "tooltip",73 iconUrl: "iconUrl",74 creationFunction: spyCreationFunction,75 };76 const viewModel = new ProviderViewModel(options);77 expect(viewModel.name).toEqual(options.name);78 expect(viewModel.tooltip).toEqual(options.tooltip);79 expect(viewModel.iconUrl).toEqual(options.iconUrl);80 expect(viewModel.creationCommand).toBeDefined();81 viewModel.creationCommand();82 expect(spyCreationFunction).toHaveBeenCalled();83 });84 it("constructor throws with no name", function () {85 const options = {86 tooltip: "tooltip",87 iconUrl: "iconUrl",88 creationFunction: spyCreationFunction,89 };90 expect(function () {91 return new ProviderViewModel(options);92 }).toThrowDeveloperError();93 });94 it("constructor throws with no tooltip", function () {95 const options = {96 name: "name",97 iconUrl: "iconUrl",98 creationFunction: spyCreationFunction,99 };100 expect(function () {101 return new ProviderViewModel(options);102 }).toThrowDeveloperError();103 });104 it("constructor throws with no iconUrl", function () {105 const options = {106 name: "name",107 tooltip: "tooltip",108 creationFunction: spyCreationFunction,109 };110 expect(function () {111 return new ProviderViewModel(options);112 }).toThrowDeveloperError();113 });114 it("constructor throws with no creationFunction", function () {115 const options = {116 name: "name",117 tooltip: "tooltip",118 iconUrl: "iconUrl",119 };120 expect(function () {121 return new ProviderViewModel(options);122 }).toThrowDeveloperError();123 });124 });...

Full Screen

Full Screen

Using AI Code Generation

copy

Full Screen

1var wpt = require('webpagetest');2var test = new WebPageTest('www.webpagetest.org');3 if (err) return console.error(err);4 console.log('Test submitted. View your test at:');5 console.log('Polling for results...');6 test.waitForTestCompletion(data.data.testId, function(err, data) {7 if (err) return console.error(err);8 console.log('First View');9 console.log('Speed Index: ' + data.data.average.firstView.SpeedIndex);10 console.log('Load Time: ' + data.data.average.firstView.loadTime);11 console.log('Fully Loaded: ' + data.data.average.firstView.fullyLoaded);12 console.log('Requests: ' + data.data.average.firstView.requests);13 console.log('Bytes In: ' + data.data.average.firstView.bytesIn);14 console.log('Bytes Out: ' + data.data.average.firstView.bytesOut);15 console.log('Connections: ' + data.data.average.firstView.connections);16 console.log('Result: ' + data.data.average.firstView.result);17 console.log('Cached: ' + data.data.average.firstView.cached);18 console.log('Repeat View');19 console.log('Speed Index: ' + data.data.average.repeatView.SpeedIndex);20 console.log('Load Time: ' + data.data.average.repeatView.loadTime);21 console.log('Fully Loaded: ' + data.data.average.repeatView.fullyLoaded);22 console.log('Requests: ' + data.data.average.repeatView.requests);23 console.log('Bytes In: ' + data.data.average.repeatView.bytesIn);24 console.log('Bytes Out: ' + data.data.average.repeatView.bytesOut);25 console.log('Connections: ' + data.data.average.repeatView.connections);26 console.log('Result: ' + data.data.average.repeatView.result);27 console.log('Cached: ' + data.data.average.repeatView.cached);28 });29});30var wpt = require('webpagetest');31var test = new WebPageTest('www.webpagetest.org');32 if (err) return console.error(err);33 console.log('Test submitted. View your

Full Screen

Using AI Code Generation

copy

Full Screen

1var iconURL = wptoolbar.iconURL("test.png");2var icon = wptoolbar.icon("test.png");3var iconData = wptoolbar.iconData("test.png");4var iconDataURI = wptoolbar.iconDataURI("test.png");5var iconURL = wptoolbar.iconURL("test.png");6var icon = wptoolbar.icon("test.png");7var iconData = wptoolbar.iconData("test.png");8var iconDataURI = wptoolbar.iconDataURI("test.png");9var iconURL = wptoolbar.iconURL("test.png");10var icon = wptoolbar.icon("test.png");11var iconData = wptoolbar.iconData("test.png");12var iconDataURI = wptoolbar.iconDataURI("test.png");13var iconURL = wptoolbar.iconURL("test.png");14var icon = wptoolbar.icon("test.png");15var iconData = wptoolbar.iconData("test.png");16var iconDataURI = wptoolbar.iconDataURI("test.png");

Full Screen

Using AI Code Generation

copy

Full Screen

1var wpcontent = {2 init: function() {3 var button = document.getElementById("wpcontent-toolbar-button");4 button.setAttribute("disabled", "false");5 button.setAttribute("image", iconURL);6 button.addEventListener("click", function(event) { wpcontent.toggle(event); }, false);7 button.addEventListener("mouseover", function(event) { wpcontent.mouseover(event); }, false);8 button.addEventListener("mouseout", function(event) { wpcontent.mouseout(event); }, false);9 },10 toggle: function(event) {11 var sidebar = document.getElementById("wpcontent-sidebar");12 if (sidebar.hidden) {13 sidebar.hidden = false;

Full Screen

Using AI Code Generation

copy

Full Screen

1var wptoolkit = require('wptoolkit');2console.log(iconURL);3var wptoolkit = require('wptoolkit');4console.log(iconURL);5var wptoolkit = require('wptoolkit');6console.log(iconURL);7var wptoolkit = require('wptoolkit');8console.log(iconURL);9var wptoolkit = require('wptoolkit');10console.log(iconURL);11var wptoolkit = require('wptoolkit');

Full Screen

Using AI Code Generation

copy

Full Screen

1var wptools = require('wptools');2var wiki = wptools('Mumbai');3wiki.get(function(err, page) {4 console.log(page.iconURL());5});6var wptools = require('wptools');7var wiki = wptools('Mumbai');8wiki.get(function(err, page) {9 console.log(page.imageURL());10});11var wptools = require('wptools');12var wiki = wptools('Mumbai');13wiki.get(function(err, page) {14 console.log(page.infobox());15});16var wptools = require('wptools');17var wiki = wptools('Mumbai');18wiki.get(function(err, page) {19 console.log(page.categories());20});21var wptools = require('wptools');22var wiki = wptools('Mumbai');23wiki.get(function(err, page) {24 console.log(page.extlinks());25});26var wptools = require('wptools');27var wiki = wptools('Mumbai');28wiki.get(function(err, page) {29 console.log(page.references());30});31var wptools = require('wptools');32var wiki = wptools('Mumbai');33wiki.get(function(err, page) {34 console.log(page.coordinates());35});

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 wpt 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