Skip to content

Instantly share code, notes, and snippets.

speed: 45
special-defense: 65
special-attack: 65
defense: 49
attack: 49
hp: 45
"stats": [
{
"base_stat": 45,
"effort": 0,
"stat": {
"name": "speed",
"url": "https://pokeapi.co/api/v2/stat/6/"
}
},
{
// grab the things we need ----------
const pokemonContainer = document.querySelector(".pokemon-container");
const formEl = document.querySelector("form");
const inputEl = document.querySelector("input[type=text]");
@import url("https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap");
body {
padding: 30px;
min-height: 100vh;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
background: url("https://i.imgur.com/zwp2EXP.png") center top;
<!DOCTYPE html>
<html lang="en">
<head>
<title>Poke.mon</title>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
</head>
<body>
<form>
<input type="text" placeholder="Search Pokemon" />
@lelouchB
lelouchB / test.js
Last active April 2, 2020 13:33
selenium tests
const { Builder, By, until } = require('selenium-webdriver');
const { Options, Context } = require('selenium-webdriver/firefox');
const addonFileLocation = "D:\React\example\web-ext-artifacts\bookmark_it_-1.1.zip";
(async function example(){
const options = new Options()
.setPreference("extensions.legacy.enabled", true)
.setPreference("xpinstall.signatures.required", false);
/*
above example
*/
rocky.buy = function() {
console.log("Buy the Movie");
};
rocky.buy();
// Buy the Movie
class Movies {
constructor(name, releaseYear, genre, ratings) {
this.name = name;
this.releaseYear = releaseYear;
this.genre = genre;
this.ratings = ratings;
}
watch() {
console.log("Watch Online");
}
function movies(name, releaseYear, genre, ratings) {
this.name = name;
this.releaseYear = releaseYear;
this.genre = genre;
this.ratings = ratings;
this.watch = () => {
console.log("Watch Online");
};
}
let movies = new Object();
console.log(movies)
//{}
movies.name = "Dead Poets Society";
movies.releaseYear = 1989;
movies.genre = ["Drama", "Teen"];
movies.ratings = {
IMDb: "8.1 / 10",