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
756d213fb8805ca6abeb248dbb24ef7393717900
JavaScript
cschweig2/kombucha-taproom
/src/components/KombuchaControl.js
UTF-8
3,591
2.546875
3
[ "MIT" ]
permissive
import React from 'react'; import KegDetail from './KegDetail'; import KegList from './KegList'; import AddKegForm from './AddKegForm'; import EditKegForm from './EditKegForm'; class KombuchaControl extends React.Component { constructor(props) { super(props); this.state = { formVisibleOnPage: false, ...
true
95ed4d1d77f9a406fdfe69772f73b31f64697394
JavaScript
tarandeept/natural-disaster-tracker
/src/components/EventInfoBox.js
UTF-8
502
2.515625
3
[]
no_license
var dayjs = require('dayjs'); const EventInfoBox = ({ info, closeInfo }) => { const date = dayjs(info.date).format('MMM D, YYYY h:mm A'); return ( <div className="event-info"> <h3>Event Info</h3> <ul> <li>Title: {info.title}</li> <li>Date: {date}</li> <li><a href={info.sour...
true
072bd1090de9714ff36164b0526b4e4d2ab8f19c
JavaScript
shrikant656/KIADB
/js/gauge_generator.js
UTF-8
7,453
2.640625
3
[]
no_license
function GaugeGenerator() { var root = this; this.source_path = 'js/gauge_data.json'; this.gauge_data = ''; this.div = 0; this.tbl_data = ''; this.result_container = ''; this.calc_good_range = function(target_val, thresh_good){ var high_good = target_val + (target_val * (thresh_good / 100)); var l...
true
7bee7659cf1447a64749fb6203d2f05a46fc4150
JavaScript
massu0819/JavaScript
/app.js
UTF-8
168
3.484375
3
[]
no_license
let int1 = 4 + 3 let int2 = 8 - 5 let int3 = 2 * 6 let int4 = 10 / 2 alert('4+3='+int1); alert('8-5='+int2); alert('2×6='+int3); alert('10÷2='+int4);
true
95894cc60924e02c3bf0631449f7278053d7bdbd
JavaScript
Pk-khan/myweather
/main.js
UTF-8
2,338
3
3
[]
no_license
const submit_btn=document.getElementById('submit_btn'); const city_name=document.getElementById('city_name'); const search_city=document.getElementById('search_city'); const temp=document.getElementById('temp'); const status=document.getElementById('status'); const data_hide=document.getElementById("tempdiv"); //time s...
true
cc0e6fefe799d4fb24cf279198b568da0fd872aa
JavaScript
ilomeli32/ziplist
/ziplist_scsslint_tmp7109402005131532869.js
UTF-8
195
3.28125
3
[]
no_license
function zipList(one, two) { } const one = ['a', 'b', 'c']; const two = [1, 2, 3]; console.log(zipList(one, two)); function zipListTheSimpleWay console.log(zipListTheSimpleWay(one, two));
true
e7004f94c2a9af42b8925ac59999d217086429af
JavaScript
Madisonkanna/coding_challenges
/binarySearchArray/binarySearchArray.js
UTF-8
986
4.65625
5
[]
no_license
/* * Given a sorted array, find the index of an element * using a binary search algorithm. * * Example usage: * * var index = binarySearch([1, 2, 3, 4, 5], 4); * console.log(index); // 3 */ var binarySearch = function (arr, target) { // console.log("arr", arr, "target", target); // console.log("start...");...
true
3aec02d87e0d1c687d6e8d82b15197760c326184
JavaScript
msali123/Assignment1_BCC003125
/task2.js
UTF-8
150
2.84375
3
[]
no_license
//Question2 var name="Jhone Doe"; var age="15 years old"; var course="Certified Mobile Application Development"; alert(name); alert(age); alert(course);
true
b17e8a4efea8f3dbc779a97c0d297bac833a6df3
JavaScript
Stolarskis/asteroid-game
/src/mainGame.js
UTF-8
3,845
2.8125
3
[ "MIT" ]
permissive
import { throws } from "assert"; import { runInThisContext } from "vm"; import Bolt from "./projectiles/Bolt.js"; import AsteroidController from "./asteroids/AsteroidController.js"; import PlayerHud from "./PlayerHud.js"; import Player from "./Player.js"; import Background from "./Background.js"; class mainGame exten...
true
f659f7e4f7e28008a5f2f324019d5fbdd9ebc58d
JavaScript
Holo-Host/hpstatus
/res/success/index.js
UTF-8
7,228
2.84375
3
[ "MIT" ]
permissive
(async () => { /* Fetch and Parse Location */ const currentQueryString = window.location.search.substr(1).split('&') const hpAdminUrl = ((hpAdminQueryString = currentQueryString) => { if (hpAdminQueryString === '') return {} const queryStringKv = {} for (let i = 0; i < hpAdminQueryString.length; ++i) ...
true
90ea5cf2ea60bb9ab3eba884ae61777ad8e035ee
JavaScript
hickey/screeps
/module.priorityQueue.js
UTF-8
670
3.390625
3
[]
no_license
/* * Module code goes here. Use 'module.exports' to export things: * module.exports.thing = 'a thing'; * * You can import it from another modules like this: * var mod = require('module.priorityQueue'); * mod.thing == 'a thing'; // true */ module.exports = { PriorityQueue: function() { this.data = [...
true
1de8f58f25320239377d4a1423d31aedecfc20a5
JavaScript
MehulATL/streetfighter-moves
/src/index.js
UTF-8
436
2.734375
3
[]
no_license
var uniqueRandomArray = require('unique-random-array'); var movesList = require('./moves.json'); var getRandomMove = uniqueRandomArray(movesList); module.exports = { all: movesList, random: function(number) { if (!number) { return getRandomMove(); } else { var randomMoves = []; for (var ...
true
86c01b5efa55072009d139aed20d8ed71de6f981
JavaScript
pjcjonas/node-js-api
/config.js
UTF-8
824
2.921875
3
[]
no_license
// Create and export config variabls // General container for all the environments const environments = {}; // Staging object (default environment) environments.staging = { httpPort: 3000, httpsPort: 3001, envName: 'staging', hasingSecret: 'thisisasecret' }; // Production object environments.producti...
true
a3facab6804aa8644950b723c870a5e09135b9cb
JavaScript
scbaptista/engweb
/js/markitondemand.js
UTF-8
3,788
3.015625
3
[ "MIT" ]
permissive
/** * Version 1.0, Jan 2012 */ var Markit = {}; /** * Define the QuoteService. * First argument is symbol (string) for the quote. Examples: AAPL, MSFT, JNJ, GOOG. * Second argument is fCallback, a callback function executed onSuccess of API. */ Markit.QuoteService = function(sSymbol, fCallback) { this.symbol = ...
true
33e49ebe32bcdeca46a276404e5be1148e405eeb
JavaScript
ryanartecona/pipeline.js
/src/MultiBond.js
UTF-8
667
2.6875
3
[]
no_license
var Bond = require('./Bond') var MultiBond = function(bonds) { this.init(bonds) } MultiBond.prototype = new Bond(function(){}) MultiBond._bonds = undefined MultiBond.prototype.init = function(bonds) { (this._bonds = bonds) || (this._bonds = []) } MultiBond.prototype.addBond = function(newBond) { if (this.isBr...
true
9d8ce1ebfe6250991e8991d1b00b1771d7a57c77
JavaScript
Connor-Cahill/tweet-generator
/static/javascript/scripts.js
UTF-8
380
3.15625
3
[]
no_license
const contentArea = document.getElementById('quote'); function setQuote() { axios.get('/tweets') .then((res) => { contentArea.innerHTML = res.data.tweet; // makes the tweet gen speak if uncommented // const utterance = new SpeechSynthesisUtterance(tweet.tweet); // window.speechSynthesis.speak(uttera...
true
019824cd0d9f29235506842370642e8f3ad38905
JavaScript
AD2018/blocks
/client/renderables/menu/photos.js
UTF-8
4,722
2.640625
3
[ "MIT" ]
permissive
// Photos UI const Photos = ({ menu, pages, width, height, }) => { const image = new Image(); image.crossOrigin = 'anonymous'; image.onload = () => { image.loaded = true; if (menu.page.id === pages.photos) { menu.draw(); } }; const buttons = [ { label: 'Teleport', x:...
true
876afd15af7fda3a3d002c817697d94f26be1d0c
JavaScript
vandanagaikwad/restaurantAppEmbr
/tests/unit/controllers/index-test.js
UTF-8
1,275
2.53125
3
[]
no_license
import { moduleFor, test } from 'ember-qunit'; import Ember from 'ember'; //Stub location service const locationStub = Ember.Service.extend({ city: 'New York', country: 'USA', currentLocation: { x: 1234, y: 5678 }, getCurrentCity() { return this.get('city'); }, getCurrentCountry() { retu...
true
d931e6ee9b7db419c8d1232bbad434d37b4aae2f
JavaScript
ChristopheSchevers/coronow
/main/static/js/main.js
UTF-8
843
2.546875
3
[]
no_license
class NavTabs { constructor($el) { this.$el = $el; this.triggers = this.$el.find('[data-target]'); this.triggers.each(function(){ return new NavTabItem(this.$el, $(this)); }); } } class NavTabItem { constructor($parent, $el) { this.$parent = $...
true
62c355a9aec37b4c14ee75c8f5f7a16998b805b4
JavaScript
DavidBinaud/JS-TD3BIS
/src/js/carte.js
UTF-8
490
2.6875
3
[]
no_license
class Carte{ constructor(srt,src){ this.sprite = document.getElementById("image_" + srt); this.src = "img/" + src + ".png"; this.revealed = false; this.found = false; this.id = src; this.sprite.onclick = function(){ mem.hideOrReveal(this); } } reveal(){ this.revealed = true; this.sprite.src = t...
true
4d7e1a7ab87b3c09cb531b24e31c7e969827e52a
JavaScript
tunkytime/liri-node-app
/liri.js
UTF-8
4,189
2.859375
3
[]
no_license
// INSTALL AND REQUIRE PACKAGES require("dotenv").config(); var Spotify = require("node-spotify-api"); var keys = require("./keys.js"); var axios = require("axios"); var moment = require("moment"); var fs = require("fs"); var spotify = new Spotify(keys.spotify); // SETUP VARIABLES var limit = 5; var input = process.ar...
true
e18a413aabc54831b542d3f7d70866fc5975d234
JavaScript
aaronhalstonlee/rockPaperScissors
/script.js
UTF-8
10,628
3.359375
3
[]
no_license
function computerPlay(){ play = ['rock', 'paper', 'scissors', 'surfer', 'unicorn', 'donut', 'fire'] return play[Math.round(Math.random()*7)] } function playerPoint(){ playerScore+=1; //console.log(`your points: ${playerScore}`, `computer points: ${compScore}`); } function compPoint(){ compScore+=1...
true
034f1ae2b37e94740d3477f6438390434e602283
JavaScript
zning02/vue-music
/src/common/js/util.js
UTF-8
496
3.171875
3
[]
no_license
function getRandomInt(min,max){ return Math.floor(Math.random()*(max-min+1)+min) } export function shuffle(arr){ let _arr=arr.slice() for(let i=0;i<_arr.length;i++){ let j=getRandomInt(0,i); let t=_arr[i] _arr[i]=_arr[j] _arr[j]=t } return _arr } export function myBrowser(){ var userAge...
true
5d7373f6703d32d0418d141c20f85880f01c442a
JavaScript
gutentag2012/Bosch_Internship_Django_Polls
/static/js/handle_login_form.js
UTF-8
507
2.890625
3
[ "MIT" ]
permissive
const answer_form = document.getElementById("answer_form") function submitAnswer(answer_id) { post({"vote": answer_id}) } function post(params) { for (const key in params) { if (params.hasOwnProperty(key)) { const hiddenField = document.createElement('input'); hiddenField.type ...
true
9512609f70113382600262d58bd7e321d0fa0639
JavaScript
Wayne-Bai/AST-normalize
/data/unknown/70247.js
UTF-8
1,266
2.578125
3
[]
no_license
! ✖ / env; node; var RSVP = require("rsvp"); var spawn = require("child_process").spawn; function run(command, _args) { var args = _args || []; return new RSVP.Promise(function(resolve, reject) { console.log("Running: " + command + " " + args.join(" ")); var child = spawn(command, args); ...
true
8e56e99b760429f85b236aa7fdb7efd51b8e0e91
JavaScript
Thoks10a/JavaScript---Node-Npm-Express-e-MongoDB-NodeJS-
/aula1/app.js
UTF-8
504
3.28125
3
[]
no_license
//Formas de fazer um require ! // const mod1 = require('./mod1'); // console.log(mod1.falaNome()) // const falaNome = require('./mod1').falaNome; // console.log(falaNome()); // const {nome, sobrenome, falaNome} = require ('./mod1'); // console.log(falaNome()); // Outras maneiras // const axios = require ('...
true
9e0b977604a1736fc240927c4c8bf9c9ebe2bc98
JavaScript
P-Arnold/p5js-projects
/Delauney/sketch.js
UTF-8
2,992
3.34375
3
[]
no_license
const MOUSEMARGIN = 40; let triangles = [] //Holds info generated with Delauney library let particles = [] //Holds the class objects generated 'randomly' let points = [] let pointsToTriangulate = new Map() function setup() { let canvas = createCanvas(400, 400); canvas.parent('canvasForHTML'); let width = 4...
true
ea2fa64e3f0bcc979664e27590b79006ee1fb29d
JavaScript
wayele/StockLiteracy
/client/src/components/StockList/index.js
UTF-8
6,789
2.515625
3
[ "MIT" ]
permissive
import React, { useState } from "react"; import { Col, ListGroup, ListGroupItem, Button, ButtonGroup, Row, Modal, ModalHeader, ModalBody, Container, Card } from "reactstrap"; import API from "../../utils/API"; import ScoreBadge from "../ScoreBadge"; import { Line } from "react-chartjs-2"; import "...
true
85f2f712b5b03a432614e20bff46e9d047f3d8d1
JavaScript
wi73b-praktisk-web/Hi-Fi-Christoffer-Saaby
/Hi-Fi/Frontend/Public/javascript/kontakt.js
UTF-8
2,827
2.859375
3
[ "MIT" ]
permissive
(() => { document.addEventListener('DOMContentLoaded', () => { document.querySelector('#send').addEventListener('click', () =>{ const form = document.querySelector('#kontakt'); //console.log(form); formular(form); }) }) })(); function formular(form) { var...
true
1b5de1ec17f87fcca08437a67c45025f8585db77
JavaScript
hasip-timurtas/speed-reading
/client/App/App.jsx
UTF-8
4,570
2.984375
3
[]
no_license
import React from 'react'; export default class App extends React.Component { constructor() { super(); this.state = { theText: "Bu uygulama ile okuma hızınız inanılmaz bir şekilde artacak. İlk başlarda çok hızlı olduğunu" + " düşüneceksiniz fakar ilerleyen zamanlarda bu duru...
true
405a7ec93d9a3eb03a485c429ac08a9038ee0315
JavaScript
EL-MehdiLoukach/piscine-js
/is-winner.js
UTF-8
1,623
3.09375
3
[]
no_license
function isWinner(country){ return new Promise(function (resolve, reject){ db.getWinner(country) .then((countryObject) =>{ if (countryObject.continent !== "Europe"){ resolve(countryObject.name + ' is not what we are looking for because of the continent') ...
true
e851af4d22f8abdc4423b368a2da462e543dbeb6
JavaScript
Jose-Sandoval/js-moduls
/js/objeto_responsive.js
UTF-8
487
2.5625
3
[]
no_license
const d= document, w = window; export default function responsiveMedia(id, mq,mobileContent, descktopContent) { let breakPoint = w.matchMedia(mq); const responsive = (e) =>{ if(e.matches){ d.getElementById(id).innerHTML = descktopContent; }else{ d.getElem...
true
b36090d3f8b76b15b7da781ba1e60d603892514e
JavaScript
shanielh/tvforecast
/src/tvforecast.js
UTF-8
1,264
2.609375
3
[]
no_license
var r = require('./src/request/main'); var qs = require('querystring') // Split the string by newline, and then by @ var paramsify = function(str, params) { var matches = str.split('\n'); var retVal = []; for (var matchIndex in matches) { var match = matches[matchIndex]; ...
true
038bb43a99c182906b3847463c418fff822e226f
JavaScript
longayj/iStream
/istream_web/src/redux/reducers/videoReducer.js
UTF-8
2,744
2.546875
3
[]
no_license
import { VIDEO_SET_VIDEO, VIDEO_UNSET_VIDEO, VIDEO_SET_CURRENT_BEST_STREAMING_LANGUAGE, VIDEO_SET_CURRENT_BEST_STREAMING_QUALITY, VIDEO_LIKE_VIDEO, VIDEO_ADD_COMMENT, VIDEO_SET_COMMENTS } from "../types" import Video from "../../models/Video"; const initialState = { video: new Video(),...
true
02a11dc1ebd30920710d8ac22b3d758693f3c9a4
JavaScript
MiguelSParada/Minute-Coding-JavaScript
/Class.js
UTF-8
246
2.703125
3
[]
no_license
<script> class Description { constructor(song, artist, year){ this.song = song; this.artist = artist; this.year = year; } } track1 = new Description("Krewella", "Lights and Thunder", 2014) console.log(track1) </script>
true
f4c0f338cdab4d25c65674b7b155edb23cb7fd49
JavaScript
blossom91/canvas-demo
/brick/js/ball.js
UTF-8
1,625
3.28125
3
[]
no_license
class Ball { constructor(img, x, y, w) { this.img = img this.x = x || 0 this.y = y || 0 this.w = img.width this.h = img.height this.canvasW = w this.speedX = 5 this.speedY = 5 this.isCarsh = false this.draw = false const canvas ...
true
3962a5571dea7fceea22e38e0f39dc1a708daac7
JavaScript
landiehan/coding-bootcamp-testimonials
/carousel.js
UTF-8
1,160
3.34375
3
[]
no_license
const carousel = document.querySelector("#carousel"); const slides = document.querySelectorAll(".slide"); const ctrls = document.createElement("ul"); let index = 0; // Create and add the buttons using JavaScript, // as they only work when JavaScript is available anyway. ctrls.className = "controls"; ctrls.innerHTML =...
true
896589ab35fa8646071252497cd230075551cbac
JavaScript
Aradhyabharti/fontmanupilatorfinal
/main.js
UTF-8
892
2.890625
3
[]
no_license
var nosex=0 var nosey=0 var difference=0 var rightwristx=0 var leftwristx=0 function setup(){ canvas=createCanvas(300,300) canvas.position(500,200) video=createCapture(VIDEO) video.size(300,300) posenet=ml5.poseNet(video, modelLoaded) posenet.on('pose',Gotposes) } function modelLoaded...
true
e494a7ee10c36a9dafe4c1ad0e5953a1ebcc915f
JavaScript
Euqinu/Node.js
/module.js
UTF-8
445
3.375
3
[]
no_license
var adder=function(a,b){ return `The sum of two number is ${a+b}`; } adder(5,6); var subtract= function(a,b){ return `The difference of two number is ${a-b}`; } subtract(10,5); var pi=3.142; /* module.exports.adder=adder; module.exports.subtract=subtract; module.exports.pi=pi; */ ...
true
cdb48bd1b6c0d8e4259b552900bf84e9bfe43566
JavaScript
Vikram-Cothur/MPac
/src/game/mouse.js
UTF-8
2,183
2.71875
3
[]
no_license
export default class Mouse { constructor(socket, gameContext, userid) { this.socket = socket this.latency = 50 this.pressed = false this.oldPos = [0, 0] this.pos = [0, 0] this.gameContext = gameContext this.userid = userid if (document.getElementById("...
true
760507334addbca85e82c146901a6c4a08201542
JavaScript
studyingbear/todolist
/src/image.js
UTF-8
249
2.953125
3
[]
no_license
const images = ["1.jpg", "2.jpg", "3.jpg"]; const imageNumber = Math.floor(Math.random() * 3); const imgTag = document.createElement("img"); imgTag.src = `./img/${images[imageNumber]}`; document.body.style.backgroundImage = `url(${imgTag.src})`;
true
739534c5da575270f821dc12fd15307ea43ac400
JavaScript
bsclifton/DragonWarriorJS
/js/combat.js
UTF-8
11,443
2.5625
3
[]
no_license
const config = require('./config') const map = require('./map_functions') const player = require('./player') const text = require('./text') const combat = { enemy_ptr: null, // current enemy player is fighting enemy_id: '', enemy_max_hp: 0, // randomized at start of battle enemy_current_hp: 0, enemy_spell_bl...
true
480e4edf3ad44d71144dd55f6006e0eba444142d
JavaScript
gennadiy1970/smell_ring
/js/fill.js
UTF-8
1,122
3.0625
3
[ "MIT" ]
permissive
const elemList = document.querySelector(".list"); function fillList(arr, parent) { parent.innerHTML = arr .filter((elem, i) => i < 10) .map( elem => ` <li class="list__item"> <div class="list__item--header"> <h3 class="list__brand">${elem.brand}</h3> <h4 class=...
true
38ede7d6585546b8c30bed053f3a674c3d40b85c
JavaScript
bip32JP/bitcore
/lib/transport/rpc.js
UTF-8
6,544
2.5625
3
[ "MIT" ]
permissive
'use strict'; var http = require('http'); var https = require('https'); /** * A JSON RPC client for bitcoind. An instances of RPC connects to a bitcoind * server and enables simple and batch RPC calls. * * @example * ```javascript * * var client = new RPC('user', 'pass'); * client.getInfo(function(err, info) ...
true
94395cf7216210ff34a07c9856612ca9be49cecf
JavaScript
lingyu0918/-
/public/m/js/detail.js
UTF-8
3,156
2.6875
3
[]
no_license
/* 获取传入的商品详细的id值 */ $(function () { //定义全局变量 存储数据 var data = null; var size = null; var num=1; //获取用户传入的id值 var id = getParamsUrl(location.search, 'id'); //根据商品的id获取商品的数据 $.ajax({ type: 'get', url: '/product/queryProductDetail', data: { id: id...
true
a944ef9d130d1f04826b4472b84bdddb7e2d4169
JavaScript
RogeCS/math-course-games
/src/components/course/Questionnaire1-1.jsx
UTF-8
3,274
2.8125
3
[ "MIT" ]
permissive
import React from "react"; import SectionDivider from "../dividers/SectionDivider.jsx"; import Table from "./Table.jsx"; import PrevNext from "./PrevNext.jsx"; var Latex = require("react-latex"); import "../../assets/styles/components/course-preview/Questionnaire.scss"; const Questionnaire1 = ({ prev, next, table1, t...
true
5e9c8899f5adac0c7ff455bef2e53d482c34736d
JavaScript
gcbpay/Bit3.0.9
/src/cli/commands/public-cmds/add-cmd.js
UTF-8
2,183
2.53125
3
[ "Apache-2.0" ]
permissive
/** @flow */ import chalk from 'chalk'; import path from 'path'; import Command from '../../command'; import { add } from '../../../api/consumer'; export default class Add extends Command { name = 'add <path...>'; description = 'add any subset of files to be tracked as a component(s)'; alias = 'a'; opts = [ ...
true
b2c9e1c85aeb0d8b52837b064d4dfde4060bbf97
JavaScript
antgonto/creditos
/FrontEnd/Mamba/js/AppJS/BancoGestionesPendientes.js
UTF-8
1,667
2.9375
3
[]
no_license
(function () { //Para obtener usuario activo "use strict"; let datosGastosUsuario = []; let codigoTrabjo; let datosGestion = []; function cargarDatos() { let url = "https://localhost:44308/api/GestionesPendientes"; fetch(url) .then((res) => res.json()) .then((data) => { const j...
true
afb2aca0dcf126799cde2e1146ae3935ce69993b
JavaScript
Gato-Gabriel/udemy-WebDevelopment
/arrays/052 - ForEach.js
UTF-8
1,360
4.5
4
[]
no_license
/* Comando 'forEach()' */ // Utilizado para se percorrer cada elemento de um array, sem realizar operações, apenas percorrer. { const aprovados = ['Agatha','Bernardo','Castro','Deide']; aprovados.forEach(function(elemento,indice){ // Aqui passo uma callback, chamada para cada interação no array co...
true
29acf844b4a52922a1cce6e55371fa3068d648cd
JavaScript
qwop/userscript
/monolith/41/126743.user.js
UTF-8
2,566
2.75
3
[]
no_license
// ==UserScript== // @name Urban Dead Script // @namespace TAXICAT // @description Adding UD functionality // @include http://*.urbandead.com/map.cgi* // @include http://urbandead.com/map.cgi* // ==/UserScript== function addCoordinates(){ var positions = document.getElementsByName("v"); va...
true
c4067a67b1558706fd5270b647cdb3e9da569609
JavaScript
CeydaSimsekPXL/web_scripting_project
/04_datastructures/oefening_05.js
UTF-8
437
3.96875
4
[]
no_license
// function function maakRij(min, max, stap = 1) { let rij = [min]; for (let i = (min + stap); ; i+=stap) { // hier kan niet gewerkt worden met een vergelijking omdat je kunt switchen tussen <= >= rij.push(i); if (i === max) { break; } } return rij; } // main conso...
true
a54f007207d1ba0e293f3946334e132fe71a583a
JavaScript
saidurgarao/game1
/layer-1.js
UTF-8
2,867
3.203125
3
[]
no_license
// coin grouping: var group3 = new Konva.Group({ x: 0, y: 0, }); layer.add(group3); // player coins: var circles = []; var coinWidth = 20; var circle_list = []; //LEFT COINS circles.push({x:width*(16/100),y:height*(47/100)}); circles.push({x:width*(16/100), y:height*(56/100)}); // UPER COINS circles.push({...
true
e2a85a833cb98ede1855a32acd17a444f17373da
JavaScript
tindoann/whatsdev_20_day_js_challenge
/day14_seekndestroy.js
UTF-8
518
4.375
4
[]
no_license
// You will provided with an initial array (the first argument in the destroyer function), // followed by one or more arguments. Remove all elements from the initial array that are // of the same value as these arguments. function destroyer(arr) { var args = Array.from(arguments); args.splice(0,1); var tar...
true
280433449b611ae0d0d845840eb146233a868704
JavaScript
Asgerrise/iplaymusic-Asger
/src/js/playlists.js
UTF-8
2,723
2.609375
3
[ "MIT" ]
permissive
import {searchBarFunction} from "../js/functions.js"; import {themeFunction} from "../js/functions.js"; import {goBackFunction} from "../js/functions.js"; import {whiteHeaderFunction} from "../js/functions.js"; import {createTracks} from "../js/functions.js"; searchBarFunction(); themeFunction(); whiteHeade...
true
67a575bbff76c4581a01cb7838b03b5d43296d74
JavaScript
cvdlab/hijson-builder
/test/test.js
UTF-8
9,115
2.9375
3
[ "MIT" ]
permissive
function main () { var project = new Project(); var plane_w = 22.5; var plane_h = 30; var area_w = 7.5; var area_h = 30; var room_w = 7.5; var room_h = 3.75; var bath_w = 3; var bath_h = 1.875; var corridor_w = 7.5; var d_offset = 0.4375; var level = project.create_level({ width: plane_w, hei...
true
b6849e9b5c39171c8decc5281393a2a6163437a1
JavaScript
NavotSlavin/timeEntry-Server
/api/handlers/timeEntryHandler.js
UTF-8
712
2.671875
3
[]
no_license
let mongoose = require('mongoose'); let TimeEntry = require('../../db/models/timeEntryModel.js'); function getTimeEntries(userId, callback){ TimeEntry.find({ userId : userId }, (err, timeEntries) => { if (err) callback(new Error("couldn't get time entries.")); else { callback(null, timeEntries...
true
00bccd2cd789352269903b9ab4261d32ff36d4b5
JavaScript
pmav/picbit
/tests/distances2.js
UTF-8
955
3.53125
4
[ "MIT" ]
permissive
var manhattanDistance = function(p1, p2) { return Math.abs(p1[0] - p2[0]) + Math.abs(p1[1] - p2[1]) + Math.abs(p1[2] - p2[2]); }; var canberraDistance = function(p1, p2) { return (Math.abs(p1[0] - p2[0]) / (p1[0] + p2[0])) + (Math.abs(p1[1] - p2[1]) / (p1[1] + p2[1])) + (Math.abs(p1[2] -...
true
328b144cabaaf39ac24566d29d18261281877016
JavaScript
bryceremick/flyx-server
/api/middleware/check-auth.js
UTF-8
603
2.5625
3
[]
no_license
const AUTH = require('../services/firebaseConnection').getFirebaseAuth; const apiRes = require("../helpers/apiResponse"); // authorization middleware that verifies a JWT using google AUTH module.exports = async (req, res, next) => { try { const ID_TOKEN = req.header('authorization'); await AUTH() .veri...
true
5ca77699e3a19283e2d191a40c87d7ca7505e6cc
JavaScript
DanyaAlfageh/project-4-express
/lib/s3UploadApi.js
UTF-8
1,481
2.78125
3
[]
no_license
// Pulling in the aws software developer kit npm package. const AWS = require('aws-sdk') // Loading our environment variable from our .env file. // Amazon docs specified that the access keys would be used automatically. require('dotenv').config() // Creating an S3 instance through the AWS SDK library. const config = ...
true
6f7dc62f35eff4c74c110eee69b0d8d2f8233e4d
JavaScript
boizz/tablestore
/lib/core/row.js
UTF-8
4,178
2.515625
3
[ "MIT" ]
permissive
const TableStore = require('tablestore'); const { EXPECT_NOT_EXIST, IGNORE } = require('../const/rowExistenceExpectation'); const { Primarykey } = require('../const/returnType'); const { JSON2COLUMN, JSON2ROW, TRANSFORM_RETURN } = require('../utils/dataTransform'); class Row { constructor(client, tables) { this....
true
6076400fce308dc1f0920772ebf5e68b353b65ef
JavaScript
khattakdev/nodejs-cli
/index.js
UTF-8
1,043
2.640625
3
[]
no_license
#!/usr/bin/env node const readline = require("readline"); const Table = require("cli-table"); const { apiCall } = require("./utils"); const rl = readline.createInterface({ input: process.stdin, output: process.stdout, }); rl.question("What's your GitHub Handle?", async function (answer) { var profileInfo = awai...
true
8d23c3fa4280d9b2482f3c610f19e6596368d8d9
JavaScript
sportsjay/EE4717
/week6/CaseStudy_3/menu.js
UTF-8
1,455
3.359375
3
[]
no_license
window.document.addEventListener("DOMContentLoaded", function (event) { // init onChangeQty("regular-blend"); onChangeQty("house-blend"); onChangeQty("ice-cappuccino"); }); function processTotalPrice() { const regularBlendPrice = document.getElementById("regular-blend-subtotal-price")?.value ?? 0; cons...
true
ee635cd56e3eadd485afc7df03cd1359f0ae8420
JavaScript
marciopocebon/javascript-exemplos
/textbox/textbox-v1.0.js
UTF-8
474
2.96875
3
[]
no_license
document.getElementById("btnSubmit").onclick = function() { var txtAutor = document.getElementById("author"); var txtEmail = document.getElementById("email"); var txtPass = document.getElementById("pass"); var txtComents = document.getElementById("text"); console.log(txtAutor.value); co...
true
c46b0a475de22b9441b22d88195701e74c80fe3f
JavaScript
Shangria/Hillel
/HW-27/HW-27.js
UTF-8
3,509
3.390625
3
[]
no_license
// hw 27 (function () { // hw 27.1 (function () { let request = new XMLHttpRequest(); request.open('get', 'http://async-demo.herokuapp.com/unstable?maxRandom=20&prob=50'); request.onload = function () { if (request.status >= 200 && request.status < 300) { for...
true
627aa3b6c70a94bbe00551783d48b47425d0e6e6
JavaScript
Lyin-y/sky_test
/js/echartData.js
UTF-8
4,244
2.640625
3
[]
no_license
$(document).ready(function () { console.log("123"); var line = document.getElementById("line"); // 初始化加载对象LineData var LineData = echarts.init(line); //未获取数据前,显示loading加载动画 LineData.showLoading(); var Round = document.getElementById("round"); var RoundData = echarts.init(Round); RoundData.showLoading(...
true
e1136f627b8346fa0d0c26cd8a5cd07755410d24
JavaScript
tokushima-sogo/tokushima-sogo
/assets/js/quiz.js
UTF-8
42,535
2.625
3
[]
no_license
//【残り工程】 /* →阿波度のコメントをどうするか */ //スマホの画面直したとき,画面のみ再リロードさせる。 // const PATH = "http://localhost/wp-content/themes/sogo/"; phpの中でパスをGETしている。 //canvas設定 const CANVAS = document.getElementById("canvas"); const CTX = CANVAS.getContext("2d"); //const HEADER = document.getElementById("header_size"); //運用時のキャンバスの大きさ CANVAS.wid...
true
5478c43059678f2b9bbd17fc90d7e4320c865081
JavaScript
manbrk/simpletodojs
/app.js
UTF-8
1,205
3.125
3
[]
no_license
function get(element) { return document.getElementById(element); } var ul = get('list'); var add = get('add'); var removeAll = get('removeAll'); add.onclick = function() { addLi(ul); }; function addLi(targetUl) { var inputText = get('text').value; var textNode = document.createTextNode(inputText); ...
true
73cc7bec103a79b502e076f3600ec0b4ddcc8c0e
JavaScript
stianwestvig/css-grid-concept
/src/utils/api.js
UTF-8
957
2.59375
3
[]
no_license
import storageFactory from '@/utils/storage-factory.js' const storage = storageFactory(() => localStorage) const prefix = 'concept' const activityType = 'activity' const encode = (item) => JSON.stringify(item) const decode = (string) => { const object = JSON.parse(string) if (object && object.hasOwnProperty('crea...
true
9a00001de79cb0970c79d0e277578f8321954a82
JavaScript
cameronbot/lyneage
/app/assets/javascripts/drawTree.js
UTF-8
5,155
2.65625
3
[]
no_license
function drawTree(treeData) { console.log("drawTree", treeData); // Clear old svg canvas d3.select("svg").remove(); var margin = {top: 0, right: 320, bottom: 0, left: 0}; var width = $("body").width() - 100, height = 500, treePadY = 60; // Create a svg canvas var vis = d3.select("body").appen...
true
597dccb50b067e1d1ec211f1b0bcdc263bb46ae6
JavaScript
vvsuperman/findfool
/src/main/webapp/resource/js/directive/countbutton.js
UTF-8
1,268
2.59375
3
[]
no_license
//倒计时按钮 OJApp.directive('countbutton', function() { return { restrict: 'AE', scope:true, link: function(scope, elem, attrs) { var wait = 120; elem.click(function(){ if(typeof(scope.mobile) == "undefined" || scope.mobile ==""){ scope.$emit("mobileError", "手机号不得为空"); return false; }else...
true
23f5d3b7ec90968a09440d33d235debe391c4360
JavaScript
hugtechio/alexa-skill-demo-ramen-timer
/lambda/timer.js
UTF-8
6,428
2.671875
3
[ "Apache-2.0" ]
permissive
const TIMERS_PERMISSION = 'alexa::alerts:timers:skill:readwrite' /** * Slot と Timer セット 時間のマップテーブル(単位:分) */ const timerConfig = { noodle: { 'ラ王': 3, 'どん兵衛': 5 }, softy: { 'かため': -1, 'やわらかめ': 1 } } /** * duration の文字列形式 ISO8601 継続期間にコンバートする * @param {*} noodleName カ...
true
c5580fee2f123a3a6da1d2185952c2400b693736
JavaScript
brytlao/Coding-Challenges
/CC111_AnimatedSprites/sprite.js
UTF-8
923
2.828125
3
[]
no_license
class Sprite { constructor(animation, x, animSize) { this.animation = animation; this.x = x; this.animSize = animSize; this.speed = 1 - animSize; this.y = height + this.normAnimSize(); this.len = this.animation.length; this.index = 0; } show() { let index = floor(this.index) % thi...
true
be055469cdf3b956c68bb5759076841efa7e3d34
JavaScript
Juless89/qienjuliansander
/js/bitstamp.js
UTF-8
1,035
2.671875
3
[]
no_license
function messageHandler(event) { self.postMessage("Received: " + event.data); } self.addEventListener("message", messageHandler, false); const socket = new WebSocket('wss://ws.bitstamp.net') socket.onopen = function() { console.log ("Connection to server now open"); let message = { event: "bts:s...
true
4aed6c5b842410ebfaa787172730cc282e2407fa
JavaScript
Jafar36/myCV
/js/main.js
UTF-8
837
2.890625
3
[]
no_license
let scrollButton = document.getElementById('toTop'); // Коли сторінка проскролена вниз на 100 пікселів - кнопка "Вгору" стає видимою window.onscroll = function() {scrollFunction()}; function scrollFunction() { if (document.body.scrollTop > 100 || document.documentElement.scrollTop > 100) { scrollBu...
true
c808a95a07a4dfaab9ac7d74fd2c6ca940890342
JavaScript
Bill70058/LeetCode
/66.plus-one/66.plus-one.js
UTF-8
428
3.375
3
[]
no_license
/** * @param {number[]} digits * @return {number[]} */ var plusOne = function(digits) { digits[digits.length-1] = digits[digits.length-1]+1; for(let i = digits.length-1; i > 0; i--){ if(digits[i] === 10){ digits[i-1] += 1; digits[i] = 0; } } if(digits[0] === 10...
true
3f36436ca76c49c3cde6bbdb0725b4142c11507d
JavaScript
JRBotta/DMTool
/db/spellConverter.js
UTF-8
1,863
2.859375
3
[]
no_license
const fs = require('fs'); var stringify = require('json-stable-stringify'); var requiredProperties = [ "user_id", "name", "description", "range", "components", "material", "ritual", "duration", "concentration", "casting_time", "level", "school", "classes", "higher_lvl" ]; fs.readFile('spells.json', (err, data) =>...
true
3c8246c52dfb508b0a037582db44c9eb70ca6b4f
JavaScript
samyk/webgldoom
/scripts/wadLoader_heightmap.js
UTF-8
4,571
2.6875
3
[]
no_license
// // Height map generation --------------------------------------------------------------------------- // wadLoader.heightmapDrawSpan=function(s,e,y,height){ var xdiff=e-s; if(xdiff==0) return; var f=0; var fstep=1/xdiff; // Set some pixels! for(var x=s;x<e;x++){ this.wad.heightmap.data[x][y]=height; f+=...
true
883c52a61ead96e4e37328dbd7fe844aae44bd1c
JavaScript
Ezla/PVenta
/static/js/product/product-ajax.js
UTF-8
14,925
2.578125
3
[ "MIT" ]
permissive
var id_product = null; var method = null; var url = null; var type_form = null; var data = {}; /** * Llama el metodo click asociado al botono de agregar producto. */ function keyOpenModalProduct() { $('#btnAddProduct').click(); } /** * Llama el metodo click asociado al botono de agregar marca. */ function key...
true
e6464113b24e2a0f1a9afea1f5034c4973e78947
JavaScript
DevelopmentHero/vDesk
/Client/Lib/vDesk/Archive/Downloader.js
UTF-8
2,198
2.671875
3
[ "MS-PL" ]
permissive
"use strict"; /** * Initializes a new instance of the Downloader class. * @class Provides functionality for downloading files from the server. * @memberOf vDesk.Archive * @author Kerry <DevelopmentHero@gmail.com> * @version 1.0.0. * @todo Make singleton. */ vDesk.Archive.Downloader = function() { /** *...
true
0a84077b40ae861e72ce72243bfa245bb27a42dc
JavaScript
maks8686/todo-react
/src/App.js
UTF-8
1,355
2.59375
3
[]
no_license
import React from "react"; import Title from "./components/Title/Title"; import Input from "./components/Input/Input"; import Task from "./components/Task/Task"; import { useState } from "react"; import { nanoid } from "nanoid"; import { StyledApp } from "./App.styles"; export function App() { const [todos, setTodos...
true
360aaec469f80f931caedcd9cd84fdf1bc04c0b2
JavaScript
owohai/cookie
/commands/say.js
UTF-8
471
2.640625
3
[ "Unlicense" ]
permissive
const Discord = require("discord.js") const config = require('./config.json'); exports.run = (client, message, args) => { const embed = new Discord.RichEmbed() .setColor(0x00AE86) .setDescription(args.join(" ")) .setFooter(`Message created by ${message.author.username} | Cookie v${config.version...
true
6f62acebd35f7523ba0fafe26f63f1426f1f4920
JavaScript
vboiko/kottans_tasks
/learnyounode/program.js
UTF-8
3,914
2.703125
3
[]
no_license
// console.log("HELLO WORLD") // var num = 0 // for (var i = 2; i < process.argv.length; i++) { // num += parseInt(process.argv[i]) // } // console.log(num); // var fs = require('fs') // var buf = fs.readFileSync(process.argv[2]) // var str = buf.toString().split('\n').length - 1; // console.log(str) // var f...
true
59867cf334b4dd7b0e0c1e588e7f52758af39d11
JavaScript
prioarief/TypeScript-Basic-From-Scratch
/build/function.js
UTF-8
710
3.90625
4
[]
no_license
"use strict"; function getName(name) { // param string, return string return name; } function NoReturn() { console.log("okeeee"); // return 'a' error if return, bcs void cant return } NoReturn(); console.log(getName("prio")); const AddNumber = (val1, val2) => { return val1 + val2; }; console.log(Add...
true
c3d68df7952833542bca6f1a473f5498a48c0430
JavaScript
kelvingraddick/DOCme-app
/store.js
UTF-8
1,014
2.578125
3
[]
no_license
import { combineReducers, createStore } from 'redux'; import Actions from './Constants/Actions'; const initialState = { token: null, patient: null, doctor: null, appointments: [] }; function setToken(state = initialState.token, action) { if (action.type == Actions.SET_TOKEN) { return action.token; } ...
true
0d28fd5e46c764354618b77442556ac224f13fd2
JavaScript
Shannon-ewingsudds/fsw-105
/constructorFunctions.js
UTF-8
1,647
4.8125
5
[]
no_license
/*You are to create a collection of employee's information for your company. Each employee has the following attributes: Name Job title Salary Status First, you will create an array named employees. Next, you will create an Employee constructor with the first three attributes defined at the time of i...
true
9d8dea2f059f2a1dc635aba02b6c910914bd9323
JavaScript
cjtiberiu/chat-app
/client/src/services/authService.js
UTF-8
1,543
2.671875
3
[]
no_license
import API from './api'; const authService = { login(data) { return API.post('/login', data) .then(res => { setHeadersAndStorage(res.data) // returning the response for redux store use return res; }) .catch(err => { ...
true
aacaf0367bc08b0c08e0fe878dca4e50aa80db02
JavaScript
AbdullahGumi/fullstackOpen
/part7/bloglist-frontend/src/reducers/userReducer.js
UTF-8
709
2.859375
3
[]
no_license
const initialState = { user: null, username: '', password: '' } const userReducer = (state = initialState, action) => { switch (action.type) { case 'SET_USER': return { ...state, user: action.payload } case 'SET_USERNAME': return { ...state, username: action.payload } case 'SET_PA...
true
933ad78ae1716593c7431fc0ae2b06338d108a0d
JavaScript
jsotoca/reniec
/app.js
UTF-8
589
2.8125
3
[]
no_license
$("#formulario").submit(function(e){ e.preventDefault(); const dato = {dni: document.getElementById('dni').value}; $.post( 'consulta_reniec.php', dato, function(respuesta){ var output = JSON.parse(respuesta); document.getElementById('cui').value = output.cui; ...
true
c7848d03f16a4c14fd89927a011fe711559c00da
JavaScript
jonathanw82/thehoneycombAM
/hives/static/hives/js/hives.js
UTF-8
886
2.734375
3
[]
no_license
"use strict"; function secondWarning(){ document.getElementById('firstWarning').style.display = "None"; document.getElementById('secondary-confirm').innerHTML = `This can not be undone! To Permanently delete this hive please press Delete <br> <input class="btn btn-danger confirmBut" ...
true
5668f6b866424d18df176b37f6aa288e1c986967
JavaScript
auderichon/coolest-simon
/js/game.js
UTF-8
16,146
2.78125
3
[]
no_license
//--------- music arrays -------// const cartoonSounds = [ "../sounds/cartoons/booing.mp3", // topLeft "../sounds/cartoons/kiss.mp3", // topRight "../sounds/cartoons/pop.mp3", // bottomLeft "../sounds/cartoons/flicks.mp3", // bottomRight "../sounds/cartoons/bounce.mp3", // topMiddle "../sounds/cartoons/swoo...
true
d0e2b2e3df861c7f3d0e653fc65725de0cb10f9d
JavaScript
ChinsenMR/mini
/小程序/pages/store/store.js
UTF-8
6,359
2.546875
3
[]
no_license
// pages/MemberStores/MemberStores.js var util = require('../../utils/util.js') //是不是这个页面 路径没错 Page({ /** * 页面的初始数据 */ data: { tabIndex: 0, memberList: {}, memberDetailList: {}, page: 1, arr: [], timeA: 'desc', memberA: 'desc', saleA: 'desc', sort: 'desc', index: 'c...
true
37efe37976c803224d435e6b5b6a03b9319b534b
JavaScript
NonXtreme/N-Body-simulation
/js/BNTree.js
UTF-8
6,124
3.109375
3
[]
no_license
// Instruction by https://www.cs.princeton.edu/courses/archive/fall03/cs126/assignments/barnes-hut.html const MAXDEPTH = 50; const theta = 0.5; const epsilon2 = Math.pow(3, 2); //parameter for softening the gravity to mitigate singularity problem(velocity go to infinity when distance go to zero) class BNTree { con...
true
ceae3c735f90a60ef21a28845dc54037d46a25d3
JavaScript
imkathir/AlgorithmsAndDataStructuresInAction
/JavaScript/src/dway_heap/dway_heap.js
UTF-8
19,882
3.203125
3
[ "MIT" ]
permissive
const _branchFactor = new WeakMap(); const _elements = new WeakMap(); const _positions = new WeakMap(); const _compare = new WeakMap(); const _bubbleUp = new WeakMap(); const _pushDown = new WeakMap(); const _setElementToPosition = new WeakMap(); const _removeElementFromPosition = new WeakMap(); const _getElementPositi...
true
5b69e96f5646cd53ecc2a337699c4e8b645cab06
JavaScript
franjoro/Solutec
/js/inventarioM.js
UTF-8
1,476
2.75
3
[]
no_license
const start = moment().subtract(29, "days"), end = moment(); //TABLA const tablaMovimientos = async (start, end) => { const query = await $.ajax({ url: `php/inventario/movimientos.php?start=${start}&end=${end}`, }); $("#PTable").html(query); $("#dataTable").DataTable({ dom: 'Bfrtip'...
true
4ceed6f831abfbcaf04c707f5598ca0e26ded94b
JavaScript
nixondc93/js-control-flow-training
/starter-code/security_questions.js
UTF-8
543
3.140625
3
[]
no_license
console.log("security_questions.js loaded"); var securityQuestions = [{ question: "What's your hometown?", expectedAnswer: "Boone", },{ question: "What was your first pet's name?", expectedAnswer: "FlufferNutter" },{ question: "What Highschool did you attend?", expectedAnswer: "Ashe County High" } ]; for(va...
true
a1049bcb03739eb0eafef7d9bbe6d55145e98844
JavaScript
alalbuquerque22/lawd-project
/web/js/desconto.js
UTF-8
1,291
2.59375
3
[]
no_license
$("document").ready(function () { //apos o loaddapagina carregaSelecaoDeCategoria(); function carregaSelecaoDeCategoria() { $.ajax({ // url o recurso no servidor url: "ControleProduto", type: 'GET', // tipoderetorno dataType: "json", ...
true
844a3a3a3dc9adac2d2485e5e3219204bc6b7480
JavaScript
Youssefa99/Social-Media
/sign-up.js
UTF-8
323
2.734375
3
[]
no_license
function validate(){ button = document.getElementById("log-in"); email = document.getElementById("email").value; username = document.getElementById("username").value; pwd = document.getElementById("pwd").value; if(email !== "" && pwd !== "" && username !== ""){ button.disabled = false; }...
true
359f502dd8ee8c9963ae14581d3ed2f36207da2d
JavaScript
Lorena-Ciobanu/Terrain-Generation-WebGL
/world-builder.js
UTF-8
20,443
2.796875
3
[]
no_license
/*jslint white: true */ "use strict"; /* GUIData class - used to store and update changes to the params through the gui */ class GUIData { constructor(){ /* Terrain Details */ this.terrainSize = 2048; // must be power of 2 this.terrainDetail = 6; this.terra...
true
53670c00893e4c8446ff0bfbcacdf94fe7e95420
JavaScript
nahuely/fullstack-tps
/node/tps/pasarAMayusculas.js
UTF-8
810
2.84375
3
[]
no_license
"use strict"; var fs = require("fs"); var origin = process.argv[2]; var originWithNoExtension = origin.slice(0, origin.indexOf('.')); var extension = origin.slice(origin.indexOf('.')); var path = process.cwd() + "/"; if(!origin) { console.log("Tiene que especificar un origen\nEjemplo de uso: node pasarAMayusculas.js...
true
78b10ffeb9da2d6222bb26ff234c872d9093e2f3
JavaScript
maru25-alt/myCart
/script.js
UTF-8
3,601
3.296875
3
[]
no_license
var carts = [ // { // id: 1230, // title: "Title", // description: "Lorem ipsum dolor sit amet consectetur adipisicing elit. Pariatur amet blanditiis consectetur quas doloribus sunt, impedit est dolores aut et. ", // price: 10 // } ] const cartContainer = document.querySelector...
true