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
36ea5be018266dc57e536bbbdfeebbaacf0325e4
JavaScript
PhilipLin/ServerEx
/client.js
UTF-8
938
2.625
3
[]
no_license
var net = require('net'); var readline = require('readline'); var HOST = '54.213.69.170'; var PORT = 6969; var client = new net.Socket(); var loginname='' var roomname=''; var rl = readline.createInterface({ input: process.stdin, output: process.stdout }); var StringDecoder = require('string_decoder').StringDec...
true
6afb66ff29e7e256539bcf06101647d2fc17ed48
JavaScript
itcig/twilio-contact-center
/controllers/taskrouter.js
UTF-8
2,304
2.578125
3
[ "MIT" ]
permissive
const Twilio = require('twilio') const client = new Twilio( process.env.TWILIO_ACCOUNT_SID, process.env.TWILIO_AUTH_TOKEN) module.exports.getWorkspace = function (req, res) { client.taskrouter.workspaces(process.env.TWILIO_WORKSPACE_SID).fetch() .then(workspace => { let payload = { sid: workspace.sid, ...
true
deab241aa5f62b02d1e59d9efe51c84094a3bf16
JavaScript
Ibrahim-Motani/user-auth-dct
/src/components/Account.js
UTF-8
722
2.71875
3
[]
no_license
import React,{useState, useEffect} from 'react'; import axios from 'axios'; function Account() { const [user, setUser] = useState({}); useEffect(() => { axios.get('http://dct-user-auth.herokuapp.com/users/account', { headers: { 'x-auth' : localStorage.getItem('token') ...
true
faf45a3cd0994f4c2d4fbef7cd056df7b75c25e7
JavaScript
estherkimyunjung/LeetCode-Interview-Prep
/march_2021/695_MaxAreaOfIsland.js
UTF-8
1,003
3.328125
3
[ "MIT" ]
permissive
const maxAreaOfIsland = (grid) => { let maxArea = 0; let area = 0; let findArea = (i, j) => { if ( i < 0 || j < 0 || i > grid.length - 1 || j > grid[0].length - 1 || grid[i][j] === 0 ) return; area++; grid[i][j] = 0; findArea(i, j + 1); findArea(i + 1,...
true
c7f5ed3a3dc678d4acc4396d07ac4c4439b8b098
JavaScript
daisea3e1203/kotobanisawaru-qrservice
/main.js
UTF-8
661
2.703125
3
[]
no_license
function Generate() { // Get target Elements. let input; let twitterid = document.getElementById("input-area-twitter"); let instagramid = document.getElementById("input-area-instagram"); let selfin = document.getElementById("input-area-self"); let output = document.getElementById("input-val"); let qrView ...
true
4be6012c0a39a389f6ca24aadbb277951327ca50
JavaScript
kenankomah/Website
/games/colourmatch/scripts/slide.js
UTF-8
988
3.15625
3
[]
no_license
var n = 0; var m = 0; var open = false; var open1 = false; $(document).ready(function(){ $("#flip").click(function(){ if(!open){ $("#panel").slideDown("fast"); open = true; if(open1){ $("#panel1").slideUp("fast"); open1 = false; info(); } }else if(open){ $("#panel").slideUp(...
true
efdf1accf8aca67e8c07165e9b1aea43eb3e1067
JavaScript
vfarah-if/monitor-frontend
/src/Components/BritishDate/britishDate.test.js
UTF-8
9,417
2.75
3
[]
no_license
import React from "react"; import BritishDate from "."; import { mount } from "enzyme"; describe("<BritishDate>", () => { let onChangeSpy = jest.fn(); it("Given no value", () => { let wrapper = mount(<BritishDate onChange={onChangeSpy}/>); expect(wrapper.find("input").at(0).props().value).toEqual(""); ...
true
452eb168a7e9d14336b2e36007e40291ce047a3e
JavaScript
voducminh1402/FurnitureProject
/js/menu-button.js
UTF-8
1,492
2.515625
3
[]
no_license
function menuFunction() { var x = document.getElementById("menu-main"); x.style.transform = "translateX(-200%)" if (x.style.opacity === "0") { x.style.transform = "translateX(0%)"; x.style.opacity = "1"; x.style.transition = "ease-in 0.3s"; x.style.zIndex = "1000"; } else { ...
true
09e6c1b29062521a1d48fc01e2c92b13fa3b5acf
JavaScript
rulerpe/pinterestclone
/client/app/posts/posts.service.js
UTF-8
1,092
2.515625
3
[]
no_license
'use strict'; angular.module('pinterestCloneApp') .factory('posts', function ($http,$location) { // AngularJS will instantiate a singleton by calling "new" on this function var posts = { allposts: [], allMyPosts: [] }; posts.getAllPosts = function(){ posts.allposts = []; return $...
true
632ead8104e3f82825b354312fef6090f4ca2f68
JavaScript
valkirijya/valkirijya.github.io
/scripts/paints.js
UTF-8
911
2.875
3
[]
no_license
let butRight = document.querySelector(".right"); let butLeft = document.querySelector(".left"); let mainFoto = document.querySelector(".fild > div > img"); let mas = [ "images/paint/0.jfif", "images/paint/1.jfif", "images/paint/2.jfif", "images/paint/3.jfif", "images/paint/4.jfif" ]; let current = 0; const s...
true
4eed829e723df5e0d51784ba0148cbe5d396ea0e
JavaScript
YingchunLi/todolist
/ui/src/action-utils.js
UTF-8
1,817
2.8125
3
[ "MIT" ]
permissive
// common async action creator export const fetchAsync = (requestURL, requestSettings, state, env=process.env.NODE_ENV) => { const init = Object.assign({}, requestSettings); // do not do real fetch in test environment if (env === 't...
true
10b2b2b48712d94b0a5ca7aa85918775b34f8964
JavaScript
kkowalczykk/todo-app
/src/components/AddTask.js
UTF-8
1,794
2.703125
3
[]
no_license
import React, { Component } from 'react'; class AddTask extends Component { state = { value: '', checked: false, date: new Date().toISOString().slice(0, 10), } handleSubmit = () => { const { value, checked, date } = this.state; const add =...
true
9fa3ca8e15da760ba3b79d94296e5834114d3420
JavaScript
borys-art/Contrasena
/static/js/index.js
UTF-8
4,165
2.75
3
[]
no_license
//https://www.eclipse.org/paho/clients/js/ function LED1_On() { //alert("led on"); console.log("led1 on"); //document.getElementById("sensor1").innerHTML="led on"; message = new Paho.MQTT.Message("ON_led1"); message.destinationName = "luisrod-234@hotmail.com/test1"; client.send(message); } ...
true
e266502e7c5b2ee8603115f1a1df34f2d8f254c5
JavaScript
farhad85/full-stack-open-2020
/part1/unicafe/1.7 step2/index.js
UTF-8
1,039
3.234375
3
[]
no_license
import React, { useState } from 'react'; import ReactDOM from 'react-dom'; const score = { good: 1, neutral: 0, bad: -1, }; const App = () => { // save clicks of each button to its own state const [good, setGood] = useState(0); const [neutral, setNeutral] = useState(0); const [bad, setBad] = useState(0)...
true
f9d6f7e850a5a55dbcd8a73886d161fe2c8ea51e
JavaScript
belodpav/shri-2018__homework_task_03
/src/decorators/decorators.js
UTF-8
451
2.53125
3
[]
no_license
/** * Декоратор для Context элемента Canvas * Добавляем режим наложения с красным цветом * @param {*} ctx * @param {*} width * @param {*} height */ function redFilter(ctx, width, height) { ctx.globalCompositeOperation = 'multiply'; ctx.fillStyle = 'rgb(255,0,0)'; ctx.beginPath(); ctx.rect(0, 0, wi...
true
9b552254a95292a75aea0f2ea34ee9936a05c814
JavaScript
ekiira/My-BuidforSDG-Assessment
/src/impact.js
UTF-8
1,499
2.703125
3
[ "MIT" ]
permissive
const getImpact = (impactData) => { let durationPeriod = ''; if (impactData.periodType === 'days') { durationPeriod = impactData.timeToElapse; } else if (impactData.periodType === 'weeks') { durationPeriod = Math.trunc((impactData.timeToElapse * 7)); } else if (impactData.periodType === 'months') { ...
true
0d32b013adf99c5b09f28ec0b9a6f441ce8abbc7
JavaScript
SlavkoN12/BasicJS-02-02
/exercise03/app/app.js
UTF-8
1,004
3.3125
3
[]
no_license
let fName = document.getElementById('fname'); let lName = document.getElementById('lname'); let phoneNum = document.getElementById('phone'); let SaveBtn = document.getElementById('saveBtn'); let tableBody = document.getElementById('tbody') tableBody function Contact(firstName, lastName, phoneNumber) { this...
true
db955b85f8dafcd8d395e345c1ba1eefd3f1f691
JavaScript
vladkondakov/distance-between-polygons
/controllers/index.js
UTF-8
8,606
2.6875
3
[]
no_license
const Point = require('../model'); const path = require('path') const fs = require('fs'); const p = path.join( path.dirname(require.main.filename), 'data', 'polygons.json' ) const p1 = path.join( path.dirname(require.main.filename), 'data', 'minksum.json' ) const getUploadPage = (req, res) =>...
true
e6bdfee77916093524d5f3b5cd70bf77ce5ab311
JavaScript
msliid/vue-ddw
/src/lib/cart/index.js
UTF-8
2,909
2.8125
3
[]
no_license
function Cart(){// 购物车 this.storage=null; this.take=function(){// 取出数据 this.storage=window.localStorage.getItem("CART"); if(!this.storage){ this.storage=[]; }else{ this.storage=JSON.parse(this.storage); } } this.save=function(){// 存储数据 wind...
true
b0a0d9f8b41ff6e4a03bd0e7370e81b2b0f60d18
JavaScript
Nagashree01/birthday-palindrome
/app.js
UTF-8
4,179
3.390625
3
[]
no_license
function reverseStr(str) { var listOfChars = str.split(""); var reverseListOfChars = listOfChars.reverse(); var reverseStr = reverseListOfChars.join(""); return reverseStr; } function isPalindrome(date) { var reverseDate = reverseStr(date) if (date === reverseDate) { return true; ...
true
f767db402c89e62680ff48e36997c9fcaf16d994
JavaScript
GAVISHSETHI/My_Cards
/cards/src/components/likes-counter.jsx
UTF-8
913
2.59375
3
[]
no_license
import React, { Component } from 'react'; import { Button } from 'semantic-ui-react'; import 'semantic-ui-css/semantic.min.css'; class Wrapper extends Component { constructor() { super(); this.state = {val: 0} }; update = (event) => { if(this.state.val === 1){ this.red...
true
ad3ddd20e83d889b850c6303533fc9aed761ab8a
JavaScript
Kanex666/kb2abot
/main/deploy/schemas/Game.js
UTF-8
721
2.609375
3
[ "MIT" ]
permissive
const Schema = require('./Schema'); module.exports = class Game extends Schema { constructor(options) { super(options); const { name = 'undefined game', masterID, // unique threadID, // unique param = '', isGroup = false, participants = [masterID] } = options; this.name = name; this.master...
true
bb77adb95e479700d8d81a4fbec4d681cc4fd5db
JavaScript
Rus109/Raghav_Mern_Project
/routes/api/setting/productSubCategory.js
UTF-8
1,978
2.546875
3
[]
no_license
const express = require("express"); const router = express.Router(); const ProductSubCategory = require("../../../models/Settings/ProductSubCategory"); //Create ProductSubCategory router.post("/add", (req, res) => { const newProductSubCategory = new ProductSubCategory({ subcategory: req.body.subcategory, pa...
true
5fd303e83f54599a3bdc9bb10cd4f22d93e05eed
JavaScript
Sshn09/projet-vo
/projetvo/src/js.js
UTF-8
984
3.15625
3
[]
no_license
let city = [ { title: "Paris", photo: "./paris.jpeg", content: "lorem pour ça", alt: "paris", like: false }, { title: "NY", photo: "https://cdn.getyourguide.com/img/location/533597d7653a9.jpeg/88.jpg", content: "lorem pour ça...", like: "thumb_up", alt: "N...
true
9cd8c3c80888b120ac8763d73fdb5566dacc986c
JavaScript
danielOuattara/danielOuattara_05_21-10-2020
/frontend/javaScript/panier_validerFormulaire.js
UTF-8
742
2.71875
3
[]
no_license
//-------------------------------------------------------------------------------- export function validerFormulaireCommande() { let form = document.querySelector('.needs-validation'); form.addEventListener('submit', function(event) { if (!form.checkValidity()) { event.preventDefault(...
true
3158510d290ce78acefd791768e80345da7a4caa
JavaScript
summyer/common-source
/js/js-high/js/js007.js
UTF-8
661
3.421875
3
[ "MIT" ]
permissive
/* console.log(foo); function foo(){ console.log("foo"); } var foo = 1; console.log(foo);*/ /* console.log(foo); function foo(){ console.log("foo"); } function foo(){ console.log("foo change"); } var foo = 1; console.log(foo);*/ /*function foo() { console.log(a); a = 1; } foo(); function bar...
true
f3be78f89f09dab049c28c8198e3d6a7d5c16523
JavaScript
zmbslyr/S.P.A.C.E.
/js/game.js
UTF-8
10,615
2.734375
3
[ "Apache-2.0", "MIT" ]
permissive
var config = { type: Phaser.AUTO, width: 1120, height: 640, physics: { default: 'arcade' }, scene: { preload: preload, create: create, update: update }, audio: { disableWebAudio: true, noAudio: false } }; // width and height variables var w = 1120; var h = 640; /* Global vari...
true
7065aab48b31647b1a90fe4cfb5ceb54ca4e0246
JavaScript
arquebus-io/rescript-zora
/tests/parallel.test.js
UTF-8
1,862
2.53125
3
[ "MIT" ]
permissive
// Generated by ReScript, PLEASE EDIT WITH CARE import * as Zora from "../src/Zora.js"; import * as Zora$1 from "zora"; function wait(amount) { return new Promise((function (resolve, param) { setTimeout((function (param) { return resolve(undefined); }), ...
true
bbf7b02e6a2e62529d568b0baa4b1e071258c2d1
JavaScript
alialfa/mytodo2.0
/frontend/src/components/TaskInput.js
UTF-8
1,070
2.546875
3
[]
no_license
/** * Ali_Mongi-L3T9-TODOapp+AUTHENTICATION * @TaskInput.js - main task event area to allow create/read/update for todo tasks */ import React from "react"; import { Row } from "react-bootstrap"; const TaskInput = (props) => { var addShow, updateShow; if (props.editMode === false) { addShow = "showElement";...
true
31316504d799ca63a371b7d7cefc9ccf28d39822
JavaScript
vedrianwi/JCWM-13_BSD-JKT
/Fundamental/day_02_variable.js
UTF-8
4,042
4.4375
4
[]
no_license
/* Code Structure 📒 The first thing we’ll study is the building blocks of code and syntax type rule in JavaScript 🔠 STATEMENET Statements are syntax constructs and commands that perform actions. We’ve already seen a statement, alert('Hello, world!'), which shows the message “Hello, world!”. Multiple state...
true
03c5662ca64a5a09506302588a6b2e80049ef08c
JavaScript
sukhadagholba/node-express-mini
/index.js
UTF-8
1,255
2.734375
3
[]
no_license
const express = require('express'); const server = express(); const database = require('./data/db'); server.get('/', (req, res) => { res.send('Hello World'); }); server.get('/api/users', (req, res) => { const request = database.find(); request.then(response => { res.status(200).json(response); }) .catch...
true
07d7a6807148e0d4d0a4e6f468d8045b7b587780
JavaScript
zzusunjs/blog
/JavaScript/ES6/Promise/myPromise.js
UTF-8
2,693
3.90625
4
[]
no_license
class MyPromise { // new 一个 promise 对象的时候需要传入一个函数,而该函数有两个参数,resolve, reject。resolve 和 reject 都是JavaScript引擎提供的。 constructor(executor){ // status 有三个状态 pending, resolved, rejected this.status = 'pending'; this.value = undefined; // resolved 之后的数据 this.reason = undefined;...
true
6acb08c7305b968623e3dceb1dfab1fe34a7c655
JavaScript
spencermountain/somehow-circle
/old/_linear.js
UTF-8
849
3.109375
3
[]
no_license
//a very-tiny version of d3-scale's scaleLinear const scaleLinear = function(obj) { let world = obj.world || [] let minmax = obj.minmax || [] const calc = num => { let range = minmax[1] - minmax[0] let percent = (num - minmax[0]) / range let size = world[1] - world[0] return size * percent } /...
true
0e5183402cee20b1db3cce1b0d0b8eebb8019e98
JavaScript
graysonhicks/language-diverge
/src/components/App.js
UTF-8
3,347
2.75
3
[]
no_license
import React, { Component } from "react"; import "../styles/App.css"; import StackOverflow from "./StackOverflow"; import Historic from "./Historic"; import Endangered from "./Endangered"; import ExtinctMap from "./ExtinctMap"; import ExtinctTimeline from "./ExtinctTimeline"; const apiRoute = "https://language-diver...
true
89f45742074870756e39f98641f6e2c63361afac
JavaScript
JenniferLipps/Book-Club-Challenge-UI
/src/Components/SingleReview/SingleReview.js
UTF-8
3,700
2.59375
3
[]
no_license
import React from 'react'; import reviewData from '../../Helpers/Data/BookReviewData'; import SingleReviewCard from '../SingleReviewCard/SingleReviewCard'; import './SingleReview.scss'; const defaultReview = { review: '', rating: 5, bookId: '', userId: '', goodReadsBookId: '' }; class SingleReview...
true
313a0944da55139fcc5f59eec90ab2b5807dba61
JavaScript
gintareurban/webDevelopment
/_notes/JS/JS_4_Functions_Arrays_Objects.js
UTF-8
3,090
4.1875
4
[]
no_license
//FUNCTIONS //Function declaration console.log("test"); function add(num1, num2) { return num1 + num2; } console.log(add(5, 6)); //Function expression var add1 = function (num1, num2) { return num1 + num2; }; console.log(add1(5, 6)); let square = function (num) { let result = num * num; ...
true
624a1f32fb30d8071263d2e9e22c9906dc95f05a
JavaScript
douglasmartinszup/Javascript
/Exercícios_11_20/aula_17_If_Else.js
UTF-8
567
3.890625
4
[]
no_license
//If e Else /* if (condicao) { //codigo a ser executado } else if (outraCondicao) { //codigo a ser executado } else { //codigo a ser executado } */ let hora = "noite "; //minha condição dentro dos parenteses if (hora > 0 && hora < 12) { //codigo a ser executado console.log("Bom dia"); //mais uma con...
true
7d3aa6b8a64d7c877ffb1846fc3edde079ff54c1
JavaScript
hanaif/tv-show-dom-project
/script.js
UTF-8
2,365
3.171875
3
[]
no_license
//You can edit ALL of the code here function setup() { const allEpisodes = getAllEpisodes(); makePageForEpisodes(allEpisodes); } function makePageForEpisodes(episodeList) { const rootElem = document.getElementById("root"); rootElem.textContent = `Got ${episodeList.length} episode(s)`; } //console.log(s...
true
c8a093db06cbb78a9c75a30b8048ab825347cd6b
JavaScript
gaomin/JSDesignPattern
/RevealingModule.js
UTF-8
376
2.75
3
[]
no_license
/** * 揭示模块模式 */ var myRevealingMoudle = function(){ var privateName = "", publicName = ""; function privateFunction(){ console.log(privateName) } function publicSetName(strName){ privateName = strName; } function publicGetName(){ privateFunction(); } return{ setName : publicSetName, greeting : ...
true
8832038c7faefc9e8b66b0b6217e37452a826b8c
JavaScript
CourtneeM/TOP
/rock_paper_scissors/script.js
UTF-8
1,724
3.890625
4
[]
no_license
const roundResultsContainer = document.querySelector('#round-results'); const scoreContainer = document.querySelector('#score'); const MOVES = ['rock', 'paper', 'scissors']; const WIN_CONDITIONS = { rock: { beat: 'scissors' }, paper: { beat: 'rock' }, scissors: { beat: 'paper' } } const ROUNDS_TO_WIN = 5; func...
true
bf315c30b1959cea1cd7a283ce0b6b2242ac93bd
JavaScript
MykeSelivanov/react-vol.1.1
/10_redux-middleware/article-redux-app-starter-code/src/components/Form.jsx
UTF-8
959
2.734375
3
[]
no_license
// Make sure handle user input and store articles in redux state import { useState } from "react"; import { useDispatch } from "react-redux"; import { saveArticle } from "../redux/actions.js"; const ConnectedForm = () => { const [userInput, setUserInput] = useState(''); const dispatch = useDispatch(); const han...
true
2e8ddd3830db1852d8c09d58f917132a7f302aa0
JavaScript
sifbuilder/eons
/eon-ctl-raycaster.js
UTF-8
3,106
2.640625
3
[ "MIT" ]
permissive
/******************************************* * @controlRaycaster * */ (function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) : typeof define === 'function' && define.amd ? define(['exports'], factory) : (factory((global.controlRaycaster = gl...
true
a569c6a3b55dcb675424c2fd6b613d0d035f84ea
JavaScript
maxim1006/react-main
/algorithms/tasks/grid-traveler/tabultation/grid-traveler/tabulation-grid-traveler.js
UTF-8
1,969
3.984375
4
[]
no_license
// использую табуляцию для подсчета вариантов прохода по гриду // Для того чтобы понять сколько вариантов прохода по матрице иду от нуля, правому и нижнему соседу прибавляю значение текущей клетки, так и иду по каждому ряду // let grid = Array.from({ length: m + 1 }, () => new Array(n + 1).fill(0)); // let grid = new A...
true
18cf1682239e49d74cd0b49ff575ae4df1ded81d
JavaScript
xianhuifeng/Sudoku
/public/test/sudokuSpec.js
UTF-8
971
2.609375
3
[]
no_license
var expect = chai.expect; describe('Sudoku', function() { var testGame,testGameBoard; beforeEach(function(done){ testGame = Sudoku.getInstance(); testGameBoard = testGame.gameBoard(); done(); }); describe('buildBoard', function() { it('should create a gameBoard that has 9 rows', function() { expect(te...
true
9e90ae3af7e151a789197bcce35b9f17e2c706b5
JavaScript
DeltaVCode/cr-js-401d4
/curriculum/class-04/demo/data-modeling/models/teams-modular.test.js
UTF-8
1,194
2.53125
3
[]
no_license
const Teams = require('./teams-modular'); describe('Teams Model (Modular)', () => { it('can create a team', () => { // Arrange let teams = new Teams(); let newTeam = { name: 'Cyclones' }; // Act let record = teams.create(newTeam); // Assert expect(record).not.toBe(newTeam); expect(r...
true
ebbab909d5aaf37ac7cf001d4d9a163c8c30b1da
JavaScript
c4devart/hancom_tt_module_src
/apiserver-new/common/time.js
UTF-8
1,508
3.125
3
[]
no_license
class CTime{ static getTime(){ var _now = new Date(); //var _t = _now.getTime() / 1000; var _t = _now.getTime(); return _t; } static getYMD(t){ var _now = new Date(t); let yyyy = '' + _now.getFullYear(); // month let mm = ('0' + (_now.getMon...
true
814dd4bcd2c6397d82238ff15592f38d8f250539
JavaScript
huseenS/AppDesign
/readWeather.js
UTF-8
2,364
3.21875
3
[]
no_license
var sql = require('sqlite3').verbose(); var fs = require('fs'); //did user type filename if (process.argv.length < 3) { console.log("Usage: Need filename"); process.exit(1); } var filename = process.argv[2]; function readFile(name) { try { var f = fs.readFileSync(name); var contents = f.t...
true
2ed1a13e2fce2076d241741f2fd7049d199cf0f8
JavaScript
bwuphan/code-challenges
/LeetCode/addTwoNumbers2/addTwoNumbers2.js
UTF-8
2,460
4.15625
4
[]
no_license
/* https://leetcode.com/problems/add-two-numbers-ii/ You are given two non-empty linked lists representing two non-negative integers. The most significant digit comes first and each of their nodes contain a single digit. Add the two numbers and return it as a linked list. You may assume the two numbers do not contain...
true
f543118b76f0720909b875dbaeae1a6f2c823031
JavaScript
Fernando0810/fernando-
/5-InstruccionWhile/jsIteraciones (1).js
UTF-8
182
2.90625
3
[]
no_license
function mostrar() { var numero=0; var contador=0; while(contador<10) { numero++ contador++ alert(numero); } }//FIN DE LA FUNCIÓN
true
7208deb6826b6efe8755c21ef5878a149b5e08b1
JavaScript
githubhuangling/traffic
/src/main/resources/static/script/manage/form.js
UTF-8
5,875
2.71875
3
[]
no_license
(function() { var hintText = { phone : { hint : "请输入11位电话号码", right : "√电话号码输入正确", wrong : "×电话号码输入有误,请重新输入" }, password : { hint : "请输入6位以上密码", right : "√密码格式正确", wrong : "×请输入符合格式的密码" }, repassword : { ...
true
d6d420ebd0c26a6e1bc4195aaf3403645b9ad2b6
JavaScript
dobernike/invoice-creator
/React/src/utils/numberToString.js
UTF-8
4,372
3.015625
3
[ "MIT" ]
permissive
// Не изменять! /* eslint-disable */ export default function numberToString(_number, toUpper) { var toUpper = toUpper || false; var _arr_numbers = new Array(); _arr_numbers[1] = new Array( "", "один", "два", "три", "четыре", "пять", "шесть", "семь", "восемь", "девять", ...
true
0bfa01c7203250318426af15a26ffe6fe69ac74b
JavaScript
kate-elizabeth/minesweeper
/src/Minesweeper/GameSettingsInput.js
UTF-8
2,425
2.9375
3
[]
no_license
import React, {Component} from 'react'; import styles from './styles.css'; class GameSettingsInput extends Component{ constructor(props){ super(props); let {onSubmit} = props; this.state = { rows: 15, columns: 25, onSubmit: onSubmit, min: 5, ...
true
52f0dd529986f3ce615202117f5887a77c794187
JavaScript
bcwatson22/punk
/src/assets/scripts/components/accordion.js
UTF-8
4,792
2.625
3
[]
no_license
import { debounce, delay, setCSSVar, emptyElement, getViewportDimensions } from './../global/utils'; import initHover from './../global/hover'; const openClass = 'accordion__wrapper--open'; let clicksBound = 0; let viewport = { width: 0, height: 0 }; const isAccordionOpen = ($accordion) => $accordion.classList.c...
true
2ce2fbc9f9a027d9f40bced2a5b1531ff43e6b07
JavaScript
dmarket7/express-jobly
/models/jobs.js
UTF-8
2,046
2.9375
3
[]
no_license
const db = require("../db"); const partialUpdate = require("../helpers/partialUpdate"); class Job { static async create({ title, salary, equity, company_handle }) { const result = await db.query( `INSERT INTO jobs ( title, salary, equity, company_handle) ...
true
2ceb64f605a1f2ac480a76745aa2e3aabcf71555
JavaScript
samcladson/currency-converter
/src/Components/CurrencyConverter.js
UTF-8
4,878
2.59375
3
[]
no_license
import React, { useState } from "react"; import axios from "axios"; import curSym from "currency-symbol-map"; import { Select, Card, Button, Input, Alert, message } from "antd"; const { Option } = Select; const currencyType = [ "SELECT", "AUD", "BGN", "BRL", "CAD", "CHF", "CNY", "CZK", "DKK", "EUR"...
true
3f85e6e9cc05ac01ab3a87795c3ac2cb84dcb794
JavaScript
SIST-Project2-2/flower-garden-in-brain
/concert/WebContent/join/join.js
UTF-8
2,466
2.765625
3
[]
no_license
'use strict'; /*패스워드 확인*/ function passCheck(){ let pw = document.getElementById("pw").value; let cpass = document.getElementById("cpass").value; let msg = document.getElementById("msg"); var btn = document.getElementById("passBtn"); btn.disabled = 'disabled'; if(pw!="" && c...
true
3ec2996f8dceee323908e32d07215484b40079ef
JavaScript
aihrig/JavaScript-Projects
/ToDo/js/todo.js
UTF-8
2,701
3.921875
4
[]
no_license
// This function gets the task from input function getTodos() { // Create array of tasks let todos = new Array; // Pull task saved in browser memory // todosData = todos_str :( const todosData = localStorage.getItem("todo"); // If input is not null, JSON.parse will convert to object if...
true
93c0721661cdde264db91cd0eb80b1844fe80c73
JavaScript
Kloosk/Shopp
/src/redux/totalCost/totalCostReducer.js
UTF-8
377
2.53125
3
[]
no_license
import {TOTAL_COST} from "./totalCostTypes"; const initialState = { totalCost: 0 }; const totalCostReducer = (state=initialState,action) => { switch(action.type){ case TOTAL_COST:{ return{ ...state, totalCost: action.cost } } defaul...
true
f92d0798bf9bb6cba4cb7ac4ea2f75767001b93a
JavaScript
GrabarzUndPartner/nuxt-page-generator-helper
/tools/utils.js
UTF-8
327
2.5625
3
[ "MIT" ]
permissive
import { paramCase } from 'change-case' export function getArg (name) { name = paramCase(name) const args = process.argv.slice(2) let value = !!args[args.indexOf(`--${name}`)] if (args.includes(`--${name}`) && args[args.indexOf(`--${name}`) + 1]) { value = args[args.indexOf(`--${name}`) + 1] } return v...
true
5a46c0cb4c00a9832f4d7b76b0b5268f7631eb15
JavaScript
Digital-Dream-Team-Org/elitkitchens-quiz
/src/js/main.js
UTF-8
4,359
2.59375
3
[]
no_license
(function ($) { // Document ready $(function () { let circle = $(".progress-ring__circle")[0]; let radius = circle.r.baseVal.value; let circumference = radius * 2 * Math.PI; circle.style.strokeDasharray = `${circumference} ${circumference}`; circle.style.strokeDashoffset = `${circumference}`; ...
true
a3f332b531affedfd5c4a43719be2262fe8ab26f
JavaScript
chamil96/teambuilder
/teambuilderapp/src/App.js
UTF-8
3,957
3.484375
3
[]
no_license
//Gets Component class because we're dealing with components in state import React, { Component } from 'react'; //Initial state const initState = { players: [ "Chris", "Victoria", "Miguel", "Lesly", "Mickey", "Ivan", "Mark", "Ian", "Angel", "Hunter" ], teamA: [], teamB: [] };...
true
0c2b55ff8bbcc61e2fd79e3bb8fe9a00bd65e450
JavaScript
simon-tiger/ploopGame
/utils/messageManipulator.js
UTF-8
2,186
2.984375
3
[]
no_license
// Regexes that will or are currently being used to manipulate messages const urlRegex = /^(http:\/\/www\.|https:\/\/www\.|http:\/\/|https:\/\/)?[a-z0-9]+([\-\.]{1}[a-z0-9]+)*\.[a-z]{2,5}(:[0-9]{1,5})?(\/.*)?$/gm; const customEmojiRegex = /<:([\w]+):[\d]+>/gm; // detects discord custom emoji ids const channelMentionRe...
true
db2e174b04c25dd97fe96ba9a8b3daebcb2bdcef
JavaScript
mhmdym/fullstackopenExercises
/part1/unicafe/src/index.js
UTF-8
1,698
2.96875
3
[]
no_license
import React, {useState} from 'react' import ReactDOM from 'react-dom' const Button = ({handler, text}) => <button onClick={handler}>{text}</button> const Statistic = ({name, value}) => ( <tr> <td>{name}</td> <td>{value}</td> </tr> ) const Statistics = ({good, neutral, bad}) => { const total = good + n...
true
2816c5b83f8572d8ea62f1697e7a64360a3b052d
JavaScript
FrodoTheTrue/javascript-tasks-6
/robbery.js
UTF-8
5,378
2.953125
3
[]
no_license
'use strict'; var moment = require('./moment'); var MINUTES_IN_DAY = 1440; var checkTerror = function (startWorkTime, endWorkTime, terrorTimeFormated, minDuration) { console.log(startWorkTime, endWorkTime); var minutesCount = 1; var needMinute = -1; var getAnswer = false; for (var i = startWorkTim...
true
9a19aca3c2374a97d21072ff2a0454058cee4a81
JavaScript
raquelmolinare/Barquitos-SG
/src/barcos/BarcoPirata.js
UTF-8
1,562
2.578125
3
[]
no_license
import * as THREE from '../../libs/three.module.js' //Imports para los modelos import { MTLLoader } from '../../libs/MTLLoader.js' import { OBJLoader } from '../../libs/OBJLoader.js' import {GLTFLoader} from '../../libs/GLTFLoader.js' //Imports para la animacion import * as TWEEN from '../../libs/tween.esm....
true
2f085a7bf3762fe1c168d570fe67c15098edd369
JavaScript
strapi/strapi
/packages/core/helper-plugin/src/hooks/useAPIErrorHandler.js
UTF-8
2,268
2.734375
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
import { AxiosError } from 'axios'; import { useIntl } from 'react-intl'; import { getPrefixedId } from '../utils/getPrefixedId'; import { normalizeAPIError } from '../utils/normalizeAPIError'; /** * Hook that exports an error message formatting function. * * @export * @param {function} - Error message prefix fun...
true
c3fb3f58ec77a69087cec3905af976da58698a5c
JavaScript
file-icons/atom
/lib/icons/icon.js
UTF-8
2,044
2.84375
3
[ "MIT" ]
permissive
"use strict"; /** * Immutable hash of icon data. * * These objects are accessed through {@link IconDelegate} instances, and * generated at startup from precomposed data by the {@link IconCompiler}. * * @class */ class Icon{ /** * Create a new icon object. * * @param {Number} index - Index of the icon'...
true
bb62c7e9bf8d1edb0d02b6f9e1a1e99e64984d8e
JavaScript
ssyctlm/algorithm
/412.fizzBuzz.js
UTF-8
601
3.890625
4
[]
no_license
/** * @param {number} n * @return {string[]} */ var fizzBuzz = function(n) { let result = []; for(let i = 0, len = n ; i < len ; i++) { switch (true) { case ((i+1) % 15 === 0) : result.push('FizzBuzz'); break; case ((i+1) % 3 === 0) : ...
true
a7688617a5dffb4763980c8ff8b3aa8b922825bf
JavaScript
elloo/eCalendar
/script.js
UTF-8
4,731
3.46875
3
[]
no_license
//>>>>>>>>>>>>>> CALENDAR //>>>>>>>>>>>>>> Populating calendar months const months = [ 'January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December', ]; const currentDate = new Date(); const currentMonth = currentDate.getMonth(); let mo...
true
7f2b0d8c64457a08d1e6aa9772a0225e8647b4d5
JavaScript
nashid/CommitMiner
/js-learn/src/test/resources/input/learning/var_old.js
UTF-8
140
3.078125
3
[ "Apache-2.0" ]
permissive
/* Var Learning */ var i = "Finished!"; function output() { for(i = 0; i < 3; i++) { console.log(i); } } output(); console.log(i);
true
01d7d92ca62ba86b53c9b11082965c3871adeedb
JavaScript
edim98/Horus-Time-Schedule
/src/main/webapp/js/notifications.js
UTF-8
3,624
2.703125
3
[ "MIT" ]
permissive
// This file handles the notification behaviour. // The function creates a notification item. // x is the id of the new request // allReq are all the reqeusts function createNotification(x, allReq) { // console.log(x); // console.log(allReq); var found; for(i = 0; i < allReq.length; i++) { if(allReq[i].id ...
true
111ced90a97369aff7a5fe3cd86e34231a907b40
JavaScript
stutz-event-lighting/control-center
/src/server/relais/relay.js
UTF-8
810
2.703125
3
[]
no_license
var IO = require("./io"); class Relay extends IO{ constructor(hut,index,value){ super(hut,index,value) this.targetValue = value; this.checking = false; } async toggle(){ await this.set(!this.value); } async set(value){ if(this.value == value) return; ...
true
aab987565b002896d06880f03dcf4db4dcadf820
JavaScript
Daria-Nagornova/ChildDiary
/src/stores/child.js
UTF-8
1,201
2.71875
3
[]
no_license
export default { state() { return { childName: '', childDateOfBirth: '', childGender: '', child: [], showAddChild: false } }, mutations: { saveChild(state, childData) { state.child = childData state.sho...
true
f7708bfb5380b57986daf74217cae436071da4ae
JavaScript
RedLips-I/coursework
/client/pages/leaders/leaders.js
UTF-8
330
2.59375
3
[]
no_license
getLeaders(leadersArr => { leadersArr.forEach(({login, duration}) => { duration = parseFloat(duration); duration = Math.trunc(duration * 100) / 100; leaders.append($(` <div class="row jcsb"> <div>${login}</div> <div>${duration}ms</div> </div> `)[0]); ...
true
882e529ef84a87eebebd280ecbe6c2a635907d6e
JavaScript
teresaylin/little-brothers-web
/models/user.js
UTF-8
4,616
2.6875
3
[]
no_license
var mongoose = require('mongoose'); var bcrypt = require('bcrypt'); var utils = require('./utils'); var Admin = require('../models/admin') var userSchema = new mongoose.Schema({ username: { type: String, required: true, index: { unique: true } }, password_hash: { type: String, required: true }, admin: { type: St...
true
51972d6bf20ea4813dbe51e5b42131234efb4ba5
JavaScript
radiocebolla/calculator
/src/index.js
UTF-8
1,418
3.34375
3
[]
no_license
const maths = { '+': (a, b) => a + b, '-': (a, b) => a - b, '*': (a, b) => a * b, '/': (a, b) => a / b, }; export const operators = Object.keys(maths); const isOperator = (operator) => operators.includes(operator); const isNumber = (num) => typeof num === 'number' && !Number.isNaN(num); const isNumber...
true
e940a8f6f49224246a90a39c7b76639930a67049
JavaScript
gusevroman/grok-js-functions
/answers/402.js
UTF-8
221
2.875
3
[]
no_license
function foo(wow) { return wow(); } foo(() => 42); // Результат foo = 42 потому что она возвращает то, что вернет вызов анонимной коллбэк-функции.
true
f2ff42b5a05e5e9753c642b08525f05ab370aa6f
JavaScript
nikita1923666/myToys
/Hello Wolrd.js
UTF-8
172
3.03125
3
[]
no_license
var a = [5, 6, 9, 15, 2, 3]; var l = a.length; for (var c = l - 1, g = 0; g < l / 2; c-- , g++) { var t; t = a[g]; a[g] = a[c]; a[c] = t; } console.log(a);
true
52e041b15051f916986c88dddb17aa6f29fcbea3
JavaScript
AlexandrRumiantsev/PHPCollections
/wp-alexweber-portfolio/js/custom_script.js
UTF-8
5,177
2.65625
3
[]
no_license
const HOST = window.location.host; const PROTOCOL = window.location.protocol; /** * function sendFormData from header sait * send form ajax to API */ function sendFormData(form, type, url, callback) { //const overlay = document.querySelector('.overlay'); const XHR = new XMLHttpRequest(); XHR.addEventL...
true
75a5fe483bf603774752db151e5d7c8a2c1b4be2
JavaScript
indermatharoo/coding-test
/frontend/src/components/Listing.js
UTF-8
3,521
2.578125
3
[]
no_license
import React, { Component } from 'react'; import { Route } from 'react-router-dom'; import { Table } from 'semantic-ui-react'; import './scss/Listing.scss'; /** * Component is responsible for jobs listing. */ export default class Listing extends Component { /** * constructor function. * * @param {o...
true
935be7469c69bd9e75263e1d159bc58fb5081119
JavaScript
sapcc/elektra
/plugins/compute/app/javascript/widgets/server_tags/List.jsx
UTF-8
4,567
2.578125
3
[ "Apache-2.0", "MIT" ]
permissive
import React from "react" import TagItem from "./Item" import apiClient from "./apiClient" const TagsList = ({ instanceId }) => { // init local state for TagsList const [items, setItems] = React.useState([]) const [isLoading, setIsLoading] = React.useState(false) const [error, setError] = React.useState(null) ...
true
62f280590653954effb529054ee5ec35f5621a3a
JavaScript
Sscorpion9991/portfolio
/04_third-products/js/3rd_party/daterangepicker.jQuery.js
UTF-8
22,314
2.53125
3
[]
no_license
/** * -------------------------------------------------------------------- * jQuery-Plugin "daterangepicker.jQuery.js" * by Scott Jehl, scott@filamentgroup.com * http://www.filamentgroup.com * reference article: http://www.filamentgroup.com/lab/update_date_range_picker_with_jquery_ui/ * demo page: http://www.fil...
true
391614532c1c12d871967727714a393385bccbb7
JavaScript
xinxin5080/maimaibao
/js/category.js
UTF-8
1,686
2.53125
3
[]
no_license
$(function(){ init(); onlist(); function init (){ $.ajax({ type:"GET", url:"http://193.112.55.79:9090/api/getcategorytitle", dataType:"json", success:function(res){ console.log(res) var srt = template("crtl_title",{arr:r...
true
dc1794a01130e5d563e29bc3fd08b9d1fd12b646
JavaScript
nodejayes/collatio
/index.spec.js
UTF-8
534
2.671875
3
[ "MIT" ]
permissive
const {Benchmark} = require('./collatio'); const b = new Benchmark('Test Loops'); b.setup(() => { const DATA = []; for (let i = 0; i < 1000000; i++) { DATA.push(i); } return DATA; }); b.run('Array.filter', d => { d.filter(e => e > 3); }); b.run('ts-tooling FindAll', d => { d.FindAll(...
true
9184042812eaf0aa6edce43bf06d576ef4209edc
JavaScript
yammik/LC-loans-data-viz
/src/components/WordMap.js
UTF-8
796
2.609375
3
[]
no_license
import React, { Component } from 'react'; import WordCloud from 'react-d3-cloud'; export default class WordMap extends Component { // without this lifecycle method, browser will bug out // this effectively gives d3 full control over DOM without React competing for it as usual shouldComponentUpdate() { retur...
true
a1c44e3d4796ff6a07258fe6bf299c1e1dd17ee4
JavaScript
imsoohong/TEAMPROJECT_1_DOROOWA
/src/main/webapp/WEB-INF/resources/resources/js/map.js
UTF-8
1,692
2.703125
3
[]
no_license
'use strict' let loca_y =35.5350640706116; let loca_x =129.31090252897906; let markers = []; //카카오 맵이 출력될 HTML상의 영역지정 var mapContainer = document.getElementById('map'); //카카오 맵 옵션값 var mapOptions = { center: new kakao.maps.LatLng(loca_y, loca_x), level: 3 }; //카카오 맵 생성 및 초기화 var map = new kakao.maps.Map(mapCont...
true
4035d2a451d3d6b91273e0e535449b0f4f9d375c
JavaScript
ItacosI/ProjWeb
/all/Reservation/panier.js
UTF-8
10,266
2.53125
3
[]
no_license
var panier = []; var placesPrises = [[-1, 0, 0, 0]]; // De la forme [ [id,plein tarif, tarif reduit, gratuit], ... ] function clickOnChoisir(id){ let found = swapPanier(id); //console.log(panier); dessineSelectionPlace(); if(!found) initPrixParPlace(id); majPrixParSpectacle(panier); return; } function checkP...
true
b56cb78aef6aa3bae5317147e7bcd850219a4aed
JavaScript
nurulaisyah61/simple-chat-room
/src/App.js
UTF-8
1,980
2.578125
3
[]
no_license
import React, { useState, useEffect } from 'react'; import Chat from './components/Chat'; import styled from 'styled-components'; import NumberMessages from './components/NumberMessages'; const StyledHeader = styled.div` display: flex; width: fit-content; h1 { padding: 0 10px; } `; const Wrapper = styled....
true
bad39034e76cb7f3b65db6cf154f55f8aa9c9aef
JavaScript
Deividdasilva/Cadastro_Veiculos
/js/veiculo.js
UTF-8
5,267
2.640625
3
[]
no_license
var url = "./../controllers/veiculo.controller.php"; $(document).ready(function() { Consultar(); }) function Consultar() { $.ajax({ data: { "accion": "CONSULTAR" }, url: url, type: 'POST', dataType: 'json' }).done(function(response) { var html = ""; $.each...
true
bf6f453575a5f7c1692e0c531f0859156fabb836
JavaScript
Sevastiyan/FullStackOpen
/part2/phonebook/src/App.js
UTF-8
4,258
2.953125
3
[]
no_license
import { useState, useEffect } from 'react'; import Contacts from './components/Contacts'; import Filter from './components/Filter'; import Form from './components/Form'; import service from './services/service'; import './index.css'; const Notification = ({ notification }) => { const { message, type } = notificatio...
true
1fbc99d43eb8f8ca7a1050c5d22cb0052f7ecf9d
JavaScript
cesarorozco9628/Radian-Grades
/src/ContainerAll.js
UTF-8
1,511
3.34375
3
[]
no_license
// Creo que esta bien pero no entiendo muy bien este tema, a ver si podria decir que mejorar de mi codigo. import React, { useState } from 'react'; function toRadian(grades) { return grades * 0.01745; } function toGrades(radians){ return radians * 57.296; }; const Quantity = () =>{ const [inQuantit...
true
968e4b37475dd1c833a7a2e3b680dbdcfa185e70
JavaScript
kanusritish/project
/js/main.js
UTF-8
1,418
2.625
3
[]
no_license
// Get the element with id="defaultOpen" and click on it var t = setInterval(function() { if (window.innerWidth > 800 && document.getElementById('tab').style.display == "none") { document.getElementById('tab').style.display = "block" } }, 0.1) function disp(eve, name) { var i, tabcontent,...
true
d980ab40f3b0b10f65e5299f8fb76dd155185fd2
JavaScript
duenf33/How-to-Calculate-Your-Mortgage-Payment
/main.js
UTF-8
2,226
3.21875
3
[]
no_license
const readline = require('readline'); const fs = require('fs'); let info = []; const interface = readline.createInterface({ input: process.stdin, output: process.stdout }); const displayIntro = () => { const intro = ` **************** Loan Calculator ****************** Understanding your mortgage helps y...
true
534ef129421958dbae6ba168a017aaec943ee14a
JavaScript
autioch/Clarity.js
/source/helpers/conversion.js
UTF-8
660
3.453125
3
[]
no_license
/** * Slices passed argument to return an array. Optionally can slice from given index. * @method convertArraylikeToArray * @param {} arg Argument to be converted. * @param {} from Optional index, from which arg should be sliced. * @return An array created by slicing arg. * @private */ function convertArraylikeT...
true
c30d90307f6c281da9229773a54c143c11443f4e
JavaScript
spenserschwartz/palaver
/src/helpers/components/CopyButton.js
UTF-8
379
2.5625
3
[]
no_license
import React from 'react'; const CopyButton = ({ copyID }) => { const copyText = () => { let text = document.getElementById(copyID); text.select(); document.execCommand('copy'); }; return ( <div> <button className="button" onClick={() => copyText()}> Copy Me </bu...
true
ef21e9348075ca4bab46e8d6eeead155288848ba
JavaScript
cameronrasmo/Assignments
/Module 1/Forception/app.js
UTF-8
463
4
4
[]
no_license
var people = ["Jon", "Jacob", "Jingle", "Heimer", "Schmidt"]; var alphabet = "abcdefghijklmnopqrstuvwxyz"; function forception(peopleArray, alphabetArray){ for(let i = 0; i < peopleArray.length; i++){ let newArr = []; newArr.push(peopleArray[i] + ": "); for(let j = 0; j < alphabetArray.leng...
true
d117a8f995805ae7720719e123af4d5015c9948a
JavaScript
ZeeshanDeveloper/target-the-bird
/js/main.js
UTF-8
397
2.5625
3
[]
no_license
//main /*mbl-nav*/ var count = 0; $(".bird input").click(function (e) { $(this).parent().toggleClass('bird-die'); count++; }); $(".restart").click(function (e) { location.reload(); }); setTimeout(function () { $('.score').addClass('open'); score() }, 14000); const score = () => {...
true
78ea36417dbab450fbb72ad6653129ed291be096
JavaScript
rasel739/numta
/javascript.js
UTF-8
1,997
3.625
4
[]
no_license
// Array traversing in javascript: var arrayNumber = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20]; for(i = 0;i<arrayNumber.length;i++){ console.log(arrayNumber[i]); }; var arrayName = ['Rasel','Hossain','kobir','HM','Nayem','Tajul']; for(var j = 0;j<arrayName.length;j++){ ...
true
1d09a2f8571fc2c90d8b9f7a17ecde54d7dfe1c8
JavaScript
colbyfayock/detect-eme
/src/js/index.js
UTF-8
496
3
3
[ "MIT" ]
permissive
function createListElement(text = '') { const list_element = document.createElement('li'); list_element.textContent = text; return list_element; } getSupportedEME().then(function(data) { const list = document.getElementById('eme-list'); if ( !Array.isArray(data) || data.length === 0 ) { list.appendChil...
true
9adbfa8935847cb5727f3b5cd250945b0beb210d
JavaScript
RostykL/techinical_task_100
/src/components/Birthday.jsx
UTF-8
2,645
2.671875
3
[]
no_license
import React, {useContext, useEffect, useState} from "react"; import {Context} from "../App" import BirthdayItem from "./BirthdayItem"; const months = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"]; export default function Birthday() { ...
true