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
402efe1d1c55d1253756bbb741df80acdfcaba6d
JavaScript
ambar/puptex
/examples/puptex-koa/test/createApp.spec.js
UTF-8
1,415
2.71875
3
[]
no_license
const request = require('supertest') const createApp = require('../src/createApp') const tex = encodeURIComponent('E=mc^2') const invalidTex = encodeURIComponent('E=mc^') const snapshot = res => ( expect(Buffer.isBuffer(res.body) ? res.body.toString() : res.text).toMatchSnapshot() ) const createServer = async (opt...
true
5cac9e2c3bda1d77fb5adaf81653c3100dcbbbb1
JavaScript
austinsicard/scheduler
/src/helpers/selectors.js
UTF-8
1,109
2.984375
3
[]
no_license
export function getAppointmentsForDay(state, day) { const filteredDay = state.days.find(apptDay => apptDay.name === day); console.log('Day Matching: ', filteredDay) const result = []; if (!filteredDay || filteredDay.appointments.length === 0) { return result; } for(let id of filteredDay.appointments)...
true
d43ccf22bf7efa2867355bcffe88444882a7b531
JavaScript
sancardenasv/node-socket-queue
/public/js/socket.module.js
UTF-8
671
2.671875
3
[]
no_license
// Start communications var socket = io(); var searchParams = new URLSearchParams(window.location.search); if (!searchParams.has('escritorio')) { window.location = 'index.html'; throw new Error('The module is required'); } var module = searchParams.get('escritorio'); console.log('MODULE', module); $('h1').t...
true
7e1cd73c7fc83a85b9149aec774c1ac2cd8e93fe
JavaScript
rangewr/billiardManager
/target/billiardManager/statics/bootstrap/js/turnover.js
UTF-8
1,999
2.765625
3
[]
no_license
/** * */ /** * */ var basePath; var pageNo = 1; var pageSize = 4; var pageCount = 0; var yema = 0; //页面初始化加载,获取路径和总页码数量 $(document).ready(function() { basePath = $("#lujing").val(); //获取页码总数 chazong(); }); function chazong() { $.post("getTPageCount", "pageSize=" + pageSize, setPageCount, "json"); } //对页码总页数...
true
29b62d8e098a8ad7d3dacdf33fab05dd14b11517
JavaScript
feihong/d3-examples
/site/tweets/app.es6
UTF-8
2,179
2.859375
3
[]
no_license
d3.json('tweets.json', (error, data) => { barChart(data.tweets) scatterPlot(data.tweets) }) function barChart(data) { let nestedTweets = d3.nest().key(el => el.user).entries(data) nestedTweets.forEach(el => el.numTweets = el.values.length) let maxTweets = d3.max(nestedTweets, el => el.numTweets) let yScal...
true
928f321619df1bca9365cdd37228189b72fb1a32
JavaScript
alicantokdemir/example_app_with_db_library
/myDb/test.mjs
UTF-8
5,308
2.75
3
[]
no_license
import * as myDb from './myDb'; let db = null; function beforeEach() { db = myDb.createDb('myDatabase'); } function afterEach() { db = null; console.log('\n'); } function test(testName, testFn) { beforeEach(); console.log(`testing => ${testName}`); let result; let isPassed; try { ({ result, isPa...
true
e831b318554ef82766c07b12bcc7a3b85ab3bc1f
JavaScript
Fhernd/JavaScriptEjercicios
/Parte001/ex666-numero-en-rango.js
UTF-8
446
4
4
[]
no_license
// Ejercicio 666: Comprobar si un número entero se halla entre 20 unidades de 100, y 500. // x, abs(x - 100) <= 20 // x, abs(x - 500) <= 20 function validarNumero(x) { return (Math.abs(x - 100) <= 20) || (Math.abs(x - 500) <= 20); } console.log(validarNumero(50)); // false console.log(validarNumero(80)); // true...
true
9aa3d663f94142e872194563252c6607c94e9152
JavaScript
mrthomasjackson/Jackson_Thomas_WPF
/Expressions_Wacky/js/wacky.js
UTF-8
1,514
4.40625
4
[]
no_license
/* Thomas Jackson WPF 201417 Sec 5 Expressions_Wacky */ //alert("Testing 1,2,3"); //alert the user what the purpose of this application is alert("The purpose of this application is to calculate the pythagorean theorem.") //creating an equation to calculate the pythagorean theorem var aVariable = prompt("Please e...
true
7e65aa50eeca061d757055f6cce530fa2b6a377d
JavaScript
irisdev06/BOG003-data-lovers
/src/data.js
UTF-8
584
2.609375
3
[]
no_license
import data from "./data/lol/lol.js"; const listChampions = data.data; export const filterChampions = (role) => { let filterArray = []; let j = 0; if (role != "All") { for (const i in listChampions) { listChampions[i].tags.forEach((roleChamp) => { if (roleChamp == role) { filterArray...
true
c6a6cf7410c67549081979c2624a839b9129fa92
JavaScript
stangah/Sunlight-extension
/server.js
UTF-8
2,424
2.515625
3
[]
no_license
var express = require('express'), fs = require('fs'), nicknames = require('./server/nicknames.js'), glossary = require('./server/glossary.js'), storage = require('./server/storage.js'), bills = require('./server/bills.js'), congressmen = require('./server/congressmen.js'), app = express(); ...
true
7f4b82e8a62f554b34df4fd9b62b319e5832ea5d
JavaScript
afronski/playground-nodejs
/nodeschool.io/stream-adventure/05.Lines.js
UTF-8
372
2.703125
3
[ "MIT" ]
permissive
"use strict"; var through = require("through"), split = require("split"), lineCount = 0, transformer = through(function(buffer) { var line = buffer.toString(); this.queue(lineCount % 2 === 0 ? line.toLowerCase() + "\n" : line.toUpperCase() + "\n"); ++lineCount; }); process.stdin.p...
true
8d7dfa0ca13e457e395c9658025fbff8173720cb
JavaScript
ChinjuJose/Project-PRO-C35-V3
/sketch.js
UTF-8
1,885
3.203125
3
[]
no_license
var balloon, balloonImage1, balloonImage2; var position; function preload() { bg = loadImage("cityImage.png"); balloonImage1 = loadAnimation("hotairballoon1.png"); balloonImage2 = loadAnimation("hotairballoon1.png", "hotairballoon1.png", "hotairballoon1.png", "hotairballoon2.png", "hotairballoon2.png"...
true
98cdf59c13b351636fc8d9244b5b18a771bd3688
JavaScript
mbilaldnc/web-browser-html-shortcut-generator
/app.js
UTF-8
660
2.84375
3
[]
no_license
const fs = require('fs'), readlineSync = require('readline-sync'); var fileName = readlineSync.question('Enter file name to generate: '), link = readlineSync.question('Paste the link: '), data = ''; if (!fileName.includes('.html')) { fileName += '.html'; } if (!link.includes('http')) { link = 'http://' + link; } ...
true
f5fd2efa5970960f859b7020b9147d7a1e9f8e79
JavaScript
ryeonnaderi/Find-A-Home
/client/src/pages/SignUp.js
UTF-8
1,918
2.59375
3
[]
no_license
import React,{Component} from "react"; import SignUpForm from "../components/SignUpForm"; import API from "../utils/API"; import { Redirect} from "react-router-dom"; import fakeAuth from "../components/Authentication"; class SignUp extends Component{ state = { toLogin: false, toWishlist: false, ...
true
2d8a7572deeb2645f42e5cf76e2f7652e6fdde8d
JavaScript
zapidan/node-school
/async-you/07-whilst/07-whilst.js
UTF-8
608
3.09375
3
[]
no_license
var http = require('http'); var async = require('async'); var url = process.argv[2]; var count = 0; var body = ''; function httpGet(callback) { http.get(url, function(response) { response.on('data', function(chunk) { body += chunk.toString(); }); response.on('end', function(chunk) { count++; callbac...
true
3608afac9fc00f7b1ef3126e1a1ef5b4042ef989
JavaScript
Maureen-1998DEV/Mtaani_Carpenter
/main.js
UTF-8
1,512
2.65625
3
[]
no_license
function validateForm(){ let myName = document.getElementById('name').value; let myNumber = document.getElementById('phoneNumber').value; let myLocation = document.getElementById('location').value; let myFile = document.getElementById('file').value; if(myName==''){ $('#error1').show...
true
50ea29a0cec440b0c0598d0dc5cdca16e6e0be80
JavaScript
zgababa/course-front
/src/resolver/query/priceProduct.js
UTF-8
1,494
2.765625
3
[]
no_license
const _ = require('lodash'); const winston = require('winston'); function productsWithPriceInPercent(products) { function normalize(val, min, max) { return Math.floor(((val - min) / (max - min) * 100)); } return products .sort((a, b) => a.price - b.price) .map((product, index, pSorted) => Object.assi...
true
df3f4ded67bd08f29d579ff1f5486cd32076caaf
JavaScript
kawatkowski93/CursoIngresoJS
/2-InstruccionIf/jsInstruccionIF (7).js
UTF-8
253
2.640625
3
[]
no_license
function mostrar() {var edad= document.getElementById("edad").value; var estado=document.getElementById("estadoCivil"),value; if(edad>=18&&estado=="soltero"){ }else { } //tomo la edad }//FIN DE LA FUNCIÓN
true
8dccb83b128941360b1075b37852826ace850d2b
JavaScript
SSArmitage/node-practice
/index.js
UTF-8
6,624
3.328125
3
[ "MIT" ]
permissive
// SERVER-SIDE PROGRAM THAT RUNS OUTSIDE OF THE BROWSER // loading in the Express module const express = require('express') // loading in the pg module (a PostgreSQL client) const { Pool } = require('pg') // const { Client } = require('pg'); // Use dotenv to read.env vars into Node require('dotenv').config(); // destru...
true
7ffeda2d39300d5fd6f7152a7376e551294b6a8d
JavaScript
tf/get-node-dimensions
/test/index.js
UTF-8
2,732
3.1875
3
[ "MIT" ]
permissive
import getNodeDimensions from '../src/get-node-dimensions' const textNode = document.createElement('div') textNode.innerHTML = 'node text' document.body.appendChild(textNode) const MARGIN_TOP = 5 const marginNode = document.createElement('div') marginNode.innerHTML = 'node text' marginNode.style.marginTop = MARGIN_TO...
true
c04823ef5564dae3f594614a0feaec9c7faf21d3
JavaScript
brauneira94/IngresoUTN2018C2
/6-InstruccionFor/jsIteracionesFor (8).js
UTF-8
354
3.546875
4
[]
no_license
function mostrar() { var numero; var contadorDivisores=0; numero = parseInt(prompt("Ingrese un numero")); for ( var i=1 ; i=1 ; i++ ) { if ( numero % i == 0 ) { contadorDivisores++; } if (contadorDivisores == 2) { console.log(numero + "es primo"); } else { console.log (numero + "no es primo...
true
563877edb3229b2d8567589b63a3812693ba77a8
JavaScript
Jamil-NE20/JavaScript-and-jQuery
/JavaScript Lab/JavaScript Fundamentals Intro/FigureArea.js
UTF-8
413
3.578125
4
[]
no_license
function figureArea([w, h, W, H]) { let figArea1 = Number(w) * Number(h); let figArea2 = Number(W) * Number(H); // Math.min(); Returns the smallest of zero let commonArea = Math.min(Number(w), Number(W)) * Math.min(Number(H), Number(h)); let resultArea = figArea1 + figArea2 - commonArea; return...
true
642ca38c657992d71c7c277e41d4405f009c95b0
JavaScript
feidianbo/webdriverjs
/examples/example.command.mixed.webdriver.js
UTF-8
1,215
2.953125
3
[ "MIT" ]
permissive
// example of webdriver with mixed commands. // some are chained, some are inside the callbacks. var webdriverjs = require("webdriverjs"); var client = webdriverjs.remote(); client .init() // initiate the client .url("http://www.onezerozeroone.com/projects/webdriverjs/testsite/index2.html") // go to a specific url ...
true
e87a693a24111219545145dbd01ae337ef056635
JavaScript
kissyoudyb/springbootwebsocket
/src/main/resources/static/remote.js
UTF-8
2,328
2.875
3
[]
no_license
$(function(){ //计算控制台的高度和宽度 $width = 1366; $height = 768; console.log($width+"---"+$height); //创建websocket连接 createWebSocket(); }); //-------------------------------------------------------------- //创建Websocket连接 //-------------------------------------------------------------- function createWebSocket(){ ...
true
8d7f16987087af3a289c83a7a6098bfc13d50766
JavaScript
maahad767/Time-Quadrant-Matrix
/static/js/add_task.js
UTF-8
1,955
3.140625
3
[]
no_license
const importantTasks = ['submission', 'quiz', 'skill', 'contest', 'preparation', 'prepare', 'checkup', 'study', 'final', 'job', 'exam'] const notImportantTasks = ['hangout', 'movie', 'series', 'gossip', 'fun'] function findInCat(element) { const cat = document.getElementById('category') ...
true
9fc5d4b4470e3b11543ade6bc5400cde1202dc15
JavaScript
startupbus-roll/sideproject
/creators/bar.js
UTF-8
2,599
2.65625
3
[]
no_license
var fs = require('fs'); var uuid = require('uuid').v4; var data = fs.readFileSync('flights.1.data', {encoding: 'utf-8'}); data = data.replace(/\*/g, ''); var lines = data.split('\n'); function random_int (max) { return Math.floor(Math.random() * max); } var p = []; // lines.forEach(function (line) { for (var i = 0...
true
37eef12fafdf0b3b30d6869466f6534580e22052
JavaScript
vinayak5002/vinayak5002.github.io
/Observer/API.js
UTF-8
3,087
2.828125
3
[]
no_license
var base = "https://inshortsv2.vercel.app/news?type="; var postfix = "&limit=27"; var type = "all_news"; var temp; var more = 0, start = 5, end = 10; function change(cat){ window.scrollTo(0, 0); document.getElementById("cat").innerHTML = cat.innerHTML; document.getElementById("read-more").innerHTML = "Read...
true
e61b9930462463f4ff15549d1b873f9dfbe4030c
JavaScript
LowellObservatory/NightWatch
/nightwatch/static/js/index.js
UTF-8
2,534
3.03125
3
[]
no_license
// init Isotope var $grid = $('.grid').isotope({ // 'false' disables the initial layout isInitLayout: false, itemSelector: '.element-item', layoutMode: 'masonry', masonry: { columnWidth: 5, gutter: 2, }, // If filter is set to a function, that function checks each // item (specified by item...
true
2e4bac43af4169710a8434d1c1dc177d6d85bb08
JavaScript
Misacorp/real-time-forms-front
/src/Components/QuestionViewer.js
UTF-8
1,159
2.546875
3
[]
no_license
import React, { Component } from 'react'; import { Button } from 'react-bootstrap'; import QuestionList from '../Components/QuestionList'; import axios from 'axios'; class QuestionViewer extends Component { constructor(props) { super(props); this.state = { data: [] }; } getQuestions() { /...
true
21716121bd68d4c4b0127feba623851b62f6fbaf
JavaScript
pietrobelluno/react-fake-app
/src/pages/Edit/index.js
UTF-8
1,099
2.5625
3
[]
no_license
import React, { Component } from 'react' import { history } from '../../routes' class Edit extends Component { state = { body: this.props.location.state.body, title: this.props.location.state.title } editPost = () => { const {body, title} = this.state const { id } = this.props.match.params ...
true
83bb832e51514f5043d3e1404ca5a595dbf4d5e5
JavaScript
elba3184/Iron-Hack-Projects
/Coding Challenges/isograms.js
UTF-8
1,474
4.75
5
[]
no_license
/* Elba Chimilio * Isogram Program: * An isogram is a word that has no repeating letters, consecutive or non-consecutive. * Implement a function that determines whether a string that contains only letters * Is an isogram. Assume the empty string is an isogram. Ignore letter case. */ /* * isIsogram(str) function che...
true
4a683960afbcd9640d917a0d97ebc59d71711d7a
JavaScript
hapticdata/sketch-simplex-trails
/public/javascripts/vendor/toxi/geom/Polygon2D.js
UTF-8
5,030
2.9375
3
[]
no_license
define(["require", "exports", "module", "./Vec2D","./Line2D","./Triangle2D","../internals"], function(require, exports, module) { var internals = require('../internals'), Vec2D = require('./Vec2D'), Line2D = require('./Line2D'), Triangle2D = require('./Triangle2D'); /** * @class * @member toxi */ var Polygon2...
true
483b18c436bc5d275e4982f8f7c00f539e631598
JavaScript
jalloulii/success-back
/controllers/userController.js
UTF-8
7,671
2.609375
3
[]
no_license
const express = require('express'); const jwk = require('jsonwebtoken'); //pour indiquer la base de donnée eli bch yekhdm aliha const mongoose = require('./../db/connect'); // importina leclass user : const User = require('./../models/user'); const Admin = require('./../models/user'); const isAdmin = require('../middl...
true
d8b530b3e8c57b7fc870340e58a8f7f3892af705
JavaScript
linc101/edge-computing
/src/utils/storage.js
UTF-8
965
2.765625
3
[]
no_license
export const setSession = (key, value) => { set(key, value, 'sessionStorage'); }; export const getSession = (key) => { return get(key, 'sessionStorage'); }; export const removeSession = (key) => { remove(key, 'sessionStorage'); }; export const setStorage = (key, value) => { set(key, value, 'localStorage'); }; e...
true
d763e11c19077909d8f8740ca8f9be80ea152790
JavaScript
east0422/Notes
/front/babel/es6-test.js
UTF-8
163
3.125
3
[]
no_license
let arr = [1, 2, 3]; let arr2 = arr.map((num) => num * 2); console.log(arr2); let dic = {name: "zhangsan", age: 33}; dic = {...dic, sex: "Male"}; console.log(dic);
true
ce0d595ec895dc50bc39d98872b38e457ce730f8
JavaScript
daffarrel/node-sms-pdu
/lib/sms-pdu-user-data-ucs2.js
UTF-8
3,139
2.859375
3
[ "MIT" ]
permissive
/* ------------------------------------------------------------------ * node-sms-pdu - sms-pdu-user-data-ucs2.js * * Copyright (c) 2020, Futomi Hatano, All rights reserved. * Released under the MIT license * Date: 2020-02-21 * ---------------------------------------------------------------- */ 'use strict'; class SmsP...
true
1c58758811c8c0823e80b77ff25e41773e22c271
JavaScript
ivanisovich/pro-interactive
/src/components/OrderItem/OrderItem.js
UTF-8
7,035
2.546875
3
[]
no_license
import "./OrderItem.css"; import "./CustomCheckbox.css"; import React, { useState, useEffect } from "react"; import slide_1 from "../../img/photo.jpg"; import slide_2 from "../../img/photo-1.jpg"; import slide_3 from "../../img/photo-2.jpg"; import optionPhoto from "../../img/photo-option.jpg"; import button from "../....
true
280538715637b173b77a32f21c733f3329e89102
JavaScript
Miniand/miniand-digital-signage
/spec/lib/program.spec.js
UTF-8
2,824
2.625
3
[]
no_license
var moment = require('moment'), util = require('util'), program = require('../../lib/program'); describe('A program', function() { it('should be invalid for an empty object', function(done) { program.isValid({}) .then(function(isValid) { expect(isValid).toBe(false); done(); }, function(er...
true
5394d66b2d05952e7eb16a135c57cda9735228eb
JavaScript
diegomiyabara/labFood
/src/components/ProfileAddressPage/index.js
UTF-8
7,277
2.53125
3
[]
no_license
import React, { useState, useEffect } from 'react'; import axios from 'axios'; import {useHistory} from 'react-router-dom'; import useForm from '../useForm'; import ArrowBackIosIcon from '@material-ui/icons/ArrowBackIos'; import { DivSignup, FormSignup, ButtonCreate, TextFieldSignup, TitleSignup, ...
true
706e0b72db7f9b82a27d786a4da8aa4fc38c5aa0
JavaScript
ubtamator/ubtamator.github.io
/index_static/seccurity.js
UTF-8
1,778
2.578125
3
[ "MIT" ]
permissive
/** * Created by lijianying on 14-10-4. */ var security = new Object; security.generateKey =function() { var crypt = new JSEncrypt({default_key_size: 1024}); //RSA 操作对象 SetCookie("LocalPub",crypt.getPublicKey()); SetCookie("LocalPry",crypt.getKey()); } security.encrypt_data = function(publickey,data) {...
true
718670346d6dccc4f904ef060815d5b59a7c4ca2
JavaScript
milkteahot/youtube_clone
/youtubePlayer.js
UTF-8
1,231
2.578125
3
[]
no_license
document.cookie = "safeCookie=youtube; SameSite=Lax"; document.cookie = "crossCooke=youtube; SameSite=None; Secure"; var tag = document.createElement("script"); tag.src = "https://www.youtube.com/iframe_api"; tag.id = "iframe_api"; var firstScriptTag = document.getElementsByTagName("script")[1]; console.log(firstScrip...
true
81458b80a478faf97a880d9843e3e747be7b4ccd
JavaScript
Aaron-Larkin/pet-adoption-v2-1
/tools/hash-password.js
UTF-8
229
2.90625
3
[ "MIT" ]
permissive
const bcrypt = require('bcrypt'); async function hashPassord(password) { const saltRounds = 10; const hash = await bcrypt.hash(password, saltRounds); return hash; } hashPassord('password').then(hash => console.log(hash));
true
32f87d96529f8c2737a9a2c9df61bd3bb54781f5
JavaScript
rubeneitor/ProyectoSoundCloud
/js/app.js
UTF-8
3,536
2.890625
3
[]
no_license
//AUTENTIFICAMOS CON EL ID DE CLIENTE function autentificar() { SC.initialize({ client_id: 'aa06b0630e34d6055f9c6f8beb8e02eb', }); } document.getElementById("resultados").innerHTML = ""; //BUSCAMOS UNA CANCION Y MOSTRAMOS LOS RESULTADOS $("#buscar").on('click', function (ev) { $('#resultados').empty(); ...
true
df5edff0875aaee3744add0a0f0f05ee9e289204
JavaScript
luckyfatcat/fatcat
/plan/js/utils.js
UTF-8
1,059
3.046875
3
[]
no_license
const Host = "http://localhost:3000"; function ajax(method, url,callback, data,async) { var xhr = new XMLHttpRequest(); data = data || null; async = async || true; xhr.onreadystatechange = function() { if(xhr.readyState === 4) { callback(JSON.parse(xhr.responseText)); } } xhr.open(method, url, async); xhr...
true
2c8e59911afc02b4d6f73062f629ce50f2733a88
JavaScript
danigaru/Clon-Login-Netflix
/js/scripts.js
UTF-8
1,465
3.453125
3
[]
no_license
// validar formularios const inputs = document.querySelectorAll(".campo"); inputs.forEach(input => { input.addEventListener("blur", validarInput); }); inputs.forEach(input => { input.addEventListener("input", validarInput); }); function validarInput(e) { const estado = ["valido", "no-valido"]; le...
true
e79ed53775da082bdb7749de76424607959d2c06
JavaScript
wnmurphy/nodeVSA
/scrapeFloat.js
UTF-8
2,133
3
3
[]
no_license
const rp = require('request-promise'); const createThrottle = require('./src/createThrottle.js') const throttle = createThrottle(1, 4000); const tickers = require('./stockList.js'); const fs = require('fs'); const log = require('./src/logger.js'); // Retreives financial data from Yahoo Finance, scrapes the float for a...
true
0bde5bb9263dfec4461eebf0fedd20f907b1289e
JavaScript
jawang35/es-algorithms
/Binary Search Tree/BinarySearchTree.spec.js
UTF-8
9,897
3.328125
3
[]
no_license
import { expect } from 'chai' import BinarySearchTree from './BinarySearchTree' describe('Binary Search Tree', () => { it('initializes node from key, value', () => { const root = new BinarySearchTree(1, 2) expect(root).to.deep.equal({ key: 1, value: 2, }) const child = new BinarySearchTre...
true
7a0340b0d77f82db8fd3a022e734ac9309aac3e4
JavaScript
Redwanuzzaman/JavaScript-Practice
/Functions.js
UTF-8
482
4.40625
4
[]
no_license
function add(num1, num2){ const result = num1 + num2; return result; } let currentResult = add(50, 42); alert(`The Result is: ${currentResult}`); function add(num1, num2){ const result = +num1 + +num2; // "+" before a variable makes it a number let output = parseInt(num1) + parseInt(num2); // both ...
true
4fd01d89372d875027331dec868a6add32eb78e6
JavaScript
snowbot3/wall
/js/args.mjs
UTF-8
1,382
3.1875
3
[]
no_license
/** wall-args **/ import * as wall_type from './type.mjs'; /** * original source: https://davidwalsh.name/javascript-arguments * had to modify for anonymous functions. **/ export function names(func) { if (!wall_type.is(Function, func)) { throw new Error('wall-func: argNames: bad argument'); } let fnStr = fun...
true
0299b8c4543e9cabff985a80d16320b91d0ce95d
JavaScript
elenastagg/fibonacci-kata
/src/finonacci.js
UTF-8
353
3.453125
3
[]
no_license
const calculateFibonacci = (n) => { const fibonacci = [0, 1]; for (let index = 0; index < n; index += 1) { fibonacci.push(fibonacci[index] + fibonacci[index + 1]); } return fibonacci[n]; }; // console.time("fibonacciTimer"); // console.log(calculateFibonacci(50)); // console.timeEnd("fibonacciTimer"); modu...
true
ad7f0807660c411fbb5af425c4180e273227aa98
JavaScript
swetaku/coursera-assignment
/app.js
UTF-8
1,588
2.53125
3
[]
no_license
(function(){ 'use strict'; angular.module('LunchCheck',[]) .controller('LunchCheckController', LunchCheckController); /*var items = $scope.lunchItems; $scope.checkItemCount = function(){ console.log($scope.lunchItems); }; });*/ LunchCheckController.$inject =...
true
325a4b920d14b7dd092450dcf9be65b0438e8985
JavaScript
awekisa/JS-Core
/JS Fundamentals/08 Arrays and Matrices Excersises/pr03_AddAndRemoveElements.js
UTF-8
456
3.28125
3
[]
no_license
function addRemove (input){ let num = 1; let arr = []; for (let i = 0; i < input.length; i++){ if (input[i] == 'add'){ arr.push(num); } else{ arr = arr.filter((e, ide) => ide < arr.length-1); } num++; } if (arr.length > 0){ ar...
true
dc8cd04bc6d648540867b1f3b12412bbcee70db0
JavaScript
NikhilDalvi27/My-Timer-Extension
/js/ui.js
UTF-8
8,495
2.59375
3
[]
no_license
//import cacheStorage from './background'; // Control for all the sites let configuration = {}; let cacheStorage = {}; const STORAGE =chrome.storage.sync; //For Adding a new Site for tracking via UI function getName(url) { try { const host = new URL(url).hostname; return host.replace('www.', '')...
true
136d55fb50adeb51657d92a1615ee6c47b70df99
JavaScript
nrorabaugh/proofreader-app
/client/src/components/Calculation.jsx
UTF-8
2,179
2.609375
3
[]
no_license
import React, { Component } from 'react' import Axios from 'axios' export default class Calculation extends Component { state = { comment: null, expression: null, solutionId: null, editForm: false, null: false } componentDidMount() { Axios.get(`/calculationA...
true
19bdffb0c68527ac81fb5a6508578d50c8223a91
JavaScript
zeazy00/EmployeeRegForm
/JS/registration-validation.js
UTF-8
1,250
3.484375
3
[]
no_license
let passwordField = document.getElementById("password"); passwordField.addEventListener("input", (event) => { passwordField.setCustomValidity(''); if (!!passwordField.validity.valid) { passwordField.setCustomValidity(""); } else if (passwordField.value.length < 6) { passwordField.setCustomV...
true
bc057539b13683a67db4ba95f6a5a391c48bf291
JavaScript
Mayme123/LocalWeather
/js/index.js
UTF-8
671
2.734375
3
[ "MIT" ]
permissive
$(document).ready(function(){ if(navigator.geolocation){ navigator.geolocation.getCurrentPosition(function(position){ $.getJSON("https://fcc-weather-api.glitch.me/api/current?lat=" + position.coords.latitude + "&lon=" + position.coords.longitude, function(json){ console.log(JSON.stringify(json...
true
1bda255ec0bdf2cda95a0bf03a265718d0cb2abb
JavaScript
AgoraIO-Community/RTE-Innovation-Challenge-2020
/SDKChallengeProject/【红鲤鱼与绿鲤鱼与驴】点解/src/common/util.js
UTF-8
75
2.59375
3
[ "MIT" ]
permissive
export function calcPercent(a, b) { return ((a / b) * 100).toFixed(1); }
true
9342694b8b3edf5c2518affc130934e14dd3c0bb
JavaScript
mattprice09/wuhack2015
/spotifyAPI-tracks.js
UTF-8
1,457
2.609375
3
[]
no_license
function sendToPlayer(trackID){ var player = document.getElementById('player'); var iframe = '<iframe class="iframePlayer" src="https://embed.spotify.com/?uri=spotify%3Atrack%3A' + trackID + '" frameborder="0" allowtransparency="true"></iframe>'; player.innerHTML += iframe; } function getSongPlayer(trackID){ var i...
true
7cf93dadb6432fbbb956373c83468da21c71b0c3
JavaScript
miguelmota/textnode-offset
/example/main.js
UTF-8
655
2.953125
3
[ "MIT" ]
permissive
var textInput = document.getElementById('textInput'); var textOutput = document.getElementById('textOutput'); var indexInput = document.getElementById('indexInput'); var output = document.getElementById('output'); var submit = document.getElementById('submit'); function renderOutput(context) { textOutput.innerHTML =...
true
baf30525913c711aa2ec582203b6f30d284ae646
JavaScript
wood2jp2/dangman
/src/Components/Puzzle.js
UTF-8
2,590
3.265625
3
[]
no_license
import React, { Component } from 'react' import PuzzleLetter from './PuzzleLetter' import GuessBox from './GuessBox' class Puzzle extends Component { checkState = e => { e.preventDefault() console.log(this.state) } constructor() { super() this.state = { puzzles: ['Goldfish', 'Hello'], ...
true
0f58be499ba494a18130fb779afe4898957036ea
JavaScript
vinaymalleshHM/t-y-React
/Testyantra-Assignment-JS/Assignment/Assignment2/Assignment2.js
UTF-8
789
4.34375
4
[]
no_license
//Named Function function fibonacci(n1,n2,count){ for (let i = 0; i < count; i++) { var n3 = n1 + n2 ; console.log("N3 Value ",n3) n1=n2; n2=n3; } } fibonacci(0,1,8) //Ananymous Function var a = function(n1,n2,count){ for (let i = 0; i < count; i++) { var n3 = n1 + ...
true
ae7b8e12cfb1c7c8f6a5ea6f256f27f0c1351e5f
JavaScript
angelaparisi/launch_school_work
/js_101/exercises/easy_5/exercise10.js
UTF-8
459
4.21875
4
[]
no_license
// function average(numbers) { // let sum = 0; // for (let idx = 0; idx < numbers.length; idx += 1) { // sum += numbers[idx]; // } // return Math.floor(sum / numbers.length); // } function average(numbers) { let sum = 0; numbers.forEach(number => { sum += number; }) return Math.floo...
true
42dbe9916d186373950a5d684d9e6e3e4cef2219
JavaScript
kaizer1v/wazaap_v1
/js/main.js
UTF-8
70,198
2.546875
3
[]
no_license
//This variable is to store the checked neighbourhood values //Since it is a global variable and is also used in another .js file, it is defined outside the declaration of JQuery var checkedValues; function homepageImageHandler(){ $(".img-b1, .img-b2, .img-b3, .img-b4, .img-b5").error(function(){ //console.l...
true
0e777f7cd5d95422663c613c4de5dca127f9012d
JavaScript
Breno0809/Application
/frontend/pages/patients/scripts/script.js
UTF-8
5,087
3.140625
3
[]
no_license
const url = 'http://localhost:8989/patients/' // PATIENTS ROUTE const main = document.querySelector("main") const searchUser = document.querySelector('input[name="searchUser"]') const showAllPatients = document.querySelector('button#showEveryone') const printTable = document.querySelector('button#printTable') const sub...
true
a4849840f19c04f338b56b0a1d418287f1856d60
JavaScript
ariyansbc/recursive-func
/fiboIterative.js
UTF-8
656
3.765625
4
[]
no_license
function fibonaccIterative(num) { var fibo = [0,1]; for(var i = 2 ; i<= num ; i++) { var nextElement = fibo[i-1]+ fibo[i-2]; fibo.push(nextElement); } return fibo; } // var result = fibonaccIterative(5); // console.log(result); //node fiboIterative function fibonacciRecu...
true
2e0b9a229ec7b1b93523b7bb6a4ce95f7eb6301f
JavaScript
jnguyen3436/project2
/src/Components/Generator.jsx
UTF-8
3,126
2.6875
3
[]
no_license
import React, { Component } from 'react' import axios from 'axios' //import GetAxios from './GetAxios' export default class Generator extends Component { state ={ advice :[], gif:null, info:[], dog:[] } componentDidMount(){ axios.get("https://api.adviceslip.c...
true
bb1d16706c1bc4752c4a216df6fa99c07877c930
JavaScript
bzaino/Code
/EDMS/ASA.Web/Sites/SALT/Assets/Scripts/OptimizedJS/js/actionWords.js
UTF-8
1,365
2.6875
3
[]
no_license
//This is the format for all entries into this list - "Content Type Name": "Action Word" //The character limit for "Action Word" is 10 //How to edit: //Below is a list of all the contents types and their matching "action word" //Only edit the "Content Type Name" and the "Action Word". //If you change the "Content Type...
true
6f06f4c2263e019024d7fcecb32f049e68463b3d
JavaScript
DenisSvinkovskij/goit-js-hw-07
/task-07.js
UTF-8
267
2.921875
3
[]
no_license
const inputRef = document.querySelector('input#font-size-control'); const textRef = document.querySelector('span#text'); const onInputControlMove = () => { textRef.style.fontSize = inputRef.value + 'px'; }; inputRef.addEventListener('input', onInputControlMove);
true
aea0030ec3d533b42f2a6b5141ab5eaede06506a
JavaScript
JustisBogus/plumtree
/assets/js/store/reducers/cv.js
UTF-8
3,085
2.625
3
[]
no_license
import { ADD_NAME, ADD_EMAIL, ADD_ADDRESS, ADD_ABOUT, ADD_JOB, DELETE_JOB, ADD_START_YEAR, ADD_STOP_YEAR, ADD_JOB_TITLE, ADD_JOB_DESCRIPTION, ADD_SKILL, DELETE_SKILL, ADD_SKILL_TITLE, ADD_EDUCATION, DELETE_EDUCATION, ADD_EDUCATION_START_YEAR, ADD_EDUCA...
true
37719b79f5c4c736769c6db91500ce92a8ee4b0c
JavaScript
ChenNoYo/myGame-xxl
/js/Sprite.js
UTF-8
2,617
3.09375
3
[]
no_license
/* * @Descripttion: * @Author: NoYo * @Date: 2020-12-03 11:57:43 * @LastEditors: Please set LastEditors * @LastEditTime: 2020-12-04 17:34:43 */ class Sprite { constructor(row, col, type) { //行号 this.row = row; //列号 this.col = col; //图片类型 this.type = type; //计算x和w this.x = this.c...
true
e5929b432c3db31ac3a959bf2f5677cb91a47e72
JavaScript
ErikC14/CHARACTER-QUIZ
/script.js
UTF-8
538
2.71875
3
[]
no_license
$(".calculate").click(function(){ var number=parseInt($("#age").val()); var life= $("#active").val(); if( number<18 && life==="extremely active"){ $("#flash").show(); }else if( number<18 && life==="slow paced"){ $("#dora").show(); }else if(number>18&&number<25&&life==="active"||life==="slow paced"...
true
6040ecb6b24519305a1a3f55e01bdfbffe4347f2
JavaScript
asmitagaire00/website-design-one
/script.js
UTF-8
577
2.59375
3
[]
no_license
function openNav() { document.getElementsByClassName("hamburger")[0].style.height = "100%"; document.getElementsByClassName("openbtn")[0].style.opacity = "0"; } function closeNav() { document.getElementsByClassName("hamburger")[0].style.height = "0%"; document.getElementsByClassName("openbtn")[0].style.opacity...
true
6152a0455845ea67c96f67e2ae2f329d3d820a43
JavaScript
vitalets/alice-tester
/src/webhook.js
UTF-8
651
2.828125
3
[]
no_license
/** * Webhook. */ const { throwIf } = require('throw-utils'); /** * Получаем вебхук. * * @param {String|Function|http.Server} passedWebhookUrl */ exports.getWebhookUrl = passedWebhookUrl => { throwIf(!passedWebhookUrl, `You should provide webhookUrl`); if ([ 'string', 'function' ].includes(typeof passedWebh...
true
b0781cc4a45ee829695fa7d562b85dd06f58d695
JavaScript
Maphaha9/Phone-Bill
/js/radio-bill.js
UTF-8
1,386
3.328125
3
[]
no_license
var radioBillAddBtn = document.querySelector('.radioBillAddBtn'); var billItemType = document.querySelector('.billItemTypeRadio'); var callTotalTwoElem = document.querySelector('.callTotalTwo'); var smsTotalTwoElem = document.querySelector('.smsTotalTwo'); var totalTwoElem = document.querySelector('.total...
true
ac95528e8139da1dde980457232a2ef83e65fb1c
JavaScript
MariaMoskalenko/sqlite3_addon
/test_addon/parser.js
UTF-8
1,509
2.6875
3
[ "MIT" ]
permissive
const Extrator = require("html-extractor"); const fs = require('fs'); var content = ""; var reduceToList0 = { tag: "td", attr: "class", val: "issuekey", list: true }; var reduceToList1 = { tag: "td", attr: "class", val: "summary", list: true }; var reduceToList2 = { tag: "td", attr: "...
true
ed1c1c558b5191bef6f2b45d28601ca24e66dc74
JavaScript
borisbikes/platzi
/FundamentosJS/concepts.js
UTF-8
1,800
4.0625
4
[]
no_license
/** * JS Fundamentals * Repo Teach https://github.com/platzi/FundamentosJSCurso * * 1 Variables * When we just define a var name; in fact it will return an undefined value, cause this values doesn't have a value yet. * For good practices JS usually use strings with single '', also community * JS is a languag...
true
65fa09bf08236a767a8bebc188f012c3b60acf9d
JavaScript
shilim-developer/GMS
/src/main/webapp/js/models/PlaceStatusVo.js
UTF-8
218
2.53125
3
[]
no_license
if(typeof PlaceStatusVo == 'undefined') { function PlaceStatusVo() { this.id; this.placeId; this.timeId; this.placeStatus; } } PlaceStatusVo.prototype.voToJson = function() { return JSON.stringify(this); }
true
31c153090cd9f388458f049a9966ab83247e5a37
JavaScript
BarbaraMoran/ejercicios-Adalab
/Modulo-3/modulo-3-leccion-010-ej6/src/components/Text.js
UTF-8
637
2.671875
3
[]
no_license
import React, { useState, useEffect } from "react"; const Text = () => { const [userText, setUserText] = useState(localStorage.getItem("userText")); // usamos el hook useEffect para gestionar los ciclos de vida del componente useEffect(() => { localStorage.setItem("userText", userText); }); c...
true
cb34d0a2110b63b6d3bd0dd54d6825cfcd70fa59
JavaScript
Web-Tricks-Master/node-fs
/11_copyfile.js
UTF-8
377
2.671875
3
[]
no_license
const fs = require('fs') fs.copyFile('oldFile.txt', 'oldFileTwo.txt', (err) => { if (err) { console.error(err) return } console.log('Файл успешно копирован') }); try { fs.copyFileSync('oldFile.txt', 'oldFileTwo.txt') console.log('Файл успешно копирован') } catch (error) { conso...
true
b8929b86bd5e7ab4603d601d84d2bce37151f0b1
JavaScript
sultanguvenbas/TheRedFlower
/js/basket.js
UTF-8
1,862
2.765625
3
[]
no_license
function loadBasketItems() { let total = document.getElementById("totalText"); let cartList = document.getElementById("cartList"); cartList.innerHTML = ""; let pricefull = 0; for (let i = 0; i < cart.length; i++) { let item = cart[i]; pricefull += item.price * item.inCart; cartList.innerHTML += ` ...
true
1ee70ab7d8682ddea3ac7db97fff7bcd2434e4e1
JavaScript
felipey2010/jogo-educativo
/src/utils/ErrorBoundary.js
UTF-8
1,616
2.78125
3
[]
no_license
import React from "react"; class ErrorBoundary extends React.Component { constructor(props) { super(props); this.state = { hasError: false, count: 0, loadNextError: false, threeDots: "", }; this.showThreeDots = this.showThreeDots.bind(this); } static getDerivedStateFromErr...
true
aba92b997be3d49e87dbc49d3172750642b2bbc1
JavaScript
Vladislav716/buyanycaronline-
/Server/controllers/ad.controller.js
UTF-8
3,943
2.640625
3
[]
no_license
var admin = require("firebase-admin"); var db = admin.firestore(); var date = require("../../config/date"); //Create new ad exports.create = (req, res) => { // Create a ad let ad = { user_id : req.body.user_id, title : req.body.title, price : req.body.price, de...
true
32d2844782e2a71c30956c7e09d7c575360ed69f
JavaScript
ttfkam/do.bot
/apps/resource/app.js
UTF-8
4,619
2.84375
3
[]
no_license
const command = require('../../controllers/command'), mongo = require('../../models/mongo'), model = require('./models'); const commands = { 1: { 'help': '/resource tag,tag2,tag3\n\t\twill return all resources with the given tags', /** * This command is designed to return a list o...
true
f441f9dcb373adafb556087180fd754fc40117fc
JavaScript
UDTechLLC/python-web-camera
/app/static/js/train.js
UTF-8
791
2.625
3
[]
no_license
var interval = null; $(document).ready(function () { interval = setInterval(get_train_status,1000) }); function get_train_status(){ $.ajax({ type: 'GET', url: '/train-status', contentType: "application/json", dataType: 'json', data: [], }).done(fu...
true
ea107b42e02d767c90c3e87cc64183f56d6362f2
JavaScript
Kandratsina/ProjectGraduationK
/ProjectGraduationK/wwwroot/js/faq.js
UTF-8
1,834
2.625
3
[]
no_license
$(document).ready(function () { GetQuestions(); function DeleteQuestion(questionId) { $.ajax({ url: 'faq/'.concat(questionId), type: 'DELETE', success: function () { window.location.replace(window.location); } }) } funct...
true
9fd9881f9ca962b0d6fd2d947f0f0baec93e977e
JavaScript
colapiombo/link-station
/src/linkstation.js
UTF-8
12,643
3.078125
3
[]
no_license
"use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnPrope...
true
d66a09d7af39b0f6cf743d7e368e266d6b618650
JavaScript
zhuhaoming1/requestAnimationFrame
/jcs_dialog.js
UTF-8
2,038
2.546875
3
[ "MIT" ]
permissive
function Loading (){ this.ele = '<div class="jcs_dialog"><div class="j_inner"><img src="../jcs_dialog/cai.png" alt="">'+ '<span class="j_move"></span></div></div>'; this.timerj = null; this.startH = 0; this.createLink(); } Loading.prototype = { openL: function (){ var that = this; $('html').append($(this.e...
true
352cc624c43317ba839bde545513cc37e60bbe2d
JavaScript
Emdict/chdict
/search/253.js
UTF-8
33,046
2.75
3
[]
no_license
var x = new Array(); x[0]="俯就#15853#俯就|fǔjiù#<ps>动</ps> ➊敬辞,用于请对方同意担任职务:经理一职,尚祈~。 ➋迁…"; x[1]="俯念#15855#俯念|fǔniàn#<ps>动</ps>敬辞,称对方或上级体念:~群情。"; x[2]="俯拾即是#15856#俯拾即是|fǔshí-jíshì#只要弯下身子来捡,到处都是。形容地上的某一类东西、要找的某一…"; x[3]="俯拾皆是#15857#俯拾皆是|fǔshí-jiēshì#俯拾即是。"; x[4]="俯瞰#15854#俯瞰|fǔkàn#<ps>动</ps>俯视:~大地。"; x[5]="俯视#15858#俯视|fǔshì...
true
72c8f2372fcd9b7d631d5aaa5da81f25acbe62da
JavaScript
PerwiPerwi/OwnProjects
/bitBucket/Wlasne programy/JavaScript/Milionerzy/Milionerzy.js
UTF-8
8,919
2.796875
3
[]
no_license
//deklaracja zmiennych globalnych var imie = prompt("Podaj swoje imię graczu :)"), odpA = document.getElementById('odpA'), odpB = document.getElementById('odpB'), odpC = document.getElementById('odpC'), odpD = document.getElementById('odpD'), popr_odp = null;//Zmienna do ktor...
true
f32b7fb110314a72a1508414ff16171fd60455b7
JavaScript
payello/countdown
/src/components/age.js
UTF-8
851
3.046875
3
[]
no_license
import React, { Component } from "react"; class Age extends Component { constructor(props) { super(props); this.state = { years: 0, }; } componentDidMount() { const date = this.calculateAge(this.props.date); date ? this.setState(date) : this.stop(); } calculateAge(date) { ...
true
493d0d5b1901276336037c9723ee0f5ed70ccd04
JavaScript
claytonsuplinski/audio_visualizer
/assets/js/Note.js
UTF-8
787
2.75
3
[]
no_license
function Note(){ this.model = TTR.models.note; this.start_time = this.get_start_time(); this.should_delete = false; this.parent_object = ""; } Note.prototype.get_start_time = function(){ var now = new Date(); var curr_time = now.getTime(); var curr_milliseconds = now.getMilliseconds(); curr_time -= curr_mi...
true
83f101e3ad051f18679985a59aab969b7d806aaa
JavaScript
kellyloomis/Project-3
/test/test-server.js
UTF-8
23,583
2.546875
3
[]
no_license
const chai = require('chai'); const chaiHttp = require('chai-http'); const server = require('../server'); const should = chai.should(); chai.use(chaiHttp); /** * Test Cases for User endpoints **/ describe('Users', function() { // This newUser object will be used for testing of Create, Update, and Delete let new...
true
cb417aaafeccc7786a31d5e763047eecba382a13
JavaScript
gregtatum/perf-api
/profile-logic/marker-timing.js
UTF-8
4,762
2.796875
3
[]
no_license
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _typeof2 = require('babel-runtime/helpers/typeof'); var _typeof3 = _interopRequireDefault(_typeof2); var _toConsumableArray2 = require('babel-runtime/helpers/toConsumableArray'); var _toConsumableArray3 = _interopRequireDefault(_toC...
true
505a816fc2ac0018f54301dc4a787f9ef431acb1
JavaScript
zork4cyber/data-structures-and-algorithms-2
/401-code-challenges/linked-list-2/lib/ll.js
UTF-8
1,844
3.875
4
[]
no_license
'use strict'; const Node = require('./node.js'); class LinkedList { constructor() { this.head = null; } append(value) { //instantiate new node let node = new Node(value); //if no head, create one as first node if (!this.head) { this.head = node; return this; } // point c...
true
2ae80efbe82f651e0fed987a12a6ced9a1a5fb11
JavaScript
prateekchachra/simple-calc
/src/utils/validation.js
UTF-8
72
2.515625
3
[]
no_license
export const checkIfValidDigit = (str) => /[0-9%/*+\-=/.]+$/.test(str);
true
14c94f87ad794707bb4a465f23e4e20da6724b8d
JavaScript
krebs/painload
/K_belwagen/sin.js
UTF-8
606
2.921875
3
[ "WTFPL" ]
permissive
var x = 3000; var t = 0; var i = 0; var j = 0.00001; var t0 = new Date(); (function rec () { var t1 = new Date(); console.error('dt = ' + (t1 - t0)); t0 = t1; if (x === 3000) { x = 1000; } else { x = 3000; }; console.log('2000 50 0 50 2000 50 0 50 ' + x + ' 100 0 0'); return setTim...
true
2f1516f29088b02fd68455203df6a451a0851cbc
JavaScript
HunterJuneau/achievement-tracker
/src/helpers/data/gamesData.js
UTF-8
1,138
2.53125
3
[]
no_license
import axios from 'axios'; import firebaseConfig from '../apiKeys'; const dbUrl = firebaseConfig.databaseURL; const getGames = (uid) => new Promise((resolve, reject) => { axios .get(`${dbUrl}/games.json?orderBy="uid"&equalTo="${uid}"`) .then((response) => resolve(Object.values(response.data))) .catch(re...
true
6640e57007ac19a059efca798e553306a5955813
JavaScript
RabbitPL/my-react-demo
/src/only.redux/store/actionCreators.js
UTF-8
1,019
2.640625
3
[]
no_license
import {CHANGE_INPUT_VALUE, ADD_TODO_ITEM, DELETE_TODO_ITEM, INIT_LIST_ACTION, GET_INIT_LIST} from './actionTypes'; // 使用actionCreator统一管理所有的action, 并且方便进行自动化测试 export const getInputChangeAction = (value) => ({ type: CHANGE_INPUT_VALUE, value }); export const getAddItemAction = () => ({ type: ADD_TODO_ITE...
true
1ec51e31c2183ebeb1c1cbea61868a24b9a2bd1e
JavaScript
thiagonmiziara/seven-inc-frontend
/seven-inc/src/components/CreateEmployee.js
UTF-8
4,055
2.609375
3
[]
no_license
import React, { useState} from "react"; import axios from "axios"; import { Button, Card, CardBody, CardFooter, Col, Form, Input, InputGroup, Row, Container, } from "reactstrap"; export const CreateEmployee = (props) => { const [employee, setEmployee] = useState({ name: "", salary: "", ...
true
b274727d893d8319cd3baf71ff29fdc7a310b56f
JavaScript
paula-gomes/Mentoria-Globo
/src/app/view/interface_usuario.js
UTF-8
3,217
2.796875
3
[]
no_license
function paginaUsuario(participanteVotacao) { let participanteVoto= ''; participanteVotacao.forEach( participante => { participanteVoto += ` <style> .container { display: flex; justify-content: center; } img { border-radius: 10% } input[type="radio"] { ...
true