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
d7cb55930785f05832bec440ea6fff67ad916402
JavaScript
karimabuseer/personal-site
/frontend/src/App.js
UTF-8
3,061
2.828125
3
[]
no_license
import React, { Component } from "react"; import axios from "axios"; import './App.css' import { BrowserRouter as Router, Switch, Route, Link } from "react-router-dom"; class App extends Component { constructor(props) { super(props); this.state = { projectList: [], }; } componentDidM...
true
e7efa1e3b20a9a0e5e9b6262f588f4abae068331
JavaScript
andredeloliveira/NShop
/client/admin/Admin.jsx
UTF-8
3,251
2.53125
3
[ "MIT" ]
permissive
Meteor.subscribe("products"); Meteor.subscribe("categories"); Meteor.subscribe("manufacturers"); Meteor.subscribe("brands"); Admin = React.createClass({ mixins: [ReactMeteorData], getMeteorData() { return { products: { name: 'products', object: Products.find({}).fetch(), columns: ...
true
e962747f0b97207f349fd0d5ce02c581422d79fd
JavaScript
l3szek/revolut-exchange-screen
/src/components/AmountInput.jsx
UTF-8
2,017
2.5625
3
[]
no_license
// @flow import React, { useEffect, useState } from 'react'; import { getFormattedValue } from '../utils/helpers'; import { KEYCODES } from '../constants/common'; import TextField from '@material-ui/core/TextField'; import { formattedAmount } from '../utils/helpers'; type Props = { onChangeAmount: Function, curr...
true
8b67133c63ce0bb0840a367169e0927c7eb18953
JavaScript
Ksahithi19/EVENT-MANAGEMENT-SYSTEM
/EVENT MANAGEMENT SYSTEM/src/reducers/reducer.js
UTF-8
1,140
2.671875
3
[]
no_license
import {ADD_TODO,DELETE_TODO,EXTEND_TODO} from './actions'; import {todos} from './states'; export let reducer=(state=todos,action)=> { let newTodos=[...state]; switch (action.type) { case ADD_TODO: newTodos=[...state]; let index=-1; for(let i=0;i<newTodos.length;i++) { if(action.payload.id<=50) {...
true
11dd03e1e37aee74032fba56f4c0f9ae581b9ecb
JavaScript
PowerCoders-Milan/intro-to-js-Siar-Sohrab
/ex-2/exercise.js
UTF-8
391
3.515625
4
[]
no_license
// Example window.alert("Hello World!"); var mybirth = 1994 var afterwhile = 2030 let currentDate = new Date(); let cDay = currentDate.getDate(); let cMonth = currentDate.getMonth() + 1; let cYear = currentDate.getFullYear(); console.log( cDay + "/" + cMonth + "/" + cYear ); console.log( "my birthday : " + mybirth +...
true
b488dfcff9af32a6476fa288461ec34a9461f545
JavaScript
Deznot/LibraryUI
/src/js/lib/modules/attributes.js
UTF-8
3,405
3.8125
4
[]
no_license
import $ from '../core'; /** * Метод - setAttr устанавливает атрибут, каждому элементу из $() * @param {string} name * @param {*} value * @returns Object - с объектом можно работать дальше * @example * $('button').setAttr("disabled", "disabled"); * //=> {0: button, length: 1} */ $.prototype.setAttr = functio...
true
b2076ba728dcac9ea410d1a6950aed59e5b73d3a
JavaScript
magn3506/ReactNode_Mandatory_2
/server/controllers/user/resetUserPassword.js
UTF-8
1,737
2.578125
3
[]
no_license
const client = require('../../db/connection'); const bcrypt = require('bcrypt'); const resetUserPassword = (req, res) => { // CLEAR COOKIE // res.clearCookie('resetPasswordID'); const body = req.body; const resetToken = body.resetToken; const newPassword = body.newPassword; // TJEK IF BODY...
true
2c6a431406b37167b749b25bf0391c035bdf4a36
JavaScript
josephjaniga/MementoMori
/assets/js/class/Stat.js
UTF-8
556
2.734375
3
[]
no_license
console.log('class/Stat.js loaded...'); define( [ 'jquery' ], function( $ ){ function Stat ( name, base, effective, description ) { // properties this.name = name || "Default Stat"; this.base = base || 0; // the total stat this.effective = effective || 0; // the current stat this.display = this.effecti...
true
a478631e790e2f2cfb9b0615df478ee5486f034a
JavaScript
Apheliont/shopping_cart
/src/helpers/customFetch.js
UTF-8
2,058
2.5625
3
[]
no_license
// Втроенный интерсептор, в реквестах это токен, в респонсах это // перенаправление на строницу логина если ответ от сервера "401 Неавторизован" // получаем доступ к хранилищу, нам нужен токен import {store} from '../store/Store'; // получаем доступ к роутеру, нам нужно перенаправлять на строницу логина // всякий раз...
true
9b6a43deb4299741cc128d755dfb8599782cf87c
JavaScript
js-tasks-ru/jsbasic-20210921-5_m89139158466
/3-module/2-task/index.js
UTF-8
97
3.015625
3
[]
no_license
function filterRange(arr, a, b) { return arr.slice().filter(item => item <= b && item >= a); }
true
8d27ed08012483618ba991c53543daf58e6845f5
JavaScript
Seangee86/frontendbootcamp
/Intro JS/section20.js
UTF-8
3,160
3.9375
4
[]
no_license
// function printHeart() { // console.log("<3") // } // printHeart(); // function greet(firstName) { // console.log(`Hello ${firstName}`) // } // greet('Sean'); // greet('Alicia'); // function rant(message) { // console.log(`${message}`.toUpperCase()); // console.log(`${message}`.toUpperCase()); // ...
true
5c560e40caa26aebc65cb80f62e348ea0b5ebdba
JavaScript
divyachopra/monumentQuiz
/js/Factories/DataService.js
UTF-8
11,694
2.53125
3
[]
no_license
/** * Created by Divya Chopra on 1/5/2017. */ var dataFac = angular.module('trivia'); dataFac.factory('DataService',DataFactory); function DataFactory(){ var dataObj = { triviaData:monumentsData, quizQuestions:quizQuestions, correctAnswers:correctAnswers }; return dataObj; } var...
true
51e919d2c459852ff142336e3750368b79b2274c
JavaScript
PMA-2020/datalab
/source/javascripts/tooltip.js
UTF-8
11,722
2.71875
3
[]
no_license
import Selectors from './selectors'; /** * Tooltip support throughout the app */ export default class Tooltips { /** * Adds the tooltip on the charting button, indicating why it can't be used */ static enableBtnSubmitChart() { $('.tooltip-btn-chart').tooltip({ title: 'You must select Country-Roun...
true
bf2ac92bd4e2e1141f1daad83d2083097a693f68
JavaScript
badams92/badams92.github.io
/projects/eloquent-javascript/chapter-05/exercises.js
UTF-8
3,688
3.125
3
[]
no_license
// ///////////////////////////////////////////////////////////////////////////// // flatten ///////////////////////////////////////////////////////////////////// // ///////////////////////////////////////////////////////////////////////////// function flatten(array) { let results = []; for (let i = 0; i < array.le...
true
8345d3a37935caaed67e0764152ca50c1aacb2ae
JavaScript
SanaWalla/CheckersJS
/src/render.js
UTF-8
448
3.46875
3
[]
no_license
export default function gridGenerate() { const board = document.getElementById('board'); for (let i = 0; i < 8; i++) { for (let j = 0; j < 8; j++) { const square = document.createElement('div'); square.id = `${i}x${j}`; square.classList.add('square'); if ((i + j) % 2 === 0) { squ...
true
eb0ec2eb011477b6ff86b6895efece2e3515d541
JavaScript
anr-software-solutions/robot
/src/reducer.js
UTF-8
1,087
2.671875
3
[ "Apache-2.0" ]
permissive
export const initialState = { xPlacement: '', yPlacement: '', direction: '', command: '' }; export const UPDATE_PLACEMENT = 'updatePlacement'; export const UPDATE_X_PLACEMENT = 'updateXPlacement'; export const UPDATE_Y_PLACEMENT = 'updateYPlacement'; export const UPDATE_DIRECTION = 'updateDirection'; export co...
true
bfccb257379220f2cb71ee4fbbc2e4e20ca7d0c4
JavaScript
cqlanus/harvard-js-unit-projects
/Unit Projects/Lanus_Chris.unit2b/js/hw2b_v3.js
UTF-8
6,073
3.890625
4
[]
no_license
/* hw2b.js */ "use strict"; // First we do a self-invoking function that contains everything - there will be nothing // exposed to the global scope. (function(){ var jArray = []; var jObject = {"jObject": jArray}; // Build a constructor function that creates a new object record var Record = function...
true
f5b239322866cb60af71befeaf16c45b43bc3a12
JavaScript
wyvern8/alexa-test
/src/alexaTestLambda.js
UTF-8
5,095
2.734375
3
[ "MIT" ]
permissive
/* eslint-disable func-names */ const AWS = require('aws-sdk'); AWS.config.update({ region: process.env.ALEXA_AWS_REGION }); const ddb = new AWS.DynamoDB.DocumentClient({ convertEmptyValues: true }); /** * This sample demonstrates a simple skill built with the Amazon Alexa Skills * nodejs skill development kit...
true
ea26d329beb27791e3ebfafdff15e6e375122a38
JavaScript
Askars/asDashboard
/LeftMenu.js
UTF-8
7,982
2.53125
3
[]
no_license
LeftMenuBtnObj = function(parent, className, text, titleTextArr, onclick, href) { var self = this; self.selected = false; self.parentMenu = parent; self.leftTitleText = null; self.rightTitleText = null; if (titleTextArr) { self.leftTitleText = titleTextArr[0]; self.rightTitl...
true
d521af06f9df396d9548bcb436421526a96da646
JavaScript
JuanPastenCastillo/stopWatch
/main.js
UTF-8
3,679
3
3
[]
no_license
let seconsDOOM = document.body.querySelector("#secons") let minutesDOOM = document.body.querySelector("#minutes") let hoursDOOM = document.body.querySelector("#hours") let legendDOOM = document.body.querySelector(".legend") let btnOffOn = document.querySelector(".offOn") let resetBtn = document.body.querySelector(".res...
true
a96b2276783a2c94b149b7225bddf6e9ba023937
JavaScript
MuGuiLin/Angular.js
/cli-demo/nodejs_serve/app.js
UTF-8
1,637
2.640625
3
[]
no_license
var express = require('express'); var urllib = require('url'); var app = express(); var bodyParser = require('body-parser'); app.use(bodyParser.json()); app.use(bodyParser.urlencoded({ extended: false })); /*express允许跨域*/ app.all('*', function (req, res, next) { res.header("Access-Control-Allow-Origin", "*")...
true
7972b791c494e45d6e811344d324f7157d46150f
JavaScript
Amaranth01/Exo-68-JS-Fonctions-personnalisees-2
/app.js
UTF-8
197
3.28125
3
[]
no_license
let a = document.getElementsByTagName('p'); function randomNumber () { return Math.trunc(Math.random()*100); } for (let i = 0; i < 10; i++) { a[i].innerHTML = randomNumber().toString(); }
true
396804a225bab4a2a23592816c102a3d440e6739
JavaScript
e3cd/JS-weird-parts
/index.js
UTF-8
606
3.21875
3
[]
no_license
/** * CONCEPTUAL ASIDE syntax parser / lexical environments / execution contexts */ // // SYNTAX PARSERS: // a program that reads our code and determines what it does and if its grammar is valid // // LEXICAL ENVIRONMENT: // Where somethings sits physically in the code you write, and what surrounds it. // // EXE...
true
1cf12d05ce32ba3526c7a72482727aa78775008c
JavaScript
alycda/style-tile
/static/js/Video.js
UTF-8
4,093
2.859375
3
[]
no_license
/** This is a class that lets you hook into the Vimeo player api. It will be notified of various events that happen when you interact with the player, and will trigger the appropriate callback when necessary. There is a odd issue with Vimeo's "Froogaloop" JS class where, when trying to interact with multipl...
true
b1e20de1d77732333337e0444a0b4f39018be632
JavaScript
Meeeeeow/HTML_and_CSS
/simpleJs/trycatch.js
UTF-8
505
3.5
4
[]
no_license
function myFunc(){ input_val = document.getElementById('demo1').value; respo = document.getElementById('response'); respo.innerHTML = ''; try{ if(input_val == '') throw 'enter valid input'; if (isNaN(input_val)) throw 'not a number'; if(Numb...
true
159ba0c7dc9d359b36217e88016280bc39fefdd7
JavaScript
kashesandr/javascript-design-patterns
/behavioral/mediator.js
UTF-8
1,065
3.3125
3
[]
no_license
const log = require('../log'); class Mediator { channels = {}; emit (channel) { if (!this.channels[channel]) return false; let subscription = null; const args = Array.prototype.slice.call(arguments, 1); for (let i = 0, l = this.channels[channel].length; i < l; i++) { ...
true
45fe409dc0aacd2be342d5e24eba1d038a226bae
JavaScript
mopixels/Tech-Rookie-exam-Part-3-Front-end
/src/components/Cell.js
UTF-8
668
2.65625
3
[]
no_license
import React from 'react'; import arrow from './arrow.png'; const Cell = ({ y, x, coordinateX, coordinateY, arrowPosition }) => { const cellCoordinates = [x, y].toString(); const currentLocation = [coordinateX, coordinateY].toString(); if (cellCoordinates === currentLocation) { console.log('the one'); console....
true
a4d8a93ac05dd3c943a1a8e752779304dc709106
JavaScript
fromroots/reversiwebapp
/public/main.js
UTF-8
15,329
2.84375
3
[]
no_license
/********** retruns value of the url parameter */ function getUrlParams(urlParams) { var pageUrl=window.location.search.substring(1); var pageUrlvariables=pageUrl.split('&'); for(var i=0;i<pageUrlvariables.length;i++) { var paramName=pageUrlvariables[i].split('='); if(paramName[0] == urlParam...
true
7f1a13a24508d564a62bf5dd356be9098546ad5f
JavaScript
ssriayuliani/learn-javascript
/async/promise-all/app.js
UTF-8
1,027
3.203125
3
[]
no_license
const { checkAvailability } = require('./library.js'); const onFulfill = (itemsArray) => { console.log(`Items checked: ${itemsArray}`); console.log(`Every item was available from the distributor. Placing order now.`); }; const onReject = (rejectionReason) => { console.log(rejectionReason); }; const check...
true
fa4eff070e371f0b8e0cf316e1e2605a0eb18cda
JavaScript
hallebanis/node-checkpoint
/node 6-13/mymodule.js
UTF-8
450
2.921875
3
[]
no_license
const fs=require('fs') /* function foodemo(value){ return 'hello '+value; } function funct(a, foo){ console.log(foo(a)); } //call funct funct('world!',foodemo); */ module.exports =function(path,extension,callback){ fs.readdir(path,'utf8',(err,data)=>{ if(err) return callback(er...
true
6572c085b2601d92fb64d05972f9cdb8e21d42e0
JavaScript
BenjaminRaffle81/ProjectOneMoneyTeam
/nytimes.js
UTF-8
510
2.59375
3
[]
no_license
$("button").on("click", function() { var apiKey = "fecfa0341d564db69594e4b0f78fea8e" var year = "2000"; var endYear = "2007"; var month = "dec"; var queryURL = "https://api.nytimes.com/svc/books/v3/lists/overview.json?api-key=fecfa0341d564db69594e4b0f78fea8e"; $.ajax({ ...
true
98a44a7bfd48ee3d807d216a9691c300e7deed78
JavaScript
EbubeUd/Masta-web
/src/js/index.js
UTF-8
527
3.015625
3
[]
no_license
var getParams = function (url) { var params = {}; var parser = document.createElement('a'); parser.href = url; var query = parser.search.substring(1); var vars = query.split('&'); for (var i = 0; i < vars.length; i++) { var pair = vars[i].split('='); params[pair[0]] = decodeURIComponent(pair[1]); } ret...
true
5a3d738042d0a4020801f4061d56f5fb1add6878
JavaScript
yous1990/Crowdsourcing
/controllers/locale.js
UTF-8
3,257
2.53125
3
[]
no_license
var LocaleModel = require('../models/Locale'); var Q = require('q'); var ObjectId = require('mongoose').Types.ObjectId; //create an locale function insertLocale(myLocale) { var deferred = Q.defer(); var newLocale = new LocaleModel(myLocale); newLocale.save(function (err, doc) { if (err) { ...
true
875bc515ce90b1b9e9555bd665c08a4f90473d86
JavaScript
eburley/jasmine.presentation
/src/basic_slide_navigator.js
UTF-8
956
3
3
[]
no_license
define(['jquery'], function($){ /** * A basic slide navigation scheme that wires up to keyboard and * click events and calls next and previous on the presentation. * * @param {Slides} presentation The slide engine. */ return function(presentation) { "use strict"; ...
true
a977af47525229a10e1ddbcf484839ad1ae71adb
JavaScript
MariuszZalew/ReactExerciseApp1
/src/App.jsx
UTF-8
3,108
2.828125
3
[]
no_license
import React, { Component } from "react"; import "./App.css"; import Person from "./Components/Person/Person"; import Boss from "./Components/Boss/Boss"; // import Other from "./OtherComponent/Other"; import Movies from "./OtherComponent/Movies.jsx"; import "bootstrap/dist/css/bootstrap.css"; import PersonContainer fro...
true
b6e1584d2b128ae18130c96e41c31c44ba29cee8
JavaScript
thilinamj/Node.js-foundation
/C_04_3-event-emitter-2.js
UTF-8
688
4.15625
4
[]
no_license
var EventEmitter = require('events').EventEmitter; var util = require('util'); /* In JavaScript objects are functions. So create teh constructer Object name : Person proprties : name */ var Person = function(name){ this.name = name; }; //person object inherits to the EventEmitter // uses propotype design pattern ...
true
48b19e62f37414c9d8623a71f4ae09d03a9f05e7
JavaScript
mlgjsk/JavaScript
/JSProjects/04.telephon-num-validator.js
UTF-8
648
4.09375
4
[ "MIT" ]
permissive
/** * Return true if the passed string looks like a valid US phone number. * For this challenge you will be presented with a string such as 800-692-7753 or 8oo-six427676;laskdjf. * Your job is to validate or reject the US phone number based on any combination of the formats provided above. * The area code is requ...
true
e9f0dd93cfc076b983b147afcb4f3a2c680d5f08
JavaScript
sachinr/channel-naming-template
/src/index.js
UTF-8
3,279
2.515625
3
[]
no_license
require('dotenv').config(); const express = require('express'); const bodyParser = require('body-parser'); const channelTemplate = require('./channel_template'); const notifier = require('./notifier'); const app = express(); /* * Parse application/x-www-form-urlencoded && application/json */ app.use(bodyParser.url...
true
3901e458503d806aa9e3a0d28b95c31ace0493ce
JavaScript
LindaLaura/stackathon_geolocation
/client/store/reducers/companyReducer.js
UTF-8
1,213
2.671875
3
[]
no_license
import {LOAD_COMPANY, LOAD_COMPANIES, DELETE_COMPANY, EDIT_COMPANY, CREATE_COMPANY} from '../actions/companyAction'; const initialState = { companies:[], selectedCompany:{} }; const companyReducer = (state = initialState, action) => { switch (action.type){ case LOAD_COMPANIES: return {...
true
0fb2985479e6a41c3db7d1a1f85af39941125af2
JavaScript
nicepalpal/webdev2019
/Javascript/Notes/Advanced JavaScript/ES7.js
UTF-8
254
3.953125
4
[]
no_license
.includes() 'Hello'.includes('o'); //output true const pets = ['dog', 'cat', 'horse']; pets.includes('dog') //output true pets.includes('bird'); //false const square = (x) => x**2; square(2) //4 square(5) //25 const cube = (y) => y**3 cube(3) //27
true
33ef049094c0d0f4e3adb190d78cb790ee990ab5
JavaScript
efimovserj/challenges-forever
/#javascript30/10. Hold Shift to Check Multiple Checkboxes/script.js
UTF-8
670
3.15625
3
[ "MIT" ]
permissive
const inputs = document.querySelectorAll('input[type="checkbox"]'); const inputAsArray = [...inputs]; let lastIndex; function determineIndex(target) { return inputAsArray.findIndex((input) => input === target); } function setLastInput({ target, shiftKey }) { const currentIndex = determineIndex(target); if (shi...
true
3e5dd7ff22805e4f632e2161cad4b201834f75b1
JavaScript
mrshanehunter/delicious-dinners
/gatsby/src/components/TagsFilter.js
UTF-8
2,615
2.609375
3
[]
no_license
import React from 'react'; import { useStaticQuery, graphql, Link } from 'gatsby'; import styled from 'styled-components'; const TagsStyles = styled.div` display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 4rem; background-color: var(--navy); border: 0.25vw solid var(--tan); padding: 1.5rem; a { ...
true
77a1e05dbf2047a946699d663f566954c7ace76e
JavaScript
shadowhiker/IFE_Baidu
/Basic/YaoYaoSchool/task7/task7.js
UTF-8
2,335
3.09375
3
[]
no_license
var nameIn = $("nameIn"); var scoreC = $("scoreC"); var scoreM = $("scoreM"); var scoreE = $("scoreE"); var checkIn = $("checkIn"); var sortTab = tagClass("sortTab"); var sortUp = tagClass("sortUp"); var sortDown = tagClass("sortDown"); var tbodyy = $("display"); /* 运行主函数 */ checkIn.onclick = contentIn; init(); /* -...
true
a8f6e424090a785d78469efabbabe878a5518b4d
JavaScript
MariaKasa/GoodsCard
/3 задание/script.js
UTF-8
830
2.71875
3
[]
no_license
var myList = document.querySelector('.goods'); var myRequest = new Request('./data.json'); fetch(myRequest) .then(function(response) { return response.json(); }) .then(function(data) { for (var i = 0; i < data.product.length; i++) { var listItem = document.createElement('div'); let phot...
true
57e5108ff8817e93cbd7d2b966aa0ff964b7b83b
JavaScript
JManey/udemy_bootcamp
/jsBasicFunctions/arrayProblemSet.js
UTF-8
674
4.5
4
[]
no_license
//print reverse of an array let arr1 = [1, 2, 3, 4, 5]; function printReverse(arr) { let reverse = arr.reverse(); console.log(reverse); } // are all array elements the same function isUniform(arr) { let first = arr[0]; let answer = true; arr.forEach((ele) => { if (ele !== first) { console.log(ele,...
true
ba721cc66f97aa33d75a5f35b6af6fc5aaecc06c
JavaScript
SteveJRobertson/jam-dodger
/src/components/ProgressBar.js
UTF-8
1,520
2.53125
3
[ "MIT" ]
permissive
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import moment from 'moment'; import jdConfig from '../jamdodger.config'; import './ProgressBar.css'; /** * A progress bar component to indicate the time left until the next API call. */ class ProgressBar extends Component { constructor(p...
true
6e67180c90382bb065884ff04a2b67c3a568e69e
JavaScript
EwaMarta/Camp-2017
/js/dashboard.js
UTF-8
2,952
3.296875
3
[]
no_license
const getSummary = (endpoint, containers) => { const balanceContainer = document.querySelector(containers.balance); const fundsContainer = document.querySelector(containers.funds); const paymentsContainer = document.querySelector(containers.payments); $.get("https://efigence-camp.herokuapp.com/api/" + endpoin...
true
af60bc71048e7f9d01b89f1892b460fc14a88f09
JavaScript
hernanutn/cursoJS
/curso/clase10/ej2/script.js
UTF-8
1,171
3.125
3
[]
no_license
window.addEventListener('load', function () { let form = this.document.forms[0]; form.addEventListener('submit', function (e) { e.preventDefault(); enviarDatos(); }); }); function enviarDatos() { let xhr = new XMLHttpRequest(); let info = this.document.getElementById('info')...
true
ec42fecbf37a7f68787f68976e126114029c8cd5
JavaScript
rfaulhaber/fp-js-presentation
/side-effect.js
UTF-8
684
4.21875
4
[]
no_license
let state = { color: 'red', number: 22 }; function doSomething() { state.color = 'blue'; } function changeMyStuff(val) { val.name = 'side effect'; val[0] = 'who knows what this does!'; } const x = {}; changeMyStuff(x); console.log(x); // { '0': 'who knows what this does!', name: 'side effect' } function foo(...
true
b8af80489e6760c4aa771cbcc78dab9b860d8992
JavaScript
marty-mcgee/OpenJSCAD.org
/packages/utils/regl-renderer/src/cameras/perspectiveCamera.js
UTF-8
1,582
2.5625
3
[ "MIT" ]
permissive
const mat4 = require('gl-mat4') const vec3 = require('gl-vec3') const cameraState = { view: mat4.identity(new Float32Array(16)), projection: mat4.identity(new Float32Array(16)), matrix: mat4.identity(new Float32Array(16)), // not sure if needed near: 1, // 0.01, far: 18000, up: [0, 0, 1], // distance: 10...
true
83d2b8befcbfe6d8f5cc61e721c26a85b8877efe
JavaScript
LouwieLou/NashvilleNutritionSpot
/frontend/src/components/actions/action-types/cart-actions.js
UTF-8
670
2.5625
3
[]
no_license
// file: cart-actions.js // purpose: to describe actions that can be done to update the // state of the cart. // These are action "types", which are defined as // variables for readability. Essentially, these are used // to manage the Cart as users add, remove, or add/subtract // menu items from the Cart. export co...
true
dc75b6522984f5dd3e5cf8f726aa26a3d9ca04f6
JavaScript
Avalojandro/Inteligencia_artificial_BASIC
/cerebro.js
UTF-8
1,974
3.484375
3
[ "MIT" ]
permissive
//Los espacios en el primer Prompt son debido a que este programa fue diseñado para ser usado en Google Chrome var nombre = prompt(" Hola, Soy KRONOS\n Tu asistente web personal\n -----Como te llamas-----...
true
a01439bc2f133f9178f3167e8ea3f5467726aedf
JavaScript
gmtorres/LAIG_18-19_PROJECT
/LAIGDemoParser20192020v1.1/generic/MyPrologInterface.js
UTF-8
3,171
3.1875
3
[ "MIT" ]
permissive
const PROLOG_SERVER_PORT = "8081"; const REQUEST_ADDRESS = "http://localhost:" + PROLOG_SERVER_PORT + "/"; class MyPrologInterface{ constructor(orchestrator) { this.orchestrator = orchestrator; this.connected = false; } /** * Tries to connect to PROLOG server */ async _handshake() { thi...
true
ed4cdfba421fe08b7c042aea4b4c73f847aafbbb
JavaScript
Akira957/bamazon_service
/bamazonCustomer.js
UTF-8
4,218
2.984375
3
[]
no_license
var mysql = require("mysql"); var inquirer = require("inquirer"); require("console.table"); var connection = mysql.createConnection({ host: "localhost", // Your port; if not 3306 port: 3306, // Your username user: "root", // Your password password: "Apparatus987..", database: "...
true
f72b620542fd0cf091a7f774fd4fab2023a56ab2
JavaScript
Jlabroy/marmalade-app
/src/AddUrl.js
UTF-8
2,795
2.515625
3
[]
no_license
import React from 'react'; import {Container, Grid, Input, Table} from 'semantic-ui-react'; class AddUrl extends React.Component { constructor(props) { super(props); this.state = { loading: false, error: '', url: '' }; this._onIndex = this._onIn...
true
4e7785f333a122e866a9b891eff350f5cd084c38
JavaScript
mountsisw/adventofcode2020
/Day16/part2.js
UTF-8
4,458
3.109375
3
[]
no_license
// @ts-check import { doPart, PuzzlePart } from "../aocFW.js"; window.onload = function () { doPart(new PuzzleSolution()); }; class PuzzleSolution extends PuzzlePart { // called after a file is selected, prior to processing init(inputElement, outputElement, answerElement) { super.init(inputElement, outp...
true
2bad6c3739f0157bc965f044f406722d1e194bfa
JavaScript
eva-keller/small-problems
/100blank.js
UTF-8
411
4.875
5
[]
no_license
//Write a function that checks whether a string is empty or not. //const isBlank = str => str === (''); //Change your isBlank function from the previous exercise //to return true if the string is empty or only contains whitespace. function isBlank(string) { return string.trim().length === 0; } console.log(i...
true
0b6b82871e1fa7e99d714b837c93c4373752f15d
JavaScript
gondigesu/web-contador
/js/index.js
UTF-8
2,725
2.8125
3
[]
no_license
const contacto = document.querySelector('.item7'); const botoncancelar=document.querySelector('.btn-danger'); const formulario = document.querySelector('form'); const botonenviar= document.querySelector('.btn-primary'); const nombreformulario=document.querySelector('.nombre'); const apellidoformulario=document.querySel...
true
483b1991c5a35fc54ef43b42b1950e49b42bfa1a
JavaScript
yodaos-project/rt-node
/deps/jerryscript/tests/jerry/arguments-parse.js
UTF-8
1,123
2.8125
3
[ "LicenseRef-scancode-dco-1.1", "Apache-2.0" ]
permissive
// Copyright JS Foundation and other contributors, http://js.foundation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless r...
true
080a66218a62f25473d528ea4f2b6dcd64528a85
JavaScript
eddroid/facebook_dev_circles_miami_Aug2017
/app/assets/javascripts/components/flashable.es6.jsx
UTF-8
491
2.53125
3
[]
no_license
class Flashable extends React.Component { constructor() { super() this.state = {flash: ''} } animationEnd(evt) { if (evt.animationName === 'flash') { this.resetFlash(); } } flash() { this.setState({flash: 'flash'}) } resetFlash() { this.setState({flash: ''}) } render ...
true
bcf182ac590fc66ffc8c12369d226344fcdb1fc5
JavaScript
amitaysoffer/Todo-jQuery
/render.js
UTF-8
1,116
2.546875
3
[]
no_license
const Renderer = function () { const renderTasks = function (tasks) { // empty the tasks div $('#tasks').empty(); // append tasks to #tasks for (let index in tasks) { $('#tasks').append( `<div class='task' id='${tasks[index].id}'> <p class='t...
true
c33e4d1e905b28a4fe703a84348ef99a12ac5928
JavaScript
transcendenztime/FD3-Strelets
/MobileTest/__tests__/Mobile-test.js
UTF-8
4,588
2.578125
3
[]
no_license
"use strict"; import React from 'react'; import renderer from 'react-test-renderer'; import MobileCompany from '../components/MobileCompany'; const clientsArr=[ {id:101, clientF:"Иванов", clientI:"Иван", clientO:"Иванович", balance:200}, {id:105, clientF:"Сидоров", clientI:"Сидор", clientO:"Сидорович", bal...
true
437102e5a41ffa254a9afa0ff80ca8987ae527e3
JavaScript
manojmalik35/CofoundersTown
/src/containers/PublishArticle/parser.js
UTF-8
936
2.609375
3
[]
no_license
import { get } from "lodash"; export const validate = (data) => { let errorObj = {}; if (!data.title) { errorObj.title = "Title is Required"; } if (!data.description) { errorObj.description = "Description is Required"; } if (!data.body) { errorObj.body = "Body is Require...
true
5957ddd71a24327ec7a66b5ebfcf26c84b526ae7
JavaScript
atanasStoyanov/SoftUni_SoftwareEngineering
/programming_basics/7_Nested_Loops_exercise/passwordGenerator.js
UTF-8
821
3.8125
4
[]
no_license
function passwordGenerator(input) { let first = Number(input[0]); let second = Number(input[1]); let printLine = ""; for (let i = 1; i <= first; i++) { for (let j = 1; j <= first; j++) { for (let k = 1; k <= second ; k++) { for (let m = 1; m <= ...
true
d9f796e4a6cb138bd58cb8c073540c52cfed142f
JavaScript
NickMarcha/Dat155_Exercise4
/lib/engine/src/materials/Shader.js
UTF-8
2,006
2.75
3
[ "MIT" ]
permissive
function definesToString(defines) { let text = ""; for (let define in defines) { const value = defines[define]; if (value !== null) { text += `#define ${define} ${value}\n`; } else { text += `#define ${define}\n`; } } return text; } ...
true
68a395b191edff9176b7ccddce0db0872c569816
JavaScript
simonScott1302/Crisps
/crispsChoice.js
UTF-8
679
3.34375
3
[]
no_license
let randomNum = Math.floor(Math.random() * 5); switch (randomNum) { case 0: console.log(`Computer picked ${randomNum}. You can have Salt and Vingar crisps today.`); break; case 1: console.log(`Computer picked ${randomNum}. You can have Cheese and Onion crisps today.`) b...
true
2ee3d46a8c0e3927c0dfe13bb5f5f31ba7623a83
JavaScript
Joruno-w/react
/react-learn/src/redux/saga/effects/takeEvery.js
UTF-8
301
2.578125
3
[]
no_license
import {fork} from "./fork"; import {take} from "./take"; export function takeEvery(actionType,generatorFunc,...args){ return fork(function *(){ while (true){ const action = yield take(actionType); yield fork(generatorFunc,...args.concat(action)); } }); }
true
a2c2c883096713b823723ed745ec0cfb1dd8637a
JavaScript
stephaneleonard/parcour-js-becode
/1.exercises/03-colors/03-change-bcg-three/script.js
UTF-8
715
2.859375
3
[]
no_license
/* becode/javascript * * /03-colors/03-change-bcg-three/script.js - 3.3: couleur de fond (3) * * coded by leny@BeCode * started at 26/10/2018 */ // NOTE: don't focus on the existing code structure for now. // You will have time to focus on it later. (() => { document.getElementById("run").addEventListener("cl...
true
8526a5f56102161efa3b750879ccf3ac3e7dde83
JavaScript
sehersarin/MSCI342-Term-Project
/server/models/data/Worker.js
UTF-8
638
2.578125
3
[]
no_license
const UserTypes = require('../../constants/userTypes.json'); class Worker { // The password field will NOT be stored outside of the database for security purposes. constructor(workerData) { this.workerId = workerData.worker_id; this.firstName = workerData.first_name; this.lastName = wor...
true
9257ec4ddcddb66e7c595ae54e3b89bb87903fb2
JavaScript
jibe-b/trait-ontology-widget
/src/js/main.js
UTF-8
2,654
2.515625
3
[ "BSD-3-Clause" ]
permissive
/** * @author Cyril Pommier, Raphael Flores, Guillaume Cornut * * Inspired from http://alexmarandon.com/articles/web_widget_jquery/ * Using Node/NPM dependencies with browserify */ // Require jQuery var $ = require("jquery"); var JSTreePanel = require('./ui/JSTreePanel'); var DetailsPanel = require('./ui/Details...
true
19e053b91f95a72752afeec4b04eb0f357ac71cd
JavaScript
Victor-02/Pagina-De-Vendas
/Projeto/JS/validacao.js
UTF-8
2,315
3.125
3
[]
no_license
document.forms[0].onsubmit = function () { var formularioValido = true; if (document.querySelector("#nome").value.length > 20) { document.querySelector("#msgnome").innerHTML = "O nome deve ter no mínimo 4 e no máximo 20 caracteres!"; document.querySelector("#nome").classList.add("border-da...
true
4b61c5ebbf9a9a6169946dc00f02aff4bf472753
JavaScript
suqh/web_learn
/react/react基础/03-jsx-basic/src/index.4JSX中使用JS表达式的注意点.js
UTF-8
652
3.359375
3
[]
no_license
import React from 'react'; import ReactDOM from 'react-dom'; /** * JSX中使用JavaScript表达式的注意点 */ // 函数调用表达式 const sayHi = () => 'hi~' // JSX 自身也是JS表达式 const div = <div>我是一个div</div> const title = ( <h1 className="title"> Hello JXS <p>{1}</p> <p>{'a'}</p> <p>{1+7}</p> <p>{3 > 5? '大于': '小于'}</p...
true
c8b411d766492f6471e5bfc6e41fcad47bfc1120
JavaScript
64LOC/copyCalendar
/storageFilesOperation.gs
UTF-8
2,492
2.90625
3
[]
no_license
var NAME_OF_STORAGE_FILE = "copyCalendar storage file"; var storageFile; var sheet; var indexOfDay; function addAttempt() { sheet.getRange(indexOfDay, 3).setValue(sheet.getRange(indexOfDay, 3).getValue() + 1); } function setDayAsFinished() { sheet.getRange(indexOfDay, 2).setValue("finished"); } fu...
true
e85b090c64eb570e15f8999f46acf06fa4882f88
JavaScript
smugfox/jquery-videos-1-4
/scripts/main_lesson4.js
UTF-8
1,715
3.4375
3
[]
no_license
'use strict'; $(document).ready(function(){ // DOM traversal // When your browser reads your HTML file // It returns it one of the elements you made into // elements in the browser that javascript can talk to // When the browser reads all three technologies (HTML / CSS / JS) // Creates the DOM and renders i...
true
41b8aba0ff3c27abaa44bbb76161391d03462614
JavaScript
JigarSony/JavaScript
/JS_Naveen/17-arrayConcept.js
UTF-8
1,348
4.46875
4
[]
no_license
const num = []; console.log(num); const num1 = [3,4]; console.log(num1); console.log(num1.length); console.log(num1[0]); //add an element at end of an array num1.push(5,6); console.log(num1); //add an element at begining of an array num1.unshift(1,2); console.log(num1); //add an element in middle of an array num1...
true
abdb4ddfb0c90ca950fd76de59846d8183d0dedf
JavaScript
allSmi/study-nuxt
/server/utils/index.js
UTF-8
856
2.625
3
[]
no_license
// 根据sessionId获取用户信息 function getUserInfoBySession(sessionId, req) { return new Promise((resolve)=>{ let userInfo = null if (sessionId) { // 服务端发送的请求 req.sessionStore.get(sessionId, function(err, session) { if (session && session.authUser) { ...
true
3dcfc0bfaf95867b6d8e990da357f13aab3603e1
JavaScript
jjad14/social-dev
/client/src/components/profile-forms/ProfileForm.js
UTF-8
10,909
2.5625
3
[]
no_license
import React, { Fragment, useState, useEffect } from 'react'; import { Link, useHistory } from 'react-router-dom'; import { useDispatch, useSelector } from 'react-redux'; import { createProfile, getCurrentProfile } from '../../actions/profile'; const initalState = { company: '', website: '', location: ''...
true
6ac4633877e9a18315eb868d4b12dde2ca4449c7
JavaScript
ihatelethargy/react_prac
/hooks-recap/hooks/src/App.js
UTF-8
551
2.703125
3
[]
no_license
import React, {useState, useEffect, useRef} from "react"; import ReactDOM from "react-dom"; const useTitle = (initialTitle) =>{ const [title, setTitle] = useState(initialTitle); const titleUpdator = () =>{ const titleHtml = document.querySelector('title'); titleHtml.innerText = title; } useEffect(title...
true
fd713c853d48756709207a1bb91b9165b9ca3210
JavaScript
jd28/land_of_misfit_nwn_toys
/neverrun_pw/app/javascript/src/javascripts/server_table.js
UTF-8
4,429
2.53125
3
[]
no_license
/* eslint no-console:0 */ import $ from 'jquery'; import 'datatables.net'; import 'bootstrap'; let format = require('string-format'); import { gametype, version_url, escapeHtml } from "./util"; function copyToClipboard(text, el) { let copyTest = document.queryCommandSupported('copy'); let elOriginalText = el...
true
f5e19bc3582713f3f63088a8a0e38b9ba91de433
JavaScript
ramonjd/requirejs_localStorage
/storage.spec.js
UTF-8
4,717
2.859375
3
[]
no_license
define([ 'storage' ], function (core) { 'use strict'; describe('Storage Service Test', function () { var service, testKey = 'test', obj = { 'one': 1, 'two': 2 }, returnedObj; service = storage; des...
true
4ec5c51c06d3dd3f795fac85abbe49f958e72e6d
JavaScript
newtype-factory/gitlab-mergebutton-control
/js/background.js
UTF-8
3,406
2.71875
3
[ "MIT" ]
permissive
"use strict"; // ストレージからデータの取り出し function getStorageData() { return new Promise(function(resolve, reject) { chrome.storage.sync.get(["url", "version", "allDisabled"], function(items) { var storageData = { url: "", version: "", allDisabled: false }; if (items) { s...
true
85304acf1d87e62a75b43e184c3ae7b0e7ca571f
JavaScript
romcar/svelte-workshop
/src/components/js/Dancer.js
UTF-8
819
3.078125
3
[]
no_license
export class Dancer { constructor(dancer, top, left, dancefloor, interval=0) { this.interval = Number(interval); this.dancer = document.createElement(`span`); this.dancer.classList.add(`${dancer}-dancer`); this.dancefloor = dancefloor; this.top = top; this.left = left...
true
9bdf6e8dd2142aefa2fa7c82fffd10a0ed8c90ef
JavaScript
svonme/site-gather
/src/index.js
UTF-8
3,660
2.625
3
[ "MIT" ]
permissive
const _ = require('./lodash'); const util = require('./util'); const http = require('./network'); const globalOption = { 'appname': '', // app name 'appid': '', // app id 'appkey': '', // app secret 'userId': '', // 用户id 'server_url': '', // 数据上报地址 'track': '/site/event', // ...
true
41617b82886c285cdb51766a709ca3c65c565438
JavaScript
wdyjason/javascript-exercise
/2-array/find/index.js
UTF-8
231
2.921875
3
[]
no_license
export default function find00OldPerson(collection) { // TODO 4: 在这里写实现代码 const maxAge = 20; const minAge = 10; const result = collection.find(e => e.age < maxAge && e.age > minAge); return result.name; }
true
e605b33a4d72505811894d91f90baf7d74a581ca
JavaScript
Suparnapaul393/Flipping-Memory-Card-Game
/js/main.js
UTF-8
8,591
3.09375
3
[ "MIT" ]
permissive
document.addEventListener("DOMContentLoaded", function(event) { var iconsArray = [ [1, 'fa-shopping-cart'], [1, 'fa-shopping-cart'], [2, 'fa-car'], [2, 'fa-car'], [3, 'fa-bomb'], [3, 'fa-bomb'], [4, 'fa-bell'], [4, 'fa-bell'], [5, 'fa-bowling-ball'], [5, '...
true
134929e993df17de9e875a72459acafb24f387d1
JavaScript
VenelinGP/JavaScripts-Fundamentals
/Arrays/3. Maximal sequence/scripts/script.js
UTF-8
1,427
3.859375
4
[ "MIT" ]
permissive
taskName = "3. Maximal sequence"; message = "Write a script that finds the maximal sequence of equal elements in an array.<br/><br/>"; function Main(bufferElement) { WriteLine('var array = ["2", "1", "1", "2", "3", "3", "2", "2", "2", "1"];'); SetSolveButton(function () { CheckIt(); }); funct...
true
b3d294851a038ee77bcc11e0f9f1b3d79693047b
JavaScript
jackkuma/poker
/script.js
UTF-8
2,629
3.265625
3
[]
no_license
let vm = new Vue({ el: "#app", data: { gather: true, //牌堆狀態 state: "Press the cards to start game!", symbols: [ {label: "spades",symbol: "♠"}, {label: "hearts",symbol: "♥"}, {label: "clubs",symbol: "♣"}, {label: "diamonds",symbol: "♦"} ], cards: [ {id:1, label: "spa...
true
ccfed1c3831a20cead3b42766d74be44631cc562
JavaScript
qpthedev/js-paint
/app.js
UTF-8
178
2.796875
3
[]
no_license
const canvas = document.getElementById("js-canvas"); function onMouseMove(event) { console.log(event); } if (canvas) { canvas.addEventListener("mousemove", onMouseMove); }
true
f6e2f7e542cd55fd752de9fd8283e2ab7534972f
JavaScript
swpheus/sungwoocoin
/src/blockchain.js
UTF-8
3,223
3.140625
3
[]
no_license
const CryptoJS =require("crypto-js"); //블록 생성 class Block{ constructor(index,hash,previousHash,timetamp,data){ this.index=index; this.hash=hash; this.previousHash=previousHash; this.timetamp=timetamp; this.data=data; } } //초기 genesisBlock 생성 const genesisBlock =new Block...
true
f299efc5246c89cc0c483a0c2b0566bb4cdb1d20
JavaScript
austinsc/riot-data
/src/utilities.js
UTF-8
1,536
3.03125
3
[ "MIT" ]
permissive
import _ from 'lodash'; import prettyjson from 'prettyjson'; export function isInteger(value) { return +value === (value | 0); } export function isArrayOfIntegers(array) { return _.isArray(array) && _.every(array, isInteger); } export function isArrayOfStrings(array) { return _.isArray(array) && _.every(array,...
true
a49478fc354f9bde71b33a8c52f8e24c18c170a3
JavaScript
Guiradi/Guia-de-Estudos---Leonardo-Ferreira
/Princípios básicos importantes/objetos.js
UTF-8
2,127
4.15625
4
[]
no_license
// Atenção metodo call, apply e bind. // Atividade 3 nao consegui fazer. /* ------- Um tipo de vetor ------- function Vetor(x, y) { this.x = x; this.y = y; } Vetor.prototype.soma = function(other) { return new Vetor(this.x + other.x, this.y + other.y); }; Vetor.prototype.menos = function(other) { return ne...
true
f75ace1910dac85878b82bccce6a92d0421c9ac0
JavaScript
lisswart/react-bookshelf
/src/components/EditForm.js
UTF-8
1,948
2.796875
3
[]
no_license
import { useState } from 'react'; function EditForm({ book, setIsOnEditMode, editBook }) { const [ formState, setFormState ] = useState({ book_title: book.book_title, book_author: book.book_author, book_description: book.book_description, book_group: book.book_group, notes: book.notes }); f...
true
d9d681f9cf2ae6ecfb11b746950a76d65e7335ef
JavaScript
abhijeetvc/reactdemoprg
/src/CallbackEvent.js
UTF-8
545
2.71875
3
[]
no_license
import React from 'react' function CallbackEvent(){ const[message,setMessage]=React.useState('') const handleChange=(event)=>{ setMessage(event.target.value) } return( <div> <MyInput inputValue={message} onInputChange={handleChange} /> <p>Message : {message}</p>...
true
3b62bd8db54cd646295f86af43275304d45f2c6a
JavaScript
karmazanetwork/karmaza-token
/test/BasicToken.js
UTF-8
2,671
2.578125
3
[]
no_license
import { EVMThrow, assertEqual } from './utils'; const KarmazaToken = artifacts.require('KarmazaToken'); contract('KarmazaToken', (wallets) => { const owner = wallets[0]; const accountOne = wallets[1]; const accountTwo = wallets[2]; const DECIMALS = 18; const TOTAL_SUPPLY = (10 ** 11) * (10 ** DECIMALS); ...
true
2729ae6cbf447a8f06ca5ef9d91e301c28715760
JavaScript
DevDevin/scoresforchores
/validation/dayofjobs.js
UTF-8
790
2.6875
3
[]
no_license
const Validator = require("validator"); const isEmpty = require("./is-empty"); module.exports = function validateDayofJobInput(data) { let errors = {}; data.jobName = !isEmpty(data.jobName) ? data.jobName : ""; data.day = !isEmpty(data.day) ? data.day : ""; data.childName = !isEmpty(data.childName) ? data.chi...
true
379f22debe1140f7a9e5cf73b7faa136e4a59222
JavaScript
iampeternguyen/task-manager-api
/tests/user.test.js
UTF-8
5,853
2.609375
3
[]
no_license
const request = require('supertest'); const mongoose = require('mongoose'); const app = require('../src/app'); const User = require('../src/models/user'); const jwt = require('jsonwebtoken'); const { setUpDatabase, userOne, authorizedUserOneToken } = require('./setupTests'); const newUser = { _id: new mongoose.Types...
true
104b1372a42fc53f28f58cc23f06464eabba384e
JavaScript
Kostanios/test_task
/validate.js
UTF-8
2,447
2.71875
3
[]
no_license
function validate(data, rules) { function getType(arg) { let proto, constr; return (arg === undefined) ? "undefined" : (arg === null) ? "null" : (!(proto = Object.getPrototypeOf(arg)) || !(constr = proto.constructor)) ? "Object" : constr.name; } let funcs = { ...
true
1ed127448456591dcd423e00fc39f40e1bc39bed
JavaScript
eolculnamo2/hema-site
/src/components/Contribute/subcomponents/Row3.jsx
UTF-8
11,181
2.703125
3
[]
no_license
/* eslint-disable jsx-a11y/label-has-associated-control */ /* eslint-disable jsx-a11y/label-has-for */ /* eslint-disable no-else-return */ /* eslint-disable no-nested-ternary */ /* eslint-disable react/jsx-one-expression-per-line */ /* eslint-disable no-alert */ import React from 'react'; class Row3 extends React.Comp...
true
abb006857e2e09825336329bdeb3219e297c5d21
JavaScript
fmontano/alloy-tables
/app/controllers/first.js
UTF-8
430
3.34375
3
[ "Apache-2.0" ]
permissive
/// Populating dummy data var data = []; for(var i=1; i<=45; i++) data.push({title : "Row "+i, number : i}); $.myTable.data = data; /// Same as /// $.myTable.setData(data); /// You can add the event listener to the table instead of each row function tableClicked(e){ /// Making sure we are clicking on a row (beca...
true
f69f61bd7e2bd44d9b50a77f0d46de35c81fe61d
JavaScript
Eloyjaws/alcchallenge3
/main.js
UTF-8
4,534
2.96875
3
[]
no_license
const endpoint = 'https://free.currencyconverterapi.com/api/v5/'; let exchangeRate; const currencyConverting = document.querySelector('select#currency-converting'); const currencyConverted = document.querySelector('select#currency-converted'); const inputField = document.querySelector('input#amount'); const displayFi...
true