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
694caf3c6357d8dea3fcb563a5a0a6ece1a0e020
JavaScript
green-fox-academy/eszteroida
/week-07/day04/bookstore_dom/server.js
UTF-8
800
2.515625
3
[]
no_license
'use strict' const express = require('express'); const mysql = require('mysql'); const app = express(); const PORT = 3002; const connection = mysql.createConnection({ host: 'localhost', user: 'root', password: 'password', database: 'bookstore', }); app.use(express.static('static')); connection.connect(funct...
true
1ff6997e481f0038db4b474c2ff7c7c2f34e4444
JavaScript
KristoferWhitfield/RC-HW
/Week 5/slot machine/js/main.js
UTF-8
1,614
3.75
4
[]
no_license
let money = 1000 let first = document.querySelector('#slotOne').innerText let second = document.querySelector('#slotTwo').innerText let third = document.querySelector('#slotThree').innerText console.log(first, second, third); document.querySelector('#betMin').addEventListener('click', betFive) document.querySelector...
true
fe0cf06bc67ef0b5c65ebcc03696a52369ad2e08
JavaScript
marclevetin/angular-tsa
/pages/averageclaims/averageclaims.controller.js
UTF-8
949
2.671875
3
[]
no_license
app.controller("barchart", function($scope, $http) { $scope.test2 = "Remember to remove this."; var vt = this; // Bar Chart vt.barChartLabels = []; vt.barChartSeries = ["Average", "Standard Deviation"]; vt.barChartCharts = []; // API Request $http({ method: "GET", url: "./data/averageClaim...
true
8c9f75e9f0d7294e358ace2c275c6a6d18b11711
JavaScript
koki315/FrontHacks
/fh_14/fh_14_ex_02/main.js
UTF-8
816
3.90625
4
[]
no_license
class KitchenTimer { constructor(name){ this._name = name; this._remainingSeconds = 0; this._isRunning = false; window.setInterval(() => { if(this._isRunning && this._remainingSeconds > 0){ this._remainingSeconds--; console.log(this._name + ': 残り時間' + this._remainingSec...
true
ec804386a004fd8e9107534657794c95e982ad6a
JavaScript
exxlain/378011-typoteka-3
/src/service/api/article.e2e.test.js
UTF-8
10,270
2.78125
3
[]
no_license
'use strict'; const {describe, beforeAll, test, expect} = require(`@jest/globals`); const express = require(`express`); const request = require(`supertest`); const Sequelize = require(`sequelize`); const initDB = require(`../lib/init-db`); const http = require(`http`); const socket = require(`../lib/socket`); const a...
true
6b0c2dae32939e95e8f59d7fda1299408be8a89d
JavaScript
GillesRasigade/m-place
/src/lib/models/contract/Contract.js
UTF-8
3,237
2.796875
3
[ "MIT" ]
permissive
import EventEmitter from 'events'; import Stateable from '../../pattern/Stateable'; import Undoable from '../../pattern/Undoable'; import Validator from './Validator'; import Term from '../term'; import Actor from '../Actor'; /** * State actions and states */ const ACTIONS = Object.freeze({ addTerm(term) { r...
true
c3263e52730289aa5bb97301f401184cf6ddb554
JavaScript
nemixu/portfolio
/static/js/main.js
UTF-8
853
2.59375
3
[]
no_license
// Scroll Element to change the transparency of the navbar at scroll position $(window).scroll(function() { if($(this).scrollTop() > 50) { $('.nav-main').addClass('nav-fade'); $('.nav-main-list-items a').addClass('text-green'); } else { $('.nav-main').removeClass('nav-fade'); $('...
true
4b2e748e94bd9f89db6fb8f7270d4e14158af4ca
JavaScript
shan777/chat-fire
/src/actions/index.js
UTF-8
2,339
2.59375
3
[]
no_license
import types from './types'; import { auth, db } from '../firebase'; export const createChatRoom = roomDetails => async dispatch => { const botMessage = { message: `Welcome to ${roomDetails.title}`, name: 'Chat-Bot' }; const logKey = db.ref('/chat-logs').push().key; roomDetails.chatId...
true
67c62e859e97f2e41e0b5e2069dfcf3a991aaa77
JavaScript
yardfarmer/bone
/playground/topic/es6/generator/05.js
UTF-8
333
3.234375
3
[ "MIT" ]
permissive
/** * Created by yakuncyk on 15/6/11. */ "use strict"; let delegatedIterator = (function* () { yield 'Hello!'; yield 'Bye!'; }()); let delegatingIterator = (function* () { yield 'Greetings!'; yield* delegatedIterator; yield 'Ok, bye.'; }()); for(let value of delegatingIterator) { console....
true
74146d93489a2f666774f58c6092bf10a8ece702
JavaScript
joseyamin/WhosThatPokemon
/src/api.js
UTF-8
239
2.796875
3
[]
no_license
export const getPokemon = async (number) => { try { let url = `https://pokeapi.co/api/v2/pokemon/${number}`; const response = await fetch(url); const pokemon = await response.json(); return pokemon; } catch (err) {} };
true
495f419101fba82f2778e3759dfa37803378f417
JavaScript
blitzmann/adventofcode
/2015/day21/day21.js
UTF-8
950
3.609375
4
[]
no_license
const fs = require("fs"); const text = fs.readFileSync("input.txt").toString(); let presentTarget = parseInt(text); function fight(player, boss) { let pTurn = true; // player always goes first while (true) { let attacker = pTurn ? player : boss; let defender = pTurn ? boss : player; let...
true
d0532336043e373233d095fec7c392484e96ee9e
JavaScript
michebble/code_alongs
/01_javascript/arrays/arrays.js
UTF-8
472
3.90625
4
[]
no_license
console.log('hip hip'); /* a programme to count the number of words in a sentence. user enters a sentence output the number of words output the number of words */ var sentence = 'Welcome to the universe' var words = sentence.split(' '); // ["Welcome", "to", "the", "universe"] console.log(words.length) // for (i ...
true
ad919375bbbb71e423361dc0bc2360bcbde975d7
JavaScript
hoopmechanic/dwreactresume
/src/SoftItem.js
UTF-8
1,453
2.609375
3
[]
no_license
import React from 'react'; const SoftItem = props => { const softGroup = props.feed.groupitems; const showSoftware = softGroup.map(function(item, index) { // Create a list of dots based on the level value const level = softGroup[index].level; let levelText = ''; let dots = []; for (let levelIte...
true
f12f9e959ab219576967d241cd9e333af24871eb
JavaScript
ortizjs/algorithms_
/Data_structures/Heaps/max_heap.js
UTF-8
1,765
3.1875
3
[]
no_license
class MaxHeap { constructor() { this.array = [null]; } getParent(idx) { return Math.floor(idx / 2); } getLeftChild(idx) { return idx * 2; } getRightChild(idx) { return idx * 2 + 1; } siftUp(idx) { if (idx === 1) return; let parentId...
true
ff67188601bb01af9ece1d64dc6c4b36495bf91e
JavaScript
r-arvind/hyperspace.js
/hyperspace.js
UTF-8
1,787
3.078125
3
[]
no_license
window.hyperspace = (function (parentid){ canvas = document.createElement('canvas'); context = canvas.getContext('2d'); var parent = document.getElementById(parentid); var parentAttr = window.getComputedStyle(parent); parent.style.backgroundColor = null; canvas.height = parentAttr.getPropertyValue('height').slice(0,...
true
d5c2f3f618cab5857774e010952dc1edc0f7d860
JavaScript
Rexman17/M4-DQ3-Conditional-Rendering-nyc-web-100818
/src/components/MenuBar.js
UTF-8
1,265
2.5625
3
[]
no_license
import React from 'react' const MenuBar = (props) => { console.log(props); // want to make the clicked button shadowed to show it's "active" // going to use INLINE conditional rendering below -- injecting js functionality (leaving jsx to incorporate js logic) // ternary operators below return ( <div className="...
true
716d4252f1be5c1c76ee34589c4e4f96a5fc6fa1
JavaScript
innovationsforlearning/dibels-markup
/www/js/database.js
UTF-8
3,724
2.53125
3
[]
no_license
App.database = { init: function() { if (is_browser) { this.db = openDatabase('tnp2', '', 'Teacher Notepad 2 database', 15 * 1024 * 1024); } else { this.db = sqlitePlugin.openDatabase({ name: 'tnp2', version: '', estimatedSize: (15 * 1024 * 1024), location: 2 }); } }, dropTables: function...
true
45fe4536aec06139f872123fefe87b4b4dc33b9b
JavaScript
rjba/lipsync4urlife
/test.js
UTF-8
1,672
2.640625
3
[]
no_license
var app = require('./app'); var supertest = require("supertest"); var assert = require('assert'); /* Test pour voir que la recherche de chanson retourne bien un format json et qu'on a une réponse succés */ describe('GET /search-song/Kendrick Lamar', function() { it('responds with json', function(done) { ...
true
24d1bc3155fc58c62c55e234b6a19f212fbcdbd9
JavaScript
danieljohnbell/todomvc-jquery-webcryptoapi
/test/jquery-webcryptoapi-tests.js
UTF-8
9,044
2.53125
3
[]
no_license
(function () { 'use strict'; // comment out next line to force use of browser native window.crypto object var crypto = $.WebCryptoAPI; var testVector = { data: 'The quick brown fox jumps over the lazy dog', sha1Hash : '2fd4e1c67a2d28fced849ee1bb76e7391b93eb12', sha256Hash : 'd7a8fbb307d7809469ca9abcb0082e4f...
true
273bd3748d9162d0eb8189e93242b1784d59f785
JavaScript
rightstroke/b2fee
/react/proj-exceptions/src/Components/MyDivideForm.js
UTF-8
1,523
3.140625
3
[]
no_license
import React, { useState } from "react"; export default function MyDivideForm() { var [numerator, setNumerator] = useState(""); var [denominator, setDenominator] = useState(""); var [executionOutput, setExecutionOutput] = useState(""); var [errorMessage, setErrorMessage] = useState(false); var [hasError, set...
true
6ebdc343e603b395ab363b65b140f80856b5424c
JavaScript
Alexandre-digital/Programacao-Imperativa
/microDesafio-callbacks.js
UTF-8
194
2.90625
3
[]
no_license
function acaoCarro(callback){ return andar + parar; } function andar(){ return 'carro está andando'; }; function parar(){ return 'carro parou'; }; console.log(acaoCarro());
true
fbd0626d8c9a8dd4b80cce4f44f4bd08b46bf479
JavaScript
HeeyeonJeong/movie
/src/services/genreService.js
UTF-8
178
2.53125
3
[]
no_license
export const setGenre = (selectGenres) => { localStorage.setItem("genre", JSON.stringify(selectGenres)); }; export const getGenre = JSON.parse(localStorage.getItem("genre"));
true
685fcb520eb3f2945c4d9bcea207d924f0a4bd8f
JavaScript
sunithababug/node-weather-app
/app-promise.js
UTF-8
1,084
2.765625
3
[]
no_license
const yargs = require('yargs'); const axios = require('axios'); var argv = yargs .options({ a: { demand: true, alias: 'address', describe: 'Address to fetch weather for', string: true } }) .help() .alias('help', 'h') .argv; var encodedAddress = encodeURIComponent(argv.address); var url...
true
e5f9ee09d34fbbcfef5dcfb40b4cdac25f28ba0b
JavaScript
cecilioalvarez/escuelaTallerJunio
/Adriano/spec2/008-spec.js
UTF-8
546
3.046875
3
[]
no_license
describe("test array", function() { it("test suma de los array", function() { var lista1=[1,2,3,4]; var lista2=[1,2,3,4]; var suma=0; var listaSuma=[]; for(var i=0;i<lista1.length;i++){ suma=lista1[i]+lista2[i] listaSuma.push(suma) } ex...
true
478eb1c8616c445cab0ab71720a1c0d005c03ba2
JavaScript
TomEschler/vschool-assignments
/new-exercises/arrayExercises/app.js
UTF-8
5,434
3.765625
4
[]
no_license
// Reduce // const wishlist = [ // { title: "Tesla Model S", price: 90000 }, // { title: "4 carat diamond ring", price: 45000 }, // { title: "Fancy hacky Sack", price: 5 }, // { title: "Gold fidgit spinner", price: 2000 }, // { title: "A second Tesla Model S", price: 90000 } // ]; // const shoppin...
true
b1455392fa3f9c00f12764aa8b76023da815d654
JavaScript
akups/lab-react-ironbook
/starter-code/src/Users.js
UTF-8
2,693
2.6875
3
[]
no_license
import React, { Component } from "react"; import users from "./users.json"; const User = props => { return ( <React.Fragment> <tr> <td> <p>{props.data.firstName}</p> </td> <td> <p>{props.data.lastName}</p> </td> <td> <p>{props.data.campu...
true
e8587fc828d6f483c20f98cc885c0f29bf46260d
JavaScript
kbk0125/EmbarkLearning
/app/components/sidebar.js
UTF-8
2,273
2.640625
3
[]
no_license
var React= require('react'); var ReactRouter= require('react-router'); var SideCats= React.createClass({ // WILL NEED TO REFERENCE http://stackoverflow.com/questions/36394539/react-router-link-how-to-trigger-a-click-event-on-a-link-from-another-component //https://facebook.github.io/react/docs/thinking-in-react.html...
true
c514b6de85d9716e3029b7e9090a37d503a08f72
JavaScript
ProjektFER/TkoToTipka
/Tko-to-tipka/Scripts/measurement.js
UTF-8
3,582
2.640625
3
[]
no_license
$(document).ready(function () { var measuredInput = []; /* * Prevent copy-paste to textbox. */ $("#userInput").bind("cut copy paste", function (e) { e.preventDefault(); }); /* * Measure and collect the keystrokes as a person is typing. */ $("#userInput").keydown(f...
true
94bb78c5f507b35a8c99e90e88a025b194c8e2e5
JavaScript
leo2904/note-maps
/js/packages/pwa/src/note-map.js
UTF-8
3,075
2.640625
3
[ "Apache-2.0", "LicenseRef-scancode-generic-cla" ]
permissive
/* Copyright 2019-2020 Google LLC * * 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed t...
true
f1e7cb82e49ea718dba0f7d9ea0767d6d209f6c8
JavaScript
pbkhrv/handshake-telegram-bot
/src/utils.js
UTF-8
5,748
3.40625
3
[ "MIT" ]
permissive
const assert = require('bsert'); /** * Validates extracted values in the following format: * { * key: [extracted value, expected value type, expected value] * } * * Throws exception on first fail * * @param {Object} obj object to validate * @returns {Object} just the keys/values */ function validateExtract(...
true
b2640a3cac9539e6ea8861a2b6abb98b9b19337e
JavaScript
appandgo/magento-base-theme
/public/skin/frontend/session/default/js/session_modules/responsivevideo.js
UTF-8
1,286
2.578125
3
[]
no_license
"use strict"; // css tricks - fluid video width // http://css-tricks.com/NetMag/FluidWidthVideo/Article-FluidWidthVideo.php module.exports = function ($element) { var $fluidEl, $allVideos; $fluidEl = ($element) ? $element.find(".fluid-video") : $(".fluid-video"); $allVideos = $fluidEl.find("iframe...
true
3f0b1c20bf1ebb370701164631dbef3e08e278f4
JavaScript
Dav-Ho/angularjs-intro-app-
/excerise.js
UTF-8
520
3.4375
3
[]
no_license
var pets = ["dog", "cat", "rabbit"]; pets.push("snake"); console.log(pets); var book = {title: "Dragon" , author: "John Hawk", isbn: "99921-58-10-7", pages: "400", yearOfPublication: 2000 }; var book2 = {title: "Reign of Fire" , author: "Charles Monk", isbn: "99331-58-10-7", pages: "300", yearOfPublication: 1000 ...
true
6dafcc73c2d45559809c7516c40ec1d359c2c281
JavaScript
amzick/ohio_jackson
/src/speed_boost.js
UTF-8
1,738
2.703125
3
[]
no_license
import Collectable from './collectable'; class SpeedBoost extends Collectable { constructor(options) { super(options); const img = new Image(); img.src = "https://s3.amazonaws.com/letsgoeros-dev/powerups_alpha.png"; this.image = img; this.frameIndicies = [ [359,63,15,15], [371,50,11,...
true
4e62e8f1618b1eb7dd151d59da185d133a018e14
JavaScript
hangjianggu/MassOrganization
/CommonJS.js
UTF-8
545
2.578125
3
[]
no_license
function GetXMLHTTPRequest() { var xmlhttp; if (window.XMLHttpRequest) {// code for IE7+, Firefox, Chrome, Opera, Safari xmlhttp = new XMLHttpRequest(); } else {// code for IE6, IE5 xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); } return xmlhttp; } function toStr(conten...
true
0899d30a9a02b5cc759194e01ddcaf246cf51af0
JavaScript
jarkko-turpeinen/twilio-app
/app.js
UTF-8
572
2.53125
3
[]
no_license
const express = require('express') const app = express() const port = process.env.SERVER_PORT || 8080 /** * Routes are organised by directories. Root path / base directory is /routes. * Each directory's index.js defines routes below that route. * Add needed http method files [get.js, post.js, put.js, delete.js, ...]...
true
e3660ae593348fa72ee0f571ff1369afedbf0ddf
JavaScript
pontiusthepilot/minesweeper
/web_interface/minesweeper.js
UTF-8
3,300
2.890625
3
[]
no_license
$(document).ready(function() { minesweeper.init(); minesweeper.drawGrid(10, 10); }); var minesweeper = { init: function() { minesweeper.initObjects(); }, initObjects: function() { $(window).on( "unload", function() { $.ajax({ ...
true
70557d08d60d30aa1c1b1315603336dafe5abc7f
JavaScript
MuhammadWaqasKhan97/mall-management
/client/public/js/admin.js
UTF-8
12,717
2.65625
3
[]
no_license
function check_pwd() { if (document.getElementById("pwd").value !== document.getElementById("pwd_2").value) { alert('password does not match'); document.getElementById('pwd_btn').disabled = true; } else { document.getElementById('pwd_btn').disabled = false; } } function pwd_chan...
true
7892be5629eebe9942d22d596d006be3af4adf5b
JavaScript
badoalmaz/plantarium
/src/helpers/functions.jsx
UTF-8
854
2.515625
3
[]
no_license
export const handleInp = (e, product, setProduct) => { console.log(product); let obj = { ...product, [e.target.name]: e.target.value, }; setProduct(obj); }; export const getCurrentPage = () => { const search = new URLSearchParams(window.location.search); if (!search.get("_page")) { return 1; ...
true
7cbec1a6331e7ef7a3ffbda446c987f83c021f4b
JavaScript
ShadowFury078/NoScope-Bot
/commands/fun/num.js
UTF-8
1,499
3.0625
3
[]
no_license
module.exports = { name: 'num', aliases: ['add', 'mult', 'divide', 'substract', 'power'], permissions: [], cooldown: 0, description: 'Advanced music bot', execute(message, args, cmd, client, Discord, profileData){ if(cmd === 'add') add_numb(message, args); else if(cmd === 'divide...
true
93b7cbc1aa76fa11b7ff942526978c6cb4e55a9b
JavaScript
driftAbout/08-rest-http
/lab-kevin/__test__/server.test.js
UTF-8
7,218
2.78125
3
[]
no_license
'use strict'; const server = require('../lib/server'); const superagent = require('superagent'); require('jest'); describe('Server Integration', function() { beforeAll(() => server.start(4000)); afterAll(() => server.stop()); describe('Valid requests', () => { let postOne, postTwo, getOne; describe(...
true
1cb287e1b2b2b6f1c5c30e1e01ddce998a5f08a6
JavaScript
wumouren/react
/my-redux-notes/my-redux/src/redux/storeChange.js
UTF-8
412
2.515625
3
[ "Apache-2.0" ]
permissive
export const storeChange = (store, action) => { switch (action.type) { case 'HEAD_COLOR': return { ...store, head: { ...store.head, color: action.color } } case 'BODY_TEXT': return { ...store, body: { ...store.body,...
true
2318a077faadad05129f6640ef353191dc2074c7
JavaScript
khinkali/cockpit
/UIT/pageobject/coinTable.js
UTF-8
900
2.5625
3
[]
no_license
const tableId = "#coins-table"; const commands = { readValues: function(cb) { return this.section.overview .waitForElementVisible("@table", 3000) .api.perform(done => { let values = []; this.api.elements("css selector", tableId + " > tbody > tr", trs => { trs.value.forEach(...
true
ed169d9eb025ebf7d1c957af120f1926a2b3705a
JavaScript
BrendaNaggayi/UI-MOB
/signin.js
UTF-8
1,493
2.71875
3
[]
no_license
function myFunction() { var x = document.getElementById("sign-in"); if (x.className === "sign-in-form") { x.className += " responsive"; } else { x.className = "sign-in-form"; } } var people= [{ studentId:"2345", password :"12345" }, { studentId:"6789", ...
true
4066cae800c2cc04893a7d0033ef2dd87be6fd5d
JavaScript
roman-spiridonov/sandbox
/NodeJS/nodejs-test/server.js
UTF-8
1,315
2.828125
3
[]
no_license
var http = require('http'); var url = require('url'); var fs = require('fs'); var server = new http.Server(); // http.Server -> net.Server -> EventEmitter // emits 'request'; same as http.createServer([requestListener]).listen([port]]) // change emit function to log all events var emit = server.emit; server.emit...
true
37ca2b30fcc29d3cd8127eaec874b27cd6b4f94f
JavaScript
shashank0601/car-showroom
/src/components/CarsFilter.js
UTF-8
2,834
2.5625
3
[]
no_license
import React,{useContext} from 'react'; import {CarContext} from '../context'; import Title from './Title'; function getUnique(items,value){ return [...new Set(items.map(item =>item[value]))]; }; function CarsFilter(props){ const context = useContext(CarContext); const {handleChange,type,capacity,price,minPri...
true
321736308a5a5fed81f31e8381b263abd98387fb
JavaScript
Suonx002/airspace-backend
/controllers/userController.js
UTF-8
1,831
2.515625
3
[]
no_license
const User = require('../models/User'); const AppError = require('../utils/methods/AppError'); // const jwtMethods = require('../middlewares/jwtMethods'); // const bcryptMethods = require('../utils/methods/bcryptMethods'); // const AppError = require('../utils/methods/AppError'); const catchAsync = require('../utils/...
true
9fb9ff23e6ed970bc87c9d12f3ebacc5bf830ff4
JavaScript
hayksaakian/pig_server
/jsx/PigBoard.js
UTF-8
4,189
2.5625
3
[]
no_license
var React = require('react'); var addons = require('react-addons'); var DIE_MAP = [ <i className='fi-die-one large red'></i>, <i className='fi-die-two large'></i>, <i className='fi-die-three large'></i>, <i className='fi-die-four large'></i>, <i className='fi-die-five large'></i>, <i className='fi-die-six...
true
964b0029ec868041347b583f1e775cff3bc79f42
JavaScript
padraigoc/ChattyApp
/src/ChatBar.jsx
UTF-8
1,555
2.78125
3
[ "MIT" ]
permissive
import React, { Component } from 'react'; class ChatBar extends Component { constructor(props) { super(props); this.state = { currentUser: "", } this.handleKeyPress = this.handleKeyPress.bind(this); this.handleUserNameChange = this.handleUserNameChange.bind(this...
true
93df68b0032ccdf38cb3f88502400b8470b25aff
JavaScript
shakkyr/react-bootcamp
/src/components/19.2-countries of the world/countries.js
UTF-8
1,127
2.796875
3
[]
no_license
import React from "react"; const Apicall = () => { const [apiData, setApiData] = React.useState([]); const [searchResults, setSearchResults] = React.useState([]); React.useEffect(() => { const countries = async () => { let result = await ( await fetch("https://restcountries.com/v2/all") )...
true
76bb10f521c192ee52927ed05afc726c80cf1d09
JavaScript
keyten/Graphics2D
/More/Curves.Gradients.js
UTF-8
1,593
2.84375
3
[ "MIT" ]
permissive
//# Curve gradients Curve.prototype.visible = true; Curve.prototype._special = false; // hides the curve and draws after Curve.prototype.hide = function(){ this.visible = false; }; Curve.prototype.show = function(){ this.visible = true; }; Curve.prototype.fill = function(from, to){ if(to){ this.fill; // todo: ...
true
55490349f3707da610538380ab4858104a257a9b
JavaScript
Shrihari12599/TIC-TAC-TOE
/game.js
UTF-8
4,849
3.046875
3
[]
no_license
var playerOneSymbol; var playerTwoSymbol; var player1 = "1"; var player2 = "2"; var playerOneColor = "red"; var playerTwoColor = "blue"; var currentPlayer = player1; var won = false; var draw = false; $("button").click(function () { symbol = $("input[type='radio']:checked").val(); localStorage.setItem(...
true
6ba38781df5cf149b8e7f0138f5d076b49c738dc
JavaScript
TZB-Loong/web-shop-
/loads/stuMan.js
UTF-8
3,275
2.703125
3
[]
no_license
var app = angular.module("app.stuMan",["ngRoute"]); app.config(function($routeProvider){ $routeProvider.when("/stuMan",{ templateUrl:"loads/stuMan.html", controller:"stuManController" }); }); app.controller("stuManController",function($scope,$http,modalService){ $scope.msg = "产品信息管理页面"; //表单中双向绑定的对象 $scope.n...
true
a89f2af2886494a36247447d2a924dd33957bfea
JavaScript
Mesiky/web-effect
/瀑布流布局(JavaScript)/index.js
UTF-8
3,307
2.859375
3
[]
no_license
window.onload=function(){ var clicentW=document.documentElement.clientWidth;//获取屏幕宽度 var main=document.getElementById('main');//获取main元素 //因为IE8 9 不支持ByclassName所以循环遍历所有元素,把className=**的放入一个新的数组 // var big_box=main.getElementsByClassName('big_box');//获取到所有外框 var big_box=getClassName(main,'big_box'); var box_offse...
true
e313d8b4a98b89593ee9b2011c22732a3faed7fe
JavaScript
Momenuzzaman/Modern-JavaScript-ES6
/destructure.js
UTF-8
209
2.875
3
[]
no_license
const person = {name:"Jack Wiliam", age: 20, job: "facebook", wife: "Ema Watson", phone: 1122334455, home: "USA", friends: ["fahim", "karim", "jamil"]}; const {name , age , job} = person; console.log(name,age,job);
true
740b17afb757e43485f0489325a8a0a7fd9640d6
JavaScript
catc/mobx-react-starter-kit
/src/api/request.js
UTF-8
1,743
2.515625
3
[]
no_license
import axios from 'axios'; const instance = axios.create({ timeout: 7000, headers: {}, }); /* export function setAxiosToken(token){ instance.defaults.headers.Authorization = token; } */ export default (url, options = {}) => { if (!url){ return Promise.reject('Must provide valid url') } return new Promise((r...
true
88a2788e188698979276ac12cf8ddcb92b620d07
JavaScript
XxELmachomaxxX/konami-code-lab-bootcamp-prep-000
/konami_code.js
UTF-8
305
2.671875
3
[ "LicenseRef-scancode-public-domain", "LicenseRef-scancode-unknown-license-reference" ]
permissive
const code = [38, 38, 40, 40, 37, 39, 37, 39, 66, 65] function init(e) { // Write your JavaScript code inside the init() function const code = parseInt(e.detail || e.which); if (code === init[e]) { code++; if (e === code.length) { alert('hurray!'); code = 0 } else { code = 0 } } }
true
21e6f962acd45942e49502f9f90f41fc3175f852
JavaScript
ShiviChan/React_Ingredient_Display
/src/components/List.jsx
UTF-8
601
2.75
3
[]
no_license
var React=require('react'); var ListItem=require('./ListItem.jsx'); var createReactClass=require('create-react-class'); var List = createReactClass({ render: function() { //React wants lists that can be uniquely identified. This is why we set a unique key var createItem = function(text, index) { ...
true
8a899a2f41796c0d09712987d8c7c6bf56acf165
JavaScript
SayHaHei/LeetCode
/js编程题/基础算法/冒泡排序.js
UTF-8
407
3.265625
3
[]
no_license
function bubbleSort(nums) { var length = nums.length; for (var i = 0; i < length; i++) { var flag = false; for (var j = 0; j < n - i - 1; j++) { if (nums[j] > nums[j + 1]) { nums[j] = nums[i] + nums[j]; nums[i] = nums[j] - nums[i]; nums[j] = nums[j] - nums[i]; flag = tru...
true
79513923fd0a1c17a72ddd9fa4867e349f61b042
JavaScript
stefism/Projects
/JS Advanced-May 2021/09-Unit-Testing-and-Error-Handling - Lab/test/07-add-sbstract.test.js
UTF-8
549
2.96875
3
[]
no_license
let createCalculator = require('../07-add-substract'); let assert = require('chai').assert; describe('Test calculator', () => { it('Return value for add', () => { let calc = createCalculator(); calc.add(5); assert.strictEqual(calc.get(), 5); calc.add(5); assert.st...
true
9d1b4a167ad2c3b21bb27a14edc76ca2414b41f9
JavaScript
alancosttaa/curso-desenvolvimentoWEB
/JS/fundamentos/letLoop.js
UTF-8
434
4.46875
4
[]
no_license
/* Já o let possui escopo de bloco, ou seja, uma vez declarada dentro de um bloco, ela só ficará visível dentro deste bloco */ for(let x = 0; x < 10; x++){ console.log(x); } //console.log("x = " + x); // aqui irá dar erro, pois ele nao reconhecerá este x q foi declarado dentro do bloco const func = []; for ...
true
bebc0f2f498fbca091882a7ee93fa517fd54f784
JavaScript
SRILAKSHMI576/React_Basics
/src/CountIncreaseButton/CountIncreaseButton.js
UTF-8
532
2.703125
3
[]
no_license
import React from "react"; class CountIncreaseButton extends React.Component { constructor() { super(); this.state = { count: 0 }; this.isIncrement = this.isIncrement.bind(this); } isIncrement() { this.setState(prevState => { return { count: prevState.count + 1 }; ...
true
78164897ff264ebd77a1cada5bb128625fb25e92
JavaScript
kowumon/underskowu
/underscore.js
UTF-8
20,295
3.0625
3
[]
no_license
(function () { // Baseline setup // Establish the root object, `window` (`self`) in the browser, `global` // on the server, or `this` in some virtual machines. We use `self` // instead of `window` for `WebWorker` support. var root = typeof self == 'object' && self.self === self && self || typeof global =...
true
5effce2128884898710f179c4e717ce32ad0369b
JavaScript
ssdtfarm/p
/src/p/lib/components/khValidate/1.0.0/khValidate.js
UTF-8
3,839
2.640625
3
[]
no_license
/** * @remix zhangzhensheng * @date 2015-12-01 * @add new password rules */ define(function(require, exports, module){ var khValidate = { //验证英文用户名 chkEnName : function(str){ var reg = /^[a-zA-Z|0-9]{3,20}$/; return reg.test(str); }, //验证中文用户名 chkCnName : function(str){ var reg = /^[\u2E80-\u9...
true
6efb3ef94b329157eb8347401dace564aecb412f
JavaScript
qho-queenie/javascript_algorithm
/supermarket_queue.js
UTF-8
2,235
3.765625
4
[]
no_license
// The Supermarket Queue // // DESCRIPTION: // There is a queue for the self-checkout tills at the supermarket. Your task is write a function to calculate the total time required for all the customers to check out! // The function has two input variables: // // customers: an array (list in python) of positive integers ...
true
2a7a765fa02a7278d7a8518b417c473d5db1d6c3
JavaScript
marema31/myfreecodecamp
/js/PigLatin.js
UTF-8
333
2.84375
3
[]
no_license
#!/usr/bin/env js function translatePigLatin(str) { if(str[0].match(/[aeiouy]/)){ return str+"way"; } var arr=str.split(""); var result=arr; for(i=0;i<arr.length && (! str[i].match(/[aeiouy]/));i++){ var letter=arr.shift(); arr.push(letter); } return arr.join('')+"ay"; } translatePigLatin("c...
true
4f16922d437f965c10aa1168c8a3bf3dfce35de6
JavaScript
Wayne-Bai/AST-normalize
/data/onedayitwillmake/NoBarrierOSC/js/nobarrierosc/GameEntity.js
UTF-8
4,909
3.109375
3
[]
no_license
/** File: GameEntity.js Created By: Mario Gonzalez Project: RealtimeMultiplayerNodeJS Abstract: This class is the base GameEntity class in RealtimeMultiplayerGame, it contains a position rotation, health Basic Usage: var badGuy = new RealtimeMultiplayerGame.GameEntity(); badGuy.position.x += 1; Version: 1.0 ...
true
3a0458e5d9332273845b536e102c936fc35f319d
JavaScript
nathan-saygers/Sprint-Challenge-React-Wars
/starwars/src/components/CharacterCard.js
UTF-8
905
2.515625
3
[]
no_license
import React from "react"; import styled from "styled-components"; const Card = styled.div` width: 30rem; height: 25rem; padding: 2rem; margin: 2rem; background-image: url("https://images.unsplash.com/photo-1537420327992-d6e192287183?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=634&q=80"); backgroun...
true
d0969ac2df21d3acc120eb44b0bf58f027f77578
JavaScript
purag/toBinary
/numtobinary.js
UTF-8
115
2.796875
3
[]
no_license
function numToBinary(num) { return (num == 0) ? "" : numToBinary(~~(num/2)) + "" + (num % 2); }
true
d8ec74daac0df398c712ed28d99575ccb041a4fc
JavaScript
mmeigooni/shortly-express
/server/middleware/cookieParser.js
UTF-8
360
2.65625
3
[]
no_license
const parseCookies = (req, res, next) => { req.headers.cookies = {}; if (req.headers.cookie) { var cookieArray = req.headers.cookie.split('; '); cookieArray.forEach((cookieString) => { let thisCookieArr = cookieString.split('='); req.cookies[thisCookieArr[0]] = thisCookieArr[1]; }); } ne...
true
b99b1f525cdec93755b36e754a67640c1d43704d
JavaScript
stuffandahalf/CPS621-Final
/func.js
UTF-8
7,743
3.109375
3
[]
no_license
/* func.js */ /* Gregory Norton */ /* 500766165 */ /* CPS621 */ /* How the logic works */ /* * button -> * intro1 -> * intro2 -> * variety -> * active1 -> * active2 -> * relax -> * playful * smart -> * trick1 -> * trick2 -> * concern -> * friends -> * credits */ /** * Variable to k...
true
6d7f11d8d81257c1f893aac96d9a76a56fc0f0c6
JavaScript
alexandrejflopes/bloom
/webapp/features/dashboardReadings_feature/dashboardReadings-feature-steps.js
UTF-8
2,939
2.671875
3
[]
no_license
require('chromedriver'); const { Given, When, Then, AfterAll } = require('cucumber'); const { Builder, By, Key, until } = require('selenium-webdriver'); const chai = require('chai'); const expect = chai.expect; const driver = new Builder().forBrowser('chrome').build(); Given('I am on the Dashboard page', { timeout: 1...
true
9f306991fbf46f4467b955e789d38fcfba01c8cb
JavaScript
Subho453/Ipl_Project
/__tests__/matchesPerYear.test.js
UTF-8
639
2.546875
3
[]
no_license
let matchesPerYear = require("../ipl/matchesPerYear"); describe("Matches Played per season", () => { it("Matches Played for some season", () => { const array = [ { season: 2008 }, { season: 2008 }, { season: 2008 }, { season: 2009 }, { season: 2009 }, { season: 2010 } ]; ...
true
ee3239494f432768bd798dd7f81b8dbe78e60f2e
JavaScript
shovanshahi373/node_project
/app.js
UTF-8
1,242
2.625
3
[]
no_license
const express = require('express'); const mongoose = require('mongoose'); const port = 3002; const app = express(); // const Schema = mongoose.Schema; // const Student = new Schema({ // name: String, // age: Number // }); const schema = new mongoose.Schema({ studentList: { name: String, ...
true
7aac9c9ca61dd7f79d65e526d266beacdae6a67d
JavaScript
Mohamed-boumediene/Final-project-SpringMVC
/Rim_Learning(SPRING-MVC)/src/main/webapp/resources/js/login.js
UTF-8
755
2.78125
3
[ "MIT" ]
permissive
function FormValidation_login(){ var user =document.getElementById('loginname'); var pass =document.getElementById('loginpass'); if(user.value ==''){ user.style.borderColor="rgba(234, 0, 0, 0.81)"; user.focus(); return false; }if(pass.value ==''){ pass.style.borderColor="rgba(2...
true
e5dab7c375155a79f10591a0ece4b6f31bc26d59
JavaScript
ChinaVolvocars/AwesomeProject
/Animal.js
UTF-8
193
3.109375
3
[]
no_license
export default class Animal { constructor(name, age) { this.name = name; this.age = age; } getDes() { return '动物名称:' + this.name + ' 大小:' + this.age } }
true
ab1a4faf952da285c79080880bffcb2d2c71377b
JavaScript
Boyquotes/enbrefs
/js/scripts.js
UTF-8
1,885
3.0625
3
[]
no_license
function validate_form() { var inputs = document.getElementsByTagName('input') ; var errors = '' ; for(i=0; i < inputs.length; i++) { var input = inputs[i] if(input.classList.contains('required')) { // Le champ est à valider if(input.value == "") ...
true
865c9f76965641ddf462791c2fbd547fc264f648
JavaScript
dariadrozdova/final-project
/pokedex/src/redux/actions/getPokemon.js
UTF-8
1,157
2.65625
3
[]
no_license
export function getPokemon (setPokemon, server, processing) { let abortController = new AbortController(); fetch(server, {signal: abortController.signal}) .then(response => response.json()) .then(processing); return () => abortController.abort(); } export function getPokemonById(server, set...
true
3229fafb36aa1e0be9c4b8ed3236606bd9e6068f
JavaScript
BorisSimeonov/JavaScriptHomeworks
/JSHomeworkOne/05_Project/tic-tac.js
UTF-8
4,793
3.09375
3
[]
no_license
var value = "O"; var counter = 0; function changeSign(id){ if(value == "O" && document.getElementById(id).innerHTML.length < 1){ value = "X"; }else if(value == "X" && document.getElementById(id).innerHTML.length < 1){ value = "O"; } } function changeColor(id){ if(value == "X" && docume...
true
34a9b9fdc5368f89c10ddc98087832d537c97677
JavaScript
izaiasg/EstudoJS
/02estruturaDeControle/03while.js
UTF-8
740
4.6875
5
[]
no_license
/* Quando não se tem um número exato de repetições Só entra se for verdadeiro */ function getInteirosAlternadosEntre(min, max){ const valor = Math.random() * (max - min) + min return Math.floor(valor) } let option = 0 while (option != -1) { option = getInteirosAlternadosEntre (-1, 10) c...
true
038c8b93d22c3dc9907224cc89909fe495640f52
JavaScript
saav8ra/zero-to-app-expenses
/functions/receipt.js
UTF-8
2,599
3.09375
3
[]
no_license
let keywords = ["payment amount", "amount due", "amount", "grand total", "total"]; let moneyRegex = /^\$?([0-9]+(\.[0-9]{1,2})?)$/; let decimalMoneyRegex = /^\$?(\d+[\.,][ ]?\d{2})$/; let debug = true; const parseAmount = function(line) { let result = moneyRegex.exec(line); if (result === null) return null; else...
true
d01ff6c664bd6a8d744c4b0c672e5d02c0f32612
JavaScript
mollygilbert389/practiceCode
/firebase/realTimeClick/coinFlip/assets/app.js
UTF-8
2,023
3.015625
3
[]
no_license
// Initialize Firebase // Make sure to match the configuration to the script version number in the HTML var firebaseConfig = { apiKey: "AIzaSyC-SEn72nSx1aAO-3-Wri0Lma33z6U6zHI", authDomain: "heads-and-tails-570e3.firebaseapp.com", databaseURL: "https://headstails-b4d90.firebaseio.com/", projectId: "head...
true
86cf6c165313d8beb3b2a4175a82c6fa5a809298
JavaScript
brainmentorspvtltd/TPDDL-FullStack
/Code5/Code/src/components/Calc.js
UTF-8
1,617
3.5
4
[]
no_license
import React, {Component} from 'react'; export class Calc extends Component{ constructor(){ super(); this.firstNumber = this.secondNumber = 0; this.state = {result:0}; console.log("Constructor Called ",this); } takeFirstNumber(event){ console.log("Take First ...
true
e3866b4487ab9fa5a31330c59bba332a53d270ee
JavaScript
eslint/eslint
/lib/rules/jsx-quotes.js
UTF-8
2,956
2.84375
3
[ "MIT" ]
permissive
/** * @fileoverview A rule to ensure consistent quotes used in jsx syntax. * @author Mathias Schreck <https://github.com/lo1tuma> */ "use strict"; //------------------------------------------------------------------------------ // Requirements //---------------------------------------------------------------------...
true
e8d65441dac8f39279a8a47477d9488efa0e0b7f
JavaScript
Ph0en1xGSeek/Web
/Todolist express mairaDB/services/user.js
UTF-8
1,459
2.703125
3
[]
no_license
/** * 提供数据库直接查询 */ var db = require('./db');//调用db 创建连接 function User () { } User.get = function (id,callback) {//按id查找用户 var sql = 'select * from user where id = ' + id; console.log(sql); db.query(sql, function (err, data) { callback(err,data); }); } User.findAll = function (callback) {/...
true
a252ff05d753232c00fbc1b71e4f9b6696d67f56
JavaScript
allain/skydo
/proxies/compose.test.js
UTF-8
1,424
3.09375
3
[]
no_license
/* globals describe, it, expect */ const compose = require('./compose') describe('compose', () => { it('can be created empty', () => expect(compose()).toBeTruthy() ) it('reading, object works', () => { const s = compose({ x: { y: 1 } }, {}) expect(typeof s.x).toEqual('object') expect(s.x.y).toE...
true
ec46718bf20b7079e68602cc9514362f7c034205
JavaScript
Madhav506/nodeprograms
/nodeprograms/functional/main/leapYear.js
UTF-8
989
3.046875
3
[]
no_license
/****************************************************************************** * Execution : 3. default node cmd> node leapYear.js * * Purpose : CODE TO CHECK WHETHER THE GIVEN YEAR IS LEAP YEAR OR NOT * * @description * * @file : leapYear.js * @overview :...
true
170840dea5ddef1de2d671fb9c90163142d5efe2
JavaScript
zhanrnl/stanford-puzzlehunt-postpro
/public/js/puzzlecreate.js
UTF-8
474
2.9375
3
[]
no_license
$(function() { var makeInternal = function(name) { var toLower = function(c) { return c.toLowerCase(); }; return name.replace(/[-\s]/g, '_').replace(/[A-Z]/g, toLower).replace(/[^\w]/g, '').substring(0,20); }; var f = function() { var enteredName = $('#puzzle_puzzle_name').val(); ...
true
0c61a3f0b9acedd27adda5dc13b11ace08c1a472
JavaScript
seolk/grocery_list_react_on_rails
/client/src/components/Lists.js
UTF-8
1,519
2.53125
3
[]
no_license
import React, { Component } from 'react'; import axios from 'axios'; import { Link } from 'react-router-dom'; import ListForm from './ListForm'; import { List } from 'semantic-ui-react'; class Lists extends Component { state = { lists: [], showForm: false } componentDidMount() { axios.get('/api/lists') ...
true
f4deed52654c9c89339b40b4aca933975993301c
JavaScript
bakachanbaby/BT_B3
/B4/js.js
UTF-8
1,516
3.65625
4
[]
no_license
let str = String(prompt("Vui lòng nhập size các con cừu cách nhau bởi dấu ',' (size > 8): ")); let arr = str.split(','); let newArr = []; for (let j = 0; j < arr.length; j++) { let x = Number(arr[j]); newArr.push(x); } alert(`Kích thước các con cừu của tui là:\n ${newArr}`); let mx = newArr[0]; let index = 0; ...
true
d9fb40e83425b073e3d51c2c36ae33e4e8df9b5d
JavaScript
NicolletteOchola/DelaniStudio
/js/scripts.js
UTF-8
2,500
2.75
3
[ "MIT" ]
permissive
// USER INTERFACE (Front end logic) $(document).ready(function(){ $("#design").click(function(){ $("#designText").show(); }); $("#design").click(function(){ $("#design").hide(); }); $("#designText").click(function(){ $("#design").show(); }); $("#designText").click(function(){ $(...
true
c1bd21063b540e1adae4760d5190b505a3747d44
JavaScript
JordiGilTomas/Reservatron
/src/public/js/app.js
UTF-8
1,314
2.59375
3
[ "MIT" ]
permissive
const login = document.getElementById('mainLogin'); const register = document.getElementById('mainRegister'); const contenedor = document.getElementById('contenedor'); const showStepTwo = () => { formPaso1.classList.add('step2'); }; const showStepThree = () => { formPaso1.classList.add('step2'); }; const ren...
true
48f0e3105a814ab05c43ae639b0d30f09a2fe044
JavaScript
skiptirengu/anitomy-js
/test/anitomy.spec.js
UTF-8
5,864
2.609375
3
[ "MIT" ]
permissive
const chai = require('chai') const expect = chai.expect const anitomy = require('../index.js') chai.use(require('chai-as-promised')) describe('anitomy-js', function () { const fixture = require('./data.json') const fixtureKeys = Object.keys(fixture) const fixtureValues = fixtureKeys.map((key) => fixture[key]) ...
true
690466247b0190ee586bb7a60281fc361721e168
JavaScript
jlopcun/A-Coru-a-web
/main.js
UTF-8
981
2.546875
3
[]
no_license
const pagetitle = document.getElementById('pagetitleHead'); const coruLema = document.getElementById('coruLema'); window.addEventListener('scroll',()=>{ let docStyles = document.documentElement.style; let Y = window.scrollY; docStyles.setProperty('--transformY',`-${Y}px`); let bounding = coruLema.g...
true
152a7c08242b822e784f971b5e3bad3df09b733b
JavaScript
olafvaher/star-wars
/src/reducers/starships.js
UTF-8
321
2.625
3
[]
no_license
// starships reducer const starshipsReducerDefaultState = []; const starshipsReducer = (state = starshipsReducerDefaultState, action) => { switch (action.type) { case 'SET_STARSHIPS': return action.starships; default: return state; } }; export default starshipsReducer; ...
true
529ce17b2093c3dc8997e7e3187452457abe61dc
JavaScript
pabrod17/tfg
/frontend/src/modules/stretchings/reducer.js
UTF-8
2,490
2.53125
3
[]
no_license
import { combineReducers } from "redux"; import * as actionTypes from './actionsTypes'; const initialState = { stretching: null, stretchings:null, stretchingsSearch: null }; const stretching = (state = initialState.stretching, action) => { switch(action.type) { case actionTypes.ADD_STRETCHIN...
true
8248718c66740ae387fd9c53c144fca1290d40e8
JavaScript
comstudy21joon/nwitter
/src/routes/Home.js
UTF-8
1,973
2.671875
3
[]
no_license
import { useEffect, useState } from "react"; import { dbService } from "fbase"; import Nweet from "./Nweet"; const Home = ({ userObj }) => { const [nweet, setNweet] = useState(""); const [nweets, setNweets] = useState([]); const onSubmit = async (event) => { event.preventDefault(); await dbService.colle...
true
33bee6583125f34352721a96b20272079092b4d9
JavaScript
henrymenori/TubesSTBI2
/lib/collection.js
UTF-8
20,779
2.515625
3
[]
no_license
var file = require('fs'); var math = require('mathjs'); var TextProcessor = require('../lib/TextProcessor'); function Collection(textprocessor) { this.rawdocuments = []; this.textprocessor = new TextProcessor(); this.idf = {}; this.norm = []; this.invertedfile = {}; this.option = {}; } Collection.prototype.loa...
true
105b64418e8e5c69d612bde455aeb22c276e59f8
JavaScript
Brycetp11/workout-tracker
/public/js/script.js
UTF-8
706
3.21875
3
[]
no_license
$(document).ready(function () { $("#exerciseType").on("change", function () { const exercise = $("#exerciseType").val(); console.log(exercise) if (exercise === "Cardio") { $(".strength").addClass("hide") $(".cardio").removeClass("hide") } else { $...
true
2d18e3f77427db02c66bb2a7024df8e39ad8d716
JavaScript
AditiiTripathii/Web-Ideas
/ImageUploadPreviewApp/src/components/multiple-image.component.js
UTF-8
1,511
2.609375
3
[ "MIT" ]
permissive
import React, { Component } from 'react'; export default class MultipleImageComponent extends Component { fileObj = []; fileArray = []; constructor(props) { super(props) this.state = { file: [null] } this.uploadMultipleFiles = this.uploadMultipleFiles.bind(this) th...
true
7408886c0f78c89057579be438cb02c924aa4a74
JavaScript
plami/Team-Projects
/SourceUni/final-version/eyes.js
UTF-8
1,731
3.203125
3
[]
no_license
/** * Created by GLAVUN on 18.6.2014 г.. */ var createEye = function () { var eyes = []; var eye; var lens; eye = document.createElement("div"); eye.classList.add("eye"); lens = document.createElement("span"); eye.appendChild(lens); document.getElementById('guz4').appendChild(eye)...
true