Best JavaScript code snippet using wpt
icon.js
Source:icon.js
1import React, { Component } from "react";2import {3 Container,4 Header,5 Title,6 Content,7 Button,8 Icon,9 Text,10 Left,11 Body,12 Right,13 Grid,14 Col,15 Row16} from "native-base";17import styles from "./styles";18class Icons extends Component {19 render() {20 return (21 <Container style={styles.container}>22 <Header>23 <Left>24 <Button transparent onPress={() => this.props.navigation.goBack()}>25 <Icon name="arrow-back" />26 </Button>27 </Left>28 <Body>29 <Title>Icons</Title>30 </Body>31 <Right />32 </Header>33 <Content padder>34 <Grid>35 <Row style={styles.row}>36 <Col style={styles.col}>37 <Icon name="logo-apple" style={{ color: "#999" }} />38 <Text numberOfLines={1} style={styles.iconText}>39 logo-apple40 </Text>41 </Col>42 <Col style={styles.col}>43 <Icon name="pizza" style={{ color: "#ffc125" }} />44 <Text numberOfLines={1} style={styles.iconText}>45 pizza46 </Text>47 </Col>48 <Col style={styles.col}>49 <Icon active name="person" style={{ color: "#387ef5" }} />50 <Text numberOfLines={1} style={styles.iconText}>51 person52 </Text>53 </Col>54 <Col style={styles.col}>55 <Icon name="beer" style={{ color: "#000" }} />56 <Text numberOfLines={1} style={styles.iconText}>57 beer58 </Text>59 </Col>60 <Col style={styles.col}>61 <Icon name="bicycle" style={{ color: "#663399" }} />62 <Text numberOfLines={1} style={styles.iconText}>63 bicycle64 </Text>65 </Col>66 </Row>67 <Row style={styles.row}>68 <Col style={styles.col}>69 <Icon name="navigate" style={{ color: "#32db64" }} />70 <Text numberOfLines={1} style={styles.iconText}>71 navigate72 </Text>73 </Col>74 <Col style={styles.col}>75 <Icon active name="cloud-circle" style={{ color: "#27a" }} />76 <Text numberOfLines={1} style={styles.iconText}>77 cloud-circle78 </Text>79 </Col>80 <Col style={styles.col}>81 <Icon name="pie" style={{ color: "#fac125" }} />82 <Text numberOfLines={1} style={styles.iconText}>83 pie84 </Text>85 </Col>86 <Col style={styles.col}>87 <Icon name="bookmarks" style={{ color: "blue" }} />88 <Text numberOfLines={1} style={styles.iconText}>89 bookmarks90 </Text>91 </Col>92 <Col style={styles.col}>93 <Icon name="pulse" style={{ color: "green" }} />94 <Text numberOfLines={1} style={styles.iconText}>95 pulse96 </Text>97 </Col>98 </Row>99 <Row style={styles.row}>100 <Col style={styles.col}>101 <Icon active name="camera" style={{ color: "#aaa" }} />102 <Text numberOfLines={1} style={styles.iconText}>103 camera104 </Text>105 </Col>106 <Col style={styles.col}>107 <Icon name="mic-off" style={{ color: "#000" }} />108 <Text numberOfLines={1} style={styles.iconText}>109 mic-off110 </Text>111 </Col>112 <Col style={styles.col}>113 <Icon name="film" style={{ color: "brown" }} />114 <Text numberOfLines={1} style={styles.iconText}>115 film116 </Text>117 </Col>118 <Col style={styles.col}>119 <Icon active name="flame" style={{ color: "orange" }} />120 <Text numberOfLines={1} style={styles.iconText}>121 flame122 </Text>123 </Col>124 <Col style={styles.col}>125 <Icon active name="paper" style={{ color: "#000" }} />126 <Text numberOfLines={1} style={styles.iconText}>127 paper128 </Text>129 </Col>130 </Row>131 <Row style={styles.row}>132 <Col style={styles.col}>133 <Icon name="paper-plane" style={{ color: "#387ef5" }} />134 <Text numberOfLines={1} style={styles.iconText}>135 paper-plane136 </Text>137 </Col>138 <Col style={styles.col}>139 <Icon active name="cart" style={{ color: "red" }} />140 <Text numberOfLines={1} style={styles.iconText}>141 cart142 </Text>143 </Col>144 <Col style={styles.col}>145 <Icon name="flask" style={{ color: "blue" }} />146 <Text numberOfLines={1} style={styles.iconText}>147 flask148 </Text>149 </Col>150 <Col style={styles.col}>151 <Icon active name="paw" style={{ color: "#000" }} />152 <Text numberOfLines={1} style={styles.iconText}>153 paw154 </Text>155 </Col>156 <Col style={styles.col}>157 <Icon active name="rose" style={{ color: "pink" }} />158 <Text numberOfLines={1} style={styles.iconText}>159 rose160 </Text>161 </Col>162 </Row>163 <Row style={styles.row}>164 <Col style={styles.col}>165 <Icon name="pint" style={{ color: "#000" }} />166 <Text numberOfLines={1} style={styles.iconText}>167 pint168 </Text>169 </Col>170 <Col style={styles.col}>171 <Icon name="shuffle" style={{ color: "green" }} />172 <Text numberOfLines={1} style={styles.iconText}>173 shuffle174 </Text>175 </Col>176 <Col style={styles.col}>177 <Icon name="keypad" style={{ color: "#387ef5" }} />178 <Text numberOfLines={1} style={styles.iconText}>179 keypad180 </Text>181 </Col>182 <Col style={styles.col}>183 <Icon active name="eye" style={{ color: "#000" }} />184 <Text numberOfLines={1} style={styles.iconText}>185 eye186 </Text>187 </Col>188 <Col style={styles.col}>189 <Icon name="glasses" style={{ color: "#aaa" }} />190 <Text numberOfLines={1} style={styles.iconText}>191 glasses192 </Text>193 </Col>194 </Row>195 <Row style={styles.row}>196 <Col style={styles.col}>197 <Icon name="microphone" style={{ color: "#000" }} />198 <Text numberOfLines={1} style={styles.iconText}>199 microphone200 </Text>201 </Col>202 <Col style={styles.col}>203 <Icon name="color-filter" style={{ color: "purple" }} />204 <Text numberOfLines={1} style={styles.iconText}>205 color-filter206 </Text>207 </Col>208 <Col style={styles.col}>209 <Icon name="alarm" style={{ color: "green" }} />210 <Text numberOfLines={1} style={styles.iconText}>211 alarm212 </Text>213 </Col>214 <Col style={styles.col}>215 <Icon active name="medkit" style={{ color: "red" }} />216 <Text numberOfLines={1} style={styles.iconText}>217 medkit218 </Text>219 </Col>220 <Col style={styles.col}>221 <Icon name="mail" style={{ color: "#1DA1F2" }} />222 <Text numberOfLines={1} style={styles.iconText}>223 mail224 </Text>225 </Col>226 </Row>227 <Row style={styles.row}>228 <Col style={styles.col}>229 <Icon name="refresh" style={{ color: "blue" }} />230 <Text numberOfLines={1} style={styles.iconText}>231 refresh232 </Text>233 </Col>234 <Col style={styles.col}>235 <Icon name="star-half" style={{ color: "gold" }} />236 <Text numberOfLines={1} style={styles.iconText}>237 star-half238 </Text>239 </Col>240 <Col style={styles.col}>241 <Icon active name="train" style={{ color: "#E14343" }} />242 <Text numberOfLines={1} style={styles.iconText}>243 train244 </Text>245 </Col>246 <Col style={styles.col}>247 <Icon active name="wine" style={{ color: "brown" }} />248 <Text numberOfLines={1} style={styles.iconText}>249 wine250 </Text>251 </Col>252 <Col style={styles.col}>253 <Icon name="partly-sunny" style={{ color: "#000" }} />254 <Text numberOfLines={1} style={styles.iconText}>255 partly-sunny256 </Text>257 </Col>258 </Row>259 <Row style={styles.row}>260 <Col style={styles.col}>261 <Icon active name="nutrition" style={{ color: "red" }} />262 <Text numberOfLines={1} style={styles.iconText}>263 nutrition264 </Text>265 </Col>266 <Col style={styles.col}>267 <Icon name="grid" style={{ color: "blue" }} />268 <Text numberOfLines={1} style={styles.iconText}>269 grid270 </Text>271 </Col>272 <Col style={styles.col}>273 <Icon active name="settings" style={{ color: "#555" }} />274 <Text numberOfLines={1} style={styles.iconText}>275 settings276 </Text>277 </Col>278 <Col style={styles.col}>279 <Icon name="chatbubbles" style={{ color: "#27a" }} />280 <Text numberOfLines={1} style={styles.iconText}>281 chatbubbles282 </Text>283 </Col>284 <Col style={styles.col}>285 <Icon name="speedometer" style={{ color: "#000" }} />286 <Text numberOfLines={1} style={styles.iconText}>287 speedometer288 </Text>289 </Col>290 </Row>291 <Row style={styles.row}>292 <Col style={styles.col}>293 <Icon active name="chatboxes" style={{ color: "green" }} />294 <Text numberOfLines={1} style={styles.iconText}>295 chatboxes296 </Text>297 </Col>298 <Col style={styles.col}>299 <Icon name="cog" style={{ color: "#000" }} />300 <Text numberOfLines={1} style={styles.iconText}>301 cog302 </Text>303 </Col>304 <Col style={styles.col}>305 <Icon name="baseball" style={{ color: "#000" }} />306 <Text numberOfLines={1} style={styles.iconText}>307 baseball308 </Text>309 </Col>310 <Col style={styles.col}>311 <Icon name="bulb" style={{ color: "gold" }} />312 <Text numberOfLines={1} style={styles.iconText}>313 bulb314 </Text>315 </Col>316 <Col style={styles.col}>317 <Icon name="calculator" style={{ color: "#889" }} />318 <Text numberOfLines={1} style={styles.iconText}>319 calculator320 </Text>321 </Col>322 </Row>323 <Row style={styles.row}>324 <Col style={styles.col}>325 <Icon name="rainy" style={{ color: "blue" }} />326 <Text numberOfLines={1} style={styles.iconText}>327 rainy328 </Text>329 </Col>330 <Col style={styles.col}>331 <Icon name="videocam" style={{ color: "#000" }} />332 <Text numberOfLines={1} style={styles.iconText}>333 videocam334 </Text>335 </Col>336 <Col style={styles.col}>337 <Icon active name="play" style={{ color: "#f53d3d" }} />338 <Text numberOfLines={1} style={styles.iconText}>339 play340 </Text>341 </Col>342 <Col style={styles.col}>343 <Icon name="disc" style={{ color: "#c76" }} />344 <Text numberOfLines={1} style={styles.iconText}>345 disc346 </Text>347 </Col>348 <Col style={styles.col}>349 <Icon name="body" style={{ color: "#000" }} />350 <Text numberOfLines={1} style={styles.iconText}>351 body352 </Text>353 </Col>354 </Row>355 <Row style={styles.row}>356 <Col style={styles.col}>357 <Icon name="lock" style={{ color: "blue" }} />358 <Text numberOfLines={1} style={styles.iconText}>359 lock360 </Text>361 </Col>362 <Col style={styles.col}>363 <Icon active name="key" style={{ color: "gold" }} />364 <Text numberOfLines={1} style={styles.iconText}>365 key366 </Text>367 </Col>368 <Col style={styles.col}>369 <Icon name="flag" style={{ color: "green" }} />370 <Text numberOfLines={1} style={styles.iconText}>371 flag372 </Text>373 </Col>374 <Col style={styles.col}>375 <Icon active name="skip-forward" style={{ color: "#999" }} />376 <Text numberOfLines={1} style={styles.iconText}>377 skip-forward378 </Text>379 </Col>380 <Col style={styles.col}>381 <Icon name="logo-github" style={{ color: "brown" }} />382 <Text numberOfLines={1} style={styles.iconText}>383 logo-github384 </Text>385 </Col>386 </Row>387 <Row style={styles.row}>388 <Col style={styles.col}>389 <Icon name="barcode" style={{ color: "#387ef5" }} />390 <Text numberOfLines={1} style={styles.iconText}>391 barcode392 </Text>393 </Col>394 <Col style={styles.col}>395 <Icon name="logo-tux" style={{ color: "#000" }} />396 <Text numberOfLines={1} style={styles.iconText}>397 logo-tux398 </Text>399 </Col>400 <Col style={styles.col}>401 <Icon name="copy" style={{ color: "#000" }} />402 <Text numberOfLines={1} style={styles.iconText}>403 copy404 </Text>405 </Col>406 <Col style={styles.col}>407 <Icon name="stopwatch" style={{ color: "#1df" }} />408 <Text numberOfLines={1} style={styles.iconText}>409 stopwatch410 </Text>411 </Col>412 <Col style={styles.col}>413 <Icon name="medical" style={{ color: "red" }} />414 <Text numberOfLines={1} style={styles.iconText}>415 medical416 </Text>417 </Col>418 </Row>419 <Row style={styles.row}>420 <Col style={styles.col}>421 <Icon name="archive" style={{ color: "brown" }} />422 <Text numberOfLines={1} style={styles.iconText}>423 archive424 </Text>425 </Col>426 <Col style={styles.col}>427 <Icon active name="bookmark" style={{ color: "green" }} />428 <Text numberOfLines={1} style={styles.iconText}>429 bookmark430 </Text>431 </Col>432 <Col style={styles.col}>433 <Icon name="clipboard" style={{ color: "#000" }} />434 <Text numberOfLines={1} style={styles.iconText}>435 clipboard436 </Text>437 </Col>438 <Col style={styles.col}>439 <Icon active name="happy" style={{ color: "#ffc125" }} />440 <Text numberOfLines={1} style={styles.iconText}>441 happy442 </Text>443 </Col>444 <Col style={styles.col}>445 <Icon name="share" style={{ color: "#387ef5" }} />446 <Text numberOfLines={1} style={styles.iconText}>447 share448 </Text>449 </Col>450 </Row>451 <Row style={styles.row}>452 <Col style={styles.col}>453 <Icon name="bluetooth" style={{ color: "#387ef5" }} />454 <Text numberOfLines={1} style={styles.iconText}>455 bluetooth456 </Text>457 </Col>458 <Col style={styles.col}>459 <Icon name="search" style={{ color: "#777" }} />460 <Text numberOfLines={1} style={styles.iconText}>461 search462 </Text>463 </Col>464 <Col style={styles.col}>465 <Icon name="wifi" style={{ color: "blue" }} />466 <Text numberOfLines={1} style={styles.iconText}>467 wifi468 </Text>469 </Col>470 <Col style={styles.col}>471 <Icon active name="hand" style={{ color: "#EBAB7F" }} />472 <Text numberOfLines={1} style={styles.iconText}>473 hand474 </Text>475 </Col>476 <Col style={styles.col}>477 <Icon name="trash" style={{ color: "#000" }} />478 <Text numberOfLines={1} style={styles.iconText}>479 trash480 </Text>481 </Col>482 </Row>483 <Row style={styles.row}>484 <Col style={styles.col}>485 <Icon name="images" style={{ color: "red" }} />486 <Text numberOfLines={1} style={styles.iconText}>487 images488 </Text>489 </Col>490 <Col style={styles.col}>491 <Icon name="attach" style={{ color: "#000" }} />492 <Text numberOfLines={1} style={styles.iconText}>493 attach494 </Text>495 </Col>496 <Col style={styles.col}>497 <Icon name="logo-facebook" style={{ color: "#46639E" }} />498 <Text numberOfLines={1} style={styles.iconText}>499 logo-facebook500 </Text>501 </Col>502 <Col style={styles.col}>503 <Icon name="logo-googleplus" style={{ color: "#DC4A38" }} />504 <Text numberOfLines={1} style={styles.iconText}>505 logo-googleplus506 </Text>507 </Col>508 <Col style={styles.col}>509 <Icon name="logo-twitter" style={{ color: "#1DA1F2" }} />510 <Text numberOfLines={1} style={styles.iconText}>511 logo-twitter512 </Text>513 </Col>514 </Row>515 <Row style={styles.row}>516 <Col style={styles.col}>517 <Icon name="logo-github" style={{ color: "red" }} />518 <Text numberOfLines={1} style={styles.iconText}>519 logo-github520 </Text>521 </Col>522 <Col style={styles.col}>523 <Icon name="logo-whatsapp" style={{ color: "#000" }} />524 <Text numberOfLines={1} style={styles.iconText}>525 logo-whatsapp526 </Text>527 </Col>528 <Col style={styles.col}>529 <Icon name="logo-wordpress" style={{ color: "#46639E" }} />530 <Text numberOfLines={1} style={styles.iconText}>531 logo-wordpress532 </Text>533 </Col>534 <Col style={styles.col}>535 <Icon name="logo-youtube" style={{ color: "#DC4A38" }} />536 <Text numberOfLines={1} style={styles.iconText}>537 logo-youtube538 </Text>539 </Col>540 </Row>541 </Grid>542 </Content>543 </Container>544 );545 }546}...
xbStyle-nn4.js
Source:xbStyle-nn4.js
1/*2 * xbStyle-nn4.js3 * $Revision: 1395307 $ $Date: 2012-10-07 16:02:53 +0200 (Sun, 07 Oct 2012) $4 */5/* ***** BEGIN LICENSE BLOCK *****6 * Version: MPL 1.1/GPL 2.0/LGPL 2.17 *8 * The contents of this file are subject to the Mozilla Public License Version9 * 1.1 (the "License"); you may not use this file except in compliance with10 * the License. You may obtain a copy of the License at11 * http://www.mozilla.org/MPL/12 *13 * Software distributed under the License is distributed on an "AS IS" basis,14 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License15 * for the specific language governing rights and limitations under the16 * License.17 *18 * The Original Code is Netscape code.19 *20 * The Initial Developer of the Original Code is21 * Netscape Corporation.22 * Portions created by the Initial Developer are Copyright (C) 200123 * the Initial Developer. All Rights Reserved.24 *25 * Contributor(s): Bob Clary <bclary@netscape.com>26 *27 * ***** END LICENSE BLOCK ***** */28/////////////////////////////////////////////////////////////29// xbStyle.getClip()30function nsxbStyleGetClip()31{32 var clip = this.styleObj.clip;33 var rect = new xbClipRect(clip.top, clip.right, clip.bottom, clip.left);34 return rect.toString();35}36/////////////////////////////////////////////////////////////37// xbStyle.setClip()38function nsxbStyleSetClip(sClipString)39{40 var rect = new xbClipRect(sClipString);41 this.styleObj.clip.top = rect.top;42 this.styleObj.clip.right = rect.right;43 this.styleObj.clip.bottom = rect.bottom;44 this.styleObj.clip.left = rect.left;45}46/////////////////////////////////////////////////////////////47// xbStyle.getClipTop()48function nsxbStyleGetClipTop()49{50 return this.styleObj.clip.top;51}52/////////////////////////////////////////////////////////////53// xbStyle.setClipTop()54function nsxbStyleSetClipTop(top)55{56 return this.styleObj.clip.top = top;57}58/////////////////////////////////////////////////////////////59// xbStyle.getClipRight()60function nsxbStyleGetClipRight()61{62 return this.styleObj.clip.right;63}64/////////////////////////////////////////////////////////////65// xbStyle.setClipRight()66function nsxbStyleSetClipRight(right)67{68 return this.styleObj.clip.right = right;69}70/////////////////////////////////////////////////////////////71// xbStyle.getClipBottom()72function nsxbStyleGetClipBottom()73{74 return this.styleObj.clip.bottom;75}76/////////////////////////////////////////////////////////////77// xbStyle.setClipBottom()78function nsxbStyleSetClipBottom(bottom)79{80 return this.styleObj.clip.bottom = bottom;81}82/////////////////////////////////////////////////////////////83// xbStyle.getClipLeft()84function nsxbStyleGetClipLeft()85{86 return this.styleObj.clip.left;87}88/////////////////////////////////////////////////////////////89// xbStyle.setClipLeft()90function nsxbStyleSetClipLeft(left)91{92 return this.styleObj.clip.left = left;93}94/////////////////////////////////////////////////////////////95// xbStyle.getClipWidth()96function nsxbStyleGetClipWidth()97{98 return this.styleObj.clip.width;99}100/////////////////////////////////////////////////////////////101// xbStyle.setClipWidth()102function nsxbStyleSetClipWidth(width)103{104 return this.styleObj.clip.width = width;105}106/////////////////////////////////////////////////////////////107// xbStyle.getClipHeight()108function nsxbStyleGetClipHeight()109{110 return this.styleObj.clip.height;111}112/////////////////////////////////////////////////////////////113// xbStyle.setClipHeight()114function nsxbStyleSetClipHeight(height)115{116 return this.styleObj.clip.height = height;117}118/////////////////////////////////////////////////////////////////////////////119// xbStyle.getLeft()120function nsxbStyleGetLeft()121{122 return this.styleObj.left;123}124/////////////////////////////////////////////////////////////////////////////125// xbStyle.setLeft()126function nsxbStyleSetLeft(left)127{128 this.styleObj.left = left;129}130/////////////////////////////////////////////////////////////////////////////131// xbStyle.getTop()132function nsxbStyleGetTop()133{134 return this.styleObj.top;135}136/////////////////////////////////////////////////////////////////////////////137// xbStyle.setTop()138function nsxbStyleSetTop(top)139{140 this.styleObj.top = top;141}142/////////////////////////////////////////////////////////////////////////////143// xbStyle.getPageX()144function nsxbStyleGetPageX()145{146 return this.styleObj.pageX;147}148/////////////////////////////////////////////////////////////////////////////149// xbStyle.setPageX()150function nsxbStyleSetPageX(x)151{152 this.styleObj.x = this.styleObj.x + x - this.styleObj.pageX;153}154/////////////////////////////////////////////////////////////////////////////155// xbStyle.getPageY()156function nsxbStyleGetPageY()157{158 return this.styleObj.pageY;159}160/////////////////////////////////////////////////////////////////////////////161// xbStyle.setPageY()162function nsxbStyleSetPageY(y)163{164 this.styleObj.y = this.styleObj.y + y - this.styleObj.pageY;165}166/////////////////////////////////////////////////////////////////////////////167// xbStyle.getHeight()168function nsxbStyleGetHeight()169{170 //if (this.styleObj.document && this.styleObj.document.height)171 // return this.styleObj.document.height;172 173 return this.styleObj.clip.height;174}175/////////////////////////////////////////////////////////////////////////////176// xbStyle.setHeight()177function nsxbStyleSetHeight(height)178{179 this.styleObj.clip.height = height;180}181/////////////////////////////////////////////////////////////////////////////182// xbStyle.getWidth()183function nsxbStyleGetWidth()184{185 //if (this.styleObj.document && this.styleObj.document.width)186 // return this.styleObj.document.width;187 188 return this.styleObj.clip.width;189}190/////////////////////////////////////////////////////////////////////////////191// xbStyle.setWidth()192// netscape will not dynamically change the width of a 193// layer. It will only happen upon a refresh.194function nsxbStyleSetWidth(width)195{196 this.styleObj.clip.width = width;197}198/////////////////////////////////////////////////////////////////////////////199/////////////////////////////////////////////////////////////////////////////200// xbStyle.getVisibility()201function nsxbStyleGetVisibility()202{203 switch(this.styleObj.visibility)204 {205 case 'hide':206 return 'hidden';207 case 'show':208 return 'visible';209 }210 return '';211}212/////////////////////////////////////////////////////////////////////////////213// xbStyle.setVisibility()214function nsxbStyleSetVisibility(visibility)215{216 switch(visibility)217 {218 case 'hidden':219 visibility = 'hide';220 break;221 case 'visible':222 visibility = 'show';223 break;224 case 'inherit':225 break;226 default:227 visibility = 'show';228 break;229 }230 this.styleObj.visibility = visibility;231}232/////////////////////////////////////////////////////////////////////////////233// xbStyle.getzIndex()234function nsxbStyleGetzIndex()235{236 return this.styleObj.zIndex;237}238/////////////////////////////////////////////////////////////////////////////239// xbStyle.setzIndex()240function nsxbStyleSetzIndex(zIndex)241{242 this.styleObj.zIndex = zIndex;243}244/////////////////////////////////////////////////////////////////////////////245// xbStyle.getBackgroundColor()246function nsxbStyleGetBackgroundColor()247{248 return this.styleObj.bgColor;249}250/////////////////////////////////////////////////////////////////////////////251// xbStyle.setBackgroundColor()252function nsxbStyleSetBackgroundColor(color)253{254 if (color)255 {256 this.styleObj.bgColor = color;257 this.object.document.bgColor = color;258 this.resizeTo(this.getWidth(), this.getHeight());259 }260}261/////////////////////////////////////////////////////////////////////////////262// xbStyle.getColor()263function nsxbStyleGetColor()264{265 return '#ffffff';266}267/////////////////////////////////////////////////////////////////////////////268// xbStyle.setColor()269function nsxbStyleSetColor(color)270{271 this.object.document.fgColor = color;272}273/////////////////////////////////////////////////////////////////////////////274// xbStyle.moveAbove()275function xbStyleMoveAbove(cont)276{277 this.setzIndex(cont.getzIndex()+1);278}279/////////////////////////////////////////////////////////////////////////////280// xbStyle.moveBelow()281function xbStyleMoveBelow(cont)282{283 var zindex = cont.getzIndex() - 1;284 285 this.setzIndex(zindex);286}287/////////////////////////////////////////////////////////////////////////////288// xbStyle.moveBy()289function xbStyleMoveBy(deltaX, deltaY)290{291 this.moveTo(this.getLeft() + deltaX, this.getTop() + deltaY);292}293/////////////////////////////////////////////////////////////////////////////294// xbStyle.moveTo()295function xbStyleMoveTo(x, y)296{297 this.setLeft(x);298 this.setTop(y);299}300/////////////////////////////////////////////////////////////////////////////301// xbStyle.moveToAbsolute()302function xbStyleMoveToAbsolute(x, y)303{304 this.setPageX(x);305 this.setPageY(y);306}307/////////////////////////////////////////////////////////////////////////////308// xbStyle.resizeBy()309function xbStyleResizeBy(deltaX, deltaY)310{311 this.setWidth( this.getWidth() + deltaX );312 this.setHeight( this.getHeight() + deltaY );313}314/////////////////////////////////////////////////////////////////////////////315// xbStyle.resizeTo()316function xbStyleResizeTo(x, y)317{318 this.setWidth(x);319 this.setHeight(y);320}321////////////////////////////////////////////////////////////////////////322// Navigator 4.x resizing...323function nsxbStyleOnresize()324{325 if (saveInnerWidth != xbGetWindowWidth() || saveInnerHeight != xbGetWindowHeight())326 location.reload();327 return false;328}329/////////////////////////////////////////////////////////////////////////////330// xbStyle.setInnerHTML()331function nsxbSetInnerHTML(str)332{333 this.object.document.open('text/html');334 this.object.document.write(str);335 this.object.document.close();336}337xbStyle.prototype.getClip = nsxbStyleGetClip;338xbStyle.prototype.setClip = nsxbStyleSetClip; 339xbStyle.prototype.getClipTop = nsxbStyleGetClipTop;340xbStyle.prototype.setClipTop = nsxbStyleSetClipTop; 341xbStyle.prototype.getClipRight = nsxbStyleGetClipRight;342xbStyle.prototype.setClipRight = nsxbStyleSetClipRight; 343xbStyle.prototype.getClipBottom = nsxbStyleGetClipBottom;344xbStyle.prototype.setClipBottom = nsxbStyleSetClipBottom; 345xbStyle.prototype.getClipLeft = nsxbStyleGetClipLeft;346xbStyle.prototype.setClipLeft = nsxbStyleSetClipLeft; 347xbStyle.prototype.getClipWidth = nsxbStyleGetClipWidth;348xbStyle.prototype.setClipWidth = nsxbStyleSetClipWidth; 349xbStyle.prototype.getClipHeight = nsxbStyleGetClipHeight;350xbStyle.prototype.setClipHeight = nsxbStyleSetClipHeight; 351xbStyle.prototype.getLeft = nsxbStyleGetLeft;352xbStyle.prototype.setLeft = nsxbStyleSetLeft;353xbStyle.prototype.getTop = nsxbStyleGetTop;354xbStyle.prototype.setTop = nsxbStyleSetTop;355xbStyle.prototype.getPageX = nsxbStyleGetPageX;356xbStyle.prototype.setPageX = nsxbStyleSetPageX;357xbStyle.prototype.getPageY = nsxbStyleGetPageY;358xbStyle.prototype.setPageY = nsxbStyleSetPageY;359xbStyle.prototype.getVisibility = nsxbStyleGetVisibility;360xbStyle.prototype.setVisibility = nsxbStyleSetVisibility;361xbStyle.prototype.getzIndex = nsxbStyleGetzIndex;362xbStyle.prototype.setzIndex = nsxbStyleSetzIndex; 363xbStyle.prototype.getHeight = nsxbStyleGetHeight;364xbStyle.prototype.setHeight = nsxbStyleSetHeight;365xbStyle.prototype.getWidth = nsxbStyleGetWidth;366xbStyle.prototype.setWidth = nsxbStyleSetWidth;367xbStyle.prototype.getBackgroundColor = nsxbStyleGetBackgroundColor;368xbStyle.prototype.setBackgroundColor = nsxbStyleSetBackgroundColor;369xbStyle.prototype.getColor = nsxbStyleGetColor;370xbStyle.prototype.setColor = nsxbStyleSetColor;371xbStyle.prototype.setInnerHTML = nsxbSetInnerHTML;372xbStyle.prototype.getBorderTopWidth = xbStyleNotSupported;373xbStyle.prototype.getBorderRightWidth = xbStyleNotSupported;374xbStyle.prototype.getBorderBottomWidth = xbStyleNotSupported;375xbStyle.prototype.getBorderLeftWidth = xbStyleNotSupported;376xbStyle.prototype.getMarginLeft = xbStyleNotSupported;377xbStyle.prototype.getMarginTop = xbStyleNotSupported;378xbStyle.prototype.getMarginRight = xbStyleNotSupported;379xbStyle.prototype.getMarginBottom = xbStyleNotSupported;380xbStyle.prototype.getMarginLeft = xbStyleNotSupported;381xbStyle.prototype.getPaddingTop = xbStyleNotSupported;382xbStyle.prototype.getPaddingRight = xbStyleNotSupported;383xbStyle.prototype.getPaddingBottom = xbStyleNotSupported;384xbStyle.prototype.getPaddingLeft = xbStyleNotSupported;385xbStyle.prototype.getClientWidth = xbStyleNotSupported;386xbStyle.prototype.getClientHeight = xbStyleNotSupported;387window.saveInnerWidth = window.innerWidth;388window.saveInnerHeight = window.innerHeight;...
list-style-type.js
Source:list-style-type.js
1import { PropertyDescriptorParsingType } from '../IPropertyDescriptor';2export var LIST_STYLE_TYPE;3(function (LIST_STYLE_TYPE) {4 LIST_STYLE_TYPE[LIST_STYLE_TYPE["NONE"] = -1] = "NONE";5 LIST_STYLE_TYPE[LIST_STYLE_TYPE["DISC"] = 0] = "DISC";6 LIST_STYLE_TYPE[LIST_STYLE_TYPE["CIRCLE"] = 1] = "CIRCLE";7 LIST_STYLE_TYPE[LIST_STYLE_TYPE["SQUARE"] = 2] = "SQUARE";8 LIST_STYLE_TYPE[LIST_STYLE_TYPE["DECIMAL"] = 3] = "DECIMAL";9 LIST_STYLE_TYPE[LIST_STYLE_TYPE["CJK_DECIMAL"] = 4] = "CJK_DECIMAL";10 LIST_STYLE_TYPE[LIST_STYLE_TYPE["DECIMAL_LEADING_ZERO"] = 5] = "DECIMAL_LEADING_ZERO";11 LIST_STYLE_TYPE[LIST_STYLE_TYPE["LOWER_ROMAN"] = 6] = "LOWER_ROMAN";12 LIST_STYLE_TYPE[LIST_STYLE_TYPE["UPPER_ROMAN"] = 7] = "UPPER_ROMAN";13 LIST_STYLE_TYPE[LIST_STYLE_TYPE["LOWER_GREEK"] = 8] = "LOWER_GREEK";14 LIST_STYLE_TYPE[LIST_STYLE_TYPE["LOWER_ALPHA"] = 9] = "LOWER_ALPHA";15 LIST_STYLE_TYPE[LIST_STYLE_TYPE["UPPER_ALPHA"] = 10] = "UPPER_ALPHA";16 LIST_STYLE_TYPE[LIST_STYLE_TYPE["ARABIC_INDIC"] = 11] = "ARABIC_INDIC";17 LIST_STYLE_TYPE[LIST_STYLE_TYPE["ARMENIAN"] = 12] = "ARMENIAN";18 LIST_STYLE_TYPE[LIST_STYLE_TYPE["BENGALI"] = 13] = "BENGALI";19 LIST_STYLE_TYPE[LIST_STYLE_TYPE["CAMBODIAN"] = 14] = "CAMBODIAN";20 LIST_STYLE_TYPE[LIST_STYLE_TYPE["CJK_EARTHLY_BRANCH"] = 15] = "CJK_EARTHLY_BRANCH";21 LIST_STYLE_TYPE[LIST_STYLE_TYPE["CJK_HEAVENLY_STEM"] = 16] = "CJK_HEAVENLY_STEM";22 LIST_STYLE_TYPE[LIST_STYLE_TYPE["CJK_IDEOGRAPHIC"] = 17] = "CJK_IDEOGRAPHIC";23 LIST_STYLE_TYPE[LIST_STYLE_TYPE["DEVANAGARI"] = 18] = "DEVANAGARI";24 LIST_STYLE_TYPE[LIST_STYLE_TYPE["ETHIOPIC_NUMERIC"] = 19] = "ETHIOPIC_NUMERIC";25 LIST_STYLE_TYPE[LIST_STYLE_TYPE["GEORGIAN"] = 20] = "GEORGIAN";26 LIST_STYLE_TYPE[LIST_STYLE_TYPE["GUJARATI"] = 21] = "GUJARATI";27 LIST_STYLE_TYPE[LIST_STYLE_TYPE["GURMUKHI"] = 22] = "GURMUKHI";28 LIST_STYLE_TYPE[LIST_STYLE_TYPE["HEBREW"] = 22] = "HEBREW";29 LIST_STYLE_TYPE[LIST_STYLE_TYPE["HIRAGANA"] = 23] = "HIRAGANA";30 LIST_STYLE_TYPE[LIST_STYLE_TYPE["HIRAGANA_IROHA"] = 24] = "HIRAGANA_IROHA";31 LIST_STYLE_TYPE[LIST_STYLE_TYPE["JAPANESE_FORMAL"] = 25] = "JAPANESE_FORMAL";32 LIST_STYLE_TYPE[LIST_STYLE_TYPE["JAPANESE_INFORMAL"] = 26] = "JAPANESE_INFORMAL";33 LIST_STYLE_TYPE[LIST_STYLE_TYPE["KANNADA"] = 27] = "KANNADA";34 LIST_STYLE_TYPE[LIST_STYLE_TYPE["KATAKANA"] = 28] = "KATAKANA";35 LIST_STYLE_TYPE[LIST_STYLE_TYPE["KATAKANA_IROHA"] = 29] = "KATAKANA_IROHA";36 LIST_STYLE_TYPE[LIST_STYLE_TYPE["KHMER"] = 30] = "KHMER";37 LIST_STYLE_TYPE[LIST_STYLE_TYPE["KOREAN_HANGUL_FORMAL"] = 31] = "KOREAN_HANGUL_FORMAL";38 LIST_STYLE_TYPE[LIST_STYLE_TYPE["KOREAN_HANJA_FORMAL"] = 32] = "KOREAN_HANJA_FORMAL";39 LIST_STYLE_TYPE[LIST_STYLE_TYPE["KOREAN_HANJA_INFORMAL"] = 33] = "KOREAN_HANJA_INFORMAL";40 LIST_STYLE_TYPE[LIST_STYLE_TYPE["LAO"] = 34] = "LAO";41 LIST_STYLE_TYPE[LIST_STYLE_TYPE["LOWER_ARMENIAN"] = 35] = "LOWER_ARMENIAN";42 LIST_STYLE_TYPE[LIST_STYLE_TYPE["MALAYALAM"] = 36] = "MALAYALAM";43 LIST_STYLE_TYPE[LIST_STYLE_TYPE["MONGOLIAN"] = 37] = "MONGOLIAN";44 LIST_STYLE_TYPE[LIST_STYLE_TYPE["MYANMAR"] = 38] = "MYANMAR";45 LIST_STYLE_TYPE[LIST_STYLE_TYPE["ORIYA"] = 39] = "ORIYA";46 LIST_STYLE_TYPE[LIST_STYLE_TYPE["PERSIAN"] = 40] = "PERSIAN";47 LIST_STYLE_TYPE[LIST_STYLE_TYPE["SIMP_CHINESE_FORMAL"] = 41] = "SIMP_CHINESE_FORMAL";48 LIST_STYLE_TYPE[LIST_STYLE_TYPE["SIMP_CHINESE_INFORMAL"] = 42] = "SIMP_CHINESE_INFORMAL";49 LIST_STYLE_TYPE[LIST_STYLE_TYPE["TAMIL"] = 43] = "TAMIL";50 LIST_STYLE_TYPE[LIST_STYLE_TYPE["TELUGU"] = 44] = "TELUGU";51 LIST_STYLE_TYPE[LIST_STYLE_TYPE["THAI"] = 45] = "THAI";52 LIST_STYLE_TYPE[LIST_STYLE_TYPE["TIBETAN"] = 46] = "TIBETAN";53 LIST_STYLE_TYPE[LIST_STYLE_TYPE["TRAD_CHINESE_FORMAL"] = 47] = "TRAD_CHINESE_FORMAL";54 LIST_STYLE_TYPE[LIST_STYLE_TYPE["TRAD_CHINESE_INFORMAL"] = 48] = "TRAD_CHINESE_INFORMAL";55 LIST_STYLE_TYPE[LIST_STYLE_TYPE["UPPER_ARMENIAN"] = 49] = "UPPER_ARMENIAN";56 LIST_STYLE_TYPE[LIST_STYLE_TYPE["DISCLOSURE_OPEN"] = 50] = "DISCLOSURE_OPEN";57 LIST_STYLE_TYPE[LIST_STYLE_TYPE["DISCLOSURE_CLOSED"] = 51] = "DISCLOSURE_CLOSED";58})(LIST_STYLE_TYPE || (LIST_STYLE_TYPE = {}));59export const listStyleType = {60 name: 'list-style-type',61 initialValue: 'none',62 prefix: false,63 type: PropertyDescriptorParsingType.IDENT_VALUE,64 parse: (type) => {65 switch (type) {66 case 'disc':67 return LIST_STYLE_TYPE.DISC;68 case 'circle':69 return LIST_STYLE_TYPE.CIRCLE;70 case 'square':71 return LIST_STYLE_TYPE.SQUARE;72 case 'decimal':73 return LIST_STYLE_TYPE.DECIMAL;74 case 'cjk-decimal':75 return LIST_STYLE_TYPE.CJK_DECIMAL;76 case 'decimal-leading-zero':77 return LIST_STYLE_TYPE.DECIMAL_LEADING_ZERO;78 case 'lower-roman':79 return LIST_STYLE_TYPE.LOWER_ROMAN;80 case 'upper-roman':81 return LIST_STYLE_TYPE.UPPER_ROMAN;82 case 'lower-greek':83 return LIST_STYLE_TYPE.LOWER_GREEK;84 case 'lower-alpha':85 return LIST_STYLE_TYPE.LOWER_ALPHA;86 case 'upper-alpha':87 return LIST_STYLE_TYPE.UPPER_ALPHA;88 case 'arabic-indic':89 return LIST_STYLE_TYPE.ARABIC_INDIC;90 case 'armenian':91 return LIST_STYLE_TYPE.ARMENIAN;92 case 'bengali':93 return LIST_STYLE_TYPE.BENGALI;94 case 'cambodian':95 return LIST_STYLE_TYPE.CAMBODIAN;96 case 'cjk-earthly-branch':97 return LIST_STYLE_TYPE.CJK_EARTHLY_BRANCH;98 case 'cjk-heavenly-stem':99 return LIST_STYLE_TYPE.CJK_HEAVENLY_STEM;100 case 'cjk-ideographic':101 return LIST_STYLE_TYPE.CJK_IDEOGRAPHIC;102 case 'devanagari':103 return LIST_STYLE_TYPE.DEVANAGARI;104 case 'ethiopic-numeric':105 return LIST_STYLE_TYPE.ETHIOPIC_NUMERIC;106 case 'georgian':107 return LIST_STYLE_TYPE.GEORGIAN;108 case 'gujarati':109 return LIST_STYLE_TYPE.GUJARATI;110 case 'gurmukhi':111 return LIST_STYLE_TYPE.GURMUKHI;112 case 'hebrew':113 return LIST_STYLE_TYPE.HEBREW;114 case 'hiragana':115 return LIST_STYLE_TYPE.HIRAGANA;116 case 'hiragana-iroha':117 return LIST_STYLE_TYPE.HIRAGANA_IROHA;118 case 'japanese-formal':119 return LIST_STYLE_TYPE.JAPANESE_FORMAL;120 case 'japanese-informal':121 return LIST_STYLE_TYPE.JAPANESE_INFORMAL;122 case 'kannada':123 return LIST_STYLE_TYPE.KANNADA;124 case 'katakana':125 return LIST_STYLE_TYPE.KATAKANA;126 case 'katakana-iroha':127 return LIST_STYLE_TYPE.KATAKANA_IROHA;128 case 'khmer':129 return LIST_STYLE_TYPE.KHMER;130 case 'korean-hangul-formal':131 return LIST_STYLE_TYPE.KOREAN_HANGUL_FORMAL;132 case 'korean-hanja-formal':133 return LIST_STYLE_TYPE.KOREAN_HANJA_FORMAL;134 case 'korean-hanja-informal':135 return LIST_STYLE_TYPE.KOREAN_HANJA_INFORMAL;136 case 'lao':137 return LIST_STYLE_TYPE.LAO;138 case 'lower-armenian':139 return LIST_STYLE_TYPE.LOWER_ARMENIAN;140 case 'malayalam':141 return LIST_STYLE_TYPE.MALAYALAM;142 case 'mongolian':143 return LIST_STYLE_TYPE.MONGOLIAN;144 case 'myanmar':145 return LIST_STYLE_TYPE.MYANMAR;146 case 'oriya':147 return LIST_STYLE_TYPE.ORIYA;148 case 'persian':149 return LIST_STYLE_TYPE.PERSIAN;150 case 'simp-chinese-formal':151 return LIST_STYLE_TYPE.SIMP_CHINESE_FORMAL;152 case 'simp-chinese-informal':153 return LIST_STYLE_TYPE.SIMP_CHINESE_INFORMAL;154 case 'tamil':155 return LIST_STYLE_TYPE.TAMIL;156 case 'telugu':157 return LIST_STYLE_TYPE.TELUGU;158 case 'thai':159 return LIST_STYLE_TYPE.THAI;160 case 'tibetan':161 return LIST_STYLE_TYPE.TIBETAN;162 case 'trad-chinese-formal':163 return LIST_STYLE_TYPE.TRAD_CHINESE_FORMAL;164 case 'trad-chinese-informal':165 return LIST_STYLE_TYPE.TRAD_CHINESE_INFORMAL;166 case 'upper-armenian':167 return LIST_STYLE_TYPE.UPPER_ARMENIAN;168 case 'disclosure-open':169 return LIST_STYLE_TYPE.DISCLOSURE_OPEN;170 case 'disclosure-closed':171 return LIST_STYLE_TYPE.DISCLOSURE_CLOSED;172 case 'none':173 default:174 return LIST_STYLE_TYPE.NONE;175 }176 }...
Using AI Code Generation
1var wpt = require('webpagetest');2var wpt = new WebPageTest('www.webpagetest.org');3wpt.runTest('www.google.com', function(err, data) {4 if (err) return console.log(err);5 wpt.getTestResults(data.data.testId, function(err, data) {6 if (err) return console.log(err);7 console.log(data.data.median.firstView);8 });9});10var wpt = require('webpagetest');11var wpt = new WebPageTest('www.webpagetest.org');12wpt.runTest('www.google.com', function(err, data) {13 if (err) return console.log(err);14 wpt.getTestResults(data.data.testId, function(err, data) {15 if (err) return console.log(err);16 console.log(data.data.median.firstView);17 });18});19var wpt = require('webpagetest');20var wpt = new WebPageTest('www.webpagetest.org');21wpt.runTest('www.google.com', function(err, data) {22 if (err) return console.log(err);23 wpt.getTestResults(data.data.testId, function(err, data) {24 if (err) return console.log(err);25 console.log(data.data.median.firstView);26 });27});28var wpt = require('webpagetest');29var wpt = new WebPageTest('www.webpagetest.org');30wpt.runTest('www.google.com', function(err, data) {31 if (err) return console.log(err);32 wpt.getTestResults(data.data.testId, function(err, data) {33 if (err) return console.log(err);34 console.log(data.data.median.firstView);35 });36});37var wpt = require('webpagetest');38var wpt = new WebPageTest('www.webpagetest.org');39wpt.runTest('www.google.com', function(err, data) {40 if (err) return console.log(err);41 wpt.getTestResults(data.data.testId, function(err, data) {42 if (err) return console.log(err);43 console.log(data.data.median.firstView);44 });45});
Using AI Code Generation
1var wpt = require('webpagetest');2var test = new wpt('www.webpagetest.org');3 if (err) return console.error(err);4 console.log(data);5 test.getTestResults(data.data.testId, function(err, data) {6 if (err) return console.error(err);7 console.log(data);8 });9});10{ statusCode: 200,11 { statusCode: 200,12 { testId: '150721_2K_F4',13 { date: 'Fri, 17 Jul 2015 12:25:20 GMT',
Using AI Code Generation
1var wpt = require('wpt');2 if (err) {3 console.log(err);4 } else {5 console.log(data);6 }7});8var wpt = require('wpt');9 if (err) {10 console.log(err);11 } else {12 console.log(data);13 }14});15var wpt = require('wpt');16 if (err) {17 console.log(err);18 } else {19 console.log(data);20 }21});22var wpt = require('wpt');23 if (err) {24 console.log(err);25 } else {26 console.log(data);27 }28});29var wpt = require('wpt');30 if (err) {31 console.log(err);32 } else {33 console.log(data);34 }35});36var wpt = require('wpt');37 if (err) {38 console.log(err);39 } else {40 console.log(data);41 }42});43var wpt = require('wpt');44 if (err) {45 console.log(err);46 } else {47 console.log(data
Using AI Code Generation
1var wpt = require('webpagetest');2var test = wpt('www.webpagetest.org');3 console.log(data);4});5var wpt = require('webpagetest');6var test = wpt('www.webpagetest.org');7 console.log(data);8});9var wpt = require('webpagetest');10var test = wpt('www.webpagetest.org');11 console.log(data);12});13var wpt = require('webpagetest');14var test = wpt('www.webpagetest.org');15 console.log(data);16});17var wpt = require('webpagetest');18var test = wpt('www.webpagetest.org');19 console.log(data);20});21var wpt = require('webpagetest');22var test = wpt('www.webpagetest.org');23 console.log(data);24});25var wpt = require('
Using AI Code Generation
1var wpt = require('wpt');2var wpt = new WebPageTest('www.webpagetest.org', 'A.12345678901234567890123456789012');3 if (err) {4 console.log('Error: ' + err);5 } else {6 console.log('Test Complete!');7 console.log(data);8 }9});10var wpt = require('wpt');11var wpt = new WebPageTest('www.webpagetest.org', 'A.12345678901234567890123456789012');12 if (err) {13 console.log('Error: ' + err);14 } else {15 console.log('Test Complete!');16 console.log(data);17 }18});19var wpt = require('wpt');20var wpt = new WebPageTest('www.webpagetest.org', 'A.12345678901234567890123456789012');21 if (err) {22 console.log('Error: ' + err);23 } else {24 console.log('Test Complete!');25 console.log(data);26 }27});28var wpt = require('wpt');29var wpt = new WebPageTest('www.webpagetest.org', 'A.12345678901234567890123456789012');30 if (err) {31 console.log('Error: ' + err);32 } else {33 console.log('Test Complete!');34 console.log(data);35 }36});37var wpt = require('wpt');
Using AI Code Generation
1wpt.style('test.css');2wpt.style('test2.css');3wpt.style('test3.css');4wpt.style('test4.css');5wpt.style('test5.css');6wpt.style('test6.css');7wpt.style('test7.css');8wpt.style('test8.css');9wpt.style('test9.css');10wpt.style('test10.css');11wpt.style('test11.css');12wpt.style('test12.css');13wpt.style('test13.css');14wpt.style('test14.css');15wpt.style('test15.css');16wpt.style('test16.css');17wpt.style('test17.css');18wpt.style('test18.css');19wpt.style('test19.css');20wpt.style('test20.css');21wpt.style('test21.css');22wpt.style('test22.css');23wpt.style('test23.css');24wpt.style('test24.css');25wpt.style('test25.css');26wpt.style('test26.css');27wpt.style('
Using AI Code Generation
1var wptools = require('wptools');2var page = wptools.page('Barack Obama');3page.style(function(err, response) {4 console.log(response);5});6 var page = wptools.page('Barack Obama');7 page.style(function(err, response) {8 console.log(response);9 });10{11 {12 },13 {14 },15 {16 },17 {18 },19 {20 },21 {22 },23 {24 },25 {26 },27 {28 },29 {30 },31 {32 },33 {34 },35 {
Using AI Code Generation
1wpt.style("test", "color", "red");2wpt.style("test", "color", "blue");3wpt.style("test", "color", "red");4wpt.style("test", "color", "blue");5wpt.load("test.js", function() {6 wpt.load("test2.js");7});8wpt.load("style.css");9wpt.style("test", "color", "red");10wpt.style("test", "color", "blue");11wpt.load("test.js").then(function() {12 wpt.load("test2.js");13});
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.
You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.
Get 100 minutes of automation test minutes FREE!!