blob_id
stringlengths
40
40
language
stringclasses
1 value
repo_name
stringlengths
5
132
path
stringlengths
3
236
src_encoding
stringclasses
29 values
length_bytes
int64
8
7.94M
score
float64
2.52
5.72
int_score
int64
3
5
detected_licenses
listlengths
0
142
license_type
stringclasses
2 values
text
stringlengths
8
7.94M
download_success
bool
1 class
74248b14e1d97e399cf267e9011b5169e1303609
JavaScript
fabianopmartins/Modulo-Vendas-JSF-Primefaces
/Soften/target/Soften/resources/js/javascript.js
UTF-8
652
2.84375
3
[]
no_license
function mascaraMutuario(o,f){ v_obj=o v_fun=f setTimeout('execmascara()',1) } function execmascara(){ v_obj.value=v_fun(v_obj.value) } function cpfCnpj(v){ v=v.replace(/\D/g,"") if (v.length <= 14) { //CPF v=v.replace(/(\d{3})(\d)/,"$1.$2") v=v.repl...
true
7ab54420a60f143991cfea8b919db2b3c7ef694e
JavaScript
meteerogl/coronaTrackerReactRedux
/src/components/Covid/ListCountries/ListCountries.js
UTF-8
6,172
2.53125
3
[]
no_license
import React, {Component} from 'react'; import {Link, Route, Switch} from 'react-router-dom'; import DetailedCountry from "../DetailedCountry/DetailedCountry"; import {Table, Column, HeaderCell, Cell} from 'rsuite-table'; import 'rsuite-table/dist/css/rsuite-table.css'; class ListCountries extends Component { con...
true
843f22870073015f956663d9354d30c38f254d4e
JavaScript
knazir/WebFiddle
/public/js/dashboard/project-tile.js
UTF-8
2,531
3.109375
3
[]
no_license
class ProjectTile extends Component { constructor(containerElement, project, selectProjectCallback, openDeleteModalCallback, deleteProjectCallback) { super(containerElement); this._project = project; this._selectProjectCallback = selectProjectCallback; this._openDeleteModalCallback = openDeleteModalCa...
true
7f04cf2ceb3746f3ac3c79afcc82ab0a6186a28d
JavaScript
wangsterj/mini-apps-1
/challenge_4/client/src/components/app.jsx
UTF-8
5,087
3.125
3
[]
no_license
import React from 'react'; import axios from 'axios'; class App extends React.Component { constructor(props) { super(props); this.state = { board: [], // player true = player 1, false = 2 player: true, win: false } } onClick(event) { if (this.state.win) { retur...
true
71395a465c25904463e2d5d8297a54146819455a
JavaScript
hashmaparraylist/LeetCode
/Algorithms/JavaScript/01 Two Sum/solution.js
UTF-8
1,599
3.8125
4
[]
no_license
/** * @param {number[]} nums * @param {number} target * @return {number[]} */ var twoSum = function(nums, target) { var result = []; var sorted = []; for(var i = 0; i < nums.length; i++) { sorted[i] = { 'index': i, 'number': nums[i] }; } sorted.sort(f...
true
6dd0ed496c2c4cf202f3424b48593cac3064f3f3
JavaScript
Ryzl001/reactOdPodstaw
/react_app/helloworld/src/HobbyList.js
UTF-8
755
2.984375
3
[]
no_license
import React, { Component } from 'react'; class HobbyList extends Component { render() { const liStyle = {fontSize: '1.5em'}; // camelCase przy nazwie stylu a wartość w cudzysłowie zawsze jako String, musi być zachowany standard JS obiektu const hobbies = ['Sleeping', 'Eating', 'Cuddling']; return ( ...
true
414439d540086ba5f82413b08faa359d3c0f39e4
JavaScript
SamFare/RecrutmentGame
/src/Engine/Colider/Colider.js
UTF-8
473
2.515625
3
[ "MIT" ]
permissive
export default class Colider { haveColided (entity1, entity2) { if (this.boxXposIntersectsOnLeft(entity1, entity2) && entity1.hitBox.getYMax() > entity2.hitBox.getYMin() && !(entity2.hitBox.getYMax() < entity1.hitBox.getYMin())) { return true } return false } boxXposIntersectsOnLeft (en...
true
cd3e715e6cf181a7b628e869688f69e2f6abe61c
JavaScript
PaulKatchmark/crafty-maze
/maze.js
UTF-8
8,955
2.640625
3
[]
no_license
window.onload = function () { "use strict"; var width = 800, height = 600, radius = 16, xCount = Math.floor(width / radius), yCount = Math.floor(height / radius), x, y, id = 0, grid = [], cell, previousRow = [], currentRow =...
true
9f207be187407340f7e624adee38d7cc3bd49e91
JavaScript
mirza-adnan/testing-demo
/functions/reverseString.js
UTF-8
250
3.3125
3
[]
no_license
function reverseString(text) { if (typeof text !== "string") return ""; let output = ""; const n = text.length; for (let i = n - 1; i >= 0; i--) { output += text[i]; } return output; } module.exports = reverseString;
true
31c00026b9d9e090c796a6bbdfbec50d2e594c2f
JavaScript
amit1307/node-todo-api
/playground/mongodb-find.js
UTF-8
2,119
2.703125
3
[]
no_license
/** * Created by garga9 on 31/10/2017. */ const {MongoClient, ObjectID} = require('mongodb'); MongoClient.connect('mongodb://localhost:27017/ToDoApp', (err, db) => { if(err) { return console.log('Unable to connect to db', err); } //Find documents which are completed db.collection('ToDo').fin...
true
5c4dc951be8d97508d2522318ff659df32de86f8
JavaScript
muramena/Hermes
/server/routes/specialist.js
UTF-8
1,323
2.546875
3
[]
no_license
const express = require('express') const specialist_controller = require('../controllers/specialist_controller'); /** * express module */ var app = express(); /** * Gets all specialist from the DB. * @module specialist * @function * @param {String} path * @param {Function} callback * @return {Object} - Sta...
true
050bf29d55e1ba03f64ced4e339217ef754be984
JavaScript
ashishmadanmca/springboot-react-app
/frontend/src/component/AddStudent.jsx
UTF-8
3,935
2.59375
3
[]
no_license
import React, { Component } from 'react' import { Formik, Form, Field, ErrorMessage } from 'formik'; import StudentDataService from '../service/StudentDataService'; class AddStudent extends Component { constructor(props) { super(props) this.state = { id: -1, name: '', ...
true
a77e77ece2bd36e51de02f4baa52647f684b6c86
JavaScript
miloshcavitch/3dCodePortfolio
/Javascript Examples/huewars/vectorRender.js
UTF-8
11,667
2.984375
3
[]
no_license
var renderPseudoSprite = function(object, context){ context.translate(unit * object.xCenter, unit * object.yCenter); context.rotate( object.rotation); object.shapes.forEach(function(shape){ switch (shape.type){ case 'curvedline': renderCurvedLine(object, conte...
true
5b546ec07dc7b87e92471a45085176ae29b9fde4
JavaScript
BetterBrandAgency/better-boilerplate-documentation
/src/scripts/main.js
UTF-8
5,159
2.640625
3
[]
no_license
var didScroll; var lastScrollTop = 0; var delta = 5; function openOverlay() { $('.js-overlay').addClass('is-open'); // Find element with the class 'js-menu-container' and apply an additional class of 'is-open' } function closeOverlay() { $('.js-overlay').removeClass('is-open'); // Find element with the class 'js-me...
true
9b0752722491be82174f20b67f3bda728b6bde95
JavaScript
FernandoGuardado/Web-API-HW-3
/server.js
UTF-8
8,968
2.53125
3
[]
no_license
// Fernando Guardado var express = require('express'); var bodyParser = require('body-parser'); var passport = require('passport'); var authJwtController = require('./auth_jwt'); var User = require('./Users'); var jwt = require('jsonwebtoken'); var Movie = require('./Movies'); var dotenv = require('dotenv').config(); v...
true
bce30f41432c95beb495625167ce4141b9db3020
JavaScript
rohit-rcrohit7/ClimateMonitorV2
/ClimateMonitorV2/public/javascripts/detailedstats.js
UTF-8
4,882
3.015625
3
[]
no_license
// Everything required once loaded $(document).ready(() => { /** * Multi_date_search, throws a call to the backend to search through multiple dates for sensor details given a sensor id. * @param {Date} fromDate - Average PM10 Value * @param {Date} toDate - Average PM2 Value * @param {int} sensorID...
true
d53b9db2a82ac6f3a041b52a1277af4d5510d601
JavaScript
bantamer/codewars
/src/string/1/highestAndLowest.js
UTF-8
291
3.296875
3
[]
no_license
function highAndLow(numbers) { const sorted = numbers.split(' ').sort((a, b) => b - a); const max = sorted.shift(); const min = sorted.pop(); if (min === undefined) { return String(max + ' ' + max); } return String(max + ' ' + min); } console.log(highAndLow('1 2 3 12 -5'));
true
5388b159e61fac65d9ddd3a6b319fc23054131de
JavaScript
tinchodiaz76/AXIOS_API_RICKANDMORTY
/src/Components/Personajes/Personajes.js
UTF-8
1,438
2.53125
3
[]
no_license
import {Row} from "react-bootstrap"; //import PropTypes from "react-PropTypes" import PropTypes from "prop-types"; import VerPersonaje from "../VerPersonaje/VerPersonaje"; const Personajes = ({personajes}) => { /*Aca mano a VerPersonaje el objeto completo return ( <Row className="justify-conten...
true
ec561a9599458be00c7a2ee05c27ca7b8843f5a8
JavaScript
misterdebbie/dChong_Assignment3
/app_server/routes/restaurants.js
UTF-8
3,803
2.578125
3
[]
no_license
var util = require('util'); var Db = require('mongodb').Db, Server = require('mongodb').Server, ObjectID = require('mongodb').ObjectID; //dependency on mongoDB driver //expose Db, Server, ObjectID //connect to localhost //port 27017 is mongoDB default var server = new Server('localhost', 27017, {auto_reconnect...
true
95919867a0b599d342841a980f2a363583c573e0
JavaScript
MarlonEFE/eco
/ProyectoDW/js/slider.js
UTF-8
440
2.703125
3
[]
no_license
var c=1; var j=document.getElementById('js'); function carrusel(){ j.style.opacity="0"; j.style.transition="all 1s"; setTimeout("cambio()",1000); } function cambio(){ c++; if(c>3){ c=1; } j.setAttribute("src","../img/hogar/ban"+c+".jpg"); j.style.opacity="1"; j...
true
c28575ecd87f2296a2cd8fddf6d283085d913bb6
JavaScript
ArmitageRU/HTML5
/js/Route.js
UTF-8
582
2.9375
3
[]
no_license
"use strict"; function Route(startPoint){ this.from = startPoint; this.to = null; this.actualLength = null; this.elapsedTime=0; }; Route.prototype = { RenderPath:function(ctx, frameTime){ if(this.from!=null && this.to !=null){ var grad= ctx.createLinearGradient(this.from.x, this.from.y, this.to.x, this.to.y)...
true
9420585fa5f644001cb8121b4ce8c581aad661bd
JavaScript
marlonyDevelopers/Engine1.1
/src/engine/communications/gameType/bingo/BingoMessageDecoder.js
UTF-8
17,657
2.578125
3
[]
no_license
(function(window){ function BingoMessageDecoder(){ var game; var _this = this; var lastWin = 0; var nextExtraCost = 0; var currentExtraPosition = 1; var duringPlayLoader; //public functions this.setGameType = function(gameType){ game = gameType; if(game.gameConfig.loa...
true
cc4e9882e4ba9aba8fd1373e7f79da593df99708
JavaScript
eunicode/algos
/cw/6-shell-game.js
UTF-8
4,698
4.1875
4
[]
no_license
/* ================================================================= INSTRUCTIONS ================================================================= */ /* The Shell Game https://www.codewars.com/kata/546a3fea8a3502302a000cd2 "The Shell Game" involves three shells/cups/etc upturned on a playing surface, with a ball...
true
e435ad7e4c9e45042755ae904480895fcb1ac6a7
JavaScript
begriffs/decaying-accumulator
/test/test.js
UTF-8
6,362
2.65625
3
[]
no_license
var DecayingAccumulator = require('../DecayingAccumulator'), chai = require('chai'), assert = chai.assert, expect = chai.expect, sinon = require('sinon'), _ = require('underscore'), freezeTime = function(epoch) { if(Date.prototype.getTime.restore) { Date.prototype.getTi...
true
e801f5381a5d54aed3934bc46b4ac72133d14101
JavaScript
pmoskovi/RxJS
/examples/messaging/sample/canvas-share/canvas-consumer.js
UTF-8
935
2.6875
3
[ "Apache-2.0" ]
permissive
/** * Created by pkhanal on 5/7/15. */ (function() { var canvas = document.getElementById('demo'); var drawingContext = canvas.getContext("2d"); if (!drawingContext) { // Error return; } var worker = Rx.DOM.fromWebWorker('worker/messaging-worker.js'); worker.subscribe(functi...
true
05d07f2609fe3d2f93d6b249c05dc356752e2828
JavaScript
mjkaufer/WhatsGoingOn
/client/client.js
UTF-8
445
2.796875
3
[]
no_license
Meteor.methods({ 'callback':function(message,worked){ if(worked)//call went through without errors alert("Your call to " + message + " has been completed!"); else alert("Call didn't go through - some error"); } }); window.onload = function(){ document.getElementById('button').onclick = function(){ var nu...
true
8a75995c0e690cfee80b7ef57f8efe041d70a328
JavaScript
pinterari/nk3096-alkfejl-bead
/budget/public/getMonth.js
UTF-8
875
3.078125
3
[]
no_license
$(function () { var date = document.getElementById('date').innerHTML; var show = date.substring(0, 4); var month = parseInt(date.substring(5, 7)); switch(month) { case 1: show += '. január'; break; case 2: show += '. február'; break; case 3: show += '. március'; bre...
true
f26a12d9e134a5ab01c160dfe9da49428d5e7bf3
JavaScript
bobykostov/JS-Core
/JavaScript Fundamentals/4. Functions and Arrow Functions - LAB/06. Aggregate Elements.js
UTF-8
368
3.0625
3
[]
no_license
function aggregate(arr) { function aggregate(elems, initVal, func) { let val = initVal; for (let i = 0; i < elems.length; i++) { val = func(val, elems[i]); } console.log(val); } aggregate(arr, 0, (a,b) => a + b); aggregate(arr, 0, (a,b) => a + (1 / ...
true
b3e2197c4f97a37a81530fd6f529302df630e52f
JavaScript
bashi/tokei
/docs/index.js
UTF-8
10,657
2.765625
3
[ "Apache-2.0" ]
permissive
"use strict"; var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } function rejected(value) { try { step(gene...
true
84e50be161563fca9a5d20ab9142254fe0b21ab8
JavaScript
besiankrasniqi/Main
/Javascript/Menu Responsive more option/menu.js
UTF-8
4,008
2.8125
3
[]
no_license
var navigationMenu_ = document.getElementById('navigation-menu'); var menuElems = { navigationMenu : document.getElementById('navigation-menu'), menuItems : navigationMenu_.getElementsByTagName('li'), moreMenu : document.getElementById('more-menu'), moreMenuList : document.getElementById('more-menu-...
true
cfd036a95003eeb507f44097453fde99df88e4f6
JavaScript
GPCubo/Crud-NodeJs
/public/Formulario/scripts.js
UTF-8
2,687
2.984375
3
[]
no_license
const terms = document.getElementById("terms") const form = document.getElementById("form"); const button = document.getElementById("button"); const inputs = document.querySelectorAll(".controls"); const campos = { name: false, lastname: false, mail: false, terms:false }; const validateFormulario = (e...
true
c9d0987d1a7efef6f9f954017e549aa2f305896e
JavaScript
simonf7070/tmac
/tmac/Scripts/IpAddressValidation.js
UTF-8
877
2.578125
3
[]
no_license
$.validator.unobtrusive.adapters.addBool("ipaddress"); $.validator.addMethod("ipaddress", function (value) { return tmac.isValidIpAddress(value); }); var tmac = (function (window, undefined) { function isValidIpAddress(value) { if (value) { var ipAddressParts = value.split('.'); ...
true
3afe16739f3e80a3fc30be818febb03c962c1f42
JavaScript
kjkandrea/refactoring-2nd-edition
/chapter-11/src/04-preserve-whole-object/HeatingPlan-03.js
UTF-8
510
2.71875
3
[]
no_license
const { textSpanIsEmpty } = require('typescript'); /** * 예시: 새 함수를 다른 방식으로 만들기 */ class HeatingPlan { xxNEWwithinRange(tempRange) { const low = tempRange.low; const high = tempRange.high; const isWithinRange = this.withinRange(low, high); return isWithinRange; } } const tempRange = aRoom.daysTe...
true
72140544440ef2c2a45513a57b1edebe0f200fdb
JavaScript
mkathc/tesis-app
/src/services/timer.js
UTF-8
325
2.71875
3
[]
no_license
function createTimer(time, callback, callback_over) { let second = 1000 let count = 0 let interval = setInterval(() => { count += second callback(count / second) if (count >= time * second) { callback_over() clearInterval(interval) } }, second); return interval } export { createTi...
true
4e2b546ffc4990366a303eaeccc147c6b3b7ac4f
JavaScript
river-hermsen/vue
/soundboard/js/main.js
UTF-8
1,126
2.890625
3
[ "MIT" ]
permissive
var app = new Vue({ el: '#app', created: function () { window.addEventListener("keypress", this.play, false); }, methods: { play: function(e) { console.log(e.charCode); if (e.charCode == 65) { //A document.getElementById("key65").play(); } else if (e.charCode...
true
563497bbfdeb1820dd2f07a1cbb0898a5890c1da
JavaScript
dmwin72015/redux-saga-simple-use
/src/getReducer.js
UTF-8
1,428
3.046875
3
[]
no_license
import invariant from 'invariant'; const identify = () => {}; function handleAction(actionType, reducer = identify) { return (state, action) => { const { type } = action || {}; invariant(type, 'dispatch: action should be a plain Object with type'); if (actionType === type) { return reducer(state, ...
true
b8afcf25d189c49145ee60b079f60f2406c0be11
JavaScript
BryanNilsen/Welcome-To-Nashville-Solo
/src/scripts/navigation.js
UTF-8
710
3.109375
3
[]
no_license
// get references to navigation buttons const navTabs = document.querySelectorAll(".nav_tab") // get references to category sections const sections = document.querySelectorAll(".section") const showSection = (evt) => { const sectionId = evt.target.id.split("_") navTabs.forEach(navTab => { if (navTab.id === ...
true
d051e31906d538b610320f01ac833c199cdd99ff
JavaScript
Aliing/WindManager
/webapps/resources/cwp/ppsk_index_zh-Hans.js
UTF-8
942
2.515625
3
[]
no_license
function fillData(){ var txt =[["安全的互联网门户"], ["<strong>新用户应填写下面的表格,请求私人预共享密钥以访问安全的无线网络。</strong>"], ["名字*"], ["姓*"], ["电子邮件*"], ["联系电话"], ["访问*"], ["注释"], ["注册需要一段时间完成(*为必填项)。"], ["登录"], ["注册"], ]; document.getElementById("h1Title").innerHTML=txt[0]; document.getElementById("h2Title").innerHTML=txt[1]...
true
439a38235422816badb07f0c382580acd854c602
JavaScript
chrisprice/esfmt
/lib/walker.js
UTF-8
2,262
2.609375
3
[]
no_license
function Walker(opts) { opts = opts || {}; opts.recurse = opts.recurse || walk; var obj = {}; function walk(node, key, parent) { if (node === null) { return; } switch (node.type) { case 'BinaryExpression': case 'LogicalExpression': case 'AssignmentExpression': opts.recurse(node.left, 'left',...
true
433bd94b057e068f652f8b652bc9dd84535971e6
JavaScript
Morjhin/Javascript
/3. Project/app.js
UTF-8
12,494
3.078125
3
[]
no_license
let DOMStrings = { inputType: '.add__type', inputDescription: '.add__description', inputValue: '.add__value', inputBtn: '.add__btn', incomeContainer: '.income__list', expensesContainer: '.expenses__list', budgetLabel: '.budget__value', incomeLabel: '.budget__income--value', expensesL...
true
85ec2d89c439422c83c5462961ebd1038385ad09
JavaScript
ewauq/shruggy
/commands/help/help.js
UTF-8
2,033
2.671875
3
[]
no_license
module.exports = { /** * Paramètres de la commande. */ name: "help", description: "**${prefix}help ${prefix}aide** Retourne un message d'aide listant toutes les commandes disponibles.", triggers: [ "aide", "info", "infos", "help" ], responses: [ ...
true
033a57fac0fa42faa14c7acf9eb8cf151630dbfe
JavaScript
hellokj/itrip_project
/utils/nilChecker.js
UTF-8
411
2.78125
3
[]
no_license
const NilChecker = (body, num, params) => { a_list = Object.keys(body) if(a_list.length + params.length < num){ return true; } i = 0 for(let j=0;j<a_list.length;j++) { if(!params.includes(a_list[j])){ i++; } } if(i == num - params.length) { re...
true
b7c0432521fec9493d6048c5f64c66e068f94200
JavaScript
jv640/JavaScript_30
/Drum_Kit/DrumKit.js
UTF-8
864
2.953125
3
[ "MIT" ]
permissive
// There is a small bug that if we presses another ket before the trasition of previous completed. // then it leaves its previous transaction incomplete let count = 0; function removeTransition (e) { if (e.propertyName !== "transform") return; // console.log(e) this.classList.remove("playing"); // count = count - 1...
true
9cc9714ebc0eb202681091ee141e952bcd8ea45a
JavaScript
brunoprp/Dashboard-MQTT-Python
/app_web_fask/static/chats_dash.js
UTF-8
1,038
2.609375
3
[]
no_license
var pieData1 = [ { value: 300, color:"#F7464A", highlight: "#FF5A5E", label: "Red"}, { value: 50, color: "#46BFBD", highlight: "#5AD3D1", label: "Green"}, { value: 100, color: "#FDB45C", highlight: "#FFC870", label: "Yellow"}, { value: 40, color: "#949FB1", highlight: "#A8B3C5", label: "Grey"}, { value: 120, ...
true
9be288ada06754bece33c4876bc03181c5dfc6e6
JavaScript
christopherhurt/Pioned
/src/utils.js
UTF-8
3,701
2.84375
3
[]
no_license
const _fontFamily = 'Roboto Slab, sans-serif'; const _normal = 18; const _medium = 24; const _medium2 = 32; const _large = 50; export const Styles = { light: 'white', special: 'rgb(23,139,251)', special2: 'rgb(23,251,135)', important: 'red', lightBG: 'rgba(255,255,255,0.8)', darkBG: 'rgba(0,0,0,0.8)', fon...
true
96ce8546c8267435f9ab8353e9ed44881c1b855a
JavaScript
SDen4/burger_project
/src/scripts/player.js
UTF-8
3,405
2.796875
3
[]
no_license
(function() { const vid = document.querySelector(".video"); const playerStart = document.querySelector(".player__start"); const playerPaused = document.querySelector(".player__pause"); const playerVolume = document.querySelector(".player__volume"); const playerMute = document.querySelector(".player_...
true
e9b18eca01897b33e7d9f3da90b802ad149a28eb
JavaScript
Revtrov/webPortfolio
/portfolio/server.js
UTF-8
1,537
2.546875
3
[]
no_license
const express = require('express') const app = express() const port = 3000 const path = require('path'); const router = express.Router(); const createRoute = (browserPath, filePath) => { app.get(browserPath, (req, res) => { res.sendFile(path.resolve(__dirname, filePath)) }) }, creat...
true
b4d266c664b1aa80b05bab436505cac942b55e8e
JavaScript
Aulin93/ePortfolio
/src/Components/Thanquol.js
UTF-8
3,531
2.578125
3
[]
no_license
import { Button, Dialog, DialogActions, DialogContent, DialogContentText, DialogTitle, TextField, } from "@material-ui/core"; import { useState } from "react"; import { WeaponProfile } from "./WeaponProfile"; export function Thanquol() { const [move, setMove] = useState(10); const [wounds, setWounds]...
true
9e6317f9a1c166916475c867557b3da8916b7cb3
JavaScript
yoghourtpuppy/lc_code
/stack/validParenthesis.js
UTF-8
1,297
4.59375
5
[]
no_license
// Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid. // An input string is valid if: // Open brackets must be closed by the same type of brackets. // Open brackets must be closed in the correct order. // Note that an empty string is also considered ...
true
92f6a8b9a7b3ef48dd8620690a633c15926b870d
JavaScript
ShahmeerHamza/Team-Report
/index.js
UTF-8
1,899
2.515625
3
[]
no_license
const sign_in_btn = document.querySelector('#sign-in-form'); const sign_up_btn = document.querySelector('#sign-up-form'); const container = document.querySelector('.container'); sign_up_btn.addEventListener('click', () => { container.classList.add('sign-up-mode'); }); sign_in_btn.addEventListener('click', () => { ...
true
b65b3e7bbbbda2c85cce47eda8beac60c231b57a
JavaScript
annasm07/AS-tennisApp
/AS-FinalProject/frontend/src/utils/counterLogic.js
UTF-8
1,237
2.765625
3
[]
no_license
export function counterLogicPoints( playerWhoWon, {points, p1CounterPoints, p2CounterPoints}, ) { const pointsIncrement = { 1: 15, 2: 15, 3: 10, }; let CounterWinner = 0, playerWhoLost; playerWhoWon === 'p1' ? (playerWhoLost = 'p2') && (p1CounterPoints += 1) && (CounterWinne...
true
b09f624940338c58100a031c4436ee3b4e620fce
JavaScript
johnjaller/canvas-project
/javascript/drawing-line.js
UTF-8
1,255
3.375
3
[]
no_license
/********************************************** * Drawing Line Functionality * ================================== * This class extends the PaintFunction class, which you can find in canvas-common * Remember, order matters ***********************************************/ class DrawingLine extends PaintFunction { ...
true
cfc7601c45ef30376e9160cabccaf817bc4ea9c0
JavaScript
dr-k4rma/ProgrammingMemes
/ScrambleMiddleLetters/run.js
UTF-8
1,471
3.75
4
[]
no_license
const str = "At the edge of a wide pond, Yoda sits on a log. In his mouth is a Gimer Stick, a short twig with three little branches at the far end. Luke is nowhere in sight, but now we begin to hear the sound of someone crashing through the foliage."; function scramble(str){ let t = str.split(""); for(let i...
true
cbb8b9385b41ec3abe1fbe48f6edef6283cd6e80
JavaScript
P-ppc/leetcode
/algorithms/FindModeInBinarySearchTree/solution.js
UTF-8
1,034
3.3125
3
[]
no_license
/** * Definition for a binary tree node. * function TreeNode(val) { * this.val = val; * this.left = this.right = null; * } */ /** * @param {TreeNode} root * @return {number[]} */ var findMode = function(root) { let params = { res: [], maxCount: 0, curCount: 0, prev: ...
true
2cf0080310d31b706132397df210e977d2cd7973
JavaScript
smallbomb/CheckIO_js
/Scientific Expedition/cipher-map.js
UTF-8
1,777
3.078125
3
[ "MIT" ]
permissive
// https://js.checkio.org/mission/cipher-map/ const rotateccw = function (matrix) { let s = ""; let newarr = []; for (let j = 0; j < matrix.length; j++) { for (let i = matrix.length - 1; i >= 0; i--) s += matrix[i].charAt(j); newarr.push(s); s = ""; } return newarr; } function recallPassword(gr...
true
be207f3c45151813b2c662ac94bda3e01c11273a
JavaScript
brittjavs/shopify_movie_noms
/app.js
UTF-8
387
2.640625
3
[]
no_license
const omdbKey = omdb.OMDB_KEY let button = document.getElementById("search") 7 button.addEventListener("click", function(){ let inputTitle = document.getElementById("titleInput").value fetch("http://www.omdbapi.com/?type=movie&s=" + inputTitle + "&apikey=" + omdbKey ) .then(resp => resp.json()) .then(m...
true
3e9e5f3727e3c64358a27cc873cdf1538a9c702d
JavaScript
elvismelkic/vanado-task-backend
/tests/machine.test.js
UTF-8
4,440
2.59375
3
[]
no_license
const request = require("supertest"); const app = require("../src/app"); const Machine = require("../src/models/machine"); const Failure = require("../src/models/failure"); const { setupDatabase, machineOne, machineOneId, machineTwo, wrongId } = require("./fixtures/db"); beforeEach(setupDatabase); // POST T...
true
4da532379535bdce177d17953d1a471a9b78a260
JavaScript
akanksha-tanu/quiz
/quizApp/java/highscore.js
UTF-8
1,454
3.203125
3
[]
no_license
var highScoresList=document.getElementById("highScoresList"); const highScores=JSON.parse(localStorage.getItem("highScores")) || []; // var high=[]; // highScores.forEach(function(e){ // // console.log(e); // high.push(e); // }) // high.sort((a,b) => b.score-a.score) ; // high.splice(5); ...
true
99d94d8faa3bd3efecb1c4858d7ee3912d0331fa
JavaScript
davidmbedford/TriviaGame
/assets/javascript/app.js
UTF-8
5,608
2.96875
3
[]
no_license
//// Trivia game // A list of features I need to design ////shows one question until: /////////the player answers it /////////or their time runs out. ////when they hover over the answer, it is highlighted. ////when they click, it will: ////////show 'congrats' if they are correct ////////show 'oops' if they are wrong. a...
true
6cd4ef1c0d859328a9c45bb89dcce4dc2605425e
JavaScript
tjorge30/noDBproject
/server/controllers/commentsCtrl.js
UTF-8
379
2.578125
3
[]
no_license
const comments = require('../../comments.json') module.exports = { getComments: (req, res) =>{ res.status(200).send(comments) }, postComment: (req, res) =>{ var newComment = { id: comments.length + 1, comment: req.body.comment }; comments.push(...
true
7a964756bdeba755199b149f894fb47ca2aae78f
JavaScript
OppositeVector/CanvasDrawing
/includes/js/BasicDrawing.js
UTF-8
12,403
3.671875
4
[]
no_license
// This function draws a single pixel on HTML 5 canvas imageData // It expects x and y to be integers function DrawPixel(x, y, color, image) { if((x < 0) || (x >= image.width) || (y < 0) || (y >= image.height)) { return; } loc = (y * image.width * 4) + (x * 4); image.data[loc] = color.r; image.data[loc + 1] = ...
true
13c7b607cf2eb669bf04203d1a2c10304f8eb0e1
JavaScript
ZHKO1/leetcode
/124.binary-tree-maximum-path-sum/124.js
UTF-8
943
3.09375
3
[]
no_license
/* * @lc app=leetcode id=124 lang=javascript * * [124] Binary Tree Maximum Path Sum */ // @lc code=start /** * Definition for a binary tree node. * function TreeNode(val, left, right) { * this.val = (val===undefined ? 0 : val) * this.left = (left===undefined ? null : left) * this.right = (right===...
true
eda0f1a15395826b0a91bbc7e5de02248605c3ec
JavaScript
Noel-A-Gonzalez/unitechkanban
/public/javascripts/app.js
UTF-8
2,288
2.53125
3
[]
no_license
var app = function(){ /* Función que inicia todos los eventos que se cargan al terminar de cargar la página */ var initEvent = function(){ $(document).ready(function() { /*Renderizar pagina full*/ var fullHeight = $(window).height() - $(".header").outerHeight() - $(".title-board").outerHeight(); $(...
true
0ae571ffe4caed1703fc279bc2190cb1800cd65e
JavaScript
Jomative/Workspace
/JavaScript/Practice/main.js
UTF-8
950
3.203125
3
[]
no_license
/**@type {HTMLCanvasElement} */ const can = document.getElementById("can"); can.width = 300; can.height = 100; const ctx = can.getContext("2d"); const obj = { x:0, y:0, w:10, h:10 } let keys = {}; let speed = 0.1; function update(){ requestAnimationFrame(update); ctx.clearRect(0,0,can.width,can.height...
true
61075fc13324a8e0232745380fa2c1699b8f0138
JavaScript
JoaoVasconcelosV/curso-JSPro
/js/arrays.js
UTF-8
613
3.28125
3
[]
no_license
let hitchedSpaceships = ['Supernova', 'Elemental', 'Helmet']; console.log(hitchedSpaceships); hitchedSpaceships.push("CalangoVoador");//add novo item a um array console.log(hitchedSpaceships); hitchedSpaceships.unshift("JumentoAir");//add novo item a primeira posição de um array console.log(hitchedSpaceships); hitche...
true
4a9cb526dc17d8a6bf4b0967bf747e4ecd7b399f
JavaScript
hypersport/LeetCode
/implement-magic-dictionary/implement_magic_dictionary.js
UTF-8
1,097
3.84375
4
[]
no_license
/** * Initialize your data structure here. */ var MagicDictionary = function() { this.rdict = null; }; /** * Build a dictionary through a list of words * @param {string[]} dict * @return {void} */ MagicDictionary.prototype.buildDict = function(dict) { this.rdict = dict; }; /** * Returns if there is any...
true
47b719ca4a8f61e10ab3922bf3984ad638f7a5ec
JavaScript
SamuelTR20/React-basics
/src/components/listadoP.jsx
UTF-8
2,641
2.796875
3
[]
no_license
import React, {useState} from 'react' import uniqid from 'uniqid' const ListadoP = () => { const [nombre, setNombre] = useState('') const [listaNombres, setListaNombres] = useState([]) const [modoEdicion, setModoEdicion] = useState(false) const [id, setId] = useState('') const addNombre = (e) =...
true
466cdaf6667cc5f8372805ac31a41981c0812732
JavaScript
JinwooGong/GitHub
/HTML_AR/2day/ex03.js
UTF-8
140
2.796875
3
[]
no_license
console.log("----- ex03 -----"); var a = "안녕"; var b = "하세요"; console.log(a+b); console.log(a+1); var c = "1" + 1; console.log(c);
true
aacb2c3206e54ed658da0bfaafa16d9fed6013d4
JavaScript
adamorlowskipoland/js-slider
/script.js
UTF-8
3,444
2.890625
3
[]
no_license
const model = { "pics": [ { "imgName" : "pic1", "imgSrc" : "imgs/pic1.jpg", "imgAlt" : "Img training 1" }, { "imgName" : "pic2", "imgSrc" : "imgs/pic2.jpg", "imgAlt" : "Img training 2" }, { "i...
true
0a33736b37aaa1e40df1563daf521bea3d5be260
JavaScript
abelRoland/encapsulation-week-1
/src/handlers/toggle-completed.js
UTF-8
1,377
2.515625
3
[ "MIT" ]
permissive
var handlers = { addTodos: function (e) { debugger; e = e || window.event; e.preventDefault(); var add = document.getElementById("text-to-add").value; if (add === "") { alert("Please write a Todo!"); return; } app.addTodo(add); view.displayTodos(); logger.push({ ...
true
1fc72bb4d519c843d24b29568ba5658583bb0901
JavaScript
Akire-saku/node-exercises.github.io
/ej4/hotel.js
UTF-8
2,720
2.921875
3
[ "MIT" ]
permissive
var Hotel = function (nombre, ciudad, telefono, direccion, sitioWeb, gerente, habitaciones ) { var sthis = this; this.datosHotel = { nombre: "", ciudad: "", telefono: "", direccion: "", sitioWeb: "", gerente: "", habitaciones: 0 }; sthis.datos...
true
f90a39061fe3cfb53b20316c88220dd4b0684f1d
JavaScript
alexuribarri/goit-js-hw-07
/js/task-05.js
UTF-8
393
3.40625
3
[]
no_license
const form = { nameInput: document.querySelector("#name-input"), nameOutput: document.querySelector("#name-output"), }; //console.log(form.nameInput); function onNameInput() { form.nameOutput.innerHTML = `${form.nameInput.value}`; if (form.nameInput.value === "") { form.nameOutput.innerHTML = `незнакомец`;...
true
fc12e8aa2843eff7ca4eba48883b5df949b5684c
JavaScript
amgorder/vending_machine
/app/Controllers/VendingController.js
UTF-8
1,123
2.6875
3
[]
no_license
import { vendingService } from '../Services/VendingService.js' import { ProxyState } from '../AppState.js'; import Vending from '../Models/Vending.js'; function _draw() { let sodaElem = document.getElementById("soda") let candyElem = document.getElementById("candy") let waterElem = document.getElementById(...
true
fa5ae1fada42533ac1c2ea5021287611f9116072
JavaScript
onham/node-chat-app
/server/utils/validation.test.js
UTF-8
566
2.921875
3
[]
no_license
const expect = require('expect'); const { isRealString } = require('./validation'); describe('isRealString', () => { it('should reject non-string values', () => { const str = 123; const check = isRealString(str); expect(check).not.toBeTruthy(); }); it('should reject string with only spaces', () => { const ...
true
3692ad507f95eba8c0b391411086372ccde09339
JavaScript
jking026/complete-javascript-course
/01-Fundamentals-Part-1/starter/assignments.js
UTF-8
4,234
4.1875
4
[]
no_license
/* // LECTURE: VALUES AND VARIABLES// let greeting = "Hello, welcome to a new tommorrow "; let firstNameUser = "James " // alert(greeting + firstName + "."); //LECTURE: DATA TYPES// const country = "United States of America"; const continent = "North America"; let population = 328000000; // LECTURE: LET, CONST, AND V...
true
fb07b5567abac0d46ead0c2c894b5358c37edc6b
JavaScript
edbertsherlo/react-app
/src/features/signup/slice.js
UTF-8
2,905
2.53125
3
[]
no_license
import { createSlice } from '@reduxjs/toolkit'; import * as singupAPI from "./api"; import { submitSigninSuccess, submitSigninFailed } from "../signin/slice"; export const signupSlice = createSlice({ name: 'signup', initialState: { form: { first_name: "", last_name: "", ...
true
959420f6717cd6e15f95f5a30add483d51d67842
JavaScript
vardandanielyan/node-js
/src/utils/forecast.js
UTF-8
825
2.734375
3
[]
no_license
const request = require('request') const forecast = (latitude, longitude ,callback) => { const url = 'http://api.weatherstack.com/current?access_key=ca5ab61f6ab7d86c927c6c5d657b8b5f&query='+longitude+','+latitude; request({url, json: true},(error, { body } ) => { if (error) { callba...
true
60e85069d38a1b724ca34eda70153c324ccda544
JavaScript
HenriPablo/FlightLogLaravel
/resources/assets/js/utils/RolesUtils.js
UTF-8
628
3
3
[]
no_license
export { filterPersons, assignPersonsToAss } /** START LOAD PEOPLE */ let filterPersons = (type, persons) => { var x =[]; for( let i = 0; i < persons.length; i++ ){ if( persons[i]["roles"].includes( type )) { x.push( persons[i]); } } return x; }; let assignPersonsT...
true
5cad6f4ca8366577e25d933fcf2b858e0a5c2a78
JavaScript
Liza102021/JS1
/JS1/skript.js
UTF-8
757
3.546875
4
[]
no_license
console.log("Задание 1"); var i; for (i=0; i<=10; i++){ if (i%2==0) console.log(i + " "); } var i, sum; console.log("Задание 2") i=1; sum=0; while(sum<10){ if(i%2==0){ console.log(i); sum++; } i++; } var userPass = ''; var currentPass = '.'; console.log("Задани...
true
83dfd4b9b520fba419c8fc9ba43195988f2c50df
JavaScript
JamesFThomas/Github-Finder
/src/context/alert/AlertState.js
UTF-8
1,095
2.6875
3
[]
no_license
import React, { useReducer } from 'react'; import AlertContext from './alertContext'; import AlertReducer from './alertReducer'; import { SET_ALERT, REMOVE_ALERT } from '../types' const AlertState = (props) => { // create object to represent initial state of application const initialState = null // initiali...
true
fc46de20b479264954513f5765d852c5d2763e11
JavaScript
LightKingS/Grupo-dos-engra-adinho
/Calculadora.js
UTF-8
300
3.171875
3
[]
no_license
var prompt = require('prompt-sync')() let a = Number(prompt('Digite um número: ')) let b = Number(prompt('Digite outro número: ')) function sum(a, b){ return a + b; } function sub(a, b) { return a - b; } function mult(x, y){ return x * y; } function div(a, b){ return a / b }
true
f2ecd6d12ba98680ae642cbf4174fecdf4ea7da6
JavaScript
sachinrmore/javascript-samples
/unit-tests/matcher.spec.js
UTF-8
925
3.171875
3
[]
no_license
describe('Test suite', function(){ it('toBe matcher works', function(){ let a = 10; let b = 10; expect(a).toBe(b); expect(a).not.toBe(null); expect(a).not.toBeNull(); }) it("should work for objects", function() { var foo = { a: 12, b: 34 }; var bar = { ...
true
b4960b7b7f2e08fe9e21eb19e279b64e5fdf1826
JavaScript
Felanrod/COMP2112-Lab4
/js/main.js
UTF-8
2,414
3.0625
3
[]
no_license
/* eslint line-break-style: 0, comma-dangle: 0 */ const paraNewLine = `\n\n`; let emails; let init = false; // Named my local storage key lab4Emails3095 so it would be unique, // 3095 is the last 4 digits of my studnet number // Checks if there is a local copy of emails if not then creates one if (!localStorag...
true
3d9620510ca9e52f007dd76f0203e37ca7e10fed
JavaScript
cyborgspider/ryric
/build/js/scripts.js
UTF-8
905
3.359375
3
[]
no_license
(function(){ var songList = []; //This function returns a string (such as 3:30) into milliseconds function minutesToMilli(time){ return (Number(time.split(':')[0])*60+Number(time.split(':')[1]))*1000; } function displayLyrics(arr, index){ console.log(arr[0].lyrics[index]); console.log(arr[0].timestamp[index]); } ...
true
aaaf6c4af07941b78f05492195b584e380da784b
JavaScript
Domi236/miniProjects
/menuBar.js
UTF-8
226
2.875
3
[]
no_license
var list = document.querySelectorAll('.toggle-me'); list.forEach(function(el) { el.onclick = function() { list.forEach(function(el) { el.classList.remove('active'); }); el.classList.add('active'); } });
true
3119391ef49ea59e4eac8256d14741a958b76108
JavaScript
ashenbrownfox/practiceapp
/src/Form.js
UTF-8
1,198
2.765625
3
[]
no_license
import React, { Component,useState, useEffect } from "react"; class Form extends Component { constructor(){ super() this.state = { firstName: "", lastName: "", age: 0, gender: "", destination: "", dietaryRestrictions: [] } this.handl...
true
c631995cb7ef51766e0f8a66e1a8cc394558cf4f
JavaScript
marcoavfcc01121979/js-oo
/Conta/ContaCorrente.js
UTF-8
458
2.890625
3
[]
no_license
import Cliente from "./Cliente.js"; import Conta from "./Conta.js"; class ContaCorrente extends Conta{ static numerosDeConta = 0; constructor(cliente, agencia) { super(0, cliente, agencia) ContaCorrente.numerosDeConta += 1; } sacar(valor){ let taxa = 1.1; const valorSacado = taxa * valor ...
true
7c474626e1facfe897eac906e094bb94dda53e2c
JavaScript
javiarias/UAJ-Final
/js/individual.js
UTF-8
7,745
2.796875
3
[]
no_license
import * as Common from "./common.mjs"; var currentPlayer = {}; var pageSize = 15; var page = 0; var maxPages = 0; var currentHistory = []; document.getElementById("getData").onclick = getPlayerData; document.getElementById("left").onclick = left; document.getElementById("right").onclick = right; document.getElem...
true
431ddc5c66d37d84f649c44ed656d395a4d97bfe
JavaScript
T-G/ES6
/arrays/swapArrayWithSpread.js
UTF-8
1,946
3.9375
4
[]
no_license
const breakfastMenuIdeas = ["Buckwheat Pancakes"]; const dinnerMenuIdeas = ["Glazed Salmon", "Meatloaf", "American Cheeseburger"]; // const allMenuIdeas = ["Harvest Salad", "Southern Fried Chicken"]; /* To add breakfastMenuIdeas in the begining of allMenuIdeas */ //allMenuIdeas.pop(breakfastMenuIdeas) /* To add brea...
true
eebbb025a6ef2b816d1016b8f9772d5a5b5dea0f
JavaScript
Solomon-m/mylearning
/Asynchronous programming-End of the loop/07-Using the map method with Observable.js
UTF-8
1,833
3.625
4
[]
no_license
// When we map over an array we will get an array // When we filter or concatAll on an array we will get array. // In case of observable, if we map over an Observable we will be getting Observable. var Observable = Rx.Observable; var button = document.getElementById('button'); // In case of forEach in Observable i...
true
3fb848a5af2e839c67855e9fd242313d1f6a3624
JavaScript
zjj131415/Marketing
/html/t5/js/veImage.js
UTF-8
7,995
2.9375
3
[ "MIT" ]
permissive
;(function (factory) { /* CommonJS module. */ if (typeof module === "object" && typeof module.exports === "object") { module.exports = factory(window); /* AMD module. */ } else if (typeof define === "function" && define.amd) { define(factory(window)); /* Browser globals. */ ...
true
e4dd352c81ff75098121d556da41c6e81acd7ec9
JavaScript
philmjc/GreenMath
/trialCode/trial.js
UTF-8
713
2.640625
3
[]
no_license
user = { curr:1, courses : [ {id:1}, {id:2} ] }; var updateUser = function(obj) { user = Object.assign(user, obj); }; function gp(id) { if (!user.courses) return false; if (!id && user.currIndex) return user.courses[user.currIndex].prog; var ids = user.courses.map(function(el) {return el.id;}); ...
true
e58e842159605f3abd999786179169bd36b2bc1b
JavaScript
agasca/arrays
/matriz.js
UTF-8
759
3.734375
4
[]
no_license
function explosion(){ alert("Boom!"); document.write("<h1>Mala elección</h1>"); } var x, y; var textos = ["Cesped","Bomba"]; var campo = [ // 1 = bomba [1,0,0], [0,1,0], [1,1,1] ] alert("Cuidado!!!\n" + "Estas en un campo minado"); x = parseInt(prompt("Ingresa un valor entre 0 y 2 para la posición en el eje X...
true
f578b59c8f27f5307ced5458e7e641dbea7d3207
JavaScript
Sheryleen/knex-calendar-project
/controllers/appointments.js
UTF-8
1,103
2.59375
3
[]
no_license
const knex = require("../db/knex"); exports.getAllAppointments = (req, res) => { knex //instance of knex .select() //select all .table("appointments") //from appointments .then(appointments => res.json(appointments)); //getting all appts back }; exports.getOneAppointment = (req, res) => { knex("appoin...
true
b5af129124eb61eca3edb039d40fe0ece7ada65e
JavaScript
taikiken/practice_react_redux
/dev/babels/src/ex1/ListTypes.js
UTF-8
1,778
2.921875
3
[ "MIT" ]
permissive
/** * Copyright (c) 2011-2017 inazumatv.com, inc. * @author (at)taikiken / http://inazumatv.com * @date 2017/04/27 - 14:31 * * Distributed under the terms of the MIT license. * http://www.opensource.org/licenses/mit-license.html * * This notice shall be included in all copies or substantial portions of the Soft...
true
b80d68e74d51bbd39cd770f68701cfb17d125903
JavaScript
SACHIN5SOS/Weather-App
/weatherapp-asynjs/WeatherApp-node/app-promise.js
UTF-8
1,122
2.671875
3
[]
no_license
const axios = require('axios'); const yargs = require('yargs'); const argv= yargs .options({ a: { demand : true, alias: 'address', describe: 'Adress to fetch wether to', string: true } }) .help() .alias('help','h') .argv; var encodedAddress= encodeURIComponent(argv.address); va...
true
5f19e12ae0ec63c69c88e82987050dcd9d606fdc
JavaScript
PetarSimonovic/noteApp
/notePad.js
UTF-8
2,099
3.578125
4
[]
no_license
// Variables let noteList = []; let notePList = document.getElementById("noteListWrapper"); let addNoteButton = document.getElementById("addNoteButton"); let pageStorage = window.localStorage; noteList = pageStorage.notes.split(','); // event listeners addNoteButton.addEventListener("click", addNote); notePList.addEv...
true
1ac5bab08c62759ae02b5879fd0469fb171e8ad3
JavaScript
psb/object-dance-party
/src/main.js
UTF-8
692
2.6875
3
[]
no_license
$(document).ready(function(){ // This is a list of the different kinds of dancers. Right now, // there's just one, but eventually, you'll want to add more. var kindsOfDancers = { BlinkyDancer: BlinkyDancer, // found in blinkyDancer.js PoleDancer: PoleDancer, // found in otherDancers.js ColoredDancer...
true
f1a0881ee4e4b2c901a0c853c08a21de6c285b7d
JavaScript
guille615/Yasuo-Bot-Telegram
/index.js
UTF-8
1,440
2.671875
3
[ "MIT" ]
permissive
const emojis = require("./emojis"); const telegramBot = require('node-telegram-bot-api'); const fs = require('fs'); const config = require('./config.json'); const token = config.telegramToken; const api = new telegramBot(token, { polling: true }); const listaComandos = []; const commandFiles = fs.readdirSync('./comman...
true
1cb669f0da65ee543326d629db07a8e281ccc50f
JavaScript
jh3y/stationery-cabinet
/src/configurable-waves/script.js
UTF-8
2,522
2.828125
3
[]
no_license
import { GUI } from 'https://cdn.skypack.dev/dat.gui' const WAVES = document.querySelectorAll('.wave') const CONFIG = [ { speed: 30, opacity: 0.3, height: 12, width: 800, }, { speed: 45, opacity: 0.6, height: 12, width: 800, }, { speed: 15, opacity: 1, height: 6, ...
true