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
96b8264c1e1b6976e75cd45f6f4af0943c8ea2ac
JavaScript
leonidProger/Smart
/landing/js/form-valid.js
UTF-8
2,074
2.984375
3
[]
no_license
$(function () { $('.contact-form .name').keydown(function (e) { // console.log($(this).val()); let code = e.keyCode || e.which; //console.log(code); if (code < 48 || code > 57 && code <96 || code>105 ){ return true; }else{ e.preventDefault(); }...
true
aa19567fbb1f838aaa40867734380ffb0d0483e0
JavaScript
kab3359/C0920G1-MaiNamKhanh
/module 1/7. Bien_kieu_du_lieu_va_toan_tu/bai_tap/Bien_kieu_du_lieu_toan_tu/BIEN_KIEU_DU_LIEU_TOAN_TU.js
UTF-8
993
3.671875
4
[]
no_license
function myFunction() { let inputPhysical = document.getElementById("physical").value; let inputChemical = document.getElementById("chemical").value; let inputBio = document.getElementById("bio").value; let physical = parseInt(inputPhysical); let chemical = parseInt(inputChemical); let bio = par...
true
1f7fe701a71dd639db60106ac696ce7bc6594fd9
JavaScript
ssugelg/shorten
/src/main/resources/static/shorten.js
UTF-8
3,107
2.671875
3
[]
no_license
'use strict'; var $inputUrl = $('#encryptUrl'), $converBtn = $('#shortenBtn'), $result = $('.alert-success'), $autoValid = $('#auto_valid'); var utils = { isValidUrl: function (isShowFlag) { var url = $inputUrl.val(); if (url.trim().length == 0) { isShowFlag && alert("입력값이...
true
f6afe9f5a0d29b9120c338a6af97bda912479d38
JavaScript
1962628113/init-font
/src/store/modules/productList.js
UTF-8
1,840
2.609375
3
[]
no_license
const state = { productList: [], products: {} }; const getters = { TotalPrice: state => state.productList.reduce((prev, item) => { return prev + item.cPrice * item.cStock; }, 0), TotalAmounts: state => state.productList.reduce((prev, item) => { return prev + Number(item.cStock); }, 0...
true
d24ee532f55e36c19ceb7c7985479391bdf7a014
JavaScript
AAI-USZ/FixJS
/input/100+/before/d618acc78ea9d2ea3bbc138cb98464a122bfd9de_3_1.js
UTF-8
462
2.625
3
[ "MIT" ]
permissive
function(x, y, end, notify) { if (notify == undefined) notify = false; this.x = x; this.y = y; this.proximityCheck(); if (end) { this.isMoving = false; this.setAppearance('standing'); if (this.type == 'player') { var cell = this.level.getCell(this.x, this.y); if (cell.level != undefined)...
true
80d76a407a3b6514083f5159abbed20491c78030
JavaScript
ibm-watson-data-lab/seven-days
/rethinkdb/format_issue.js
UTF-8
370
2.625
3
[]
no_license
const _ = require('underscore'); var output = function(rows) { // handle single objects if (!_.isArray(rows)) { rows = [rows]; } rows.forEach(function(row) { console.log("================================"); console.log(row.id); console.log(row.title); console.log("STATUS: " + row.status)...
true
4242c4e5e91cc76321af6e5c19e48e9389572e31
JavaScript
airavata-courses/MethkupalliVasanth
/Assignment-1/node-js-orchestrator/server.js
UTF-8
1,609
2.59375
3
[]
no_license
var restify = require('restify'); var request = require('request'); var url = require('url'); var server = restify.createServer(); server.listen(20000, function(){ console.log('%s listening at %s', server.name, server.url); }); /* binding the api calls to the api server implemented in node.js */ server.get('/n...
true
0459ed4eb2cfd022c356d51619437975a10164e8
JavaScript
brutal-kitten/favourite-videos
/src/components/ElementsPerPagePicker.js
UTF-8
1,038
2.53125
3
[]
no_license
import React, { Component } from 'react'; import PropTypes from 'prop-types'; class ElementsPerPagePicker extends Component { static propTypes = { setIndexes: PropTypes.func.isRequired, elementsPerPage: PropTypes.number.isRequired } //calls function thet recalculate and set new state (elementsPerPage, ...
true
99b9a80f770e3af920b5cd480a1ee7674fd35ea2
JavaScript
sjrdevelopment/BurndownDials
/remaining-points.js
UTF-8
2,131
2.734375
3
[]
no_license
// web.js var express = require("express"); var logfmt = require("logfmt"); var multipart = require('connect-multiparty'); var request = require('request'); var config = require('./config'); var app = express(); var currentPoints = 0; var currentSprint = 753; app.use(logfmt.requestLogger()); app .use(function(req,...
true
1a4347346d4b90da0bd1d20845df09a5105cd524
JavaScript
TanimaRanjan/AlgoEx
/mysteryFunc.js
UTF-8
1,149
5.03125
5
[]
no_license
/*This is a reverse coding challenge. Normally you're given explicit directions with how to create a function. Here, you must generate your own function to satisfy the relationship between the inputs and outputs. Your task is to create a function that, when fed the inputs below, produce the sample outputs shown. Ex...
true
94ce1e270ed7aafcd33c090ceb1fe23f51663749
JavaScript
annemoncion/AEC_Front_End
/Programmation1/Chapitre2/js/exercice8.js
UTF-8
574
3.8125
4
[]
no_license
//Exercice 8 : Faire un programme qui lit le taux horaire d'un employé. (+ 40 hrs = temps double) var heuresTravaillees; var tauxHoraire; var salaireTempsDouble; var salaireSemaine; heuresTravaillees = Number (prompt("Nombre d'heures travaillées cette semaine")); tauxHoraire = Number (prompt("Taux horaire")); salair...
true
fee7d3fddf85c84d90d5f09bac62724b88f2f0e6
JavaScript
alefwhite/squad2
/backend/src/app/controllers/Squad/SquadController.js
UTF-8
4,089
2.796875
3
[]
no_license
import db from '../../../database/connection'; class SquadController { async index(req, res){ const id_usuario = req.idUsuario; const listaSquad = await db("squad").where({ id_criador: id_usuario }) .orderBy("squad.id_squad", "desc"); return res.json(li...
true
f4bcddd851b302ca4fff704cf2c44b4b830e0cbd
JavaScript
beach-side/beachside
/server/controllers/stormglassController.js
UTF-8
6,389
2.6875
3
[]
no_license
const axios = require('axios') const { DateTime, Settings } = require('luxon') const { STORMGLASS_API_KEY_1, STORMGLASS_API_KEY_2, STORMGLASS_API_KEY_3, STORMGLASS_API_KEY_4 } = process.env const getTimezoneInfo = require('./GetTimezoneFunction') let counter = 0 let counterTwo = 0 let counterThree = 0 let counterFour...
true
ad1b156d281713c11bf763a4cf6671165af96da8
JavaScript
milessorce/toy-problems
/selectionSort.js
UTF-8
411
3.46875
3
[]
no_license
const selectionSort = arr => { for (let i = 0; i < arr.length; i++) { let min = i; for (let j = i + 1; j < arr.length; j++) { if (arr[j] < arr[min]) { min = j; } } if (min !== i) { let temp = arr[i]; arr[i] = arr[min]; arr[min] = temp; } } return arr; }; ...
true
f6a8e58041eed316ab16c99e78ccaa085938d3e6
JavaScript
hgf635381152/lesson
/algorithm/leetcode/common/today-test/141.js
UTF-8
209
2.703125
3
[]
no_license
var hasCycle = function (head) { while (head) { if (head.val.toString().indexOf('%') != -1) { return true } head.val = head.val.toString() + '%'; head = head.next } return false; };
true
03a5be3dd52c9727e34f171be7e3998fab5febc1
JavaScript
liulei0114/react_staging
/src/App.jsx
UTF-8
1,838
2.640625
3
[]
no_license
import React, { Component } from 'react' import MyHeader from './Components/Head/Head' import List from './Components/List/List' import Footer from './Components/Footer/Footer' import './App.css'; export default class App extends Component { // 初始化状态 state = { todoList: [ { id: '001', name: '吃饭', isDone...
true
a6ef563f0dacb61fb9bb1dad53658b3db993097a
JavaScript
patriciatersariol/introducao-react-app
/src/App.js
UTF-8
1,979
2.640625
3
[]
no_license
import React from "react" import { useState } from "react" import Input from "./components/Input" import Button from "./components/Button" import "./App.css" import Table from "./components/Table" const App = () => { const initUser = [ { name: "ciclano da Silva", email: "fulana@gmail.com", pass...
true
8757fa5d46a80306fed6ca770bd70f7cc682e5cb
JavaScript
vanvoljg/data-structures-and-algorithms-js
/data-structures/stacksAndQueues/__tests__/node.test.js
UTF-8
1,699
3.859375
4
[ "MIT" ]
permissive
'use strict'; /* Can successfully instantiate an empty linked list Can properly insert into the linked list The head property will properly point to the first node in the linked list Can properly insert multiple nodes into the linked list Will return true when finding a value within the linked list that exists Will re...
true
f79faf041e277164e35c8b7d1540f4d3d456cf6d
JavaScript
gicavalcante/weather-api
/app.js
UTF-8
1,199
3.21875
3
[]
no_license
window.addEventListener('load', () => { let lon; let lat; let temperatureDescription = document.querySelector('.temperature-description'); let temperatureDegree = document.querySelector('.temperature-degree'); let locationTimezone = document.querySelector('.location-timezone'); if(navigato...
true
f5368eee3e1c4ec5840b0fea2b0a56b9318c3027
JavaScript
srmishra/map-polygon-lookup
/gm.js
UTF-8
2,369
3.3125
3
[]
no_license
// if the distance in meters between first point and last click is lower than this // then consider the polygon closed var POINTS_MERGE_ACCURACY = 200; // Radius of the earth in km var EARTH_RADIUS = 6371; // pi var PI = 3.1415; // initial map options var mapOptions = { zoom: 10, center: new google.maps.LatLng...
true
251138734362c9e2df4a8e24f32b04dc61de2333
JavaScript
zuzucheFE/zzc-ui
/lib/Picker/tool/compare.js
UTF-8
491
2.765625
3
[]
no_license
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.compareDay = compareDay; /** * Created by lamho on 2017/4/25. */ function compareDay(firstTime, secondTime) { var time1 = firstTime ? firstTime.year + "-" + firstTime.month + "-" + firstTime.day : null, time2 = seco...
true
91c50edeb064065adac0cda64f3555a600c38003
JavaScript
EddySantos07/Ecommerce
/client/src/Reviews/Star-Rating.jsx
UTF-8
1,347
3.078125
3
[]
no_license
import React, {Component} from 'react'; import StarRatings from 'react-star-ratings'; var StarRating = ({ratingsList, className, dimension}) => { //ratings list will be an object that looks like this: {2: '2', 5: '1'} //the keys represent the number of reviews of that key's value var calculateAverageRating = (...
true
5edd2061643bcd703e263fc8af7c7063dcb7d81d
JavaScript
wxwxwxwx/class
/jquery/todo/js/index.js
UTF-8
4,356
2.875
3
[]
no_license
// todos-jquery // [{"id":"0dd57c2e-1d1f-4099-8de9-09489147fa1c","title":"aaa","completed":false}] $(function(){ ////定义数组 var datas=[] var a ; /////本地存储 if(localStorage.data){ datas = JSON.parse(localStorage.data) render() if(datas.length===0){ $('.hide').css('display','none') } }else{ localStorag...
true
9b75c07d92901609ca4ab5fe4f4c3c48a38e5b8d
JavaScript
JavascriptJenkins/fruitbasket
/TokenServer-SecureScrub.js
UTF-8
2,439
3
3
[]
no_license
var Firebase = require('firebase');/* get the firebase code which allows you to access their api . */ var url = require('url');/* for parsing urls */ var querystring = require('querystring');/* for parsing querystrings */ var http = require('http'); /* for creating servers */ /* Create firebase objects to represent th...
true
15ba7bff6e11247c552315ecd049bad307acbb5b
JavaScript
FazeelUsmani/Java-Script-by-Andrew-Mead
/04_Arrays/filteringArrays.js
UTF-8
785
3.625
4
[]
no_license
// const todos = [{ // text: 'Order cat food', // completed: false // }, { // text: 'Clean kitchen', // completed: true // }, { // text: 'Do work', // completed: false //}] // const getThingsToDo = function (todos) { // return todos.filter(function (todo) { // return !todo.compl...
true
44dc9da162607587fee24a9faf5151b27694752d
JavaScript
shweta413/Lnwizz
/utils/logger.js
UTF-8
713
2.609375
3
[]
no_license
const logger = require('npmlog'); const dateFormat = require('dateformat'); const config = require('../config')['logger']; const log = {}; const timeStamp = function () { return dateFormat(new Date(), config.dateFormat); }; config.levels.forEach(function(level) { log[level] = function (...arguments) { ...
true
c4198848002dd44bba705640116f5bec3db26e97
JavaScript
tisuchi/learning-node-js
/app.js
UTF-8
503
3.015625
3
[]
no_license
// var time = 0; // // var timer = setInterval(function(){ // time+= 2; // console.log(time + " has passed."); // // if (time > 5) { // clearInterval(timer); // } // }, 2000) // Get file and diretory name // console.log(__dirname); // console.log(__filename); var myCounter = require('./count...
true
cb8c17fa3bd0b3535a0d262950306b77ab3bd3b3
JavaScript
Mrbanano/Cryptocurrency-Quote
/js/ui.js
UTF-8
1,001
2.96875
3
[ "MIT" ]
permissive
class UI { constructor() { this.init(); } init() { this.builOptions(); } //insert fields for options builOptions() { api.getCoinsAPI().then((coins) => { //get selector const select = document.querySelector("#criptomoneda"); for (const [key, value] of Object.entries(coins.Data)...
true
1c5c7e64c759440963dc13db9f243338d426f11d
JavaScript
mr-sychevskyi/settings-component-react
/src/components/slider/index.js
UTF-8
1,258
2.703125
3
[]
no_license
import React, {Component} from 'react'; import './styles.scss'; class Slider extends Component { state = {value: 50}; componentDidMount() { const slider = document.querySelector('input.slider-range'); this.handleProgress(slider); } handleProgress = slider => { const progress ...
true
bbe513421827d57523b37d4c1838c9355cb82a1c
JavaScript
dannypaz/sentry-util
/src/helpers/curl.js
UTF-8
1,355
2.78125
3
[]
no_license
const Curl = require('node-libcurl').Curl; const SENTRY_API_TOKEN = process.env.SENTRY_API_TOKEN || 'NO TOKEN FOUND'; const ENVIRONMENT = process.env.ENV || 'production'; // `curlRequest` takes the following parameters // url: Request URL // useHeader: boolean. Specifies if a header needs to be present in the Request...
true
092061c56b478c819911744a24c87fd3e20b58ff
JavaScript
mashrief/number-guess-game
/script.js
UTF-8
1,933
3.5
4
[ "MIT" ]
permissive
"use strict"; const display = function (className, msg) { document.querySelector("." + className).textContent = msg; }; const clickAction = function (className, action) { document .querySelector("." + className) .addEventListener("click", function () { action(); }); }; const insertedValue = functi...
true
8dfdd11918c41ba9b96998737b74b8751f33ef7c
JavaScript
guivicentep/projetoOng
/backend/src/utils/generateUniqueId.js
UTF-8
250
2.734375
3
[]
no_license
// Constante que traz o crypto, que gera o ID randômico de uma ONG const crypto = require('crypto'); module.exports = function generateUniqueId () { // Cria um código aleatório para cada ONG return crypto.randomBytes(4).toString('HEX'); }
true
1165f64a6a9993afbb065115400061e1bf124422
JavaScript
jamesfoster/jq-wysihat
/test/unit/sanitize_contents_test.js
UTF-8
2,990
3
3
[ "MIT" ]
permissive
function sanitize(html, options) { return new Element("div").update(html).sanitizeContents(options).innerHTML.toLowerCase(); } new Test.Unit.Runner({ testSanitize: function() { var runner = this; runner.assertEqual( "hello", sanitize("hello", {}) ); runner.assertEqual( "hello", ...
true
6199e1c3bed63a50a18f1d0020a4790c7add5e21
JavaScript
denizmersinlioglu/sample_node_project
/src/routes/genres.js
UTF-8
1,609
2.828125
3
[]
no_license
import Joi from 'joi'; import express from 'express'; const router = express.Router(); let genres = [ { id: 1, name: 'Horror' }, { id: 2, name: 'Comedy' }, { id: 3, name: 'Thriller' }, { id: 4, name: 'Drama' } ]; router.get('/', (req, res) => { res.send(genres); }); router.get('/:id', (req, res) => { con...
true
508a8170920d8e6b400208edb4eb1e9e3f723e66
JavaScript
devit1618/restful-api-framework
/__tests__/lib/waterfall-test.js
UTF-8
1,525
3.15625
3
[ "MIT" ]
permissive
const waterfall = require('../../lib/waterfall') test('sync actions', () => { const actions = [] actions.push(next => { return next(1) }) actions.push((one, next) => { return next(one + 2) }) return waterfall(actions) .then(r => expect(r).toBe(3)) }) test('async actions', () => { const ac...
true
bf8ea2d8d13bd6506ea1fc361229809c5f4c1ab3
JavaScript
armen011/Bootcam2021
/Closure/redundant.js
UTF-8
291
3.78125
4
[]
no_license
//Write a function redundant that takes in a string str and returns a function thatreturns str. const redundant = (str) => { fun = () => { console.log(str); }; return fun; }; const f1 = redundant("Apple"); f1(); const f2 = redundant("Pear"); f2(); const f3 = redundant(""); f3();
true
40c891882bce476b166aa4cff149a482d2e84216
JavaScript
RommerChu/JSProject
/Chapter6/Question6/js/menu.js
UTF-8
268
2.765625
3
[]
no_license
function CusName(Name){ let LuncheonMenu = document.getElementById(Name).value document.getElementById('Name').innerHTML=LuncheonMenu; } function CusPhone (Cell) { let Phone = document.getElementById(Cell).value document.getElementById('phone').innerHTML=Phone; }
true
28204362052b746d08c423ede5f8d0f99554f81e
JavaScript
Rspoonia/book-library
/src/components/books/bookShelfList.js
UTF-8
1,913
2.890625
3
[]
no_license
import React, { useEffect, useState } from "react" import BookShelf from "./bookShelf" import * as BooksAPI from "../repository/booksApi" //TODO need to add search and add new books export default function BookShelfList() { /** * for show loading state */ const [isLaoding, setIsLaoding] = useState(true) /*...
true
4d0c5591ae2049a386a9336ec0b9331d2b48a60e
JavaScript
efabris/Saml-Metadata-Parser
/src/parser.js
UTF-8
1,022
2.53125
3
[ "MIT" ]
permissive
const fs = require('fs'); const https = require('https'); const XMLParser = require('xml2json'); const SAMLMetadata = require('./SAMLMetadata'); const isValidRespone = res => ( res.statusCode === 200 && res.headers['content-type'] === 'application/samlmetadata+xml' ); const fromString = (xmlString) => { ...
true
e5880a49677b6ed0cd839852326037481e5cf174
JavaScript
ChrisS-ed/project2
/client/src/accommodation/spec/hotel_sort_spec.js
UTF-8
1,114
2.609375
3
[]
no_license
var Accommodation = require('../accommodation'); var chai = require('chai'); var assert = chai.assert; var sortAccommodation = require('../sort_accom.js'); describe('hotel', function() { it('should have the cheapest result first', function() { hotels = [ hotel1 = new Accommodation("Crowne Plaza", 32, 10, 1, ...
true
7ebf241748c73b566e1953b88f293750e121d474
JavaScript
Hunter-aw/bootcamp
/interview-practice.js
UTF-8
1,061
3.859375
4
[]
no_license
const alphabet = ["a", "b", "g", "d", 'h', 'v', 'z', 'j', 't', 'y', 'j', 'l', 'm', 'n', 's', 'i', 'p', 'x', 'q', 'r', 'w', 'u', 'c', 'e', 'f', 'o'] const alphabetScore = {}; const scoreAlphabet = () => { for (i=0; i<alphabet.length; i++){ let letter = alphabet[i] alphabetScore[letter] = (1/((i+1)*(i...
true
b83b6fcf9499d56fe5a137980dbbd0f12b14512c
JavaScript
Codaisseur/tic-tac-toe-logic
/calculate-winner.js
UTF-8
1,403
3.28125
3
[]
no_license
// calculate-winner.js function calculateWinner_notClean(rows) { const winningRow = rows.find(allSymbolsAreTheSameButNotNull) if (winningRow) { return winningRow[0] } const columns = getColumns(rows) const winningColumn = columns.find(allSymbolsAreTheSameButNotNull) if (winningColumn) {...
true
33545ce85c74d4a7cf00e961a395b8fe9fe3619b
JavaScript
lampo4ka/sugonyak-kristina-otus-js
/Home-work6/web-server/server.js
UTF-8
1,135
2.8125
3
[]
no_license
const http = require('http'); const fs = require('fs'); const port = 3000; const requestHandler = (request, response) => { if(request.url === '/name'){ fs.readFile(`${ __dirname }/name.html`, function (err, content) { if (!err) { response.setHeader('Content-Type', 'text/html'); response.write(content); ...
true
bd468e13a38e6d1c67a68ac137891269e51ddabe
JavaScript
danbuckland/udemy-javascript-bootcamp
/advanced/type-coercion.js
UTF-8
254
4.1875
4
[]
no_license
// Type coercion - string, number, boolean console.log('5' + 5) // '55' console.log('5' - 5) // 0 console.log(5 == '5') // true console.log(5 === '5') // false const value = true + 12 // 13 const type = typeof value console.log(type) console.log(value)
true
a4426be22d3bf1815748324d863c325bbc7ded0a
JavaScript
npmcdn-to-unpkg-bot/MAGIC
/models/message.js
UTF-8
362
2.515625
3
[]
no_license
// models/message.js // load the things we need var mongoose = require('mongoose'); // define the schema for our user model var messageSchema = mongoose.Schema({ fromId: String, toId: String, message: String, timestamp: Date, }); // create the model for users and expose it to our app module.exports =...
true
fb1b133f794189f02971e1edae21fd4f61157e5d
JavaScript
JQNguyen15/messageboard
/proj/js/zcustom.js
UTF-8
6,948
3.125
3
[ "MIT" ]
permissive
$(document).ready(function(){ //In the search box, stop the propagation of the click event that selects the found item $('#searchOptions').on('click', function(event){ event.stopPropagation(); }); //Default action of the search forum is to search the site for the specific keyword //If the ...
true
91ca468f3a07c4ae3a79b8bae666700f83b7c86d
JavaScript
mishfit/godaddy-mgmt
/src/domain.js
UTF-8
2,800
2.6875
3
[]
no_license
import axios from 'axios' import config from '../config' import { transformHeaders } from './transforms/header' class Domains { constructor () { const headers = transformHeaders(config.headers) this.requestor = axios.create({ baseURL: config.host, headers }) } test () { return 'this is a test' } ...
true
fe0cd4027a3bb68acd3f539ca36e40a03a877ba6
JavaScript
RafaelEvangelist4/Marvel-API
/marvel/src/components/Search.js
UTF-8
508
2.53125
3
[ "MIT" ]
permissive
import React, {useState} from 'react' const Search = ({search}) => { const [text,setText] = useState("") const onSearch= (q)=>{ setText(q) search(q) } return ( <section className = "search"> <form> <input type = "text" style={{color: 'white'}} className = "form-control" ...
true
fcebbdb972f7d686bf6c585bb95c04767cd23641
JavaScript
yhmena/Mena_Yanelys_WPF
/Week 4/Screencast Loops/1 Do While Loop/js/script.js
UTF-8
483
4.09375
4
[]
no_license
//Yanelys Mena //Conditionals //October 20, 2013 console.log('------ Loops --------') var b = 50; //sets up the index //if while (b > 0) { //checks the condition console.log(b + ' Kegs on the Wall'); b--; //increments or decrements the index } console.log('--------Do While Loops-----'); var c = 10; do{ cons...
true
3cbadb4f8713803e7b1ece71cb2039a6a598a796
JavaScript
TomWittmann/stream-adventure
/my-solutions/read-it.js
UTF-8
445
3.375
3
[]
no_license
/** * Here we are pushing all the data in the stream before piping it to process.stdout. * This is not very efficient. */ const {Readable} = require('stream'); let myReadable = new Readable({ read() {} }); // Push the data we want the consumers to consume. myReadable.push(process.argv[2]); // Signal that stre...
true
70eebd82529b9e75ba8ed6df854e60726854493b
JavaScript
moskalenkoBV/react-adyax-test
/src/actions/decAmount.js
UTF-8
1,056
2.671875
3
[]
no_license
import { DEC_AMOUNT_BASKET } from '../reducers/basketReducer' import { DEC_AMOUNT_PRODUCTS } from '../reducers/productsReducer' const decAmount = id => (dispatch, getState) => { const state = { basket: getState().basketReducer, products: getState().productsReducer } if(localStorage.getItem('basket')) { ...
true
a806608227bc671216940d1c3daaf9c4f50ccb7f
JavaScript
Darin99/jsTasks
/arrays/Task02.js
UTF-8
108
2.609375
3
[]
no_license
function solve() { var x = 55; return x + x; } var myN = solve(5, 10); console.log(myN);
true
23ef354a638efc5ccb4a343e8858176b70145cf5
JavaScript
valyanggy/0312-airtable-javascript
/script.js
UTF-8
1,784
3.328125
3
[]
no_license
// This code in combination with .no-js .js in css enables a class on the document that will let you determine how the page looks with/without JavaScript enabled document.documentElement.className = document.documentElement.className.replace ('no-js', 'js'); const nameEl = document.querySelector('#name'); const to...
true
93ddf1a8981afe68b1ad75d630a41ca1c58f78de
JavaScript
pormes/pormes_bot17
/java-followers.js/Like_Avoid_Bans_24H.js
UTF-8
4,123
3.109375
3
[ "Apache-2.0" ]
permissive
require('../src/tools-for-instagram.js'); let totalLikes = 600; let initialHour = 0, endHour = 24; /* This is experimental stuff to avoid bans, currently testing on different configurations */ console.log("Remember to use Residential proxies or 4G proxies to avoid like limitations before starting the bot".cyan); fun...
true
57cbae5a14499c287766b72cf7608bb532f4feee
JavaScript
AlexandreRouma/OpenWeather
/html/js/scripts.js
UTF-8
1,973
2.71875
3
[]
no_license
let ctx = document.getElementById('graph').getContext('2d'); var myChart = new Chart(ctx, { type: 'line', data: { datasets: [{ yAxisID: 'T', label: 'Temperature (°C)', data: [], borderColor: 'blue', backgroundColor: 'transparent' ...
true
4383c935f594e70b9db89709cf8f73c8370ab97d
JavaScript
znicholasbrown/voronoiFactory
/voronoiFactory.js
UTF-8
8,309
2.59375
3
[]
no_license
'use strict'; function Voronoi(mapObject, geojson, legendElement, poi, options) { this.options = options || {}; this.map = mapObject.map; this.map._initPathRoot(); // Appends an SVG layer to the map element _.defaults(this.options, { radius: 3000, lineWidth: 0.5, opacity: 0.5,...
true
81c74631542376181c11f8586eaeb8d1536ffc07
JavaScript
carltonf/pass-locker
/src/simpleJSONCryptor.js
UTF-8
728
2.859375
3
[]
no_license
// Borrowed from https://github.com/chris-rock/node-crypto-examples var crypto = require('crypto'), algorithm = 'aes-256-ctr', password = require('./PASS'); // accept `json`, output encrypted hex text. function encrypt(json){ var cipher = crypto.createCipher(algorithm, password); var crypted = cipher.upda...
true
aa39bf264f803e3f4ae67867102bd72bc4f80b9e
JavaScript
alyssabartuch/data-structures-and-algorithms
/Intermediate Algorithms/search_and_replace.js
UTF-8
683
3.421875
3
[]
no_license
function myReplace(str, before, after) { let strArr = str.split(' '); let strIndex = strArr.indexOf(before) if (before.match(/^[A-Z]/) ) { let capital = after[0].toUpperCase() after = after.replace(/(^[a-zA-Z])/, capital); } else { let lowerCase = after[0].toLowerCase(); after = ...
true
d47535bdd2f2c0a028a7854aa44585d880180ce1
JavaScript
yodash/Blockchain-Shcool
/node-js/blockchain/block.test.js
UTF-8
1,316
3.109375
3
[]
no_license
const Block = require('./block'); describe('Block', () => { // Function内部にスコープを広げるためletで定義 // letは、関数スコープのvarと異なりブロックスコープなので更新されない let data, lastblock, block; // まずテストデータの初期化 beforeEach( () => { data = "yoda"; lastBlock = Block.genesis(); block = Block.mineBlock(lastBlock, ...
true
c6e26c8bd2ab59429a15aff0b490d9ff36c192be
JavaScript
djidee59/TP4-Neo4j-Heroku
/app.js
UTF-8
3,641
2.5625
3
[]
no_license
var express = require('express'); var path = require('path'); var bodyParser = require('body-parser'); // heroku: on récupère le port sur lequel heroku à ouvert l'app const PORT = process.env.PORT || 3000; var app = express(); // Body parser pour récupérer facilemnt les élements du DOM app.use(bodyParser.json()); ap...
true
af7aa309258d897eee94874836c204c8b2180feb
JavaScript
stevelenius/3.A-assignment
/radial.js
UTF-8
2,832
3.921875
4
[]
no_license
// radial.js // // Constructs a rainbow-colored radial graphic // with choice of ellipse, line or quad // // Allows choice of rotation intervals from 2 to 7 degrees // // Set up color value arrays for red, green and blue (24 color combinations) let redFillColors = [255, 255, 255, 255, 255, 192, 128, 64, 0, 0, 0, 0, 0...
true
54f98ed83a0a3a2c06d63b6a67c8c47c0900a0ff
JavaScript
agj/agj-js
/src/agj/collection/every.js
UTF-8
782
2.609375
3
[]
no_license
define( function (require) { 'use strict'; var overload = require('../function/overload'); var autoCurry = require('../function/autoCurry'); var flip = require('../function/flip'); var is = require('../is'); function everyObject(obj, fn) { for (var key in obj) { if (!obj.hasOwnProperty(key)) continue; ...
true
db1fba3577d9bcfe2074c7540909b6e1e57fea83
JavaScript
cumareshan27/Project1
/assets/delete/taskPageLoad.js
UTF-8
7,096
2.609375
3
[]
no_license
var config = { apiKey: "AIzaSyDGCQvFTOuo1UnBrY9DuKuDX0caK-snc_o", authDomain: "dbtest-6a1ec.firebaseapp.com", databaseURL: "https://dbtest-6a1ec.firebaseio.com", projectId: "dbtest-6a1ec", storageBucket: "dbtest-6a1ec.appspot.com", messagingSenderId: "846174705720" }; // ↑ ▲ ▼ ✓ ► // htt...
true
274edce3359601664ee2ff478ae4d48da43a8498
JavaScript
theomar3/little-web-samples
/day-09-simple-dom-js/dom-query.js
UTF-8
266
2.6875
3
[]
no_license
var $clickMe = $('.click-me'); var $button = $('button'); var $theList = $('ul'); function green() { $clickMe.toggleClass('toggled'); } function showHide() { $theList.toggleClass('hidden-list'); } $clickMe.on('click',green); $button.on('click', showHide);
true
ccc784072323f8005b989deb66ac4fc3d83e2b0b
JavaScript
GHOSTin/mshc2
/main/site/js/notification-center.js
UTF-8
12,231
2.5625
3
[ "MIT" ]
permissive
/** * выводит в лог переданное значение * @function * @param {*} param */ var log = function (param) { console.log(param); }; /** * Декодирует строку в ASCII символы * @param {string} s строка для декодирования * @returns {string} */ function decode(s) { var pluses = /\+/g; return decodeURIComponent...
true
84f5a8f90963d16078b360f0aa7651be9314ebc7
JavaScript
thProfessor/verma_katiyar_car_website
/src/pages/Blog.js
UTF-8
1,454
2.96875
3
[]
no_license
import React, { useState } from "react"; import styled from "styled-components"; function Blog() { const [data, setData] = useState(""); const [mobile, setMobile] = useState(""); const valueChange = (e) => { setData(e.target.value); }; const mobileChange = (e) => { setMobile(e.target.value); }; c...
true
1acec4b50971147b25ac00882ae4b534ccab8b3e
JavaScript
AjhayDelfino/amoung_us_voting
/function.js
UTF-8
1,230
2.703125
3
[]
no_license
var score={ p1 : 0, p2 : 0, p3 : 0, p4 : 0, p5 : 0, p6 : 0, p7 : 0, p8 : 0, p9 : 0, p10 : 0, } $(document).ready( function(){ $("div>#p1").click( function(){ score.p1++; $("#p1vote").html(score.p1); } ); $("div>#p2").click( function(){ score...
true
0bde61902f23c69a29d3ef31d0d1a44004c67846
JavaScript
feliciaabelsson/inlamning-HTML-CSS
/script/script.js
UTF-8
599
3.140625
3
[]
no_license
// toggle menu document.querySelector('.menu-icon') .addEventListener('click', function(){ // Runs when clicking on menu-icon document.querySelector('body') .classList.toggle('menu-open') }); // closing menu when click on menu option document.querySelectorAll('nav > a') //get all a:s ins...
true
6ad0d5c952c1705f4a02537b77e3bcfddc551875
JavaScript
lindbergan/dat076project
/react-backend/routes/users.js
UTF-8
1,780
2.578125
3
[]
no_license
const express = require('express'); const router = express.Router(); var models = require('../database/models'); var Users = models.user; /* GET ALL USERS */ router.get('/', (req, res, next) => { return Users.findAll().then(users => { if (!users) { return res.status(404).send({message: 'No use...
true
c6a92cf022df9f553950c19873c73d9d0fc5142f
JavaScript
MartaZaorska/weather_app
/src/hooks/useFetchData.js
UTF-8
652
2.796875
3
[]
no_license
import { useState, useEffect } from "react"; const useFetchData = (url) => { const [data, setData] = useState(undefined); const [loading, setLoading] = useState(false); const [error, setError] = useState(undefined); useEffect(() => { if(url){ setLoading(true); fetch(url).then(res => res.json())....
true
c8efbb011639fce77c4f0a055b160e89b63787be
JavaScript
istudiomobile/smart-motion-detector
/parser.js
UTF-8
2,125
2.78125
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT", "BSD-3-Clause" ]
permissive
var m = require('mraa'); //IO Library var HTMLParser = require('node-html-parser'); var fs = require('fs'); var n = require('os').networkInterfaces() var app = require('express')(); //Express Library var server = require('http').Server(app); //Create HTTP instance var io = require('socket.io')(server); //Socket.IO Libr...
true
0a6b593d4f4b00d60a5522ac00723760132f7b9b
JavaScript
NRIyer93/spartaClasswork
/classwork/w02d02/starter-code-dom-events copy/index.js
UTF-8
436
3.0625
3
[]
no_license
// write code here document.addEventListener('DOMContentLoaded', function() { var button = document.getElementById('myButton'); function buttonClicked() { console.log('Button was clicked'); } button.addEventListener('click', buttonClicked); var myForm = document.getElementById('myForm'); myForm.addEventListener('...
true
c0dfdb40660fa962b3e43bb8751893b94a6a965c
JavaScript
AidanFarber/website
/static/scripts.js
UTF-8
894
2.5625
3
[]
no_license
$(".nav-link").click(function() { // e.preventDefault(); var section = $(this).attr("href"); $("html, body").animate({ scrollTop: $(section).offset().top - 83 }, 20); }); // $(window).scroll(function() { // if (isInView("#home")) { window.history.pushState("state", "title", "/"); return; }...
true
89d6b1d44170929a06555500f9896a6e51b06d83
JavaScript
talcia/CodersCamp2020.Project.JavaScript
/src/components/gameNavigation/GameNavigation.js
UTF-8
1,467
2.78125
3
[]
no_license
import { people, starships, vehicles } from '../../constants'; export const gameNavigation = (questionPanel, modeRules) => { const navigation = document.createElement('div'); createHtmlNavigationElement(navigation); addClickListenerForNavigationButtons(navigation, questionPanel, modeRules); return navigation }...
true
51ba0f993107934c8273bae5c7f30057469a8be8
JavaScript
Shruthigvr/placeholder
/src/Toggle.js
UTF-8
998
2.859375
3
[]
no_license
import React, { Component } from 'react'; import './homestyle.css' class Toggle extends React.Component { constructor(props) { super(props); this.state = { buttonName: "My Post", isToggleOn: true }; // This binding is necessary to make `this` work in the cal...
true
d60fe4b55cbe8a226f9035863548dbeea13ba130
JavaScript
PabloFelipeRG/OCR-project
/server/static/scripts/script.js
UTF-8
3,930
2.640625
3
[]
no_license
var data = { image: null } function handleFieldChange(value, field) { let file = value.target.files[0], reader = new FileReader(); if (!file) { Swal.fire("Nenhuma imagem foi anexada."); return; } reader.onload = (function (theFile) { if (theFile.type.slice(0, 5) ===...
true
3954a4852d9f49da4b6ecfc3fe353c4d83267b84
JavaScript
yadavanuj1996/freecodecamp-solutions
/Front End Libraries Certification/React/47-use-array-filter-to-dynamically-filter-an-array.jsx
UTF-8
1,089
2.890625
3
[ "MIT" ]
permissive
class MyComponent extends React.Component { constructor(props) { super(props); this.state = { users: [ { username: 'Jeff', online: true }, { username: 'Alan', online: false }, { ...
true
0d088db8e29340c4592631c9c4cf771bbb4c4173
JavaScript
jaysutham/paliclopedia
/server/seeds/monster-seed.js
UTF-8
1,804
2.890625
3
[]
no_license
const monsterData = require('../../Data/monsters.json'); exports.seed = function (knex) { const monsterArr = []; for (const monster of monsterData){ const id = monster.id const name = monster.name const type = monster.species const description = monster.description cons...
true
0161b2e6bc7dd112861934962d1be73a0cf31a8e
JavaScript
JGillmore/War
/client/controllers/war.js
UTF-8
4,077
2.796875
3
[]
no_license
app.controller('WarController', function (DeckFactory, GameFactory, $scope, $timeout){ var inPlay=false; var emptySlot = {image:"images/ec.png"}; DeckFactory.getDeck(function(deck){ $scope.deck = deck; }); GameFactory.newGame("war", 100, 2, function(game){ $scope.game = game; for(var i = 0; i < $s...
true
569ce42f192ec350b91677eb45e01a4d3004b531
JavaScript
wozane/react_edu
/module_1/app.js
UTF-8
3,073
2.859375
3
[]
no_license
function Header() { return ( <div className="header"> <h1>Welcome to React Transportanion</h1> <span>The best place to buy vehicles online</span> </div> ) } function FilterForm() { return ( <div className="filter-form"> <h2>Choose your option</h2> <span>New only</span> <...
true
87efa396db7529f2762aaa8ab520ab0c441a76ec
JavaScript
tommy-schmitz/tommy-schmitz.github.io
/2014_jams/montact/arrows.js
UTF-8
1,603
2.796875
3
[]
no_license
// Load main library var Game = window.Game || {}; (function() { // Activates the flag in 'dirs' that corresponds to 'offset' var helper = function(offset, dirs) { if(offset.x == -1) dirs.w = true; if(offset.x == 1) dirs.e = true; if(offset.y == -1) dirs.n = true; if(offset.y == 1) dirs.s = true; }; Gam...
true
681f76fb423b3f090a6e00e393c21f5330511576
JavaScript
justinjkim/week-6-project
/public/script.js
UTF-8
350
2.890625
3
[]
no_license
let alreadyGuessed = document.getElementById("alreadyGuessed"); let submit = document.getElementById("submit"); let letterTracker = document.getElementById("letterTracker"); console.log(alreadyGuessed); console.log(submit); console.log(letterTracker); submit.addEventListener("submit", function() { letterTracker.rem...
true
28de8665a4bf71cc0b81584c137c98aa83bf3744
JavaScript
ChelseaHarrisW/Clowning-Around
/src/scripts/request.js
UTF-8
986
2.6875
3
[]
no_license
import { getRequests } from "./dataAccess.js" export const Requests = () => { const requests = getRequests() const convertRequestToListElement = (request) => { // defining a fx varible...this fx is returning the discrription from the request we first have to get the whole obj then interate through //we...
true
f4744ddc1b2ea4591e22250ed298a8dc5b9c0b09
JavaScript
Crni88/JS-Projects
/Array methods/script.js
UTF-8
2,183
3.78125
4
[]
no_license
const main = document.getElementById("main"); const adduserBtn = document.getElementById("add-user"); const doubleBtn = document.getElementById("double"); const showmillionaresBtn = document.getElementById("show-millionares"); const showbillionaresBtn = document.getElementById("show-billionares"); const sortBtn = docum...
true
0c6a046d7da279ebffde4e89c6363d5211e29863
JavaScript
rbiswas143/deep-audioviz-experiments
/demo/src/viz/mapper.js
UTF-8
3,631
2.90625
3
[ "MIT" ]
permissive
const expAvg = (old, curr, decayRate) => { curr = curr === undefined || isNaN(curr) ? 0 : curr; old = old === undefined || isNaN(old) ? 0 : old; return (curr * decayRate) + (old * (1 - decayRate)); }; export default class Mapper { constructor(viz, options) { this.viz = viz; this.active = true; // Set ...
true
0ac3ec018ea22e450bf8c3dc9ec5aeecdd154510
JavaScript
gabrielruy/prj-quiz-admin
/src/pages/sample/Sample.jsx
UTF-8
1,294
2.609375
3
[ "MIT" ]
permissive
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { fetchPosts } from '../../redux/actions/posts'; class Sample extends Component { static propTypes = { posts: PropTypes.objectOf(PropTypes.any), onFetchPosts: PropTypes.func.isRequired,...
true
fcd1feec4f65f320bd0d7c5b3fb99304ed09dfc9
JavaScript
Hatchpad/node-snowman
/spec/addons/validators/isEnum_spec.js
UTF-8
2,614
2.515625
3
[ "Apache-2.0" ]
permissive
const Snowman = require('../../../.'); const isEnumValidator = require('../../../src/addons/validators/isEnum'); describe('isEnum', function() { let snowman, execSpy; beforeEach(function() { execSpy = { onResolve:function() {}, onReject:function() {} }; snowman = new Snowman({ _para...
true
c70e7b89c73c4c9a2b0903e31515317527bcff67
JavaScript
qiilee/js
/JS/jiangkun/day03/04-框架的核心结构/01my/itcast.js
UTF-8
1,367
3.0625
3
[]
no_license
/** * Created by 15842_000 on 2017/2/19. */ function F(selector){ [].push.apply(this, F.select(selector)); } F.prototype.each = function(callback){ return F.each(this,callback); }; F.prototype.map = function(callback){ return F.map(this,callback); } F.select = function(selector){ return document.query...
true
f80c2ebcb5d4a11df5bb622d2b1b8c3505c54d3c
JavaScript
xcodebanda/bootcamp-nx
/3-NodeAvanzado/app-lista-tareas/tarea-doce/src/helpers/leerArchivo.js
UTF-8
321
2.796875
3
[]
no_license
const fs = require('fs') const leerArchivo = (direccion) => { let estaCreada = false if(!fs.existsSync(direccion)) return { estaCreada } const datos = fs.readFileSync(direccion, {encoding: 'utf-8'}) estaCreada = true return { estaCreada, datos } } module.exports = leerArchiv...
true
a8edd8de5384cd1ea9a3fedd72c4f3974b49aee9
JavaScript
haojiasheng/simpleReact
/src/utils/type.js
UTF-8
598
2.8125
3
[]
no_license
export function getType(a) { return {}.toString.call(a).match(/\S+\s(\S+)]/)[1].toLowerCase(); }; export function isObject(a) { return getType(a) === 'object'; }; export function isArray(a) { return getType(a) === 'array'; }; export function isNumber(a) { return getType(a) === 'number'; }; export function i...
true
d28dee02db59024cccf313014e60febbda4af8ca
JavaScript
geosheehan/code-wars
/8-kyu/js/goose-filter.js
UTF-8
365
3.703125
4
[]
no_license
// Filter out the geese // https://www.codewars.com/kata/57ee4a67108d3fd9eb0000e7 function gooseFilter (birds) { let geese = ["African", "Roman Tufted", "Toulouse", "Pilgrim", "Steinbacher"]; // return an array containing all of the strings in the input array except those that match strings in geese return birds...
true
bba2a32d02f8a94338e53dc7941fe074cc018c24
JavaScript
lucianamendez/PracticasAda-Logica-Javascript
/A8.Clase10-10/Ejercicio2/index.js
UTF-8
335
3.96875
4
[]
no_license
/*Ejercicio 2 - Repetir el ejercicio anterior, ubicando 0 (ceros), en las posiciones pares y un valor que coincida con el índice en las posiciones impares.*/ var n=parseInt(prompt("Ingrese largo del arreglo")); var arreglo=[]; for (var i=0; i<n; i++){ if(i%2==0){ arreglo[i]=0; } else {arreglo[i]=i;} } console...
true
9acbbb0d48b554015baa0083926af12703372079
JavaScript
anapaulaar/AtividadeClasses
/index.js
UTF-8
1,040
2.859375
3
[]
no_license
var produtoCadastrado = require('./produtos') var cadastrarUsuario = require('./usuarios') const produtoAdiciona = new produtoCadastrado() const adicionaUsuario = new cadastrarUsuario() produtoAdiciona.cadastraProduto('Galak',5.99,5) produtoAdiciona.cadastraProduto('Diamante Negro',5.99,10) produtoAdiciona.cadastraPr...
true
e647e8350965dd6fc8a49f0b48ffa707b19ada6b
JavaScript
easf/mediciones-particulas
/index.js
UTF-8
1,502
2.515625
3
[]
no_license
#!/usr/bin/env node /** * Main file */ var config = require('./config'); //*** Importing configurations dict. var server = require("./server"); //*** Wiring with server implementation. var ServerEnv = function(){ /** * Some server environment settings. */ self = this; self.terminator = funct...
true
373de5523e57f82459178e9300fe185a4a6ce8af
JavaScript
kittytaylor55/tictactoe
/tic-tac-toe/routes/apiRoutes.js
UTF-8
988
2.796875
3
[ "MIT" ]
permissive
// LOAD DATA const express = require("expresss"); //const router = express.router(); const path = require("path"); const notesDB = require("../db/db.json"); const fs = require("fs"); var dataBase = []; // ROUTING module.exports = (app) => { // API GET Requests app.get("/api/game", (req, res) => { fs.readFile("...
true
918f01e2f02d77245dd130d9e594100fbbb467d1
JavaScript
pshel/pshel.github.io
/assets/js/settings.js
UTF-8
1,918
2.8125
3
[]
no_license
// settings.js // purpose: used for customization // this is used to set the theme up function setTheme(t) { localStorage.setItem("t", t); document.body.setAttribute("t", t); document.body.style = ""; localStorage.removeItem("theme_color"); } // this generates all the current themes using a json file...
true
813dd542a435e8db2ea60ea75377d4f2571032aa
JavaScript
Il25/React-Redux-Saga-StarWars
/src/redux/species/index.js
UTF-8
1,324
2.765625
3
[]
no_license
import { actionTypes } from "./actionTypes"; const initialState = { species: [], addUrl: "", searchSpecies: [], totalInfo: {}, }; export function speciesReducer (state = initialState, action) { switch (action.type) { case actionTypes.SET_SPECIES: return { ...st...
true
c4c93a0dd2461272bef7be3f6fe4c1b5f7b81904
JavaScript
zach111694/molloyLife
/external/processor.js
UTF-8
1,956
2.875
3
[ "MIT" ]
permissive
// Route to correct processor to handle processing of data (e.g., xmlprocessor, htmlprocessor) // All processors should implement getData(requestInfo, callback) var fs = require("fs"); var processor; var allEventItems = []; var NUM_OF_EVENT_PAGES = 7; var processedEventPages = 0; //var entryId = 1; function readData()...
true
ab9f4452e126fe4317325ea0340788183587a84c
JavaScript
DevStation-COCC/bend-201d3
/class-03/demo/flow-control/js/app.js
UTF-8
830
3.8125
4
[]
no_license
'use scrict'; // var username = prompt('Please tell me your name'); // console.log(username); // while(!username) { // alert('no really, I need a name'); // username = prompt('Alright let\'s try this again: what is your name'); // console.log(username); // } do { var dogname = prompt('What is your dog\'s nam...
true
8ea8abd322219b2698b0d3049c8398ec26d52c6f
JavaScript
G0a19/movie-website
/src/javascript/_checkbox.js
UTF-8
436
2.578125
3
[]
no_license
const checkBox = document.querySelector(".nav__checkbox"); const links = document.querySelectorAll(".nav__li"); const cardFront = document.querySelector(".features__con-front"); const cardBack = document.querySelector(".features__con-back"); links.forEach((link) => { link.addEventListener("click", function (...
true