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
3d8e78d712d84e9592db5a65916cac4a431efbd9
JavaScript
gonmastronardi/webext-wikipedia
/src/background/BackgroundFacade.js
UTF-8
718
2.875
3
[]
no_license
/** * This class implement the Facade pattern. It is the only entry point * in the background script subsystem for remote messages from the content scripts. * See background.js to learn how I receive messages from a remote object (the content scripts) * All my methods have one argument (arguments) * */ let backg...
true
42094083fe8fedd7db739f8d248166f0b4478ac7
JavaScript
SmValeria/burger
/src/assets/script/slider-test.js
UTF-8
1,866
3.3125
3
[]
no_license
(function () { const left = document.querySelector("#left"); const right = document.querySelector("#right"); const list = document.querySelector("#items"); const container = document.querySelector('.slider'); const itemCollection = document.querySelectorAll('.item'); const item = itemCollection...
true
9f56899f4b0ec2af92e07adf3e8f816d38034cf6
JavaScript
thiagoassisk8/CalculadoraReact
/src/main/Calculator.jsx
UTF-8
1,878
2.6875
3
[]
no_license
import React, { Component } from 'react' import Button from '../components/Button' import './Calculator.css' import Display from '../components/display' export default class Calculator extends Component{ constructor(props){ super(props) this.ClearMemory = this.ClearMemory.bind(this) this...
true
d9c034353cc5b5361cc58a36da6fc3782163c223
JavaScript
Rojke34/JSTraining
/transmutation.js
UTF-8
1,215
4.125
4
[]
no_license
'use strict'; /* Get a word and then change all vowels to a special chart */ var transmutation = function( string ){ const VOWELS = 'aeiouAEIOU'; const specialChart = '@'; var wordTransmuted = ''; if ( typeof string !== 'string' ) { var msj = { name: 'TypeError', message: 'Please, type in a word' }; r...
true
00f64b3b11a15c220644c62676213d50d70f7de6
JavaScript
Birdi7/fewd-hw-2
/src/userform/index.js
UTF-8
2,558
2.640625
3
[]
no_license
import { UserFormWrapper } from "./index.styles"; import { registerUser, performLogin } from "../servers"; import { Formik, Field, Form, ErrorMessage } from "formik"; import { useState } from "react"; function FormMessage({ error }) { return ( <div style={{ color: "red" }}> {!error && <p> User is already e...
true
0a9b734a39dd38be771b1b880b2523b111c665db
JavaScript
981377660LMT/algorithm-study
/前端笔记/bigfrontend/小测验/demo/57. non-writable.js
UTF-8
358
3.375
3
[]
no_license
const a = {} Object.defineProperty(a, 'foo1', { value: 1, // writable: true, // 默认false }) const b = Object.create(a) b.foo2 = 1 console.log(b.foo1) console.log(b.foo2) b.foo1 = 2 b.foo2 = 2 console.log(b) console.log(b.foo1) console.log(b.foo2) // 1 // 1 // 1 因为foo1 不是 writable的 不能改 // 2 con...
true
d410b6db25e799f172199cd91b3b58c85a079079
JavaScript
heinhtetaung-node/MERN-Stack-Course
/server/controllers/UserController.js
UTF-8
2,094
2.609375
3
[]
no_license
const User = require('./../models/User') const bcrypt = require('bcryptjs'); module.exports = { // this is exporting of our file to use in every where addUser : (req, res, next) => { // this is a kind of es6 function which is suitable for boring many codes if(req.body.password){ var hashedPassword = bcrypt.ha...
true
e9fe7be79b6f8eb379dac57eebbcc8f7ffab8416
JavaScript
bellola/AlgoPractice
/int/longestCommonPrefix.js
UTF-8
486
3.5
4
[]
no_license
var longestCommonPrefix = function(strs) { if (!strs.length) return ''; let common = '' let shortest = Infinity for(let i in strs){ if(strs[i].length < shortest) shortest = strs[i].length } //or let maxPrefixLength = Math.min(...strs.map(str => str.length)); for(let i = 0; i < shortes...
true
a168fc9bb9500fdc985bddc75dc845d865516db3
JavaScript
AmmukhanAk/Mindbowser-
/src/Components/Add/InputForm.jsx
UTF-8
4,560
2.625
3
[]
no_license
import React, { useState, useEffect } from "react"; import { Form, Row, Col, Button, Card, Dropdown } from "react-bootstrap"; import { useHistory } from "react-router"; import "./InputForm.css"; import axios from "axios"; import validator from "validator"; export const InputForm = () => { let history = useHistory();...
true
002e43b1a4da19dfd0f8fa96e31e6d59a60a684c
JavaScript
rahulsaha28/fitnessForceServer
/Middleware/AuthenticationMiddleware.js
UTF-8
946
2.734375
3
[]
no_license
// authentication middleware that check for authenticate user const { UserVerify } = require("../Util/UserLoginJWT"); const AuthenticateUser = async(req, res, next) => { try { const userToken = await req.get('token'); if (userToken) { const token = userToken.split(' ')[1]; ...
true
bc1ebf4fec0c28abd241fe9185a86f3d68408615
JavaScript
the-pudding/old-website
/templates/backlog/partials/table.js
UTF-8
752
2.6875
3
[]
no_license
const fse = require('fs-extra'); const cwd = process.cwd(); const backlogData = JSON.parse( fse.readFileSync(`${cwd}/.tmp/data/backlog.json`, 'utf-8') ); const cols = ['date', 'story', 'description']; function createTD(d) { return cols .map(c => { if (!d[c]) return false; return `<p class='idea-...
true
c237fdb5cc5387f8ca101944131ec9e51e8e0205
JavaScript
tyleryasaka/wot-vis
/src/lib/algorithms/alg-5.js
UTF-8
1,972
2.875
3
[]
no_license
import _ from 'underscore' import graphConfig from '../../graph-config.json' const { discount, iterations } = graphConfig /* This is a probability based approach. The probability that a the target is trustworthy is the probability that at least one of the paths to the target does not contain an erroneous trus...
true
0bde214b09c01e54106fda8dc52104437979a7db
JavaScript
Loque18/FractalGenerator
/js/controllers/itController.js
UTF-8
605
3
3
[]
no_license
var $itTotal = $('#it-total'); var $itFrame = $('#it-frame'); //input $itTotal.change(e => setTotalIterations($itTotal.val())); $itFrame.change(e => setInterationsPerFrame($itFrame.val())); var setTotalIterations = val =>{ config.interations.total = val; //console.log(config.canvas.width); reset(); }; ...
true
657af0f21412b6157938cb9cf5a2d50ccc531eee
JavaScript
leejaeyong7/leejaeyong7.github.io
/assets/js/publications.js
UTF-8
3,168
2.671875
3
[]
no_license
let publications = [ 'lee2022deep', 'lee2022qff', 'wu2022sparse', 'wu2022diver', 'lee2021patchmatchrl', 'lee2021patchmatch', 'lin2019exploring', 'degol2018feats', ] const publicationContainer = document.querySelector("#publication-list > tbody") const createPublicationCard = async (publ...
true
5079c4582f94edb4ed4261ef92f96523b1c585c7
JavaScript
sharvilak11/location-based-service
/filters/helper/index.js
UTF-8
1,237
2.703125
3
[]
no_license
var polyline = require('@mapbox/polyline'); var polylineExtended = require('polyline-extended'); function _calculateGreatCircleDistance(locationA, locationZ){ var lat1 = locationA.Latitude; var lon1 = locationA.Longitude; var lat2 = locationZ.Latitude; var lon2 = locationZ.Longitude; var p1 = _toR...
true
19396ebea14f63585af6219917115756cad3483d
JavaScript
solomonfrank/Banka
/controller/cashierController.js
UTF-8
2,535
2.5625
3
[]
no_license
/* eslint-disable consistent-return */ import express from 'express'; import bodyParser from 'body-parser'; import Transaction from '../models/Transaction'; import Account from '../models/Account'; import Response from '../helpers/Response'; const app = express(); app.use(bodyParser.json()); app.use( bodyParser....
true
c5f9df47b97fd7f07291203c6693b322a34992a8
JavaScript
infktr/test
/server.js
UTF-8
1,030
3.015625
3
[]
no_license
/*******************/ /* Require Modules */ /*******************/ const express = require('express'); /***********************/ /* Instantiate Express */ /***********************/ const app = express(); /*********************/ /* Customize Express */ /*********************/ // Set the port to the server defaul...
true
7051bb0b9548ff32160fb0556c67491219c79f42
JavaScript
austintgriffith/galleass
/tests/oldtransactions.js
UTF-8
748
2.53125
3
[ "MIT" ]
permissive
/* run from parent directory: mocha tests/account.js */ const clevis = require("clevis") const colors = require('colors') const chai = require("chai") const fs = require("fs") const assert = chai.assert const expect = chai.expect; const should = chai.should(); //------------------------------------------------...
true
8901262a705ec5b2cfb2da24530d82940ed46fbd
JavaScript
AlexandreMasse/bddi2018
/static/projets/canvas-audio/42_blob/code/js/index.js
UTF-8
15,980
2.875
3
[]
no_license
///////////////////////////////////////// // // INITIALISATION // ///////////////////////////////////////// var canvas = document.querySelector('canvas'); var ctx = canvas.getContext('2d') canvas.height = window.innerHeight canvas.width = window.innerWidth var canvasWidth = window.innerWidth; var canvasHei...
true
57012d99150b04c883303404b6aacfa6109a2a26
JavaScript
Sdanner08/coding-challanges
/Challanges-1/JavaScriptINGFucntion/IngExtractor.js
UTF-8
1,872
4.5
4
[]
no_license
/* JavaScript: 1) Write a function that takes a string as an argument and returns a list of all the words inflected by "-ing". Your function should also exclude all the mono-syllabic words ending in "-ing" (e.g. bing, sing, sling, ...). Although these words end in "-ing", the "-ing" is not an inflection affix. Exam...
true
8e674ae9feb2af5a215ecdab6924206bb73ff67f
JavaScript
pedroscampoy/tammy-time-traveler
/js/character.js
UTF-8
6,276
2.984375
3
[]
no_license
class Character { constructor(name, ctx, x, y, imgChar, verticalFrames = 2, horizontalFrames = 4, defaultframe = 0) { this.name = name this.ctx = ctx this.x = x this.minX = 0 this.maxX = this.ctx.canvas.width - 80 this.vx = 0 this.y = y this.maxY = y this.vy = 0 this.width =...
true
02d7af2f63e2dfa43857f963b2b3a5d0e523a555
JavaScript
sun-wangbaiyu/emr-code
/pkuhit.iih.ui/src/po/com/NetCAUtil.js
UTF-8
14,103
2.546875
3
[]
no_license
Ext.define("iih.po.com.NetCAUtil", { singleton: true, initialObj: null, //判断控件是否安装成功 isPKIInstalled: function(){ initialObj = document.getElementById("net_ca"); try { utilObj = initialObj.CreateDeviceObject(); if(typeof(utilObj).toString().indexOf("objec...
true
87c95558ef6d8ca9baba6f3a129b53d3498dbf03
JavaScript
spillai220/restaurant-finder
/public/src/js/stores/userStore.js
UTF-8
1,192
2.578125
3
[]
no_license
var EventEmitter = require('events').EventEmitter; var merge = require('merge'); var axios = require('axios'); var AppDispatcher = require('../dispatchers/appDispatcher.js'); var browserHistory = require("react-router/lib/browserHistory"); var _user = ""; var UserStore = merge(EventEmitter.prototype, { getUser : fu...
true
c33c1ce1610a637b8a69fe75c13d71666f9e7a6a
JavaScript
sulewicz/universal-map-editor
/js/map.js
UTF-8
2,053
2.65625
3
[ "MIT" ]
permissive
'use strict' window.me = window.me || {} { const MAP_OBJECT_ADDED = 'mapObjectAdded' const MAP_OBJECT_REMOVED = 'mapObjectRemoved' const objectCompare = function (a, b) { if (a.zOrder < b.zOrder) { return -1 } else if (a.zOrder > b.zOrder) { return 1 } else { if (a.id < b.id) { ...
true
d0ec105d80d4418169a3057c2c01765c491ca888
JavaScript
khejd/speakers-corner
/html/static/js/speechRec.js
UTF-8
3,262
2.609375
3
[]
no_license
let layer0 = $('#layer0'); let layer1 = $('#layer1'); let layer2 = $('#layer2'); let transcript = $('#transcript'); let language = 'no-NO'; // default $(() => { transcript.val(''); localStorage.setItem("commentText", transcript.val()); }); // add listener to disable scroll window.addEventListener('scroll', ()...
true
38bf423634b188c5f200f6f6e3e9898cc48aba29
JavaScript
leorod90/forkify
/src/index.js
UTF-8
6,123
2.921875
3
[]
no_license
import Search from './models/Search'; import Recipe from './models/Recipe'; import Cart from './models/Cart' import Likes from './models/Likes' import * as userInterface from './views/userInterface'; //return object import { DOMstrings } from './views/DOMstrings'; const state = {}; //Search Controller const controlSea...
true
8fa14a6d444ec548e95536837f25e7965fc42e7a
JavaScript
thanhhahaha/javascript-logging-lab-js-intro-000
/index.js
UTF-8
110
2.515625
3
[ "LicenseRef-scancode-public-domain", "LicenseRef-scancode-unknown-license-reference" ]
permissive
console.log("This is stupid") console.warn("Does JS require ; at the end?") console.error("Raising an ERROR")
true
3e66df69a67814d87b7b646c06559013451c1266
JavaScript
HapDragon/WebGLPractice
/webgl/TexturedQuad.js
UTF-8
5,055
2.6875
3
[]
no_license
var VSHADER_SOURCE= 'attribute vec4 a_Position;\n'+ 'attribute vec2 a_TexCoord;\n'+ 'varying vec2 v_TexCoord;\n'+ 'void main() {\n' + ' gl_Position = a_Position;\n' + ' v_TexCoord = a_TexCoord;\n' + '}\n'; var FSHADER_SOURCE= 'precision mediump float;\n'+ 'uniform sampler2D u_Sampler...
true
6563340b986304d2315569c2d23d151b8fe3e935
JavaScript
KortesmakiAB/FunDad
/static/js/app.js
UTF-8
4,124
2.84375
3
[]
no_license
const base_url = 'https://127.0.0.1:5000'; const errorMsg = document.getElementById('error-msg'); let coords = {}; ///////////////////////////////////////////////////////////////////// // Loading Spinner const $spinnerModal = $('#spinnerModal'); const spinners = document.querySelectorAll('.spinner'); for (let spinn...
true
357f1dc30550be391e241900dcd7546636d3abc4
JavaScript
jfparadis/lavamoat-browserify
/src/generatePrelude.js
UTF-8
3,164
2.84375
3
[]
no_license
// The "prelude" is the kernel of a browserify bundle. It initializes the modules and // provides the `require` api. LavaMoat's prelude content has been modified significantly from the // original `browser-pack` prelude for readability + sandboxing in SES containers // The prelude is defined in the `preludeTemplate` fi...
true
49b8cd63a5360e436572fec09f56224339bc208f
JavaScript
roeldingle/reactJS-learning
/src/modules/users/Users.js
UTF-8
1,054
2.734375
3
[]
no_license
import React, { Component } from 'react'; import User from './User'; class Users extends Component{ state = { title: 'Team ASSET', users: [ {name: 'Koo', job_lvl : 3}, {name: 'Coleens', job_lvl : 2}, {name: 'Emman', job_lvl : 1}, {name: 'Roy', job_lvl : 4}, {name: 'Mat', job_lv...
true
7b69d6aeade4f3e7a91fd9903ce6d8a83fc61868
JavaScript
AkshayKumbhar17/reactredux1
/src/component/Home.js
UTF-8
2,810
2.75
3
[]
no_license
import React, {Component} from 'react'; import {Link} from 'react-router-dom'; import Pokeball from '../pokeball.png'; import '../App.css'; import { connect } from 'react-redux'; import '../popupPage/Popup.css' import PopupEx from '../popupPage/PopupEx' class Home extends Component{ state={ id:'', ...
true
87e88c4f7f907080f4d958efc80aa67bafea730f
JavaScript
muzzley/process-id-dealer
/lib/Dealer.js
UTF-8
4,825
2.796875
3
[]
no_license
var levelup = require('levelup'); var ps = require('ps-node'); var running = require('is-running'); var mutex = require('./mutex'); // Storage format: // processes:<type> = { // count: 2, // p0: { pid: 123, command: 'node', args: 'index.js'}, // p2: { ... } // } var Dealer = function (options) { options = opt...
true
a95c3448f23d9d66f27ea78b784f568c0dc230cc
JavaScript
ccheng26/simple_app
/src/customHooks/useForm.js
UTF-8
1,108
2.609375
3
[]
no_license
import { useState, useEffect } from 'react'; const useForm = (callback, validationRules, requiredFields) => { const [values, setValues] = useState({}); const [errors, setErrors] = useState({}); const [submitAction, setSubmitAction] = useState(false); useEffect(() => { // submit form if no errors if (O...
true
0aa22d76ba565a552076c82e84673b6538a45e40
JavaScript
go-0100-it/frontend-nanodegree-resume
/js/resumeBuilder.js
UTF-8
14,395
2.671875
3
[ "MIT" ]
permissive
// init ScrollMagic Controller var controller = new ScrollMagic.Controller(); $("#scroll-spacer").height($("#mapDiv").height() * 2); var myEl2height = $("#header").height(); var elMarg = ($(window).height() - myEl2height) / 6; var myEl = $("#header-container"); myEl.height($(window).height()); myEl.css('margin-top', ...
true
c19beff8863fce01adfd4053e318e345a0030da7
JavaScript
levi-li-yi/javascript-calculation
/skillPartOne.js
UTF-8
14,720
3.625
4
[]
no_license
/*1、判断Object的数据类型(主要使用Object.prototype.toString)*/ const isType = function(type) { return function(target) { return `[object ${type}]` === Object.prototype.toString.call(target) } } // 箭头函数写法:const isType = type => target => `[object ${type}]` === Object.prototype.toString.call(target) const isArray = i...
true
2987ec66401dc2983427deff99b084bcd9124483
JavaScript
SamDecrock/deknop-pibuttons
/app/buttons.js
UTF-8
1,769
3.09375
3
[ "MIT" ]
permissive
var fs = require('fs'); var onoff, Gpio, led, blue, pink, orange; function watchButtons(buttonCallback){ // check if we're on the Raspberry Pi: fs.exists('/sys/class/gpio/', function (exists){ if(exists){ console.log("We're on the Raspberry Pi.. watching GPIOs"); watchGpio(buttonCallback); }else{ conso...
true
3c97cdfa127e6b67ab139ae75e71f24d5505d732
JavaScript
TrevorDBrown/Random
/BoopWoopScripts/scripts/GenerateGUID.js
UTF-8
2,920
3.296875
3
[ "MIT" ]
permissive
/** { "api":1, "name":"Generate GUID", "description":"Generates and returns a valid GUID.", "author":"TrevorDBrown", "icon":"dice", "tags":"guid,uuid,id" } **/ // updatePositionFromAlphabet - replaces specific character within specified GUID string from a character in the provided alphabet. function upda...
true
20a3ab0db068ac3f4935e67518eee0427134cfa8
JavaScript
SimicIlija/mep-master
/src/services/motion/MotionTargetQueue.js
UTF-8
3,851
2.890625
3
[]
no_license
'use strict'; /** @namespace services.motion */ const MotionTarget = require('./MotionTarget'); const Line = Mep.require('misc/Line'); const TAG = 'MotionTargetQueue'; /** * Queue of targets (points) that robot has to reach. * @memberOf services.motion */ class MotionTargetQueue { constructor(changedCallback...
true
b132521caaba1cff5b8e4ad76db1338daf3e9af5
JavaScript
chinhlv95/arms
/public/js/forgot/script.js
UTF-8
942
2.515625
3
[]
no_license
/** * Created by son_jp on 9/1/2017. */ $(document).ready(function(){ var password = $('#password'), confirm_pass = $('#password-confirm'), form = $('#frmResetPass'), flag = true; form.find('.help-block').hide(); $('#btnSubmit').on('click', function(e){ e.preventDefault()...
true
d4c23ffcebc41728f1948d3e32e3c7f23018de76
JavaScript
AriaFantom/coutdown
/src/App.js
UTF-8
1,672
2.9375
3
[]
no_license
import "./App.css"; import { useState, useEffect, useRef } from "react"; function App() { const [days, setdays] = useState("00"); const [hours, sethours] = useState("00"); const [minutes, setminutes] = useState("00"); const [seconds, setseconds] = useState("00"); let interval = useRef(); const startimer ...
true
e653074d423ba136ca9a94c5c700b751a8385c07
JavaScript
ja1felipe/ProjSoft
/lab03/scoord2.js
UTF-8
2,945
3.15625
3
[]
no_license
class Disciplina { constructor(id, nome, creditos, pre){ this._id = id; this._nome = nome; this._creditos = creditos; this._pre = pre; } get_nome() { return this._nome; } set_nome(nome){ this._nome = nome; return true; } get_id(){ ...
true
970463ba73a353c33881518f4d7f4548cdf541be
JavaScript
shirinzadeh/ambulance-demo
/script.js
UTF-8
4,083
2.984375
3
[]
no_license
//HIDE NAVBAR MENU const hideMenu = document.querySelector('#hideMenu'); const nav = document.querySelector('.navbar'); hideMenu.addEventListener('click',() => { nav.classList.toggle('hide') }) //Drag and Drop const listContents = document.querySelectorAll('.list__content'); const listItems = document.querySelecto...
true
08a4136a29532a4c6686f88e64b1f3f73497e489
JavaScript
phongduybui/streamy-website
/src/reducers/authReducer.js
UTF-8
991
2.59375
3
[]
no_license
import { SIGN_IN, SIGN_OUT } from '../actions/types'; const INITIAL_STATE = { isSignedIn: null, profile: { userId: null, userName: null, userImgUrl: null } }; // eslint-disable-next-line import/no-anonymous-default-export export default (state = INITIAL_STATE, action) => { swit...
true
80510cbce13670d9040f60c2efe9cffbd9c3f45f
JavaScript
elmondinio/axios
/src/Components/FetchDataClassComponent.js
UTF-8
731
2.84375
3
[]
no_license
import React from 'react'; import axios from 'axios'; class FetchData extends React.Component { state = { persons: '' } getData() { axios.get('https://jsonplaceholder.typicode.com/users') .then( (response) => { this.setState({ persons: respons...
true
0d025759b0d44893cb3373cfb348ba154d2dfca9
JavaScript
Wikunia/ChromeDown2Dir
/bg.js
UTF-8
3,081
2.640625
3
[]
no_license
/** * Ole Kröger (o.kroeger@wikunia.de) * DownloadManager for Chrome * The right place for all your downloaded files */ chrome.downloads.onDeterminingFilename.addListener(function(item, suggest) { console.log(item); // generate an array with all regular expressions and tupel of a filename part and a directory di...
true
b3bd151547a21fdc67c900f940dfedfedb53e8c8
JavaScript
HerbertVeloso/reactgamejamplus
/src/components/Countdown.js
UTF-8
3,375
2.921875
3
[]
no_license
import React from 'react'; class Countdown extends React.Component { constructor(props) { super(props); this.state = { days: 0, hours: 0, min: 0, sec: 0, pt: { titulo: "Início da próxima fase em:", dia: "Dias", hora: "Horas", min: "Mins", ...
true
c6174873db78a37d24c15c3c2b85f7331bd935ff
JavaScript
DWFEonline4/Sprint_2
/Encuentro_23_Funciones_Orden_Superior/script.js
UTF-8
2,171
4.03125
4
[]
no_license
const words = ['spray', 'limit', 'elite', 'exuberant', 'destruction', 'present','nueva palabra']; //const result = words.filter(word => word.length > 6); const result = words.filter((word) => {word.length > 6}); function validarTamano(word, pos){ console.log("llego la palabra "+word+" de la posición "+pos); le...
true
495855754bef81ae18ea3d01d87e173c755d9640
JavaScript
songrunyu926/react-hook-zp
/src/redux/action-creators.js
UTF-8
1,811
2.671875
3
[]
no_license
import { User } from '../api' import { AUTH_SUCCESS, RECEIVE_USER, RESET_USER } from './action-type' //user 的 action //授权成功的同步action const authSuccess = user => ({ type: AUTH_SUCCESS, data: user }) //修改用户信息成功的同步action const receiveUser = user => ({type: RECEIVE_USER, data: user}) //重置用户信息的同步action const r...
true
2fc5a67fdf07d1ada2c82d42043c4f85c53dc260
JavaScript
juliocd/react_js
/react-complete-guide/src/components/Persons/Person/Person.js
UTF-8
3,305
2.53125
3
[]
no_license
import React, {Component, Fragment} from 'react'; import clasess from './Person.css'; import Aux from './../../../hoc/Aux'; import withClass from './../../../hoc/WithClass'; import PropTypes from 'prop-types'; import AuthContext from './../../../context/auth-context'; class Person extends Component { constructor(p...
true
d5ba4b004e87d66d19b60d0bcfd2eea2ee114e48
JavaScript
grkmtsn/js-musts
/1-prototype.js
UTF-8
2,105
4.1875
4
[]
no_license
// 1. JavaScript Prototype // JavaScript'te nesne oluşturmanın çeşitli yolları vardır. // JavaScript'te nesne oluşturmanın yollarından biri yapıcı(constructor) method yöntemidir. function Phone(brand, model) { this.brand = brand; this.model = model; this.getDetails = function () { return this.brand + ' ' +...
true
e2684a535c68a95eacb8110435f04c097c211dff
JavaScript
charlieknow/Frontend-09-Template
/Week_07/programming/StringToNumber.js
UTF-8
914
3.4375
3
[]
no_license
//StringToNumber 和 NumberToString 两个函数 function StringToNumber(str){ let val; //负数 let hasMinus = str.startsWith('-'); if(hasMinus){ str = str.slice(1); } if(str.indexOf('0b') === 0){//二进制 console.log('二进制转为十进制'); val = parseInt(str.slice(2),2) }else if(str.indexOf(...
true
157b78168ba63725f4ce315d2646197d793a8075
JavaScript
yanqixuan/wxapp
/云开发/5.7skill/flatten.js
UTF-8
441
2.875
3
[]
no_license
// 推平数组 const _= require('lodash'); const arr1 = [99,0,33,[101,202,[303,[404]]],1,2]; const arr2 = [2,1,2]; const users = [ {user:'fred',age:48}, {user:'bob',age:43}, {user:'fred',age:40}, {user:'bob',age:36} ] const flattenArr1 = _.flattenDeep(arr1); const sortedUser = _.sortBy(users,['user'...
true
7c70857bd78b89ad78375de2d10b1b3a93abea22
JavaScript
wangchengpeng/WebDemo
/08-nodjs/17-07-28-跨域/code-01/01_同步表单GET请求/app.js
UTF-8
936
2.65625
3
[]
no_license
'use strict'; const http = require('http'); const fs = require('fs'); // 引入url 核心对象 const url = require('url'); //1: 返回index.html //2: 配置对应登录接口处理 //创建服务器对象 const server = http.createServer((req, res) => { if (req.url === '/') { fs.readFile('./index.html', (err, data) => { if (err) throw err; ...
true
51c94c1a4d908670c500903459afd3a87f3ecf6f
JavaScript
Tonylu11/tonylu11.github.io
/DAWEC/Tema3/ListadoDate/js/ejercicio8.js
UTF-8
903
4.03125
4
[]
no_license
/** * 8.Implementa el método calcularEdad() que devuelva la edad indicando la fecha de nacimiento. * En caso de tener menos de un año, indicar días y meses transcurridos. * Indicar errores. * Realizado por Antonio Luque Bravo */ { let calcularEdad = function (fecha) { if (fecha instanceof Date) { let fechaAct...
true
df15beb0bb575ecfa09573da2982059d9d33630c
JavaScript
MiguelVera08/Javascript-Playground
/Spherevolume.js
UTF-8
1,035
3.390625
3
[]
no_license
//Javascript Program to Calculate the volume of a sphere <html lang="en"> <head> <meta charset="utf-8"> <title>Find the Volume of a Sphere</title> <style> body{padding-top: 30px;} label,input{display: block;} </style> </head> <body> <p>Please put radius value to get volume of a sphere.</p> <form action="" meth...
true
909ef9e87608c7fb907edc0d83e3585eb3203a94
JavaScript
utamilah/checkpoint-02
/stoplight.js
UTF-8
471
2.84375
3
[]
no_license
$(document).ready(function() { //Red Light $("#red").on('click', function(){ $(this).toggleClass('active'); $("#yellow").removeClass('active'); }); //Yellow light $("#yellow").on('click', function(){ $(this).toggleClass('active'); $("#red").removeClass('active') //Switch to Red after 2 sec...
true
58e7bce54ee6a64443c88f7088d8df1c239014f1
JavaScript
RomanSchigolev/interview_tasks
/task_5/index.js
UTF-8
691
4.5625
5
[]
no_license
/* В функцию передается массив из целых чисел(list) и число(num). Необходимо написать функцию, которя вернет булево значение true в случае, если в переданном массиве есть два числа, сумма которых равна num, иначе false. */ const check = (list, num) => { for (let i = 0; i < list.length; i++) { for (let j = 1; j <...
true
d39789721d4235defcdec1bc68e44635e5790592
JavaScript
mordas/RndQuote
/src/App.js
UTF-8
2,323
3
3
[]
no_license
import React, { Component } from 'react'; import './App.css'; class App extends Component { constructor(props){ super(props); this.state = { index: 1 }; this.newQuote = this.newQuote.bind(this); }; newQuote = () => { this.setState({ index: Math.floor(Math.random() * 6) } ) }; render() { const quotes = [ { quote: 'I...
true
34ceeccf6d25773418262cfb5cccb288b0d8c5dc
JavaScript
MedAppJamTeam14/iPallor-Visual-Studio-Apache-Cordova-App
/IPallor_App/IPallor_App/www/views/diagnosisDetails/diagnosisDetails.controller.js
UTF-8
1,306
2.734375
3
[]
no_license
angular.module('app') .controller('DiagnosisDetails.DetailsCtrl', function (DiagnosisFactory) { var vm = this; angular.extend(vm, { currentDiagnosis: DiagnosisFactory.getCurrentDiagnosis() }); }) .controller('DiagnosisDetails.DataPointsCtrl', function (DiagnosisFactory) { var vm = this; var canvas; ...
true
64ae37c33dcc613b55771219a969234ce7ad9039
JavaScript
xtayuyax/COMP3133
/Week3/exercise2/exercise2.js
UTF-8
763
3.640625
4
[]
no_license
const promise = require("promise"); let check = (array) => { return array.every(function(type){ return typeof type === "string"}) } let capitalizeArray = (array) =>{ let result = array.map(string => string.toUpperCase()); return result; } let makeUpperCase = (array) => { let promise = new Promise(fun...
true
d19ccc3f2f75181d1c666411f83719908ddbfb61
JavaScript
codingforkicks/Badge3
/Final/Vending Machine/js/home.js
UTF-8
7,661
2.953125
3
[]
no_license
class Home { constructor() { } run() { // Call function this.disableFormInput(); this.getDataItem(null); this.whenAddMoneyClick(); this.whenPurchaseClick(); this.whenChangeReturnClick(null); } disableFormInput(){ // Disable form input document.getElementById('total_money').di...
true
b998a6a1361f3d936195fa05c8978e9df69df0fa
JavaScript
sagarpanthi/My-app
/src/components/practice.js
UTF-8
795
2.59375
3
[]
no_license
/* Type rcjc and press enter to create a class.*/ /*Return always return only one thing. So, <BrowserRouter> </BrowserRouter> is used to wrap. This creates parent element. We can import this from react-router-dom: Import {BrowserRouter} from ‘react-router-dom’ */ /* As we know by default Route le props pass gareko hu...
true
62104045833a78893eba2ad50261a6c084873313
JavaScript
jj280522/ws
/more/desktop/menus/script.js
UTF-8
2,393
2.6875
3
[ "MIT" ]
permissive
var remote = require('remote'); var Menu = remote.require('menu'); var MenuItem = remote.require('menu-item'); var submenu = new Menu(); submenu.append(new MenuItem({ type: 'checkbox', label: 'box1' })); submenu.append(new MenuItem({ type: 'checkbox', label: 'box2' })); submenu.append(new MenuItem({ type: 'checkbox'...
true
6db543c1c3ed904efa913a3f1155e0f764e8a32a
JavaScript
thomas-gfr/quizz-js
/Includes/js/timer.js
UTF-8
860
3.109375
3
[]
no_license
var secondes = 0; var minutes = 0; var click = false; $("#play").click(function () { Start(); }); $("#stop").click(function () { Stop(); }); function chrono() { secondes += 1; if (secondes > 59) { minutes += 1; secondes = 0; } if (minutes < 10 && secondes < 10) { $("#timer").html("0" + minutes ...
true
a410fc07bb397e97c4c4b2732a35f683b702f617
JavaScript
thinkful-ei25/CallMeter-client
/src/actions/token.action.js
UTF-8
703
2.59375
3
[]
no_license
import { API_BASE_URL } from '../config'; /** * Obtain a Twilio capability token for the appropriate account * @param accountSid * @param authToken * @returns {Promise<string>} capability token * @throws error on auth failure */ export const fetchCapabilityToken = (accountSid, authToken) => { const options = ...
true
d64136c6e0b7c3e24e0b3a60515a674dd609ec23
JavaScript
reganlaurell/winter-scene-animation
/main.js
UTF-8
3,204
2.890625
3
[]
no_license
/* Regan Laurell */ "use strict"; let global; function init(){ global = new Global(); drawBackground(); global.snowstorm.draw(); global.drawClouds(); } function drawBackground(){ global.background.drawGrass(); global.background.drawStormSky(); } function animateScene(){ //global.running = false; if(global....
true
c80c9e354ee2ba3421b1d2531d85e1b1d5db8dc1
JavaScript
fabianlema15/liquor-store-server
/test/test-helper.js
UTF-8
4,659
2.59375
3
[]
no_license
const bcrypt = require('bcryptjs'); const jwt = require('jsonwebtoken'); function makeUsersArray(){ return [{ user_code: 112233, first_name: 'Fabian', last_name: 'Lema', address: 'Bad image <img src="https://url.to.file.which/does-not.exist" onerror="alert(document.cookie);">. But not <strong>all</st...
true
baba2765eedf9e5db34d972d0f81b7c531940039
JavaScript
aastha3298/University-Directory-System
/client/StoreUniversity.js
UTF-8
3,588
2.921875
3
[]
no_license
const BASE_URL = "http://localhost:3000"; const SAVE_HOOK_URL = BASE_URL + "/saveUniversity"; const DELETE_HOOK_URL = BASE_URL + "/deleteUniversity"; const GET_HOOK_URL = BASE_URL + "/getUniversity"; const GET_ALL_HOOK_URL = BASE_URL + "/getAllUniversities"; function wipeTable() { $("#displayTable").find("tr:gt(0)...
true
5334fe679eadf3a008e79ceae8484b5f7cbb2f1d
JavaScript
blueones/LeetcodePractices
/templates-AndrewWangLeetcode/templates/Trie.js
UTF-8
909
3.078125
3
[]
no_license
const Trie=function(){ let trie = {} insert = (wordArray)=>{ let tempTrie = trie wordArray.forEach(letter=>{ if(!tempTrie[letter]){ tempTrie[letter]={exists:true} } tempTrie = tempTrie[letter] }) tempTrie["end"]=true } f...
true
010ea20f108e715a6bc275aef97c34f14a1fac63
JavaScript
albertisfu/discretas
/files/js/ajax.js
UTF-8
15,746
3.125
3
[ "MIT" ]
permissive
$('.actions').on('click', ".coloreo", function() { //Enviar lista de aristas del grafo sin simetrias, ejemplo: var edges=[] for (var i = 0; i < arregloAristas.length; i++) { var puntos = arregloAristas[i].split(","); var a=puntos[0]; var b=puntos[1]; edges.push({[a]:b...
true
045b53884b21358740c1039c27147a2d38b436e6
JavaScript
nickicolem/Land-of-Karchan
/karchan/js/karchan.js
UTF-8
1,803
2.890625
3
[]
no_license
function bigtalk() { var form = document.getElementById("CommandForm");; for (var i = 0 ; i < form.length ; i++) { var child = form.childNodes[i]; // alert(child.type); // alert(child.name); // alert(child.value); if (child.type == "text") { // alert("Text found!"); var message = child.value; v...
true
b05005d6309db18b894da589acf13dbb8d7e4da8
JavaScript
uncarman/fireFightingCollector
/test/testDeviceClient.js
UTF-8
938
2.78125
3
[]
no_license
'use strict'; var net = require('net'); // 指定连接的tcp server ip,端口 var options = { host : '47.100.196.152', port : 7000, } var tcp_client = net.Socket(); var isConnected = false; connect(); // 连接 tcp server function connect() { tcp_client.connect(options, function(){ console.log('connected to Server'); isCo...
true
2bdbfc5fd0bcd44b24c9405a9bc892d4164b8d83
JavaScript
realonlytomd/burger
/config/orm.js
UTF-8
2,773
3.75
4
[]
no_license
// * In the `orm.js` file, create the methods that will execute the necessary MySQL commands // in the controllers. These are the methods to use in order to retrieve // and store data in the database. // * `selectAll()` // * `insertOne()` // * `updateOne()` // * Export the ORM object in `module...
true
519bd2529b1ff1b7b4408fd154eb5da2da1c3c2d
JavaScript
epiny/vagrant
/www/test.js
UTF-8
3,392
2.578125
3
[]
no_license
var http = require('http'), port=80; var level = require('level') // 1) Create our database, supply location and options. // This will create or open the underlying LevelDB store. var db = level('/home/vagrant/db/level/mydb'); var user=require('imap_inc_account.js'): //checking the last var Imap = require(...
true
3d1e9568789f86b715e614086937b326e8d4d02b
JavaScript
ian-kevin126/JavaScript-Knowledges
/src/5_LeetCode/LeetCode-Algorithms_3/k_distinct_characters.js
UTF-8
1,034
3.984375
4
[]
no_license
// 340. Longest Substring with At Most K Distinct Characters // // // Given a string, find the length of the longest substring T that contains at most k distinct characters. // // Example 1: // // Input: s = "eceba", k = 2 // Output: 3 // Explanation: T is "ece" which its length is 3. // Example 2: // // Input: s =...
true
da7ed7e5352b771a58a5079214f4421893afa20f
JavaScript
adarshav/full-stack-mern
/precourse/javascript/object.js
UTF-8
547
4.4375
4
[]
no_license
//an object is unordered object/string indexed collection of values var person = { //key :value firstName:'Adarsha', country:'India', details: function() { return 'if the the function is not returned I will kill u'; } } console.log(person['firstName']); console.log(person.country); //here p...
true
659250af0e672cdbfc38867790bb347bd1c1c785
JavaScript
digitalinteraction/past-paths
/app/webroot/js/nodes.js
UTF-8
4,772
2.765625
3
[]
no_license
var width = window.innerWidth, height = window.innerHeight; d3.select(window).on('resize', resize); var svg = d3.select("body").append("svg") .attr("width", width) .attr("height", height); // svg.append("svg:defs").selectAll("marker") // .enter().append("svg:marker") // .attr("id", String) // ...
true
4cc7d795043750835c5ab83aebd82d2940b16f4a
JavaScript
ajaishakya/Validation
/validation.js
UTF-8
2,635
3.34375
3
[]
no_license
function validate() { var fname=document.getElementById("fname").value; var lname=document.getElementById("lname").value; var uname=document.getElementById("uname").value; var password=document.getElementById("password").value; var cpassword=document.getElementById("cpassword").value; v...
true
61b0fafcc838f02b860eed8a200927431a311da8
JavaScript
chuhotay-dev/es6-oop-bc12
/TestingOnline/models/MultipleChoice.js
UTF-8
1,752
2.9375
3
[]
no_license
import Question from "./Question.js"; class MultipleChoice extends Question { constructor(id, questionType, content, answers) { super(id, questionType, content, answers); } renderAnswers() { const content = this.answers.map(answer => { return ` <div class="col-6...
true
6629cfc9f6b5a4df1bc6d514a4938523401cce7d
JavaScript
jmkobyluck/web-231
/week-5/kobyluck-exercise-5.3.js
UTF-8
1,679
4.3125
4
[]
no_license
/* ============================================ ; Title: Kobyluck Exercise 5.3 ; Author: Professor Krasso ; Date: 11 Janurary 2020 ; Modified By: Jonathan Kobyluck ; Description: Object Collections ;=========================================== */ // Require statement that imports my header file const header = requir...
true
4f83b7742a81ce9f10a949417c1598cfeea10c06
JavaScript
vinnypee88/firstfullstackproject
/routes/signup.js
UTF-8
874
2.734375
3
[]
no_license
//handles the logic to register a user, const router = require("express").Router(); const authorize = require("../models/auth-models"); const authorizeInstance = new authorize(); const bcrypt = require("bcrypt"); router.get("/", (req, res) => { res.send("This is the signup page"); }); router.post("/", async (req, r...
true
a92ef7ed0a36a89b7034a8b9e629edcbe385f5b2
JavaScript
transduce/transduce
/src/_internal.js
UTF-8
5,804
2.703125
3
[ "MIT" ]
permissive
import {protocols, isReduced, unreduced, identity, isArray, isFunction, isString} from './util' const {init: tInit, step: tStep, result: tResult} = protocols.transducer const symIter = protocols.iterator // given a reduce implementation, returns a transduce implementation // that delegates to the implementati...
true
afa3007e5d1fcade69be2835eea084545f48d3e6
JavaScript
bhuang11/ZombieGame
/user.js
UTF-8
863
2.8125
3
[]
no_license
// Populate a global variable for the spaceship function InitializeUser() { var canvas = document.getElementById('myCanvas'); var context = canvas.getContext('2d'); context.scale(1,1); USER = { x : 300, y : 150, rotation : 0, health : 3, positions : [ { x : 0, y : 3 ...
true
5aaaa9ae257940006b44d2d77c7a43ee4071d021
JavaScript
2010USFJava/IsaAndChris
/TRMS/src/main/webapp/js/approve_deny_reimbursements.js
UTF-8
1,753
2.671875
3
[ "MIT" ]
permissive
window.onload = function() { console.log("approve_deny_reimbursements.js window.onload"); makeRequest("http://localhost:8080/TRMS/getforms.json", displayRows); // In xhr.js } // Implement row creation method displayRows = function(dbRows) { table = document.getElementById("reimburseReqTable"); for (var i = dbRows....
true
5c9ba030bac1e60b157b77224abbf0f85ab15b48
JavaScript
JLoweDev/js-dynamic-landing-page
/script.js
UTF-8
3,919
3.6875
4
[]
no_license
// DOM Elements const time = document.getElementById('time'); const greeting = document.getElementById('greeting'); const name = document.getElementById('name'); const focus = document.getElementById('focus'); const darkmode = document.getElementById('toggledm'); let dark = false; // Show Time function showTime() { ...
true
fbe293d91af452263a92e409fbe7a6485ba61d28
JavaScript
AzzarCM/Parcial
/parci/Michelle-system/convertidor.js
UTF-8
1,157
2.8125
3
[]
no_license
medidaTot = 0; var convertor = { convertir(medida, medidaActual, medidaPosterior, tipoMedida) { switch (tipoMedida) { case "l": if (medidaActual == "m" && medidaPosterior == "cm") { medidaTot = medida * 100 } else if (medidaActual == "km"...
true
5f980fe641e8f8699c2594d1a1688baeed851883
JavaScript
jeppemolin/14-JS-och-DOM
/uppgift 14 Javascript och Dom/testbed.js
UTF-8
486
2.8125
3
[]
no_license
//javascript function changeText(){ var rubrik = document.getElementById('rubrik'); rubrik.innerHTML = 'Du clickade'; } function changecolor(){ var contain = document.getElementById('contain').style.backgroundColor = "lightblue"; } function changecoloragain(){ var contain = document.getElementById('co...
true
37b3ff3070947e82b2f948a1231153e001c58113
JavaScript
austinloveless/Favorite-Books
/queries.js
UTF-8
3,090
2.609375
3
[]
no_license
const database = require("./knex/knex"); module.exports = { //books queries listBooks() { return database("books").select(); }, readBooks(id) { return database("books") .select() .where("id", id) .first(); }, createBooks(books) { return database("books") .from("books") ...
true
526cfd4f79aaa9681df6b02c2973484590239844
JavaScript
chikeozulumba/questioner-andela-bootcamp
/server/controllers/User.js
UTF-8
1,470
2.609375
3
[]
no_license
import { errorRxx, response2xx, } from '../helpers/handlers'; import { comparePassword, generateToken, } from '../helpers/auth'; import UserModel from '../models/User'; /** * Create Meetup Class */ class User { /** * @name Create * @param {object} req * @param {object} res * @returns {object} * @descri...
true
036713169c90ece9c3ffa880beb54b650196a371
JavaScript
Cesar-Almeida/SPRINT
/NLW/Aula3/scripts/home.js
UTF-8
445
2.859375
3
[]
no_license
// vai procurar o a que está servindo como button const buttonsSearch = document.querySelector("#page-home main a") const modal = document.querySelector("#modal") const close = document.querySelector("#modal .header a") buttonsSearch.addEventListener("click", ()=>{ // vai add class hide modal.classList...
true
c7c7e67e9e3e80c81614d0e46237fab03b85f2ce
JavaScript
HRR49Team8/amazonProductDescription
/server/csv/populatePGProductsCSV.js
UTF-8
1,674
2.65625
3
[]
no_license
const path = require('path'); const fs = require('fs'); const { writeCSV } = require('./CSVwriters.js'); const { makeProduct } = require('./randomDataWriters.js'); console.log('writing to Postgres CSV...'); const deleteFileIfExists = (dest) => { if (fs.existsSync(dest)) { try { fs.unlinkSync(dest); ...
true
549a7eba9e9311bdb974d8e5599fb8e78a1d8a2e
JavaScript
deskach/hrank
/main.js
UTF-8
560
2.546875
3
[ "MIT" ]
permissive
/** * Created by Dzianis on 22/06/2016. */ var bijectionFunctions = require('./bijection_functions'); var cryptography = require('./cryptography'); var getData = require('./get_data'); var challenge = require('./week_of_challenge'); var dataStructures = require('./data_structures'); (function (funcArray, idx, input)...
true
037b08d8dcea056d39ee343cd257410ac4ba9ae7
JavaScript
saswata792/eduvir
/src/components/signup.js
UTF-8
5,992
2.546875
3
[]
no_license
import React from "react"; import './signup.css'; import { useHistory } from "react-router-dom"; import firebase from "./fire.js"; import Mainchecker from "./mainchecker"; var db=firebase.firestore(); function Signup() { let history=useHistory(); const [inst,setinst]=React.useState([]) React.useEffect(()=> { ...
true
0d236915afa10100bb3958145f38716cef2b414d
JavaScript
JoshBarr/yasha
/core/static_src/js/utils/index.js
UTF-8
3,198
2.578125
3
[]
no_license
export function getCookie(name) { var cookieValue = null; if (document.cookie && document.cookie != '') { var cookies = document.cookie.split(';'); for (var i = 0; i < cookies.length; i++) { var cookie = cookies[i].trim(); // Does this cookie string begin with the name we...
true
56df2fe66d7f5b7a110bf9b1636ee6bc5f2d9de7
JavaScript
filipszczepanski/warsawjs-workshop-8-social-network
/app/Entities/User.test.js
UTF-8
1,247
2.6875
3
[ "MIT" ]
permissive
'use strict'; const User = require('./User'); const assert = require('assert'); describe('#constructor', () => { it('should not register the user right away', () => { const user = new User(); assert.equal(user.isRegistered(), false); }); }); describe('#register', () => { it('should make the user regis...
true
503f99c6657e8006a1f35f7910ee2f6a5732c2fa
JavaScript
puneat/js_learn
/Coding_Challenges/coding_challenge_1.js
UTF-8
448
3.453125
3
[ "MIT" ]
permissive
// BMI=mass/height^2; var massJohn=prompt('ENTER MASS OF JOHN'); var massMark=prompt('ENTER MASS OF MARK'); var heightJohn=prompt('ENTER HEIGHT OF JOHN'); var heightMark=prompt('ENTER HEIGHT OF MARK'); var bmiMark, bmiJohn; bmiMark=massMark/(heightMark*heightMark); bmiJohn=massJohn/(heightJohn*heightJohn); console.l...
true
81e19969ab3d3affdca173ad694d8ddacf9d570c
JavaScript
Kevin-Kawai/botbot
/groovyCommandGenerator.js
UTF-8
395
2.59375
3
[]
no_license
const YOUTUBE_BASE_URL = 'https://www.youtube.com' const YoutubeUrlGenerator = (resouceId) => { return YOUTUBE_BASE_URL + '/watch?v=' + resouceId } const groovyCommandGenerator = function(youtubeData) { return youtubeData.items.reduce((acc, curVal) => { return acc + `-q ${YoutubeUrlGenerator(curVal.snippet.re...
true
c57e4668741f6254848adc2d50b496a8c71c245d
JavaScript
Johex/props
/elsKijkAlsjeBliefHierVoorHetBestandBetreftMijnVraag.js
UTF-8
4,903
2.8125
3
[]
no_license
const express = require('express'); const app = express(); const bodyParser = require('body-parser'); const path = require('path'); const port = 3000; const mysql = require('mysql'); var test; var todoList = []; var finishedList =[]; // connect to the database var con = mysql.createConnection({ host: "localhost",...
true
fbde874424d13ac8cdf9bfbeb8097ad7d4fa11ea
JavaScript
mozillazg/mzgblog
/themes/iNove/_/comment_mod.js
UTF-8
4,046
2.90625
3
[ "MIT" ]
permissive
function switchTab(showPanels, hidePanels, activeTab, activeClass, fadeTab, fadeClass) { //看其原来方法,无非就是给他换个类名 //用jQuery的方法,先把原类名删了,再增加一个新类名,搞定 $("#"+activeTab).removeClass().addClass(activeClass); $("#"+fadeTab).removeClass().addClass(fadeClass); var panel, panelList; panelList = showPanels.split(',');...
true