text
stringlengths
7
3.69M
(($) => { const $select = $('.form-field__custom-select'); $select.selectize({ onChange() { // for jQuery Validation Plugin $select.focus().trigger('click'); }, }); })(jQuery);
'use strict'; var events = require('events'); var async = require('async'); var util = require('util'); var async = require('async'); var azure = require('azure'); //var EventHubClient = require('azure-event-hubs').Client; var request = require('request'); var https = require('https'); var http = require('http...
import Vue from 'vue' import Router from 'vue-router' import Home from './views/Home.vue' import head from './components/head.vue' import search from './components/search.vue' import futureWeather from './components/futureWeather.vue' Vue.use(Router) export default new Router({ routes: [ { path: '/', ...
const HOME = '/'; const LOGIN = '/login'; const REGISTER = '/register'; const PROFILE = '/profile'; const CREATE = '/create'; const EDIT = '/edit'; const DETAILS = '/details'; const RECIPES = '/recipes'; const MY_RECIPES = '/myRecipes'; const FAVORITES_RECIPES = '/myFavorites'; const SEARCH = '/search'; const NOT_FOUND...
import aInput from './aInput' import aSelect from './aSelect' export { aInput, aSelect }
import React from "react"; import Button from "components/Button"; import { Link } from 'react-router-dom' const TopBar = props => ( <div> <div className="buttons" > <Link to={'/development/'}><Button className={`small-btn${props.dashboardPage ? " active" : ""}`} >Dashboard</Button></Link> <Button cla...
const { v4:uuid } = require("uuid"); const { validationResult } = require('express-validator'); const HttpError = require('../models/http-error'); const getCoordsForAddress = require('../util/location'); //const { delete } = require("../routes/places-routes"); let DUMMY_PLACES = [ { id: 'p1', titl...
/* * 此文件是webpack 的配置文件,用于指定webpack 执行了哪些任务*/ const {resolve} = require('path') const HtmlWebpackPlugin = require('html-webpack-plugin') module.exports ={ // entry:'./src/js/index' //简写 entry: { main:['./src/js/index','./src/index.html'] }, output: { path: resolve(__dirname, 'dist/js'), //输出路径 f...
var users = [ "ESL_SC2", "OgamingSC2", "cretetion", "freecodecamp", "storbeck", "habathcx", "RobotCaleb", "noobs2ninjas" ]; /* Get info on streamers */ function getInfo() { for (i = 0; i < users.length; i++) { $.getJSON("https://wind-bow.glitch.me/twitch-api/channels/" + users[i]).done(function(d...
/** * Created by mapbar_front on 2017/6/6. */ import React, { Component } from 'react'; import { addTodo } from '../action/action'; export default class HeaderComponent extends Component{ constructor(props){ super(props); this.state = { message:"" } } render(){ ...
import { LOAD_PLAYERS, LOAD_PLAYER, TOGGLE_THINGY } from '../actions/actionTypes' function playersReducer(state = [], action) { console.log('Action:',action); console.log('State:',state); switch (action.type) { case LOAD_PLAYERS: return action.players case LOAD_PLAYER:...
var React = require('react-native'); var { StyleSheet } = React; var Dimensions = require('Dimensions'); var { width, height } = Dimensions.get('window'); module.exports = StyleSheet.create({ container: { flex: 1, paddingTop: 64, width: null, width: null, backgroundColor:'rg...
/* Display input element in the console*/ const shippingWeight = document.querySelector('input'); console.log(shippingWeight);
const SnippetBox = require('./schema_snippet'); const mongoose = require('mongoose'); mongoose.Promise = require('bluebird'); mongoose.connect('mongodb://localhost:27017/SnippetOrgan'); function handleSuccess(){ console.log('Your snippet has been created and saved!'); }; function handleError(err){ console.log(er...
function cargarProfesionales(){ var id = document.getElementById('specialty').value; axios.post('/getProfesionales/'+id) .then((resp)=>{ var cont = document.getElementById("tablaprofesionales").rows.length; for (i = 0; i < (cont); i++) { document.getElementById("borrar").remove(); ...
console.log("snake")
module.exports = calendarRoutes; var dbInterface = require('../dbHelpers/dbInterface.js'); var passportJwt = require('../auth/jwtStrategy.js')(); function calendarRoutes (app, express) { var calendarApi = express.Router(); calendarApi.use(passportJwt, function (req, res, next) { next(); }); calendarApi.route(...
import React, { Component } from 'react' export default class AjouterRecette extends Component { state = { nom: '', image: '', ingredients: '', instructions: '' } handleChange = event => { const { name, value } = event.target this.setState({ [name]: value }...
var APP = APP || {}; window.Sticky = require('../src/sticky.js'); // MEDIA QUERY DEFINITION APP.mediaQuery = {}; APP.mediaQuery.lg = window.matchMedia('(min-width: 1024px)'); APP.stickyElem = document.querySelector('.js-stickable'); APP.stickyElem.promArr = []; APP.stickyElem.images = APP.stickyElem.querySelectorA...
import test from 'ava' import { combiner, combineGenerator } from './case-combiner' console.log('Because automatic optimization, combineGenerator run time maybe shorter than combiner, so it is for reference only:') test('combiner: ASCII', t => { console.time('combiner: ASCII') let result = combiner('http') cons...
#! /usr/bin/env node /* eslint */ require('../lib/disclaimer')(); const appendFileSync = require('fs').appendFileSync; const existsSync = require('fs').existsSync; const Script = require('../lib/script'); const Template = require('../lib/template'); const optDefs = [ { name: 'file', alias: 'f', type: String, mult...
function onYouTubeIframeAPIReady() { player = new YT.Player('video-placeholder', { width: 640, height: 360, videoId: '_ltzu5ltI6g', events: { onReady: initialize } }); } function initialize(){ } function deployVideo() { jQuery('.mm-product-video-modal-container').addClass('...
const { Pool: PgPool } = require('pg'); const CONFIG = require('../config'); const pgPool = new PgPool({ connectionString: CONFIG.postgisConnection, min: 25, max: 50, idleTimeoutMillis: 60000, connectionTimeoutMillis: 5000, }); async function getTextFromDb(allResults) { const pgClient = await pgPool.co...
import axiosWithAuth from '../../utils/axiosWithAuth'; export const GET_CHILDREN = 'GET_CHILDREN'; export const SET_ERROR = 'SET_ERROR'; export const getChidlren = sub => async dispatch => { if (localStorage.getItem('isAuthenticated')) { console.log('hit2'); axiosWithAuth() .get(`/profiles/${sub}/chidl...
let selectedColors = ['red', 'blue']; selectedColors[2] = 'green'; console.log(selectedColors ); console.log(selectedColors.length); //console.log(selectedColors[3]);
if (document.location.hash == "") { document.location.hash = "/"; } var db = new Firebase("https://getreview.firebaseio.com"); var users = db.child("users"); var reviews = db.child("reviews"); var ractive; var groups = ['Dev', 'UX', 'Product']; var app = { router: undefined } var loginRoute = function() { ...
var http = require('http') var fs = require('fs') var server = http.createServer((req, res) => { var stream = fs.createReadStream(process.argv[3]) stream.on('open', () => { stream.pipe(res) }) }) server.listen(process.argv[2]) /* explanation @ https://nodejs.org/en/knowledge/advanced/streams/how-to-use-fs-cre...
(function() { 'use strict'; angular.module('Product.api.module', ['Api.base.module']) .run(function(ProductManager, storage) { ProductManager.store = new storage('products'); console.log('namespace', ProductManager.store); // TODO: call server on load instead of grabbing from local sto...
const router = require('express').Router(); const AdminSystemController = require('../Controllers/AdminSystemController'); const ResponseError = require('../../Enterprise_business_rules/Manage_error/ResponseError'); const { TYPES_ERROR } = require('../../Enterprise_business_rules/Manage_error/codeError'); const error...
/* ======================================================================== * App.table v1.0, App.cell v1.0, App.row v1.0 * 表格处理插件 * ======================================================================== * Copyright 2016-2026 WangXin nvlbs,Inc. * * ========================================================...
var redis = require('redis'); var client = redis.createClient(); client.multi().keys("cr:*", function(err, crkeys) { crkeys.forEach(function(crkey, i){ console.log("crkey is : "+crkey); var cikey = crkey.replace("cr", "ci"); client.hget(cikey, "cost", function(err, cost){ console.log("cost : "+cost); ...
var compression=require('compression'); var errorHandler= require('errorhandler'); var bodyParser=require('body-parser'); module.exports=function(app,express){ var router=express.Router(); require('../routes/mainRoutes')(router); app.use(compression()); /*app.use(bodyParser.urlencoded({ ...
import React from 'react' import { storiesOf } from '@storybook/react' import Credits from './index' storiesOf('content|Credits', module) .add('with defaults (renders nothing)', () => <Credits />, { info: ` Demonstates basic rendering with defaults `, }) .add( 'with author and no reviewers'...
import React from 'react'; import Board from "./Board"; function Game() { function refreshPage() { window.location.reload(false); } return ( <center> <div className="game"> <h1>TIC TAC TOE</h1> <Board/> <button className="button" onClick={refreshPage}>Click to restart</button> </di...
function getXml() { var url=document.getElementById("urlBox").value; var promise=new Promise(function(resolve,reject){ var xhttp=new XMLHttpRequest(); xhttp.open('GET',url,true); xhttp.onreadystatechange=function(){ if (xhttp.readyState==4 && xhttp.status==200) { ...
//utils import React from 'react'; import * as MaterialDesign from 'react-icons/lib/md'; //components import NoteTools from './note_tools'; class NoteIndexItem extends React.Component { constructor(props) { super(props); } render() { return ( <div className='note-index-item-con...
describe('P.views.workouts.priv.ExerciseWrapper', function() { var View = P.views.workouts.priv.ExerciseWrapper, Model = P.models.workouts.Session; it('displays the static view by default', function() { var Static = P.views.workouts.priv.Exercises; spyOn(Static.prototype, 'initialize'); spyOn(Stati...
import React from 'react'; import GraphsPage from './GraphsPage'; import useGraphsPageHooks from './GraphsPageHooks'; const fromatData = (scoreData) => ({ labels: scoreData.dates, datasets: [{ label: 'Total Score', data: scoreData.scores, backgroundColor: 'rgba(54, 162, 235, 0.2)', borderColor: 'rg...
window.b = 1;
import React from 'react'; import ReactDOM from 'react-dom'; import { BrowserRouter as Router, Switch, Redirect, Route, Link } from 'react-router-dom'; import 'lib/ui-init.css'; import 'lib/ui-init.js'; import Layout from 'component/layout/index.jsx'; import Home from 'page/home/index.jsx'; import Login fro...
import {ACTIONS} from "../common/constants"; import { getEmployee } from '../client/EmployeeClient'; export const addEmployee = (employee) => { return { type: ACTIONS.ADD_EMPLOYEE, payload: employee }; }; export const fetchEmployee = (id) => { return (dispatch) => { return getEmployee(id) .then...
../../../shared/src/index.js
let DirectivasHtml = { template: ` <div> <h1 v-text="title"></h1> <p v-html = "message"></p> </div> `, data() { return { title: 'Directiva v-html', message: '<b>Texto de prueba v-html</b>', } } }
/* Funciones para el manejo de los numeros --------------------------------------- */ /* Inicio validaciones */ /* function trim(variable) { largo=variable.length; m=0; while (m57)) { event.returnValue=false; } } */ function solorut() { /*-----------------*/ if (((event.keyCode>47)&&...
'use strict'; var sql = require('./db.js'); var Book = function(book){ this.name = book.name; this.author = book.author; this.year = book.year; this.description = book.description; }; Book.createBook = function createUser(newBook, result) { sql.query("INSERT INTO books set ?", newBook, function (...
//定义$函数 var $ = function (id) { return "string" == typeof id ? document.getElementById(id) : id; } function folden(){ if($('separator')) { $('separator').onclick = function () { if(document.body.className == 'folden') { parent.document.getElementById('BoardTitle').style.width = '200px'; ...
const sciencePool = [ { question: "What do you call a skinny booger?", correct: "Slim Pickins.", incorrect: [], difficulty: 1, subject: "Science" }, { question: "What’s the difference between boogers and broccoli?", correct: "Kids don’t eat broccoli.", incorrect: [], difficulty...
import React from 'react'; import { BrowserRouter as Router, Switch, Route } from 'react-router-dom'; import AppBar from './components/AppBar'; import Home from './components/Home'; import User from './components/User'; function App() { return ( <Router> <AppBar /> <Switch> <Route exact path=...
var request = require('request'); function createandUpdateRetentionPolicies(reqData,authToken){ return new Promise((resolve,reject)=>{ var options = { 'method': 'PUT', 'url': `https://management.azure.com/subscriptions/${reqData.subscriptionId}/resourceGroups/${reqData.resourceGroupName}/providers/Microsoft.Sql...
const TMD_KEY = '1d821060cfc3dc7c024273bf806840e9'; const domContainer = document.querySelector('#js-pagination'); export default class CardsApiService { constructor() { this.searchQuery = ''; this.page = 1; this.totalResults = 2000; this.currentPage = 1; } fetchCardsonSearch() { return fetc...
/* /* jslint browser: true, devel: true, eqeq: true, plusplus: true, sloppy: true, vars: true, white: true*/ /*eslint-env browser*/ /*eslint 'no-console':0*/ var beginscherm = document.querySelector(".beginscherm"); var klikvraag1 = document.querySelector(".button3"); var showvraag1 = document.querySelector("....
import Typewriter from './Typewriter.vue' export default { install (Vue) { Vue.component('typewriter', Typewriter) } } export { Typewriter }
import styled from 'styled-components'; export const MyError = styled.div` display: flex; flex-direction: row; justify-content: center; div{ display: flex; flex-direction: column; align-items: center; justify-content: center; color: #918a8a; a{ text-decoration: non...
console.log(console); console.log(document); console.log(document.getElementById('tb_1')); document.getElementById('tb_1').style.border = '3px solid green'; function PopDv(val, dv) { dv.innerHTML=val; }
// React import React, {Component} from 'react'; // CSS import './App.css'; // utlities import calculateStars from './calculateStars'; // Custom Components import DisplayStarRating from './DisplayStarRating'; import SelectStarsContainer from './SelectStarsContainer'; const Reviews = props => { return ( <section...
import aContainer from 'bundle-loader?lazy!./IndexPage'; import Bundle from './Bundle'; const A = (props) => ( <Bundle load={aContainer}> {(Container) => <Container {...props}/>} </Bundle> ) export default A;
import React, {Component} from 'react' import './index.css' function paramsIndexS(str) { switch (str) { case "0": case 0: return "一" break; case "1": case 1: return "二" break; case "2": case 2: return "三" ...
import get from 'lodash-es/get'; export default function parse(definition) { return (prefix = null) => { return (base, value = '') => { const object = get(definition, prefix ? prefix + '.' + base : base); return findKey(object, '', (v) => { return String(v).toLowerCase() === String(value).toL...
import { createFormatters } from '../lib/index.es.js'; const intlConfig = { locale: 'en', formats: { date: { leave: { year: 'numeric', month: 'short', day: 'numeric', }, }, }, }; describe('createFormatters', () => { it('well, just works properly', () => { const ...
'use strict'; const ts = require('typescript'); const fs = require('fs'); const code = ts.transpile(fs.readFileSync('./gulpfile.ts').toString()); eval(code);
exports.addDate = function(theSong) { var now = new Date(); theSong.dateAdded = now; return theSong; }
let a =1; let b = 1; let c = 3; let d = 3; let height = c-a; let width = d-b; console.log(height * width);
function isPrimeNum(){ }
// Helper for the QUnit release preparation commit. // // See also RELEASE.md. // // Inspired by <https://github.com/jquery/jquery-release>. /* eslint-env node */ const fs = require( "fs" ); const path = require( "path" ); const util = require( "util" ); const cp = require( "child_process" ); const gitAuthors = requi...
export default (checked) => { return ` <span class="ui col-1 col-v-2 v-center"></span> <div class="ui col-10 v-center right"> <span class="ui thin grey-300"> Flip </span> &nbsp; <label class="mdl-switch mdl-js-switch mdl-js-ripple-effect" > <input type="checkbox" class="mdl-switch__input"${chec...
const { Kafka } = require('kafkajs') const value = process.argv[2] // * node producer.js this-name-will-be-used const partition = value[0] < 'N' ? 0 : 1 const run = async () => { try { const kafka = new Kafka({ brokers: ['core_rapids:29092'], cli...
var servicesModule = angular.module('notificationService', []); servicesModule.factory('NotificationService', ['$http', '$rootScope', 'authHttp', 'Environment', 'AccountService', function($http, $rootScope, authHttp, Environment, AccountService) { var notificationService = {}; // result contains any message s...
var express = require('express') , routes = require('routes') , path = require('path') , serialport = require('serialport') , http = require('http'); // アクセス先 var host = 'http://www3006uf.sakura.ne.jp/'; var path = ''; var file = 'test.php'; var url = host + path + file; console.log(url); // event flag var ev...
// let [first, second, third, fourth] = [1,2,3,4]; // console.log(first); // "use strict"; // function say() { // console.log("Hello!"); // } // let [first, last=say()] = ["Vitaliy"]; // console.log(last); 'use strict'; function defaultLastName() { return Date.now() + '-visitor'; } // lastName получит значени...
const mappedKeyToNote = { z: "c", x: "d", c: "e", v: "f", b: "g", n: "a", m: "b", s: "cs", d: "ds", g: "fs", h: "gs", j: "as", }; const sharpKeys = ["s", "d", "g", "h", "j"]; export { mappedKeyToNote,sharpKeys };
import * as mixins from "codogo-utility-functions"; import styled from "styled-components"; // -------------------------------------------------- const Section = styled.div` align-items: center; background-color: ${ props => props.theme.colors.background.white }; display: flex; flex-basis: 100%; flex-direction:...
// Fixtures for Data model - Backbuffer. Backbuffer.Data.FIXTURES = [ { id: 1, title: 'Prototype backbuffer', description: 'Do a simple html page with a couple of tasks to figure out how backbuffer looks best.', closed: false, assigned_to: '[email protected]' },...
import useLocalStorage from "../hooks/useLocalStorage" import styles from "../styles/QueryForm.module.css" /* How to fetch from API: https://api.covid19api.com/country/south-africa/status/confirmed?from=2020-03-01T00:00:00Z&to=2020-04-01T00:00:00Z */ function compareStrings(a, b){ for (let i = 0; i < Math.max(a....
const SmallNewsCard = ({ news, vertical }) => { const changeDateFormat = () => { const newDate = new Date(news.publishedAt) const monthNames = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December" ] return `${newDate.getDate()}...
module.exports = ({ node }) => { const title = node.getTitle(); const { attribution, citetitle } = node.getAttributes(); const titleContent = title ? `<p class="title">${title}<p>` : ""; let attributionContent = ""; if (attribution || citetitle) { attributionContent = `<p class="attribution">— ${attribut...
import React, { Component } from 'react'; import logo from './../logo.svg'; import { BrowserRouter as Router, Switch, Route, Link } from 'react-router-dom'; class header extends Component { render() { // if (this.state.create_btn_clicked) { // // return <Redirect to="/new"/>; ...
import React, { createContext, useState } from "react"; import CompA from "./CompA"; import CompB from "./CompB"; export const TestContext = createContext(); const ContextExample = () => { //make state here if you want this component to update on change console.log("ContextExample.js"); return ( ...
import { helper } from '@ember/component/helper'; export default helper(function fmtCryptoCurrency(params/*, hash*/) { let fmtAmount; const amount = params[0]; const code = params[1]; switch(code) { case 'RBTC': fmtAmount = amount / 1000000000000000000; break; case 'BTC': fmtAmount =...
const express = require("express"); const path = require("path"); const hbs = require("hbs"); const app = express(); // Middleware app.use(express.static(__dirname + "/public")); app.use(express.json()); app.use(express.urlencoded({extended:false})); app.use(require("./router/contacto")) // mail importado // Motor...
import React, { useState } from 'react' import classes from '../Kiosk/main.module.css'; import Button from '../compoenents/Button'; import DynamicFeedIcon from '@material-ui/icons/DynamicFeed'; import {FontAwesomeIcon} from '@fortawesome/react-fontawesome'; import { faClipboardCheck, faEdit, faComments } from '@fortawe...
describe('pixi/textures/BaseTexture', function () { 'use strict'; var expect = chai.expect; var BaseTexture = PIXI.BaseTexture; it('Module exists', function () { expect(BaseTexture).to.be.a('function'); expect(PIXI).to.have.property('BaseTextureCache').and.to.be.an('object'); }); }...
export default { project: { add: "/sys/projecttbl/save", list: "/sys/projecttbl/list", info: "/sys/projecttbl/info/", update: "/sys/projecttbl/update", del: "/sys/projecttbl/delete", } }
import './App.css'; import 'bootstrap/dist/css/bootstrap.min.css'; import MyNav from './components/MyNav' import MyFooter from './components/MyFooter' import { BrowserRouter as Router, Route, Switch} from "react-router-dom"; import Home from './components/Home'; import Registration from './components/Registration'; f...
let mongoose = require('mongoose') let userSchema = mongoose.Schema({ _id: mongoose.Schema.Types.ObjectID, // underscore,_ , for mongoDB(they are using it) email:{type: String, required: true, unique: true}, password: {type: String, required: true} }) module.exports = mongoose.model('User', userSchema) ...
function createCity(name, population, treasury) { return { name: name, population: population, treasury: treasury } } // console.log('Tortuga', // 7000, // 15000 // ); // console.log('Santo Domingo', // 12000, // 23500 // ); function townPopulation(inputArr) { const towns = {}; for (let record of...
import React, { Component } from 'react'; import AddNewItem from './AddNewItem'; import ItemsSummary from './ItemsSummary.js'; import './ClientComp.css'; class ItemsList extends Component { render() { if (this.props.itemsToShow) { return ( <div> <ListOfIte...
const drawPolygon = () => { const mapElement = document.getElementById('map-index'); if (mapElement) { var mapContainer = L.map(mapElement, {zoomControl: false, scrollWheelZoom: false}) .setView([-15.5, -48], 5) .setMaxBounds([[-38.7, -85.8],[11.7, -21.7]]); mapContainer.on('click', function() { ...
import component from './components/Settings'; export { component }
const knex = require('knex'); const knexConfig = require('./knexfile'); const db = knex(knexConfig.development); module.exports = { getDishes, addDish, getDish, getRecipes, addRecipe, }; function getDishes() { return db('dishes'); } function addDish(dish) { db.insert('dish'); } function...
const express = require('express'); const httpStatus = require('lib/httpStatus'); const Meeting = require('../models/Meeting'); const UserRoom = require('../models/UserRoom'); const Room = require('../models/Room'); module.exports = { RoomCapacity: (req, res, callback) => { Room.findById(results[0].r...
function addToLocal() { if (localStorage) { var userList = [{ "id": "123", "name": "ali", "email": "[email protected]" }, { "id": "234", "name": "hasan", "email": "[email protected]" }]; localStorage.setItem("name1", "Eray"); var name1 = localStorage.getItem("name1"); localStora...
var request = require('supertest'); var express = require('express'); var Rewire = require("rewire"); var sinon = require("sinon"); var redis = require('redis'); var app = Rewire("../webui.js") var redisClientMock = { get: sinon.spy(function(something) { return "Get"; }), hlen: sinon.spy(function...
let siteName=document.querySelector("#site-name"); let blockedList=document.querySelector("#blocked-list"); let blockBtn=document.querySelector("#block-site"); siteName.addEventListener("keyup",function(e){ if(e.keyCode=="13") blockBtn.click(); }); blockBtn.addEventListener("click",function(){ let sit...
angular.module("sn.controls", []); angular.module("sn.controls").service("DialogService", ["$http", "$document", "$rootScope", "$compile", function ($http, $document, $rootScope, $compile) { var zIndex = 1050; var dialogCounter = 0; var dialogMap = {}; return { modal: function (param, data) { $http....
function getAges(item) { var ages = [item.idade].join(" "); return ages; } el.innerHTML = usuarios.map(getAges);
var express =require('express'); //create your app var app=express(); // // app.use(function (req,res,next) { // if(req.headers['x-forwarded-proto']=='http') // next(); // else // res.redirect('http://' + req.hostname + req.url) // }); //tell express which folder to server exposing the folder ...
// must require file to be tested, and chai files with expect method to do test var car = require('../src/car.js'), expect = require('chai').expect; // need to 'describe' var method above to call function in file being tested describe("car", function() { // need to do beforeEach to reset everything before each tes...
const words = ["alligator", "ant","bear","bee","bird","camel","cat","cheetah","chicken","chimpanzee","cow", "crocodile","deer","dog","dolphin","duck","eagle","elephant","fish","fly","fox","frog","giraffe", "goat","goldfish","hamster","hippopotamus","horse","kangaroo","kitten","lion","lobster","monkey", "oct...
const submitBtn = document.querySelector('.submit') const reStart = document.querySelector('.restart') const displayMessage = document.querySelector('.text') const form = document.querySelector('.input') let inputValue = document.querySelector('.input-field') let randomNumber = Math.round(Math.random() * 101) const ran...
export const CLOUDS = "https://images.unsplash.com/photo-1445264618000-f1e069c5920f?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=1470&q=80"; export const CLEAR = "https://images.unsplash.com/photo-1601297183305-6df142704ea2?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8...