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
31ddc08071ed92fa580ef31b4e343aee9d3a1a02
JavaScript
tecnocretinos/wakemeup_server
/index.js
UTF-8
2,488
2.734375
3
[]
no_license
import FirebaseManager from './src/FirebaseManager'; import Schedule from './src/Schedule'; import Alarm from './src/Alarm'; const firebase = new FirebaseManager(); const alarm = new Alarm(); //Cron job to execute the alarm //Schedule('10 06 * * *', alarm, firebase); //Schedule('15 06 * * *', alarm, firebase); //---...
true
11db6591f92713f21b697d2b4a3df9d6ec43e2c1
JavaScript
oeso/tetris
/tetris.js
UTF-8
10,486
2.65625
3
[]
no_license
"use strict"; /* document key Code check */ document.onkeyup=function(e){console.log(e.keyCode);} /* mino별 기본 좌표 */ // var minoList = [ // [0,1,2,2,1,1,1,0], //Jmino // [0,1,2,2,0,0,0,1], //Lmino // [0,0,1,1,0,1,0,1],1, //Omino // [0,0,0,1,0,1,2,1],1, //Tmino // [0,1,1,2,0,0,1,1], //Smi...
true
e8a3c873069a033b7ad35c3e0edc2e160c99667f
JavaScript
Vilinz/BlockchainQuiz
/blockchainQuiz/app/scripts/manager.js
UTF-8
9,826
2.9375
3
[ "MIT" ]
permissive
// Import the page's CSS. Webpack will know what to do with it. import '../styles/app.css' // Import libraries we need. import { default as Web3 } from 'web3' import { default as contract } from 'truffle-contract' // Import our contract artifacts and turn them into usable abstractions. // import metaCoinArtifact from...
true
1e2a5474b5a7dea600d7d0265595b6f3d2733b58
JavaScript
nicksama88/blog-exercise
/tests/blog_api.test.js
UTF-8
2,028
2.671875
3
[]
no_license
const mongoose = require('mongoose') const supertest = require('supertest') const helper = require('./test_helper') const app = require('../app') const api = supertest(app) const Blog = require('../models/blog') beforeEach(async () => { await Blog.deleteMany({}) const blogObjects = helper.initialBlogs .map(bl...
true
c2f23251fbfa2c4ecdbc3c1c553f914c6a10c376
JavaScript
RiotlySocial/happy-hour-app-saravanan
/src/components/lobby/lobby.jsx
UTF-8
2,410
2.671875
3
[]
no_license
// @flow import React from 'react'; import Card from '@material-ui/core/Card'; import CardContent from '@material-ui/core/CardContent'; import { Map } from 'immutable'; import CircularProgress from '@material-ui/core/CircularProgress'; import Table from './table'; type Props = { }; /** * Lobby Page component * @cl...
true
18f9cf37c3e581a16437a8fa6b9fa20793990c81
JavaScript
Dylanwooo/component-react
/packages/core/src/_util/common.js
UTF-8
12,404
3
3
[]
no_license
export function isObject(input) { return Object .prototype .toString .call(input) === '[object Object]'; } export function isArray(input) { return Object .prototype .toString .call(input) === '[object Array]'; } export function px2num(val) { return Number(va...
true
8ddca6444c9f6d2ebbbc0f46cdc8e0b9f676e481
JavaScript
zamesow/goit-js-hw-07
/js/task-6.js
UTF-8
493
3.28125
3
[]
no_license
const form = document.querySelector('#validation-input'); const dataLength = Number(form.getAttribute('data-length')); form.addEventListener('blur', onFormCheckLength); function onFormCheckLength(event) { const valueLength = event.currentTarget.value.length; switch (valueLength) { case dataLength: form...
true
f0f85486ff273caef9d869c2042bc47e76a55477
JavaScript
Alec-Raymond/NumberGuessingGame
/script.js
UTF-8
1,514
4.28125
4
[]
no_license
//returns a random integer between lowNum and highNum let randomNumberBetween = function (lowNum, highNum) { if ((!Number.isNaN(lowNum) || !Number.isNaN(highNum)) && lowNum <= highNum) { return ( Math.floor( (1 + Math.floor(highNum) - Math.ceil(lowNum)) * Math.random() + Math.ceil(lowNum) ...
true
cc66516d7b18c3cccb617ffd7e40f624cde3985e
JavaScript
justingolden21/vandyhacks
/public/js/app.js
UTF-8
3,231
2.84375
3
[ "MIT" ]
permissive
const app = firebase.app(); const db = firebase.firestore(); const auth = firebase.auth(); const AVAIL_COLOR_CLASSES = { 'Available': 'green', 'Kind of Busy': 'yellow', 'Busy': 'red', 'Away': 'purple' }; function displayStatusList(newStatus = null) { const user = auth.currentUser; db.collection('users').doc(use...
true
5cb34862a389683786cc58a30f85f492b1ff0bcf
JavaScript
xpto-pw/singlepage
/staticfiles/singlepage/js/script.3afdcf19a5d5.js
UTF-8
2,702
3.28125
3
[]
no_license
let corFundo=true; function mudarFundo() {if(corFundo) { document.documentElement.style.setProperty('--fundo','blue'); } else { document.documentElement.style.setProperty('--fundo','black'); } corFundo = !corFundo; } let corLetra=true; function mudarCorLetra() { if(corLetra) { ...
true
81f24f451b2b29c0ddda11617729d31b31686fbc
JavaScript
youngsinlim/Frameworks-y-Librerias-JavaScript
/js/app.js
UTF-8
16,210
2.796875
3
[]
no_license
var columna = 7, dulces = 4; var h_array = []; var point = 0; var move = 0; /* Titulo animado */ function pre_title(titulo) { var title = titulo; title.animate({ 'color': 'rgb(255,255,255);' }, 'slow'); setTimeout(function(){ pos_title(title); },100); } function pos_title(titulo) { var title = ti...
true
18cf65f561ed5478d6030491288e437e1ae883ea
JavaScript
kumpulberbagi/sort-yourself
/selection_sort.js
UTF-8
1,424
3.484375
3
[]
no_license
'use strict' function selectionSort(items) { var panjang = items.length; for (var i = 0; i < panjang; i++) { var min = i; //nilai minimal dalam array var data1 = items[i]; for (var j = i + 1; j < panjang; j++) { if (items[min] > items[j]) { min = j ...
true
c3d1a08b3515a2ed1c652ee252bbbf39a971dd4b
JavaScript
bye-bye-kin/javascript2-4
/2-19.js
UTF-8
304
3.953125
4
[]
no_license
//=演算子 var x = 1; var y = x; x = 2; console.log(y); // 参照型 var date1 = [0, 1, 2]; var date2 = date1; date1[0] = 5; console.log(date2); const date = [1, 2, 3]; date = [4, 5, 6]; //再代入できない。 date[1] = 10; //元の配列はそのまま、内容のみ書き換えてるのでOK
true
2638dcdc68231b5e2755ebb223d4230450c91f8f
JavaScript
pssst1sneak/web-theremin
/src/View.js
UTF-8
1,265
2.640625
3
[ "MIT" ]
permissive
export default class View { #rootEl; #videoEl; constructor(el) { this.#rootEl = el; this.#videoEl = this.#createVideoEl(); } async setup() { try { const stream = await navigator.mediaDevices.getUserMedia({ audio: false, video: { facingMode: "user", }, ...
true
d4d3187f4ad34697f2de9367e49a7f293d8aa828
JavaScript
danemaison/fatslice
/orders/static/js/altnav.js
UTF-8
280
2.796875
3
[]
no_license
document.addEventListener("scroll", function(){ let nav = document.querySelector(".nav"); if(window.scrollY > 1) { nav.style.backgroundColor = 'rgba(200,200,200,.7)'; } else if (window.scrollY < 1){ nav.style.backgroundColor = 'rgba(250, 250, 250, 1)'; } });
true
11c9f48779676daee6606d1f79dcfbe897a60364
JavaScript
ishratfatima123/sample
/Js Practice/fullname.js
UTF-8
104
2.78125
3
[]
no_license
const fullname = (fname,lname) => fname + " " + lname; console.log(fullname("farhan" , "akhtar"));]\ 15
true
a2f93c685ab7faaf3e99a1091a30f65f16bc028d
JavaScript
crearmijuego/minicliente-chat-livecoding
/nodejs/server.js
UTF-8
990
2.53125
3
[]
no_license
var fs = require('fs'); var express = require('express'); app = express(), server = require('http').createServer(app), io = require('socket.io').listen(server); server.listen(8009); console.log("server inicio en puerto 8009"); app.use(express.static(__dirname +'/js')); app.get("/",function(req,res){ ...
true
dbb346ec78af132238d9b39fdf556165d064c911
JavaScript
ankit-vaghela30/inherit-logic
/app/models/user.server.model.js
UTF-8
5,055
2.71875
3
[ "Apache-2.0" ]
permissive
const mongoose = require('mongoose'); const bcrypt = require('bcrypt'); const AutoIncrement = require('mongoose-sequence')(mongoose); const Schema = mongoose.Schema; const debug = require('debug')('user'); /** * Database schema for user * @module user.server.model * @name User Model * @type Model */ /** * List ...
true
3f81a173aa57c5bdbd2f832489dc49951a9c5bd4
JavaScript
milan-janecek/javascript-info-in-nodejs
/05-advanced-working-with-functions/07-scheduling-setTimeout-setInterval/02-setInterval.js
UTF-8
514
3.859375
4
[]
no_license
'use strict'; // let timerId = setInterval(func|code, [delay], [arg1], [arg2], ...) // // func|code - Function or a string of code to execute. Usually, that’s a function // delay - Runs function regularly after the delay interval of time // arg1, arg2… - Arguments for the function (not supported in IE9-) // repeat wi...
true
0a3b1905218e49ec1bae05b6536c2b83226c19ce
JavaScript
BassTwoDelta/Daily_Coding_Challenge
/dailyCoding2.js
UTF-8
1,484
4.71875
5
[]
no_license
// This problem was asked by Uber. // Given an array of integers, return a new array such that each element at index i of the new array is the product of all the numbers in the original array except the one at i. // For example, if our input was [1, 2, 3, 4, 5], the expected output would be [120, 60, 40, 30, 24]. If ou...
true
b71dbaea80403a0913456a7a22c7b5c625e57a66
JavaScript
runticle/js-airport
/src/weather.js
UTF-8
200
2.8125
3
[]
no_license
function Weather () { this.isStormy = false } Weather.prototype.weatherCalc = function () { chance = Math.random() if (chance < 0.2) { this.isStormy = true } } module.exports = Weather
true
ec3db076e452081e7e2fd35dd62d9a57fc0d0576
JavaScript
langevinj/react-todolist
/src/TodoList.test.js
UTF-8
1,168
2.84375
3
[]
no_license
import { render, fireEvent } from '@testing-library/react'; import TodoList from './TodoList' function addTodo(todos, task="Write Tests") { const taskInput = todos.getByLabelText("New Task:"); fireEvent.change(taskInput, { target: { value: task}}); const button = todos.getByText("Add to the todo list!"); ...
true
e95dff7e30a59687e83e1bc1352777f33cffe011
JavaScript
pavelbely/apiai-nutrition-sample
/lib/nutrition-fetcher.js
UTF-8
3,187
2.734375
3
[ "Apache-2.0", "MIT" ]
permissive
// Copyright 2017 Viber Media S.à r.l.. // 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 required by applicable law or agreed ...
true
5237b9d6e3e25130e4cfcfe7642c9bdb30f25522
JavaScript
Dohyun-l/jps
/jps/bin/src/main/webapp/resources/jps/js/userJoin.js
UTF-8
3,655
2.6875
3
[]
no_license
alert("테스트"); $(document).ready(function() { $('#id').on('keyup', function() { var valueOfId = $('#id').val(); var lengthOfId = $('#id').val().length; if (lengthOfId < 1) { $('#idCheckText').html("아이디를 입력해 주세요."); $('#idCheckText').css('color', 'red'); document.fr.idcheck.value = 0; } else { $.aj...
true
211b6ccaf2827d2910193c76a010ac8ac0594614
JavaScript
yameogosamuel/react_redux
/src/reducers/employeeReducer.js
UTF-8
1,788
2.734375
3
[]
no_license
import { ADD_EMPLOYEE_ERROR, ADD_EMPLOYEE_LOADING, ADD_EMPLOYEE_SUCCESS, DELETE_EMPLOYEE_ERROR, DELETE_EMPLOYEE_LOADING, DELETE_EMPLOYEE_SUCCESS, EDIT_EMPLOYEE_ERROR, EDIT_EMPLOYEE_LOADING, EDIT_EMPLOYEE_SUCCESS, FETCH_EMPLOYEES_ERROR, FETCH_EMPLOYEES_LOADING, FETCH_EMPLO...
true
0bc1a4fba9eb8ac4b5c1fe5e245a7442d8cbdd8c
JavaScript
tanminggang/Stitches
/js/virtualgrid_display.js
UTF-8
1,774
2.65625
3
[]
no_license
(function(){ function VirtualGridDisplay( virtualGrid ) { this.Container_constructor(); this.virtualGrid = virtualGrid; this.setup(); } var p = createjs.extend( VirtualGridDisplay, createjs.Container ); p.setup = function() { this.display = new createjs.Shape(); this.vertical = new createjs.Shape()...
true
7fa6c120a266d312870d9261a610dd6267aa8657
JavaScript
JelleStek/Javascript-projects
/planner/script.js
UTF-8
1,127
3.65625
4
[]
no_license
let timer = document.getElementById('timer'); let plusMinute = document.getElementById('plusMinute'); let plusHour = document.getElementById('plusHour'); let start = document.getElementById('start'); timer.innerText = "00:00"; let timeForTimer = 0; plusMinute.addEventListener('click', function() { timeForTime...
true
a7ef25e50a8e910cae03ec218b621a48061134f8
JavaScript
sibivarman/HTML-Game
/js/main.js
UTF-8
7,375
2.875
3
[]
no_license
var ctx = document.getElementById("ctx").getContext("2d"); //setting properties use = sign for assigning ctx.font = "30px Aerial"; var touchZone; var HEIGHT; var WIDTH; var mouseX; var mouseY; var enemyList; var pointBox; var shield; var hasShield = false; var shieldWithPlayer = false; var stealt...
true
7364ac3f14d77062818555a0dc197068012c64ea
JavaScript
monimon-ks/nave-front-end-course
/challenges/challenges_react/monimon-app/src/services/comments.js
UTF-8
321
2.546875
3
[]
no_license
// http methods library import axios from "axios"; // using A X I O S lib // GET method const getComments = () => axios.get("https://jsonplaceholder.typicode.com/comments"); // POST method const postPost = (form) => axios.post('https://jsonplaceholder.typicode.com/posts', form); export {getComments, postPost};...
true
dd65667cc657a0a9b9b6629a631b006267db29e7
JavaScript
huyguain/daily-challenge-huy
/daily-1/index.js
UTF-8
617
3.8125
4
[]
no_license
const n = 6; let arr = []; for (let i = 0; i < n; i++) { arr[i] = []; } let i = 0, j = 0, t = 1; let up = 0, down = n - 1, left = 0, right = n - 1; while(1) { if (t > n*n) break; if (i === up && j < right) { arr[i][j] = t; j++; if (j === right) up++; } else if (i < down && j === right ) { arr[i][j] = t...
true
5e64fcbfd63c55aea811151084660f10abbb9115
JavaScript
janakmayer/weather_visualization
/js/weatherviz.js
UTF-8
2,756
2.953125
3
[]
no_license
function deepCopy(obj) { if (Object.prototype.toString.call(obj) === '[object Array]') { var out = [], i = 0, len = obj.length; for ( ; i < len; i++ ) { out[i] = arguments.callee(obj[i]); } return out; } if (typeof obj === 'object') { var out = {}, i; ...
true
39bc651e5443c9e35ee1d662b6d69a0d152f2644
JavaScript
daniels997/website
/form.js
UTF-8
1,853
2.515625
3
[]
no_license
// Your web app's Firebase configuration var firebaseConfig = { apiKey: "AIzaSyB3HXWetjNVzku8IVLq9gFKz7T7ss9KwAE", authDomain: "uploadprojects-1c91f.firebaseapp.com", databaseURL: "https://uploadprojects-1c91f-default-rtdb.firebaseio.com", projectId: "uploadprojects-1c91f", storageBucket: "uploa...
true
6b947f69a5594200732a5b1e3f666f1dcb97b139
JavaScript
matheusmpessoa/nodejs-succinctly
/agus/capitulo3/array.js
UTF-8
617
4.15625
4
[]
no_license
// Criando o array de objetos var array = []; // Criando um objeto de array que instancia o próprio objeto de array var array = new Array(); // Criando um array de objetos inserindo collection var array = [3, 5, 12, 8, 7]; array[0] = 3; array[1] = 5; array[2] = 12; array[3] = 8; array[4] = 7; array.push(10); array.pu...
true
c315343042541c230d9d9889f67d5ecb6cb6fbe3
JavaScript
anbodoki/weather-app
/main.js
UTF-8
11,105
2.671875
3
[]
no_license
document.onreadystatechange = () => { if (document.readyState === 'complete') { initializeList(); addBurgerMenuListener(); reloadView(); window.addEventListener("resize", reloadView); } }; function setHumidityLevel(perc) { let deg = (perc * 280) / 100 var activeBorder = document.getElementById("activeBor...
true
6e41f9306659036e3ac1b94d5a9097b88ac08f02
JavaScript
aztack/aztec-alpha
/oldtest/lang.type.js
UTF-8
3,246
2.65625
3
[]
no_license
test("$root.lang.type", function(require, specs) { var type = require('$root.lang.type'), c = type.typename, Class = type.Class; function UserDefinedType() {} var Person = Class('Person', Object), Student = Person.extend(), TopStudent = Student.extend(); Person.statics...
true
10441b43f4d0c118db136a418b72e90d2f53dabc
JavaScript
btd/huzzah
/utils/quote.js
UTF-8
464
2.953125
3
[ "MIT" ]
permissive
"use strict"; const stringEscapes = { "\\": "\\", "'": "'", "\n": "n", "\r": "r", "\t": "t", "\u2028": "u2028", "\u2029": "u2029" }; /* Used to match unescaped characters in compiled string literals */ const reUnescapedString = /['\n\r\t\u2028\u2029\\]/g; function escapeStringChar(match) { return "\\...
true
be241cb73bc80a859cf810393ceaa22fa2e0c805
JavaScript
flaviafernandes/portfolio-flavs
/stylez.js
UTF-8
1,384
3.390625
3
[]
no_license
// When the user scrolls the page, execute myFunction window.onscroll = function() {myFunction()}; // Get the header var header = document.getElementById("myHeader"); // Get the offset position of the navbar var sticky = header.offsetTop; // Add the sticky class to the header when you reach its scroll position. Remo...
true
3519a6f367d3e6117dd985d0b5c020319fb4eda1
JavaScript
Mehedi-Bin-Hafiz/JavaScript-101
/Section 3/stringMethod.js
UTF-8
498
3.671875
4
[]
no_license
const course = 'coding for beginner' console.log(course) console.log(course.search('for')); console.log(course[0]); console.log(course.slice(7, 12)); // start, end console.log(course.substr(7,12)); //7 is index number and 12 is char number console.log(course.replace('coding', "programming")); console.log(course.toUppe...
true
c582c773f49550983b5bd4a6bea330b9616af246
JavaScript
mumbereh/Projects-learning
/lodash/_.js
UTF-8
2,639
2.953125
3
[]
no_license
const _ = { clamp (num, lowLim, highLim){ const lowClampVal = Math.max(num, lowLim); const clampVal = Math.min(lowClampVal, highLim); return clampVal; }, inRange(num, startVal, endVal){ if (typeof endVal == 'undefined'){ endVal=startVal; startVal = 0; ...
true
d9f8bdcac5ba16e3aaaad675ef4be4f368bbcf7b
JavaScript
backup-fork/idunn
/idunn/utils/data/opening_hours_wrapper.js
UTF-8
2,140
3.359375
3
[ "Apache-2.0" ]
permissive
// Wrapper around opening_hours.js API to ease interaction with Python. Wrapped // functions globally behave the same with the following rules: // // 1. Input and output datetimes are iso formatted string and are independant // of the timezone. // // 2. Input opening hours are described by a raw string followi...
true
ab113f6edf4a09f4e8bf229936b483eae50f62fc
JavaScript
saraiahrak/ex2_hidur
/ex2_3b.js
UTF-8
535
3.421875
3
[]
no_license
// Dekel Yosef 315634071 // Sarai Ahrak 204894000 function memoize(f) { let results = {}; return function () { let arg = arguments[0]; return arg in results ? results[arg] : results[arg] = f(arg); }; } let fibbonacci = (function () { function f(n) { if (n === 1 || n === 0) {...
true
60b2e0c0c367d60c43c95ccbabd8cfeef286a551
JavaScript
givaldoms/Estatistica_-Key_Stroke
/scripts/tabelaFrequencia.js
UTF-8
3,540
2.84375
3
[]
no_license
var fi = [0, 0, 0, 0, 0, 0, 0, 0, 0]; var fac = [0, 0, 0, 0, 0, 0, 0, 0, 0]; var fad = [0, 0, 0, 0, 0, 0, 0, 0, 0]; var pfi = [0, 0, 0, 0, 0, 0, 0, 0, 0]; var pfac = [0, 0, 0, 0, 0, 0, 0, 0, 0]; var pfad = [0, 0, 0, 0, 0, 0, 0, 0, 0]; google.charts.load('visualization', 'current', {'packages': ['corechart', 'table'], ...
true
e65a17c898fc15c74969d42772cb1d12a84923a0
JavaScript
danielnieto/countdown
/src/index.js
UTF-8
1,253
3.390625
3
[]
no_license
import "./styles.css"; var secondsInAMinute = 60; var secondsInAnHour = 60 * secondsInAMinute; var secondsInADay = secondsInAnHour * 24; var hoursInADay = 24; var minutesInAnHour = 60; var speed = 1; var countdown = secondsInADay * 2; var daysEl = document.querySelector("#days"); var hoursEl = document.querySelector...
true
f60d66139bf71853f979a53e543e2779954a144f
JavaScript
walpolsh/CWReps
/src/CTCI/Ch1/stringCompression.js
UTF-8
298
3.1875
3
[]
no_license
export function stringCompression(string, comp = "", count = 0) { string.split("").map((x, i) => { count += 1; if (string[i + 1] >= string.length || x !== string[i + 1]) { comp += `${x + count}`; count = 0; } }); return comp.length < string.length ? comp : string; }
true
c040a2565354a06c60629af7006b129498b21f61
JavaScript
dallenpyrah/sporting-goods-store
/app/Utils/LocalStorage.js
UTF-8
419
2.515625
3
[]
no_license
import { ProxyState } from "../AppState.js" import Product from "../Models/Product.js" export function saveState() { localStorage.setItem('darrylsGoods', JSON.stringify({ pizzas: ProxyState.products })) } export function loadState() { let data = JSON.parse(localStorage.getItem('')) if (data) {...
true
5f826c19ded54524127aabc50dbcf02802a4c1ce
JavaScript
cedced101/ProgrammationMobileTravaux
/Lab6/script1.js
UTF-8
2,295
2.609375
3
[]
no_license
var utilisateur; var passw; function test (form,event) { var uti; var pwd; uti += document.getElementById("username").value + "\n"; pwd += document.getElementById("pwd").value + "\n"; utilisateur = uti; passw = pwd; document.getElementById("username").va...
true
8a2a2b7e08c30d50e13749d429ad78845b1fd711
JavaScript
bharat1910/cs527
/modified_projects/jshint/kuda/public/js/hemi/utils/stringUtils.js
UTF-8
7,013
3.109375
3
[]
no_license
/* jshint undef: false, unused: false, asi: true */ /* jshint maxerr:10000 */ /* * Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php * The MIT License (MIT) * * Copyright (c) 2011 SRI International * * Permission is hereby granted, free of charge, to any person obtaining a copy ...
true
6799ac2732d96796bcefdd0c0de93bc78ef2aac9
JavaScript
nursinkeles/todo-list
/todo-list/main2.js
UTF-8
2,988
3.1875
3
[]
no_license
const form = document.querySelector("#todo-form"); const todoInput = document.querySelector("#todo"); const todoList = document.querySelector(".list-group"); const clearButton = document.querySelector("#clear-todos"); const cardBody = document.querySelector(".card-body"); eventListener(); function eventListener...
true
c2324e0ddc80ddb0d6c0b99afd1ee0939e944dc7
JavaScript
spencer2211/gun-flint
/src/Adapter/node-adapter.js
UTF-8
2,255
2.640625
3
[]
no_license
import Util from './../util'; import BaseAdapter from './base-adapter'; import AdapterContext from './adapter-context'; import union from './union'; /** * Read/write hooks for the node adapter * * @private * @param {object} adapter - A plain object with adapter methods * @class */ export default class Adapter ex...
true
4c9767ec9277a94ca0689a9e6fadfbbe8fa4a5f4
JavaScript
alanhkl/html5-template
/src/manageEnvironment.js
UTF-8
1,370
2.765625
3
[]
no_license
const manageEnvironment = function(environment) { environment.addFilter('typeof', (obj, type) => typeof obj === type); environment.addFilter('findContent', (obj, searchBy, key) => { let results = [], searchArr = Array.isArray(searchBy) ? searchBy.length > 2 ? searchBy : ['id', searchBy[0]] ...
true
22089fda6ab70d29e575729f6f87fd0c013a35e5
JavaScript
loubenjin/node
/net.js
UTF-8
866
2.609375
3
[]
no_license
var net = require('net'); var server = net.createServer(function (connetcion) { console.log('client connected'); connetcion.on('end',function (params) { console.log('客户端关闭连接') }) connetcion.on('error',function (params) { console.log('客户端关闭失败') }) connetcion.wri...
true
acbea89ba7f9c8ba04a09b619297c5a625ec7935
JavaScript
TrevTheDev/http2Communicator
/src/pull/server conversation handler.js
UTF-8
3,255
2.546875
3
[ "MIT" ]
permissive
/* eslint-disable no-bitwise,no-restricted-syntax,max-len */ import getFirstMessage from './get object from streams.js' import { MSG_TYPES } from '../other/globals.js' import HttpError from './http error.js' import messageRouter from './message router.js' import sharedBaseInit from './shared base.js' /** * @namespac...
true
31e3f7a1a8ebee1687241f6b5f0585fb6d43e44b
JavaScript
ss-ita/checklisty-server
/api/controllers/checklist-chart-controller.js
UTF-8
2,499
2.828125
3
[]
no_license
const moment = require('moment'); const { Checklist } = require('../models/checklists/checklist-model'); const getMadeTodayChecklists = async (req, res) => { try { const start = moment().toISOString(); const end = moment().subtract(1,'days').toISOString(); const madeToday = await Checklist.find({"creatio...
true
6ac2d7fae5a96f295b8e9a23ea5796d11d0b1f60
JavaScript
Carlosjimenezfe/Ejercicios
/resistor-color/resistor-color.js
UTF-8
540
2.953125
3
[]
no_license
export const colorCode = (color) => { color = color.toLowerCase(); if(color=='black')return 0; if(color=='brown')return 1; if(color=='red')return 2; if(color=='orange') return 3; if(color=='yellow') return 4; if(color=='green') return 5; if(color=='blue') return 6; if(color=='violet') return 7; ...
true
d710e365a6abf4acbdf8f49cfafa9d98d7e87a99
JavaScript
Yasujizr/rss-reader
/src/db/count-unread-entries-test.js
UTF-8
1,740
2.5625
3
[ "BSD-3-Clause", "MIT" ]
permissive
import assert from '/src/base/assert.js'; import {count_unread_entries} from './count-unread-entries.js'; import {create_entry} from './create-entry.js'; import * as entry_utils from './entry-utils.js'; import {open} from './open.js'; import {remove} from './remove.js'; export async function count_unread_entries_test(...
true
b19e6b8c3bfe877843d2f79874b21b29a2070b32
JavaScript
jianyufeng/fule_webapp
/js/util.js
UTF-8
10,040
2.875
3
[]
no_license
//console.log("[框架]====>[加载框架工具包文件]"); define(['linq'],function () { // HTTP 请求封装 var HTTP = {}; /* * get请求 * @params {url} 请求地址 * @params {data} 请求参数 * @params {callback} 回调函数 */ HTTP.get = function(url, data, callback) { var $data = typeof data === 'function' ? null...
true
c01d2bbe9ec7997a9d367369c3ffd9848314af9a
JavaScript
Daniel202194/Soccer-association-project
/project/tests/acceptence/allAcceptence.test.js
UTF-8
11,271
2.515625
3
[]
no_license
const session = require('supertest-session'); const app = require('../../main'); const DButils = require("../../routes/utils/DButils"); let sessionTest = null; /** * before each test connects to the server and runs a session */ beforeEach(function () { sessionTest = session(app); }); /** * After each test you ...
true
5a2155b569b200b5100f586025617c860f58f4d0
JavaScript
Mik95/ProgettoViaggi
/TravelPlanSito/WebContent/js/infoAccount.js
UTF-8
269
2.71875
3
[ "MIT" ]
permissive
var utente = sessionStorage.getItem('utente'); if(utente) { utente =JSON.parse(utente) $("#name").html(utente.nome); $('#lastname').html(utente.cognome); $('#email').html(utente.email); $('#password').html(utente.password); }
true
627ca4a86c3f4734f66addf4432399dea12a70aa
JavaScript
crisgon/Javascript-Experiments
/Count-Character-Remaining/main.js
UTF-8
716
3.046875
3
[ "MIT" ]
permissive
(function(win, doc){ 'use strict'; const $textarea = doc.querySelector('[data-js="tweet-text"]'); const $message = doc.querySelector('[data-js="message"]'); let messageLenght = 50; function app() { return { init() { this.maxWord(50); $textarea.addEventListener('keyup', (event)=>{ ...
true
8bbd8d1f9a3a15be57c3bc008399d0385cc84808
JavaScript
vobinh/PHP
/pestest/js/collection/validation.js
UTF-8
1,978
2.890625
3
[]
no_license
// JavaScript Document function validate_greater_than(field1,field2,alerttxt) { var i = parseFloat(field2.value); with (field1) { f1 = parseFloat(value); if (f1 > i ) { alert(alerttxt);return false; } else { return true; } } } function validate_required(field,alerttxt) { va...
true
204f1da23a71784ea68ef15c6a35b61690db1bc7
JavaScript
gustavoper/javascript-es2015
/examples/property-shorthand.js
UTF-8
58
2.84375
3
[]
no_license
let [x,y] = [111,222]; let obj = {x, y}; console.log(obj);
true
7d76ea04fda97cc5ad3fe18341d18b33ea80d193
JavaScript
kevin-labtani/code-katas
/Algorithms&DS/12.Hash-tables/hash-function.js
UTF-8
918
4.1875
4
[]
no_license
// BASIC HASH FUNTION // works with strings only // not constant time,d epends on length of the string // not that random function hash(key, arrayLen) { let total = 0; for (let char of key) { // map "a" to 1, "b" to 2, "c" to 3, etc. let value = char.charCodeAt(0) - 96; total = (total + value) % arrayLe...
true
777922dffd8cd531a0f27cc128293fc97fba9b2e
JavaScript
windldream/leetcode
/dynamic/canPartition.js
UTF-8
724
3.28125
3
[]
no_license
/** * @param {number[]} nums * @return {boolean} */ var canPartition = function (nums) { const len = nums.length, sum = nums.reduce((prev, curr) => prev + curr, 0) / 2, dp = []; if (!Number.isInteger(sum)) { return false; } for (let i = 0; i <= len; i++) { dp[i] = []; } for (let i = 0;...
true
8596f0c6ee6551791d77826881324f0a566163c5
JavaScript
zastrowm/nookapp-googlereader
/assets/touch.js
UTF-8
2,405
2.71875
3
[]
no_license
/** * @author zastrowm */ var currentFeed,currentItem,continueString = ""; /** * Runs when the page is done loading */ function onPageLoad(){ connectorFeed.init("einkView","onData"); java.init("onJavaToMe"); } /** * Message received from the java program * @param {String} message */ functio...
true
670dc9ab859f79bf2f5eea6e58b72ec5645243a7
JavaScript
Srog1989/JS-vacation-bucket-list
/frontend/src/user.js
UTF-8
2,916
2.90625
3
[]
no_license
class User { static allUsers = [] constructor(user){ this.id = user.id this.name = user.name this.destinations = user.destinations User.allUsers.push(this) } static generateUser(userName) { apiService.fetchUser(userName) .then(userdata => ...
true
24df834354695895b5bda2311705762122264074
JavaScript
rsprz/group
/TimeKeeper/TimeKeeper.js
UTF-8
7,591
2.59375
3
[]
no_license
var clickCount = 0; // const button = document.querySelector("#restart-button"); //const timeKeeperDur = document.querySelector(".expand"); function countdown(){ const bars = document.querySelectorAll(".round-time-bar"); // button.addEventListener("click", () => { bars.forEach((bar) => { bar.classList.remove("...
true
4223d68a107982f2b102083d60bd5f21bc4f6476
JavaScript
tomaszjurek/React-Website-Project---Star-Wars-API
/js/components/quiz.jsx
UTF-8
3,097
2.9375
3
[]
no_license
import React from 'react'; import {Link} from 'react-router'; import quiz from './questions'; class Quiz extends React.Component { constructor(props) { super(props); this.state = { an1: "", an2: "", an3: "", an4: "", an5: "", an6: "", an7: "", an8: "", an...
true
4f842922798404f471853aeb93e8ad68283bda67
JavaScript
MuradAbuArqoub/frontend-08
/src/App.js
UTF-8
2,834
2.875
3
[]
no_license
import React, { Component } from 'react'; import 'bootstrap/dist/css/bootstrap.min.css'; import axios from 'axios'; import './css/style.css'; class App extends Component { constructor(props) { super(props); this.state = { cityQuery: '', weatherDataArr: {}, moviesDataArr: {}, showData...
true
652b40980062ed2ecd111fc0d7fb148a437584e6
JavaScript
AarontCraig/CS460
/docs/Homework8/Homework8/Scripts/displayGenre.js
UTF-8
703
2.53125
3
[ "MIT" ]
permissive
function display(id) { var source = "/Home/Display?ID=" + id; $.ajax({ type: "GET", dataType: "json", url: source, success: function (data) { $('.toDelete').remove(); for (var i = 0; i < data.length; ++i) { $('#details').append...
true
682aaed48148b7e74873328e85dcf7555fa90831
JavaScript
For4llx/maker
/src/components/Email.jsx
UTF-8
1,841
2.703125
3
[]
no_license
import React from "react"; const regexEmail = /^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/; class Email extends React.Component { constructor(props) { super(props); this.state = { email: "", ...
true
cbdfccabc09a549dc68cd17e732abd2a1964dc3a
JavaScript
Franklin89/Zeiterfassung
/html5client/src/app/statistics/graphicService.js
UTF-8
3,373
2.53125
3
[]
no_license
/** * Created by Kiwi on 29.09.15. */ (function() { 'use strict'; angular.module('zeiterfassung.graphicService', []) .factory('GraphicService', function() { var drawChartwithD3 = function(records) { var width = 360, height = 360, r...
true
ebefe7cef122ccfe21bfe0eab82dd9a692e6a410
JavaScript
bmw2621/vwc
/weekEight/bigOhomework.js
UTF-8
3,228
3.71875
4
[]
no_license
// import { plot, stack, Plot } from 'nodeplotlib'; var npl = require('nodeplotlib') function constantTime(arr){ // Return middle element return arr[Math.floor(arr.length/2)] } function linearTime(arr){ // Return array with all elements multiplied by 2 let newArr = [] for(let i = 0; i < arr.lengt...
true
ed48c473359501e069516b82866d9c26d1eade9a
JavaScript
lucianpopa84/ES6
/app.js
UTF-8
2,379
3.140625
3
[ "MIT" ]
permissive
$(document).ready(function () { $('#studentsLoad').click(function () { var myRequest = new XMLHttpRequest(); myRequest.open('GET', 'https://lucianpopa84.github.io/ES6/students.json'); myRequest.onload = function () { var studentsData = JSON.parse(myRequest.responseText); renderStudentsHTML(stu...
true
ba0328e72f5b36a19bafc53fcee3c27fe8312487
JavaScript
pntptr/js-sample
/s16/l77.js
UTF-8
753
4
4
[]
no_license
// SEZIONE 15, LEZIONE 77 - CORSO UDEMY JS // OBJECT ORIENTED PROGRAMMING. OGGETTI E CLASSI IN JAVASCRIPT // OGGETTO DATE // DATE OBJECT var date = new Date(); var myBirthday = new Date(1985, 11, 30); var dayOfWeek = [ 'SUNDAY', 'MONDAY', 'TUESDAY', 'WEDNESDAY', 'THURDSDAY', 'FRIDAY', 'SA...
true
c5a1b5a082ecd09931e5b7e71d1b324d93449f2a
JavaScript
oneworldcoders/owc-books
/src/redux/reducers/bookFavouriteReducer.js
UTF-8
641
2.609375
3
[]
no_license
import { ADD_FAVOURITE, GET_FAVOURITE, REMOVE_FAVOURITE } from "../actions/types"; const initialState = { favouriteBooks: [] } const favouriteBooks = (state = initialState, action) => { switch (action.type) { case ADD_FAVOURITE: return { ...state, favouriteBooks: [...state.favouriteBooks...
true
cf2f2cbfe2daccf36d6f42f2a001bf863de63679
JavaScript
LizethVictoria20/rick-and-morty-
/description.js
UTF-8
1,064
3.1875
3
[]
no_license
const url = new URLSearchParams(window.location.search); const id = url.get("id"); const personajeID = "https://rickandmortyapi.com/api/character/" + id; fetch(personajeID) .then(value => { return value.json(); }) .then(obj => { const container = document.querySelector(".container"); const row = doc...
true
ee348cc198862b2c33d945a880f20ef5dd4145ab
JavaScript
jorgeds79/HAB-Project-Frontend
/src/User/CheckPasswordCode.js
UTF-8
3,059
2.515625
3
[]
no_license
import { Link, useParams } from 'react-router-dom' import { useEffect, useState } from 'react' import { changeRecoveredPassword } from '../Api/api' import Swal from 'sweetalert2' import './CheckPasswordCode.css' function CheckPasswordCode() { const { code } = useParams() const [password, setPassword] = useStat...
true
501ccdeb3656ea97d0e96a21c91a1a094c0771a3
JavaScript
paulpark330/c0621-code-solutions
/array-map/map.js
UTF-8
158
3.390625
3
[]
no_license
function map(array, transform) { const newArr = []; for (let i = 0; i < array.length; i++) { newArr.push(transform(array[i])); } return newArr; }
true
5bbc89a74871a387169340b5fe0ddd2d403f46b9
JavaScript
yanglisunny/react
/src/component/header.jsx
UTF-8
901
2.875
3
[]
no_license
import React, { Component } from 'react'; class Header extends Component { constructor(props){ super(props); this.state = { count: 1 } } change = () => { this.setState({count: this.state.count+1}, ()=>{ }); console.log(this.state.count, 'one') ...
true
247a70b07ba21b4b462197e7fb0a673f1cb52a4f
JavaScript
jpero/basecampjs
/basecamp.js
UTF-8
13,145
2.609375
3
[ "MIT" ]
permissive
/*! * A Basecamp API wrapper in JavaScript (https://github.com/trekdemo/basecampjs) * * Copyright (c) 2008 Brandon Aaron (brandonaaron.net) * Copyright (c) 2011 Gergő Sulymosi (gergo.sulymosi.com) * Licensed under the MIT license (LICENSE.txt) * * Version: 0.1a */ // based on the original Ruby wrapper http://d...
true
a56bb6544728be770c55c22d4bfbd9efe4ab65a6
JavaScript
sarasabet/profile_generator
/survey.js
UTF-8
1,797
3.28125
3
[]
no_license
const readline = require('readline'); const rl = readline.createInterface({ input: process.stdin, output: process.stdout }); rl.question('What is your favorite food? ', (answer) => { // TODO: Log the answer in a database console.log(`Oh, so your favorite food is ${answer}`); const a1 = answer rl.questi...
true
b57efbeae516ab996749803f810b1334204e4dc7
JavaScript
maps-gl/maps-gl
/test/unit/geo/lng_lat.test.js
UTF-8
4,695
2.703125
3
[ "BSD-3-Clause", "MIT" ]
permissive
import {test} from '../../util/test'; import LngLat from '../../../src/geo/lng_lat'; test('LngLat', (t) => { t.test('#constructor', (t) => { t.ok(new LngLat(0, 0) instanceof LngLat, 'creates an object'); t.throws(() => { /*eslint no-new: 0*/ new LngLat('foo', 0); }, ...
true
dbfd9909ac5d8332d9a45788bf4ffd50bc5c3755
JavaScript
8Martie/8Martie.github.io
/js/main.js
UTF-8
3,108
3.015625
3
[]
no_license
var password = document.getElementById('pass'); document.getElementById('heartButt').onclick = function() { this.style.display = "none"; password.style.display = "block"; } /*Password : m1m2m3 - mamica ------------- m1a2m3 - mama --------------- a1l2i3 - alisa t1t2l3 - tanti lena --------- */ password.addEven...
true
32b2255853c11a97039e623f432ff854dea926f7
JavaScript
mparisot/conf_dev_futur
/components/booksList/booksList.jsx
UTF-8
2,474
2.578125
3
[]
no_license
import React from 'react'; import './styles/booksList.css'; class Book extends React.Component { render() { //console.log(this.props.book); let book = this.props.book; //console.log(authors); return <div className="bookList-book"> <a href={`/book/${book.slug}/read`} cla...
true
da6396e778b7b0f60131321fd9aea78619c40e16
JavaScript
banaswaqqad/Myfirstproject
/mythirdapp.js
UTF-8
174
3.421875
3
[]
no_license
var numofgames =0; var age = prompt("how many games do you want to play "); function getnumofgame(game){ numofgames=parseInt(game) alert("your number of game is" + game ); }
true
930fe28e778c34d95c444035ab62e16650d1f3af
JavaScript
rllzrc/algosbb
/leet/30DaysOfCodePt3/singleNumberII.js
UTF-8
1,823
4.6875
5
[]
no_license
// ** Day 21 of 30 Days of Code Challenge Part iii -- June Edition! // ** --> { Single Number II } // T A S K!! // Given a non-empty array of integers, every element appears three times except for one, which appears exactly once. Find that single one. // Note: // Your algorithm should have a linear runtime complex...
true
cda99d90b12cf1dc2da5f9e057ce0c01c473a675
JavaScript
gfscott/eleventy-plugin-embed-everything
/packages/youtube/lib/extractMatches.js
UTF-8
646
3.078125
3
[ "MIT" ]
permissive
/** * Video ID is 4th item in array of matches. * [0] = full matched string * [1, 2] = zero-backtrack arbitrary whitespace, requires capture for lookahead * [3] = full YouTube url * [4] = video ID * [5, 6] = zero-backtrack arbitrary whitespace, requires capture for lookahead */ const pattern = /<p>(?=(...
true
2610766918e8ace4079e73322a94df5c2a03ed6c
JavaScript
Darrenjoe/js_demo
/leetcode/Stack/removeDuolicates.js
UTF-8
1,324
4
4
[]
no_license
// 给出由小写字母组成的字符串 S,重复项删除操作会选择两个相邻且相同的字母,并删除它们。 // 在 S 上反复执行重复项删除操作,直到无法继续删除。 // 在完成所有重复项删除操作后返回最终的字符串。答案保证唯一。 // 示例: // 输入:"abbaca" // 输出:"ca" // 解释: // 例如,在 "abbaca" 中,我们可以删除 "bb" 由于两字母相邻且相同,这是此时唯一可以执行删除操作的重复项。之后我们得到字符串 "aaca",其中又只有 "aa" 可以执行重复项删除操作,所以最后的字符串为 "ca"。 // 来源:力扣(LeetCode) // 链接:https://leetcode-cn.com/p...
true
76ee5a67e10f5cae5d7344449f182c3e70c15138
JavaScript
twothousandvampires/black_hole
/js/moduls/effect.js
UTF-8
3,808
2.53125
3
[]
no_license
import {Render} from './render.js' export class Effect{ constructor(type, pos, angle){ this.pos = pos this.type = type this.frame_timer = 0 this.frame = 0 this.image = new Image() switch(this.type){ case 'explosion': this.max_frame = 8 ...
true
cb0f0a2cd9de07328f96624d825db371b991371b
JavaScript
litemikx/fcc-timestamp-microservice
/index.js
UTF-8
2,395
3.046875
3
[]
no_license
var http = require('http'); var url = require('url'); var express = require('express'); var app = express(); const monthArray = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"]; http.createServer(function(req, res) { var objUrl = url.parse(req....
true
d61aafd6a3e2756dd51adafef6d2e1b1d082563c
JavaScript
IlyaBerzhanin/race-tetris-game
/js/main.js
UTF-8
3,092
2.671875
3
[]
no_license
import Helpers from "./helpers.js"; const HELPERS = new Helpers(); import Game from "./classes/game.js"; import Fence from "./classes/fence.js"; import Car from "./classes/car.js"; import Player from "./classes/player.js"; import Coin from "./classes/coin.js"; const GAME_WIDTH = 820; const GAME_HEIGHT = 600; const ...
true
3ca763d0a329c81fdfcdb1dba57df34fd5684b46
JavaScript
TriBuiQuang/authentication-react-node-
/front_end/src/authentication.service.js
UTF-8
1,868
3
3
[ "MIT" ]
permissive
const currentUserSubject = JSON.parse(localStorage.getItem('currentUser')); const apiUrl = 'http://localhost:3000'; export const authenticationService = { login, registration, logout, currentUser: currentUserSubject, get currentUserValue() { return currentUserSubject; }, }; const requestOptions ...
true
a395330943cc261c736149c6db0b5a4c8e3886da
JavaScript
Parth909/uni-front
/src/reducers/likes.js
UTF-8
533
2.546875
3
[]
no_license
import { SET_USER_VID_LIKES, SET_USER_VID_DISLIKES, ADD_VID_LIKE, REMOVE_VID_LIKE, } from "../actions/types"; const initialState = { vidlikes: [], viddislikes: [], }; export default function (state = initialState, action) { const { type, payload } = action; switch (type) { case SE...
true
e8b9a50bf229ee57501713cb91e24526ecfbfa84
JavaScript
jskriptus/learnjs
/js/12.js
UTF-8
278
3.421875
3
[]
no_license
// function showFirstMessage (text) { // alert(text); // } // showFirstMessage('Go game!'); function calc(a, b) { return (a + b); } console.log(calc(4, 5)); function retVar() { let num = 50; return num; } let anotherNum = retVar(); console.log(anotherNum);
true
9471caecaa49c11b0f62c45878e5d9fff60fdc49
JavaScript
rubypaisley/pet-tracking
/src/AddPet.js
UTF-8
2,472
2.796875
3
[]
no_license
import React, { Component } from 'react'; import firebase from './firebase'; class AddPet extends Component { constructor() { super(); this.state = { name: '', petType: '' } } handleChange = (evt) => { this.setState({ [evt.target.name]: ev...
true
534ba8e45c647edad8808f2ea48b65ff40595fbc
JavaScript
wlongmire/processing_sketches
/4/sketch.js
UTF-8
725
3.015625
3
[]
no_license
function setup(){ createCanvas(500, 500) } function draw() { background(30) var xCount = 10 var yCount = 10 var radius = 500 var border = 50 noStroke() fill(255) textSize(35) text("Seeking sassy bottom", 42, 240) strokeWeight(1) noFill() var count = 1 for( var x=border; x<(width-border...
true
9523c028e03ca00d6eaa1fba5bc2f60004185fe5
JavaScript
MrBunsy/mrbunsy.github.io
/multiplayer_games/planet_wars2/inc_js/planet_wars_shipRegions.js
UTF-8
1,502
2.96875
3
[]
no_license
//subsection of planet_wars.js - defines all the regions which ships can spawn //can use all of the planet_wars object as it will be loaded after planet_wars.js //regions go anti clockwise around the edge of the map, idea is one is chosen randomly then the ships are placed as far apart as possible (as if the regions ...
true
cde61334228384a14d2947ff0b7e8ab794789f06
JavaScript
ayazaslam27/codility
/15_03_CountTriangles.js
UTF-8
499
3.875
4
[]
no_license
function solution(A) { if (A.length < 3) { return 0; } let count = 0; A.sort((a, b) => a - b); //[1, 2, 5, 8, 10, 12] for (let i = 0; i < A.length - 2; i++) { const side1 = A[i]; let k = i + 2; for (let j = i + 1; j < A.length; j++) { const side2 = A[j]; while (k < A.length...
true
275738a5552f1351265a2b55e147a3972ef6a1a3
JavaScript
VigneshMadhavan/Html5Basic-Assignment-6.1
/scripts/main.js
UTF-8
994
3.71875
4
[]
no_license
//function to initialize objects function initialize(){ var myEmployee1=new Employee("myEmployee1",10,20000); document.writeln("myEmployee1 Details:<br>-------------------------<br>"); myEmployee1.printdetails(); document.writeln("-------------------------<br>"); var myEmployee2=new Employee("myEmployee2"...
true
e1dd67c4a8ff724daea96879a9b18301fd3975e6
JavaScript
computerprogrammer0414/it3215
/js/invitation.js
UTF-8
882
3.671875
4
[]
no_license
//function created to replace the content function replaceContent() { //declaring two variables for both fields: Recipient Name and Host name. var myRecipientName, myhostName; //setting the variable to the input field's id named recipientNameInput's value from Recipient Name field myRecipientName = document.getEle...
true