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
c8d2fda6e8fa16ad0377be5f793680bb8a9e3fa3
JavaScript
AdrienLgl/js-ajax
/app/assets/js/script.js
UTF-8
1,210
2.640625
3
[]
no_license
$( document ).ready(function() { console.log('Ready to load the file'); // $.ajax({ // }) // .done(function( msg ) { // }) // .fail(function( jqXHR, textStatus ) { // }); }) $(document).ready(function(){ $("input").on("keyup", function() { var code_postal = $("input").val().toLowerCase(); $.ajax...
true
c47dd003f534f05d284a9f62b4cabd087694932c
JavaScript
SIA2602/EMB5637-Projeto-Integrador-II
/Etapa 3_4_5 - Desenvolvimento do Projeto/software/src/utils/getStringStatus.js
UTF-8
202
2.609375
3
[]
no_license
export default function getStringStatus(status){ if(status === "inOperation"){ return "success" } else if(status === "inAlert"){ return "warning" } return "error" }
true
db565137bca77bfce4b41a74f8b2c9fa4e5c1ae2
JavaScript
mokesun/tutormeet
/js/ie_common.js
UTF-8
1,048
2.796875
3
[]
no_license
/** * common.js */ $(function() { setCookie("username", "wei lin", 2); var username = getCookie("username"); $(".user_name").empty().append(unescape(username)); $(".setting-btn").click(function(){ $(".settings-navigation").show(); }); $(".close-settings").click(function(){ $(".settings-navigation")...
true
51fe9f2385f1553e71c36e5cc9c9979cbf33bf9e
JavaScript
jcorum11/Storm.ly
/assets/js/script.js
UTF-8
6,673
2.875
3
[]
no_license
var apiKey = "a2dfa14dde9a15c432f7f0a5cb10b4a7"; var historyList = JSON.parse(localStorage.getItem("historyList")); // change string to title case function toTitleCase(str) { return str.replace(/\w\S*/g, function(txt) { return txt.charAt(0).toUpperCase() + txt.substr(1).toLowerCase(); }); } // handler...
true
beeec3125387592e2cfb0db484b2e06df042f927
JavaScript
yuri-snke/wissen-web
/web/JS/pesquisa.js
UTF-8
1,426
2.796875
3
[ "MIT" ]
permissive
var checkCont = 0; var max = 1; function setCheck(objt){ if (objt.checked) { checkCont = checkCont + 1; } else{ checkCont = checkCont - 1; } if (checkCont > max) { objt.checked = false; checkCont = checkCont - 1; $("#limite").modal("show"); } } function evento(){ var x = document.getElementById('evento...
true
f6ef480170825238f2580ccc6270c950f727e881
JavaScript
amaxwell01/experiments
/javascript/algorithms/binary_search_trees/index.js
UTF-8
1,634
3.921875
4
[]
no_license
// Binary search trees /* URL: http://en.wikipedia.org/wiki/Binary_search_tree Example: a binary search tree of size 9 and depth 3, with root 8 and leaves 1, 4, 7, and 13 See image in folder */ /* 1. In Order Traversal 2. */ var BinaryTree = function() { var root; var add...
true
22a3b23fa37e4c606ba93b5ca9ad7789816d2bf3
JavaScript
RFuentes22/Laboratorio_06_Tarea_00062217
/Ejercicio_2.js
UTF-8
1,988
3.15625
3
[]
no_license
var convertor = { convertir: function(num, uni, touni, tipo){ if(uni == 'm' && touni == 'cm' && tipo == 'L') return this.m_cm(num); else if(uni == 'cm' && touni == 'm' && tipo == 'L') return this.cm_m(num); else if(uni == 'km' && touni == 'm' && tipo == 'L') ...
true
69128954400f4f583efd9794d35ff9962e62e80a
JavaScript
Roosamm/Tasks
/T4/js/main_b.js
UTF-8
1,101
3.125
3
[]
no_license
'use strict'; const message = document.querySelector('#message'); const upload = (evt) => { //prevents from sending evt.preventDefault(); //Upload in progress message.innerHTML = 'Upload in progress...'; //selects input field const input = docoment.querySelector('input[type="file"]'); //ma...
true
185aca27868f434ca30da764bd96db9a6e64b6b1
JavaScript
OtakuShowboat/OtakuBlog
/assets/scripts/scripts.js
UTF-8
1,235
2.984375
3
[]
no_license
//Not the most elegant of code, but it gets the job done. The below is what highlights the navbar text for the current page. function highlightNav() { //Highlights home page var homeLink = document.getElementById("home"); if(window.location.pathname == "/OtakuBlog/" || window.location.pathname == "/") { homeLink....
true
73067a6d6f51e1813d56903ec5f89660c570bcf5
JavaScript
PranavPillai/CIS197-Penn-Blockchain
/routes/login.js
UTF-8
1,061
2.5625
3
[]
no_license
var express = require('express'); var router = express.Router(); var User = require('../models/UserDB').User; String.prototype.hashCode = function() { var hash = 0; if (this.length == 0) { return hash; } for (var i = 0; i < this.length; i++) { char = this.charCodeAt(i); hash = (...
true
6444e44467cf1835f66534b6ac523ce289d00702
JavaScript
amanallahrafat/-div-elopers
/utils/extraUtils.js
UTF-8
12,852
2.53125
3
[]
no_license
const Accidental_Leave_Request = require("../Models/Requests/Accidental_Leave_Request") const Annual_Leave_Request = require("../Models/Requests/Annual_Leave_Request") const Compensation_Leave_Request = require("../Models/Requests/Compensation_Leave_Request") const Maternity_Leave_Request = require("../Models/Requests/...
true
f5552137dfffad9d97673b6cf6d319cdb43dc8bf
JavaScript
ChancePenner/eecs448-lab03
/public_html/lab03/exercise1/passwordValidator.js
UTF-8
447
3.328125
3
[]
no_license
// passwordValidator.js function myFunc() { var password1 = (document.getElementById("password1")).value; var password2 = (document.getElementById("password2")).value; if(password1 != password2) { alert("Your passwords are not the same!"); } else { if(password1.length < 8 || password2.length < 8...
true
43e9601461ec39058aeed5da4f78ce7158b9132b
JavaScript
nagyist/phaser3-examples
/public/src/input/cursors/cute cursor.js
UTF-8
952
2.59375
3
[ "MIT" ]
permissive
class Example extends Phaser.Scene { preload () { this.load.image('box', 'assets/sprites/block.png'); } create () { this.input.setDefaultCursor('url(assets/input/cursors/vigyori/arrow.cur), pointer'); // Create some custom cursor boxes this.add.sprite(100, 300, 'b...
true
ba15faa6143de13e877b672ac80b92aff1719b75
JavaScript
PeteAJohnson/freeCodeCamp.com
/ChunkyMonkey.js
UTF-8
306
3.546875
4
[]
no_license
//https://www.freecodecamp.org/challenges/chunky-monkey function chunkArrayInGroups(arr, size) { var groupsArray = []; for (i = 0; i < (arr.length / size); i++) { groupsArray.push(arr.slice(size * i, size * (i+1))); } return groupsArray; } chunkArrayInGroups(["a", "b", "c", "d"], 2);
true
b469aecb18510540a4218d3c3e60072c0b03e028
JavaScript
christianlimanto95/yazirrizky
/assets/js/common/default.js
UTF-8
3,258
2.515625
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
var script1loaded = false; $(function() { $(document).on("keydown", "input[data-input-type='number']", function(e) { isNumber(e); }); $(document).on("input", "input[data-thousand-separator='true']", function() { this.value = addCommas(this.value); }); $(".form-radiobutton").on("cl...
true
cafcf9fcf22d885819d8d1a2416ae8550e97374b
JavaScript
D060703/YouCover
/media/js/scripts.js
UTF-8
1,103
2.5625
3
[]
no_license
// This function is called when an error is thrown by the player function onPlayerError(errorCode) { alert("An error occured of type:" + errorCode); } //function playVideo() { // if (ytplayer) { // ytplayer.playVideo(); // } //} // //function pauseVideo() { // if (ytplayer) { // ytplayer.pa...
true
daf2a9bcdb944aeac02978a0eb06f81a47f4c9f6
JavaScript
WoogWalker/JavaScript
/JavaScript/module2.2/script.js
UTF-8
586
3.203125
3
[]
no_license
const passwords = ['qwerty', '111qwe', '123123', 'r4nd0mp4zzw0rd']; let attempts = 3; let userInput; do{ userInput = prompt('Введите пароль'); if(passwords.includes(userInput)){ alert('welcome'); break; } if(userInput == null) break; attempts -= 1; alert('Неверный пароль, у вас осталось ' + attempts + ' поп...
true
f845babc43324d0915a79adabf314835c932c4c4
JavaScript
rafaelbotaro/curso_javascript_moderno
/js_moderno/a_fundamentos/tratamentoDeErros.js
UTF-8
529
3.171875
3
[]
no_license
function tratarErroELancar(erro){ throw new Error('Erro interno, vamos resolver'); // throw 10; // throw true; // throw 'Erro 500'; // throw{ // nome: erro.name; // msg: erro.message; // Date: new Date; // } } function imprimirNomeGritado(obj){ try{ ...
true
eb962b748a604480de45c944d4a742839f533425
JavaScript
cristian1990/Examen_curso_de_Ingreso
/Ejercicios y Parciales/10-Recuperatorio/ejercicio_2.js
UTF-8
263
3.046875
3
[]
no_license
//Debemos lograr mostrar un mensaje al presionar el botón 'MOSTRAR'. function Mostar() { var importe; var importeF; importe=prompt("Ingrese el importe"); importe=parseInt(importe); importeF=importe - (importe*0.25); alert("El precio Fina es $" + importeF); }
true
1f60ba31d053dd2c010123463241e6e40fb3b1d3
JavaScript
GeorgePasquali/Code4VarnaHack
/b/mainLogicNamespace.js
UTF-8
4,278
2.671875
3
[]
no_license
var hack4Varna = { mainContainer: null, json: null, lastSaid: null, firstButton:null, secondButton:null, initialize: function(id) { this.mainContainer = document.getElementById(id); this.json = possibleSpeeches; this.firstButton = document.getElementById('askButt...
true
f4e5f2f0dc74b2354b46689ca9db8ee5a5209714
JavaScript
HarunDyn/Javascript
/udemy_bootcamp/Tarayıcıların depolama alanları/Local storage/app.js
UTF-8
2,279
3.640625
4
[]
no_license
// Local Storage // localStorage.setItem('Hareket','Burpee'); // localStorage.setItem('Hareket2',50); // number kendi içinde string olarak yazıyor // getitem // const value=localStorage.getItem('Hareket2'); // console.log(value); //clear Local storage // localStorage.clear(); // localStorage.setItem('Hareket','B...
true
f99d7961369a112e77df9295ceb83fc8ee844d41
JavaScript
edby/backend
/bitms-tradex/src/main/webapp/scripts/gallery/turn/0.0.1/turn.js
UTF-8
3,802
2.515625
3
[ "MIT" ]
permissive
define("gallery/turn/0.0.1/turn", ["$"], function (r, e, m) { var $ = r("$"); var Turn = function (option) { var me = this; me.element = $(option.element); me.panels = option.panels? $(option.panels):$(option.element).find(".tx-turn-item"); me.count = option.count || 4; ...
true
48828bc11c2fe77481e6bab07d31e7749a6b7b6c
JavaScript
taosin/ixinyi_admin
/public/src/ext/vue_ext.js
UTF-8
8,007
2.6875
3
[]
no_license
exports.install = function install (Vue) { // localstorage的存储 function h5setValue (key, value) { if(value){ if(value.constructor === Object){ return window.localStorage.setItem(key, JSON.stringify(value)); } return window.localStorage.setItem(key, value); } } // localstorage...
true
d02f68fae0121e7cf4460392aea6be990b686e45
JavaScript
LXiong/zhongpai
/src/main/webapp/js/multicheck/multi-checkbox.js
UTF-8
7,128
2.765625
3
[]
no_license
function MultiCheckbox(table, checkAllBox, checkboxes, ids) { this.table = table; this.checkAllBox = checkAllBox; this.checkCount = 0; // 当选中的计数超过maxChecks时,全选框变为选中 this.maxChecks = 20; this.checkboxes = checkboxes; this.ids = ids || {}; var e = this; this.checkAllBox.click(function ...
true
eb8abfce0198dec3ca90c3ff287deb148f8b8d9f
JavaScript
timoguic/oc_beautifier
/chrome_extension/js/new_soutenance_enhancer.js
UTF-8
1,261
2.796875
3
[ "WTFPL", "LicenseRef-scancode-warranty-disclaimer" ]
permissive
'use strict'; // Span widget const spanWidget = document.createElement('span') spanWidget.classList.add('oc-form__widget') const profileLink = document.createElement('a') profileLink.id = 'showProfileLink' const h3Widget = document.createElement('h3') h3Widget.appendChild(profileLink) spanWidget.appendChild(h3Widget...
true
cae2f292d13b11e850c1bbae09c7180c0c4444fa
JavaScript
apnex/hacking-twojs
/grid/path.js
UTF-8
2,348
2.671875
3
[]
no_license
#!/usr/bin/env node // constructor function path() { this.optDefaults = optDefaults; this.styleDefaults = styleDefaults; return this; }; //module.exports = path; const opts = { scale: { x: 10, y: 10 } }; function optDefaults(opt = {}) { // opt defaults if(typeof(opt.start) === 'undefined') { opt.start =...
true
05762d54dfc9a2a5fe5939e8df0a3db8719e7f76
JavaScript
yuyangzi/DatePicker
/gulpfile.js
UTF-8
2,035
2.515625
3
[]
no_license
//引入Gulp let gulp = require("gulp"); //格式化js文件 let uglify = require("gulp-uglify"); //格式化CSS文件 let cleanCSS = require("gulp-clean-css"); //格式化HTML文件 let htmlmin = require("gulp-htmlmin"); //合并文件 let concat = require("gulp-concat"); //将ES6转为ES5 let babel = require("gulp-babel"); //删除文件插件 let del = require("del"); //格式化...
true
4cb0534ed469769c66be1e1f70b41469080afa37
JavaScript
amitsrivastava4all/mern-may
/todoapp copy 4/scripts/model/taskoperations.js
UTF-8
982
2.859375
3
[]
no_license
const taskOperations = { tasks:[], addTask(id , name, descr){ var task = new Task(id , name, descr); this.tasks.push(task); return task; }, deleteTask(){ this.tasks = this.tasks.filter(taskObject=> !taskObject.isMark) ; }, searchByName(currentValue...
true
56d1417a25d5891d3cb1173a3c4419c81ec829b0
JavaScript
FilippoRanza/gift-tracker
/public/static/scripts/autocomplete_user.js
UTF-8
2,404
3
3
[]
no_license
class SelectedNames { constructor(names) { this.names = {}; this.count = names.length; var count = 0; for(const elem of names) { console.log(elem); this.names[elem] = {id: count++, used: true} } } initAutocomplete(list) { for(const [...
true
f8f6a9f138240c9b5dbe9f4e7d006765a59706a8
JavaScript
Lamia4/Food-Order-Online
/Backend/controllers/orderController.js
UTF-8
1,270
2.546875
3
[]
no_license
import Order from "../models/Order.js"; export default { createNewOrderListItem: async function (req, res, next) { try { const {productId, quantity} = req.body; const orderListItem = new OrderList({ productId, quantity }); awa...
true
3deec79cd324ff55d01db759ff248c1961ff6d44
JavaScript
devJJinho/momentum
/js/clock.js
UTF-8
363
3.59375
4
[]
no_license
const clock=document.querySelector("h2#clock"); function paintClock(){ const date=new Date(); const hour=String(date.getHours()).padStart(2,"0"); const min=String(date.getMinutes()).padStart(2,"0"); const sec=String(date.getSeconds()).padStart(2,"0"); clock.innerText=`${hour} : ${min} : ${sec}`; } ...
true
2589ee88e9e45045c3724f7ca325904ab3074ad1
JavaScript
jamoct/reactjs-calc
/src/App.js
UTF-8
2,891
3.046875
3
[]
no_license
import React, {Component} from 'react'; import './App.css'; export default class App extends Component { state = { result: "" } handleInput = e => { this.setState({result: e.target.value}); } handleClick = button => { if (button === "CLEAR") { this.setState({result: ""}); } if ...
true
59f6dff100833d1c32d00d84c44446825340a753
JavaScript
ADamCarraway/DTF-clone
/resources/js/helpers.js
UTF-8
3,440
3
3
[ "MIT" ]
permissive
/** * A simple forEach() implementation for Arrays, Objects and NodeLists * @private * @param {Array|Object|NodeList} collection Collection of items to iterate * @param {Function} callback Callback function for each iteration * @param {Array|Object|NodeList} scope Object/NodeList/Array that forEach is iterating ov...
true
0a37c6eeef58e91c527a469cf4ed61a2b61ec3af
JavaScript
Viktor4453Larsson/EE18-ar2
/Html_och_css/spel/spel.js
UTF-8
3,414
2.890625
3
[]
no_license
/* Första datorn med namnet Macintosh lanseras = 1984 */ /* Formel 1-föraren Ronnie Peterson avlider efter en olycka på italienska Monzabanan = 1978 */ /* Abba vinner Eurovisions-schlagerfestivalen med låten Waterloo = 1974 */ /* Svt introducerar tjänsten text-TV. = 1978*/ /* Stockholms tunnelbana invigs = 1950 */ ...
true
f74ca0d74140f3fdbc60d83af6fb9d5a3739278e
JavaScript
DrMaxis/nba-cli
/src/data/Player.js
UTF-8
389
3.03125
3
[]
no_license
import { Record } from 'immutable'; const defaults = { firstName: '', lastName: '', }; export default class Player extends Record(defaults) { getAbbreviatedFirstName() { if (this.firstName.length > 0) { return this.firstName.charAt(0); } return this.firstName; } getAbbreviatedName() { ...
true
41b79df12294e06d3f450a310147e2b1a187296e
JavaScript
iliakhlyzov/yandexContestTraining
/homework3/F.js
UTF-8
3,205
3.40625
3
[]
no_license
const fs = require('fs'); const strings = fs.readFileSync('./input.txt', 'utf8').split('\n'); const genom1 = strings[0]; const genom2 = strings[1]; const func = (genom1, genom2) => { const basis1 = {}; const takenPairs = {}; let proximity = 0; for (let i = 0; i < genom1.length - 1; i += 1) { const pair =...
true
b92832ddad749ebb9913e9b1499f5fa0cc216752
JavaScript
steveblue/boxer
/src/controllers/ViewController.js
UTF-8
5,151
2.71875
3
[]
no_license
/** * ViewController * * A Controller that handles communication between Nodes and DOMComponents. * This API may be renamed to DOMController. * * by Steve Belovarich * Licensed under MIT, see license.txt or http://www.opensource.org/licenses/mit-license.php **/ var Engine = boxer.core.Engine; var Scene = boxer.core.S...
true
3c024e0527e67622d718794a79278054cdaecf6a
JavaScript
Ikhwanwp/TugasPBW
/app.js
UTF-8
4,244
3.484375
3
[]
no_license
//Running Text Effect const TypeWriter = function(txtElement, words, wait = 3000){ this.txtElement = txtElement; this.words = words; this.txt = ''; this.wordIndex = 0; this.wait = parseInt(wait, 10); this.type(); this.isDeleting = false; } //Type Method TypeWriter.prototype.type = function(){ // Current Index ...
true
08e20312b0e2ff20048dc4c3579fb80e052a571a
JavaScript
theresa-e/MEAN
/Angular/restfulTasks/server/controllers/tasks.js
UTF-8
3,740
2.515625
3
[]
no_license
const mongoose = require('mongoose'); var Task = mongoose.model('Task'); require('../models/task.js') module.exports = { // Retrieve all tasks. allTasks: (req, res) => { Task.find({}, function (err, tasks) { if (err) { console.log("------- Error: Could not retrieve all tasks...
true
edcbd8353759288c65e45d8d1ea5422830e5fbbf
JavaScript
CyberTomB/late-summer21-gregslist-node
/client/app/Controllers/JobsController.js
UTF-8
943
2.734375
3
[]
no_license
import { ProxyState } from '../AppState.js' import { jobsService } from '../Services/JobsService.js' import Job from '../Models/Job.js' function _draw() { let template = '' ProxyState.jobs.forEach(job => { template += job.Template }) document.getElementById('jobs').innerHTML = template } export default cl...
true
a302635311e4f5df7edeab0d5747ad4162030c6d
JavaScript
sergeysinoptik/frontend-project-lvl1
/src/games/even.js
UTF-8
305
3.15625
3
[]
no_license
export const rules = 'Answer "yes" if the number is even, otherwise answer "no".'; const getRandomNumber = () => Math.floor(Math.random() * 999); export const gameQuestion = () => getRandomNumber(); export const correctAnswer = (num) => { if (num % 2 === 0) { return 'yes'; } return 'no'; };
true
66b4150ca5f53473bd145cfb80ff7dcd2fdc0884
JavaScript
dln88/food-center
/src/components/start/JsonServer.js
UTF-8
4,464
2.71875
3
[]
no_license
import React, { Component } from 'react'; import axios from 'axios'; import Child from './Child'; class JsonServer extends Component { constructor(props) { super(props); this.state = { brand: ['init'] } } read() { // axios.get('http://localhost:3000/brand') ...
true
0e61504e44285bcfb8895789bab12e33436e80a0
JavaScript
BigDwarf/urlshortener-frontend
/src/Generator.js
UTF-8
1,568
2.84375
3
[]
no_license
import React from 'react' import {useState} from "react" import axios from 'axios'; import {Form, Button} from 'react-bootstrap'; import validator from 'validator' const Generator = () => { const [loaded, setLoaded] = useState(false); const [url, setUrl] = useState(""); const [shortUrl, setShortUrl] = useS...
true
44a259910691d6dec6febaabfc24668f10818d21
JavaScript
firattaskin/vue-vs-react
/kz_vue/src/store/developers.js
UTF-8
1,031
2.578125
3
[]
no_license
import {reactive} from 'vue'; const state = reactive({ developers:[] }); const getDevelopers = () => { setTimeout(()=>{ fetch('http://localhost:3002/developers') .then(res => res.json()) .then(data => state.developers = data) .catch(err => console.log(err.message)); },1000)...
true
e4c9f024b945fb8afd4c7b369474aaca43d1ee22
JavaScript
Sravan2305/PWA-App
/public/second.js
UTF-8
532
3.203125
3
[]
no_license
var button = document.querySelector('#clickme') console.log("Buttons are "+button) button.addEventListener('click' , ()=>{ fetch('https://jsonplaceholder.typicode.com/todos/1') .then(response => response.json()) .then(json =>{ var p = document.createElement('p') p.innerText = json.title || "No Da...
true
1f464073b03793ae1f899dbe3b76fa20451c509f
JavaScript
adrienmathaly/ProjetGolf
/MobileClient/golf/ClientMobile/www/js/connectionManager.js
UTF-8
4,213
3.046875
3
[]
no_license
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
true
07395ac9ba33196953b06398d008a3bcda58344b
JavaScript
fossabot/dsr-ca
/minify.js
UTF-8
3,214
2.546875
3
[ "Apache-2.0" ]
permissive
#!/usr/bin/env node const path = require('path'); const fs = require('fs'); // html const html = require('html-minifier-terser').minify; // css const postcss = require('postcss'); const cssnano = require('cssnano'); const autoprefixer = require('autoprefixer'); // js const terser = require('terser').minify; // files ...
true
f3274c7283a5a35d17efc6c3d756305aab7189c9
JavaScript
ahtohbi4/nature-simulator
/src/classes/Animal.js
UTF-8
10,099
2.578125
3
[]
no_license
import generate from "nanoid/generate"; import WindRose from "./WindRose"; import randomFloatAroundValue from "../utils/randomFloatAroundValue"; import randomIntegerInRange from "../utils/randomIntegerInRange"; import randomIntegerAroundValue from "../utils/randomIntegerAroundValue"; import randomItemFromList ...
true
a93d8036ccfaa7b33444e51035307ad7bc62b071
JavaScript
omairnabiel/doc-management-mvp
/server/helpers/token.js
UTF-8
516
2.5625
3
[]
no_license
const jwt = require('jsonwebtoken') const {JWT_SECRET} = require('../config/env') function verifyToken(req) { return new Promise((resolve, reject) => { const token = extractToken(req) jwt.verify(token, JWT_SECRET, function (err, decoded) { if (err) { reject(null) return } resolve(decoded) }) ...
true
76761384992320a99a7d5bc7a4e5cfcdd5d8e88e
JavaScript
nwweeden/career-connection-frontend
/src/common/SearchForm.js
UTF-8
1,163
2.703125
3
[]
no_license
import React, { useState } from "react"; import "./SearchForm.css"; /** * Renders search form * * Routes --> SearchForm --> Alert * * State * * Props * - {search} is called when form submitted and updates companies/jobs * */ function SearchForm({ search }) { const initialState = { searchTerm: "" }; ...
true
050b8be0906f274df86dc69367ff294e46c5bf64
JavaScript
metalmaninfr/react-test
/src/components/progress-bar/index.js
UTF-8
737
2.515625
3
[]
no_license
import React, { useState, useEffect } from "react"; import styled from "styled-components"; const Container = styled.div` position: relative; width: 100%; height: .5rem; background: rgba(0, 0, 0, 0.3); opacity: 0.3; border-radius: 1.5rem; overflow: hidden; `; const Progress = styled.div(props => ({ p...
true
fbf8bd7ff8d4ad9d182fe60a6cd9151ddc6ab878
JavaScript
salcido/salcido.github.io
/js/dots.js
UTF-8
2,014
3.171875
3
[]
no_license
const canvasDots = function() { const canvas = document.querySelector('canvas'); if (!canvas) { return; } const ctx = canvas.getContext('2d'), fillColor = 'rgba(255,255,255, .7)', strokeColor = 'rgba(255,255,255, 0)', d_width = document.documentElement.scrollWidth, d_height = d...
true
384bb610fa99225eb0e621ce3a62c2efaaecde83
JavaScript
floatspace/music-player
/src/common/js/util.js
UTF-8
562
3.15625
3
[]
no_license
export const shuffle = function(arr) { let _arr = arr.slice() for (let i = 0, len = _arr.length; i < len; i++) { let randomNum = getRandomNum(i, len) let temp = _arr[i] _arr[i] = _arr[randomNum] _arr[randomNum] = temp } return _arr } function getRandomNum(min, max) { return Math.floor(Math.ra...
true
4ad6e49577ade37ca298b8e06b5683555df126f0
JavaScript
chingu-voyage5/Bears-Team-6
/server/config/config.js
UTF-8
532
3.03125
3
[]
no_license
//Grabs env mode. If none set as development const env = process.env.NODE_ENV || 'development'; // If testing or in development.... if (env === 'development' || env === 'test') { //Grab config object const config = require('./config.json'); //Select config variables based on env const envConfig = config[env]; ...
true
27aa8ec630d5e4801460497dd8299dd79278c8f3
JavaScript
jokemmy/coaes
/packages/coaes-cli/src/lib/utils.js
UTF-8
879
2.671875
3
[]
no_license
const fs = require( 'fs' ); const chalk = require( 'chalk' ); // 消息输出 function log( typeFn, prefix ) { return function( ...words ) { if ( typeFn ) { return prefix ? console.log( prefix, typeFn( ...words )) : console.log( typeFn( ...words )) ; } return prefix ? console.log( prefix, ...w...
true
20bf76e9fd0874eecea851964049f6a4207480ed
JavaScript
Tsar-ru/pinyougou
/pinyougou_parent/pinyougou_manager_web/src/main/webapp/js/controller/specificationController.js
UTF-8
3,600
2.65625
3
[]
no_license
// controller 只和html交互 不直接和后台交互 app.controller("specificationController",function($scope,$controller, specificationService){ //直接把specificationService注入到controller中 // 控制器的继承 $controller('baseController',{$scope:$scope});//继承 本质上是共用同一个$scope // 动态添加行数据 本质就是向 entity.tbSpecificationOptionList中追加空对象 ...
true
ccd8c89a3843751663e6ea549a0e8fc4ff63d3c1
JavaScript
Mosbycr/bellyFull
/client/src/components/loginForm/index.js
UTF-8
6,364
2.6875
3
[]
no_license
import React from "react"; import { Form, Input } from "@rocketseat/unform"; import "./index.css"; import * as Yup from "yup"; function LogInForm(props) { const loginSchema = Yup.object().shape({ loginEmail: Yup.string() .email("Please enter a valid email") .required("Please enter a valid email"), ...
true
589b2f85cfa5d76eb015cb2a24d34565ed6452c6
JavaScript
spacewander/AlgorithmAndDataStructure
/javascript/sorting_spec.js
UTF-8
1,725
3.25
3
[]
no_license
var should = require('chai').should(); var Algos = require('./sorting'); var Ary = function() { return [1, 2, 3, 5, 2]; }; describe('Sorting algorithms', function(){ it('is_sorted_until', function(){ Algos.is_sorted_until(Ary()).should.be.equal(4); var sortedAry = [1, 2, 3]; Algos.is_sorted_until(sor...
true
f7530e7c98385e7c7715bb89a86dac177555b7e1
JavaScript
louisscruz/clocks
/javascript/clock.js
UTF-8
1,248
3.296875
3
[]
no_license
class Clock { constructor(el, start, stop) { this.el = el; this.generateDisplayElement(); this.generateButtons(); this.installListeners(); } generateDisplayElement() { const element = document.createElement('div'); this.el.appendChild(element); this.displayElement = element; } g...
true
36df155394176894ff50c2d06b3e44ff35993cff
JavaScript
Sheila1Noella/Javascript-exercises
/01Basics/02intermediate/trello02.js
UTF-8
642
3.5
4
[]
no_license
let theTasks = { day : 'Monday', meetings: 0, meetingDone: 0, } let addMeeting = function(todo, meet = 0){ todo.meetings = todo.meetings + meet } // addMeeting(theTasks, 2) let meetingDone = function(todo, meet = 0){ todo.meetingDone = todo.meetingDone - meet } let resetDay = function(todo){ tod...
true
557a222f7d4be9785e1c47bc8d5a46af7f44f166
JavaScript
lngka/SQ2PJ
/app/configurations/passport.js
UTF-8
1,572
2.578125
3
[]
no_license
"use strict"; const LocalStrategy = require("passport-local").Strategy; const User = require("../models/users.js"); const UsersHandler = require("../controllers/usersHandler.js"); module.exports = function (passport) { /* * Setting up the authentication strategy */ var options = { "usernameFi...
true
bd00f5315675fa7f67fe8cff1bbcdf8d617f8381
JavaScript
agalakova-m/vanilla
/training/numbers/random-min-max.js
UTF-8
1,258
4.46875
4
[]
no_license
// Случайное число от min до max // Встроенный метод `Math.random()` возвращает случайное число от `0` (включительно) до `1` (но не включая `1`) // Напишите функцию `random(min, max)`, которая генерирует случайное число с плавающей точкой от `min` до `max` (но не включая `max`). // Пример работы функции: // alert( r...
true
1ab1199741617891531d4550ab4d1b708243879b
JavaScript
dchappa/CAproject
/Assignment 3_New/app/controllers/index.server.controller.js
UTF-8
887
2.609375
3
[]
no_license
var Animal = require('mongoose').model('Animal'); exports.render = function(req, res) { if (req.session.lastVisit) { console.log(req.session.lastVisit); } req.session.lastVisit = new Date(); Animal.find({}, function(err, animalData) { if (err) { return next(err); } else { // res.json(animalDat...
true
7da87c788d4ad23e3e61299023241e5b5f196c04
JavaScript
sawczak/javascript
/Java Script - cwiczenia/js/9-petle.js
UTF-8
1,761
4.15625
4
[]
no_license
let uzytkownicy = [ { imie: 'Kaja', nazwisko: 'Nowak' }, { imie: 'Karol', nazwisko: 'Kowalski' }, { imie: 'Mariusz', nazwisko: 'Witowski' } ]; // console.log(uzytkownicy[0].imie, uzytkownicy[1].imie, uzytkownicy[2].imie); /* pętla for */ for (let index ...
true
c34505504426aa7d51174b6dd6c5ee8ecd06faca
JavaScript
codeater7/React-Redux
/React/passStateinSetState.js
UTF-8
817
3.46875
3
[]
no_license
class MyComponent extends React.Component { constructor(props) { super(props); this.state = { visibility: false, }; // remember, it is inside the constructor this.toggleVisibility = this.toggleVisibility.bind(this); // change code above this line } //it is only state.visibilty, not this.state. /** W...
true
9ac9d9345d2b8677ff941495c47f85f329f33f6f
JavaScript
varaprasadh/ecart
/store/reducers/Reducer_Delivery.js
UTF-8
897
2.609375
3
[]
no_license
const Delivery = { orders:[] } export default function (state = Delivery, action) { switch (action.type) { case "SET_ORDERS": return {orders:action.orders}; case "MODIFY_STATUS": let orders=state.orders; console.log("modifying...",action.i...
true
61e612ba1c76e949a020c435897dead69a16f548
JavaScript
rajBandhakavi/JavaScript-teaching
/array2.js
UTF-8
949
4.1875
4
[]
no_license
var pens; pens = ["red","blue","green","orange"]; console.log("Before: ", pens); //get length of Array: console.log("Array length: ", pens.length); //Reverse the array pens.reverse(); //Remove the first value of the array pens.shift(); //add comma separated values to the front of the array2 pens.unshift("purple","...
true
bbf07cb915d115deeeb63c4a31eef728e8e73127
JavaScript
rahulraj6026/Angular
/plura_course/basics/js/iife.js
UTF-8
411
3.59375
4
[]
no_license
(function(){// This is example of IIFE(Immediately invoked function expression.(IIFE)) var variable = 1; var firstFun = function(){ variable++; }; var secondFun = function(){ firstFun(); variable++; }; var thirdFun = function(){ secondFun(); co...
true
a3752f0affa678e9f60c3485c2436892b254a574
JavaScript
ZornitsaAtanassova/JS-Fundamentals-may2019
/12.EXE_Arrays-31.05/01.addAndSubtract.js
UTF-8
1,172
4.40625
4
[ "MIT" ]
permissive
function addOrSubtract(arr) { //Write a function, which changes the value of odd and even numbers in an array of numbers. If the number is even - add to its value its index position. If the number is odd - subtract to its value its index position //1)Define 2 sum variables - for original and modified array...
true
e66ee528cfea41dbfa29bb43523d6abe452c7262
JavaScript
AiguangLi/React
/react_components_advanced/src/pages/users/userLiked.jsx
UTF-8
585
2.671875
3
[ "Apache-2.0" ]
permissive
import React, { useState, useEffect } from 'react'; const UserLiked = () => { const [count, setCount] = useState(0); const [loading, setLoading] = useState(true); const handleButtonClick = () => { setCount(count + 1); }; useEffect(() => { setTimeout(() => { setLoading(false); }, 1000); return () => ...
true
810e5c540e77798484fbe9fe64596788b7401b6c
JavaScript
bradparks/SpringRoll
/src/learning/LearningMedia.js
UTF-8
18,564
2.71875
3
[ "MIT" ]
permissive
/** * @module Learning Media * @namespace springroll * @requires Core, Learning, Sound, Captions */ (function() { var Debug = include('springroll.Debug', false), StringFilters = include('springroll.StringFilters'); /** * This class contains a bunch of media playing class * to provide convenience around usi...
true
aaddf470bfc8628297a15c9907a48205607a77a2
JavaScript
yhpppp/node-express-blog
/controller/user.js
UTF-8
462
2.5625
3
[]
no_license
const { exec,escape } = require("../db/mysql"); function login(body) { let { username, password } = body; username = escape(username); password = escape(password); const sql = `select username from users where username=${username} and password=${password}`; return exec(sql).then(params => { const userOn...
true
b2ce4a354951e2c493544b199f8ed26a06249a19
JavaScript
ilayerz/thecountofmoney
/backend/services/articles/getFeedsData.js
UTF-8
1,328
2.796875
3
[]
no_license
function getElem(obj ,path){ if(obj != null && path != null){ const pathPieces = path.split('/'); let res = obj; pathPieces.forEach(piece => { res = res[piece]; }); return res; }else{ return null; } } module.exports = exports = async functi...
true
f69171ef23ff2b06c49af2acf4cff07fc89920a4
JavaScript
bealox/codedog-laravel
/public/js/confirmPageExit.js
UTF-8
666
2.953125
3
[ "MIT" ]
permissive
//method that produce message when leave page; function confirmOnPageExit(text,e){ e = e || window.event; var message = 'Are you sure you want to leave this page? data you have entered may not be saved.'; if(text){ message = text; } if(e){ e.returnValue = message; } return message; }; //assign message...
true
29f27f95b12327bce20b163e6017b53301ce7e02
JavaScript
swagathushetty/expense-manager-react
/src/playground/hoc.js
UTF-8
1,065
2.65625
3
[]
no_license
import React from 'react' import ReactDOM from'react-dom' const Info=(props)=>{ return( <div> <h1>Info</h1> <p>the info is {props.info}</p> </div> ) } //regular function(not react component) //we are wrapping Info component in AdminInfo const withadminWarning=(WrappedComponent)=>{ ret...
true
3c3b6d53682ab3ac5d22fd27fa46bf947ccf30d6
JavaScript
phamduybk/lockex1987.github.io
/posts/project - pagi/js/demo-purejs.js
UTF-8
1,353
2.75
3
[]
no_license
(function() { var pag = new Pagi({ containerId: "pagId", showFirst: true, showLast: true, firstText: 'first', previousText: 'previous', nextText: 'next', lastText: 'last', callbackFunc: gotoPage, showTotalNumber: true, show...
true
c654fb1b1f4bfed7087ce47e1c6048c294030d98
JavaScript
wanghaoxi3000/development
/JavaScript/base/ES6_Study/app/js/class/promise.js
UTF-8
3,250
3.015625
3
[]
no_license
{ // 基本定义 let ajax=function(callback){ console.log('执行'); setTimeout(function (){ callback&&callback.call() }, 1000) }; ajax(function(){ console.log('timeout1'); }) } { let ajax=function(){ console.log('执行2'); return new Promise(funct...
true
209765cec425b40ac8bfdbd313c7f37f2afbf8d1
JavaScript
FrankFlitton/jQuery-BroadSign-Player-API
/BroadSignAction.js
UTF-8
3,002
2.71875
3
[ "MIT" ]
permissive
// jQuery BroadSign Player API // Plugin by Frank JE Flitton // https://github.com/FrankFlitton/jQuery-BroadSign-Player-API // Initiate connection to broadsign server var BroadSignSocket = new WebSocket("ws://localhost:2324"); console.log("BroadSign Socket Init"); var BSState = ""; (function($) { $.fn.BroadSign...
true
c436cc2138293a8b7561913f7a0e8d39fa32996f
JavaScript
medmelki/mathtutor
/js/undoredo/CommandManager.js
UTF-8
1,023
3.296875
3
[ "LicenseRef-scancode-unknown-license-reference", "CC0-1.0", "LicenseRef-scancode-public-domain" ]
permissive
function CommandManager() { this.commandStack = []; this.current = -1; } CommandManager.prototype.execute = function (cmd) { if (cmd instanceof Command) { cmd.execute(); /* We need to invalidate all commands after this new one or people are going to be very confused. We use splice as it delet...
true
e574b6b2eb3c59f937487161839b4273f21e2766
JavaScript
abberadhi/jsramverk
/src/components/CommentSection.js
UTF-8
573
2.53125
3
[]
no_license
import React from 'react'; function CommentSection(data) { let comments = data.comments; try { // comments[0].id = "id" return (<div> not failing {/* {Object.keys(comments).map(function (comment, index) { return ( <div> ...
true
0e621aa4e0f75f1530bbb46bf058ac7995e534c4
JavaScript
Godys05/regression-calculator
/src/regressions/linear-regression.js
UTF-8
1,939
3.125
3
[]
no_license
import * as math from 'mathjs'; import { getRSquared } from './calculate-r-squared'; export const getRegression = (x, y) => { //Get the mean values from x and y const mean = parseInt(x.length / 2); const mean_x = x[mean]; const mean_y = y[mean]; //Get x minues mean x values and y minus mean y valu...
true
22e85319e030f878fef574a90c00f366d125753d
JavaScript
FrioLazzlo/firozo
/app/public/app/app.js
UTF-8
664
2.734375
3
[]
no_license
/** * Created by Frio on 25. 5. 2015. */ define(['/modules/events.js'], function (events) { function testCallback() { console.log(JSON.stringify(arguments) + ':' + JSON.stringify(this)); } function testCallback2(name1, name2, age) { console.log(name1, ':', name2, ':', age); } ret...
true
695135a11f06a2289cd62c7d6e0b049c272f80df
JavaScript
henrycosta05/Curso_JavaScript
/Dev-Pleno/Promisses em modulos/testeIndependente.js
UTF-8
2,409
2.65625
3
[]
no_license
// const json = { // "range": "prevendas!A2:A1000", // "majorDimension": "ROWS", // "values": [ // [ // "PREORD001001" // ], // [ // "PREORD001001" // ], // [ // "PREORD001001" // ], // [ // "PREORD001001" // ], // [ // "PREORD001002" // ] // ...
true
786469f6d4ab287cdce03a95120182680f792c56
JavaScript
adams549659584/coin_test
/js/helper/pathHelper.js
UTF-8
1,087
2.9375
3
[]
no_license
let fs = require('fs') let path = require('path') class PathHelper { /** * 异步创建多层目录 * * @static * @param {string} dirname * @param {function} callback * @memberof PathHelper */ static mkdirs(dirname, callback) { fs.exists(dirname, (exists) => { if (exi...
true
4ea8e665c9500c6acb76adfa416522aa03755318
JavaScript
Pachomen/WebPractice
/Simon Game Challenge Starting Files/index.js
UTF-8
2,002
3.28125
3
[]
no_license
var buttonColors = ["red", "blue", "green", "yellow"]; var randomChosenColour; var gamePattern = []; var userClickedPattern = []; var level = 0; // Game Begin $(document).keypress(function(event){ console.log(event.key); $("h1").text("Level "+ level); nextSequence(); }); //Player psuh button $(".btn"...
true
e63397491492df94af240bac124c0e0e0fada108
JavaScript
bojjenclon/CypherSystem-FoundryVTT-Deprecated
/module/actor/CypherActor.js
UTF-8
1,929
3.0625
3
[ "MIT" ]
permissive
import { CypherActorNPC } from "./CypherActorNPC.js"; import { CypherActorPC } from "./CypherActorPC.js"; /** * Cypher System Actor base class * * Acts as a mix of factory and proxy: depending on its "type" argument, * creates an object of the right class (also extending Actor) and simply * overrides its own prop...
true
c8ed503151646551413095ef8be4881fb7f4ecf3
JavaScript
GStudenikin/fe_project1
/components/dropdown-rooms/dropdown-rooms.js
UTF-8
3,183
3.015625
3
[]
no_license
document.addEventListener("DOMContentLoaded", function () { var dropdown = document.getElementById("dropdown-expand"); var dropdownExpantion = document.getElementById("dropdown-expantion"); var dropdownVisible = document.getElementById("dropdown-visible"); dropdown.addEventListener("click", function () { i...
true
cf198ba84a4a27bda6e453ffde89c4dbf92da49e
JavaScript
JustinData/GA-WDI-Work
/w06/d03/Raleigh/js_love/wdi.js
UTF-8
1,314
4
4
[]
no_license
/* OUR VERY OWN WDI TOOLKIT * * A library of functions that include: * each() aka forEach(), map() * * */ function WDIToolKit(){} WDIToolKit.prototype.forEach = function(array, action) { for(var i=0; i< array.length; i++) { action(array[i]); } } WDIToolKit.prototype.each = WDIToolKit.prototype.forEach; ...
true
0b01fe0a3778140bdde4f28770e0142b4b9edf00
JavaScript
Calculingua/cali-app
/test/calcu/lib/grouping.spec.js
UTF-8
3,603
2.71875
3
[ "BSD-2-Clause" ]
permissive
define([ "$J", "cali-calcu/lib/grouping" ], function ($J, grouping) { $J.describe("Grouping functions", function () { $J.describe("grp2idx", function() { $J.it("indexes a grouping variable of numbers", function() { var g = [5,4,4,7,6,5,6,4,7,7]; var o = [1,0,0,3,2,1,2,0,3,3]...
true
e3bdfefe35f73b6d8a1f8eb96d7f51caef6b269f
JavaScript
yoelnoy/MYtinerary-
/client/src/component/LoginPage.js
UTF-8
4,731
2.671875
3
[]
no_license
import React, { Component } from 'react'; import { Link } from 'react-router-dom'; import BackHeader from './BackHeader'; import { Button, Form } from 'reactstrap'; import axios from 'axios'; // Loging page allowing to users to login upon introducing correct details class LoginPage extends Component { constructor(...
true
4bfc1f5901f4e52afb245cb523de59bd55aae8dd
JavaScript
kevindeasis/es6-refresher-node-algorithms
/AlgorithmsDataStructure/Greedy/lis.js
UTF-8
553
2.953125
3
[ "MIT" ]
permissive
/* this is not finished this is me playing with top-down approach note: do bottom up in the interview since it's much easier easiest way to understand and explain it to people: http://stackoverflow.com/questions/2631726/how-to-determine-the-longest-increasing-subsequence-using-dynamic-progra...
true
13ee96d6c2822e8f40e80d979a2cf417fd64765c
JavaScript
LizaSmetan/retipster
/src/js/slider.js
UTF-8
1,380
2.765625
3
[]
no_license
;(function () { var slide_left = document.querySelector('.featured-block-nav .left'); var slide_right = document.querySelector('.featured-block-nav .right'); var block = document.querySelector('.featured-block'); var list = document.querySelector('.featured-block ul'); var li = document.querySelecto...
true
5473a8454d5d5e0848ba9b3828a4f85b40f83d53
JavaScript
neogeek/websocket-event-wrapper
/index.js
UTF-8
1,852
2.75
3
[ "MIT" ]
permissive
const WebSocket = require('ws'); class WebSocketEventWrapper { constructor({ port, server, onConnect = () => {} }) { this.listeners = []; this.wss = new WebSocket.Server({ port, server }); this.wss.on('connection', (client, request) => { if (process.env.NODE_ENV === 'developme...
true
27bd4007cbe0b602deb3a6430f69495455c25818
JavaScript
SpectreOnline/Stemwijzer-opdracht-2de-jaar
/assets/js/main.js
UTF-8
12,677
3.03125
3
[]
no_license
const clickableButtons = document.querySelectorAll(".btn"); const statementOptions = document.querySelectorAll(".form-check-input"); const statementFields = document.querySelectorAll(".form-check"); const container = document.getElementById("container"); const importantStatementField = document.getElementById("impo...
true
a00ce639949fa52b7bf8f5b1d55b90b2594dbbf6
JavaScript
nengb/leetcode
/10.正则表达式匹配.js
UTF-8
895
2.953125
3
[]
no_license
/* * @lc app=leetcode.cn id=10 lang=javascript * * [10] 正则表达式匹配 */ // @lc code=start /** * * * @param {string} s * @param {string} p * @return {boolean} */ var isMatch = function(s, p) { let b = {'.':true,'*':true} let l = 0; let m = 0; return true; }; function dfs(s,p,s_index=0,p_index=...
true
886c8904dd4872e5528bd2a452b24d6667d91f1e
JavaScript
wwang8421/ALGO
/Trees/Binary Tree/Will/Solutions/findRootToLeadSpecifiedSum.solution.js
UTF-8
898
3.765625
4
[]
no_license
/* You are given a binary tree where each node is labeled with an integer. The path weight of a node in such a tree is the sum of the integers on the unique path from the root to that node. Write a program which takes as input an integer and a binary tree with integer node weights, and checks if theer exists a leaf wh...
true
1da21c8d069409744f590c5d87b4d41bd503031d
JavaScript
numbnet/icesoft
/icefaces/branches/icefaces-1.5/icefaces/bridge/lib/prototype/range.js
UTF-8
1,018
2.78125
3
[]
no_license
/* Prototype JavaScript framework, version <%= PROTOTYPE_VERSION %> * (c) 2005 Sam Stephenson <sam@conio.net> * * Prototype is freely distributable under the terms of an MIT-style license. * * For details, see the Prototype web site: http://prototype.conio.net/ * *--------------------------------------------...
true
47599a17643af1806141642ba5d73613b496a3d4
JavaScript
yoshifumi0521/NodeOfHerokuTest
/client/client.js
UTF-8
710
2.96875
3
[]
no_license
$(function() { //ソケットのオブジェクトを取得。herokuに置いたサーバーに接続した。 //var socket = io.connect("http://rocky-lake-5452.herokuapp.com/"); var socket = io.connect("http://localhost:3000/"); socket.on('connect', function(){ //ここからsocket処理を書いていく。 console.log("クライアント接続"); socket.emit('login',{text:"lo...
true
68eba1839875a16756a77c3ff2f3f0b99eee6f76
JavaScript
bobdevine/SudokuGame
/timer.js
UTF-8
1,275
2.921875
3
[]
no_license
var Timer = (function() { var id; var intervalId = null; var timer = 0; var el; function initTimer(el_id) { id = el_id; if (id === undefined) { throw "Provide a valid Id!"; } el = document.getElementById(id); if (el === null) { throw "Element does not exists!"; } render(); } function render...
true
6ca3766ce900eb3d50db19e26f582f75ee661dea
JavaScript
northerneyes/dock-spawn
/js/lib/dock/DockManager.js
UTF-8
18,601
2.546875
3
[ "MIT" ]
permissive
/** * Dock manager manages all the dock panels in a hierarchy, similar to visual studio. * It owns a Html Div element inside which all panels are docked * Initially the document manager takes up the central space and acts as the root node */ dockspawn.DockManager = function(element) { if (element === undefine...
true