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
344487f6b11e9e7cd1b34db9cd2cc7eb7b90e4d5
JavaScript
bpacana/bpacana.github.io
/Gif-Tastic/docs/app.js
UTF-8
4,227
3.203125
3
[ "LicenseRef-scancode-public-domain" ]
permissive
// Initial array of topics var topics = ["Rick", "Negan", "Carl", "Darryl", "Michonne", "Glen", "Maggie", "Carol", "Rosita", "The Governor", ]; // Code to pause one of the audio files to make it browser compatible var isChrome = /Chrome/.test(navigator.userAgent) && /Google Inc/.test(navigator.vendor); if(...
true
d49e91aa714dddb7227729b76f2053fda2c65a67
JavaScript
VyomDave/Recognize-me
/main.js
UTF-8
1,008
2.75
3
[]
no_license
Webcam.set({ width:300, height:300, img_format:'png', png_quality:90 }); Webcam.attach("#camera"); function capture(){ Webcam.snap(function(snap){ document.getElementById("snapshot").innerHTML=`<img src=${snap} id="output">`; }) } console.log(ml5.version) classifier=ml5.imageC...
true
f7f613de5c614321d46e82e5b2491176e7536dbe
JavaScript
ugurgelisken/javascript_ecmascript_tutorial
/JAVASCRIPT/functions/function_basic/index.js
UTF-8
116
2.84375
3
[]
no_license
function getTime(){ let date = new Date(); document.body.innerHTML = date.toLocaleTimeString(); } getTime();
true
da6039eba6387c85affbb749f3ad7db71e7c8dcc
JavaScript
rahulraj6026/ReactCourse
/todoapp/src/Context/reducer.js
UTF-8
837
3.328125
3
[]
no_license
import {ADD_TODO, REMOVE_TODO} from './action.types' //when we use this file we are going to be provided with state and action //action is what type of action is to be done export default (state, action) => { //type is the action which we need to do switch (action.type) { //... to load the state and pa...
true
625fd5ce431cd0c6700bc51c532dd5c9ba5cf189
JavaScript
cocagolau/2015-01-HUDIWEB-CHOCOBANANA
/webapp/commons/js/personal/todo.js
UTF-8
4,304
2.671875
3
[]
no_license
/** * Created by dahye. * Module Patternized by dahye on 2015. 4. 18 */ ubuntudo.ui.todoManager = (function() { //HTML에 의존하는 클래스 네임 var CLASSNAME = { PAST: "past", TODAY: "today", FUTURE: "future", }; //CSS에 의존하는 리스트 템플릿 var LIST_TEMPLATE = '<li class="todo"><span class="tid"><%=tid%></...
true
bce89e51829c00693af917c9d59fbf770f8e0a22
JavaScript
CodingAbdullah/AbdulM95
/src/Components/DataDevelopment/DataDevelopment.jsx
UTF-8
1,899
2.609375
3
[ "MIT" ]
permissive
import React from 'react'; import '../../css/datadevelopment.css'; const DataDevelopment = () => { return ( <div className="data-development-section padding-box"> <h1 className="skill-heading data-development">Languages & IDEs</h1> <h5 className="programming-languages-heading">Addi...
true
3f2ebdd27f3445a6a92abd3648735cde44b2ba96
JavaScript
nickpalmer/react-lazy-ssr
/test/support/hydrate.js
UTF-8
3,252
2.703125
3
[ "MIT" ]
permissive
/* -------------------- * react-lazy-ssr module * Tests utility functions * Client-side hydration * ------------------*/ 'use strict'; // Modules const pathJoin = require('path').join, util = require('util'), {JSDOM, ResourceLoader, VirtualConsole} = require('jsdom'), // cheerio = require('cheerio'), fs = req...
true
5fbedc25d697d5c997e0943a9627096f8078a49b
JavaScript
ChiaShan/Multi-pages
/fire/firecaracter.js
UTF-8
869
2.5625
3
[]
no_license
(function () { var nowX, nowWidth, offset; var slidebar = $('#arrowboth'); var now = $('.now'); var container = $('#container'); var slidebarWidth = slidebar.outerWidth(); slidebar.on('mousedown', function(e) { nowX = container.offset().left; nowWidth = container.outerWidth(); var slidebarX = ...
true
cfaf84961fc6ee73623d7348adc0483d38b53af2
JavaScript
marcelo-024/desarrollo_web_2019
/JS_OOP/21_triangulo.js
UTF-8
1,218
4.3125
4
[]
no_license
/** Function (Class) Triangulo * @property {number} _lado1 * @property {number} _lado2 * @property {number} _lado3 * * @method {object} getPerimetro * @method {object} mostrar */ function Triangulo(x = 0 , y = 0, z = 0) { this._lado1 = x this._lado2 = y this._lado3 = z } Triangulo.prototype...
true
732ef785f28292f15c7dd6ff6b15e7d3e38ca72c
JavaScript
longbot2kk/hack
/media/js/index.js
UTF-8
1,005
2.921875
3
[]
no_license
let sp= document.getElementById("products") function asp(img,name ,brand, size, color, price) { sp.insertAdjacentHTML("beforeend", ` <div class = item> <div class="productImg"><img src="${img}" alt="a"></div> <div class = itemName> <b>${name}</b> </div> <div> ...
true
ec6b94d4b59d98c6be4e0385b9ad673484a5c928
JavaScript
tangzhirong/algorithm_code
/数组/mergeIntervals.js
UTF-8
559
3.546875
4
[]
no_license
// 合并区间 [[1,3], [2,6], [8,10], [15,18]] let merge = (intervals) => { if(!intervals || intervals.length === 0) { return []; } let result = [intervals[0]]; for (let i = 1; i < intervals.length; i ++) { // 重叠 if (intervals[i][0] < result[result.length - 1][1]) { result[...
true
f5209fcd56cae88b179119ea734371016d9a5c9a
JavaScript
Samsung/Castanets
/chrome/browser/resources/chromeos/wallpaper_manager/js/progress_manager.js
UTF-8
3,895
2.859375
3
[ "BSD-3-Clause" ]
permissive
// Copyright (c) 2013 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. /** * Monitor the downloading progress of a XMLHttpRequest |xhr_| and shows the * progress on |progressBar_|. * @constructor */ function ProgressM...
true
f1892f7a25cb86315ac4fb1d03cd6108f44fcf24
JavaScript
bemzj/snimay.com
/js/countryJoin.js
UTF-8
6,410
2.5625
3
[]
no_license
$(function(){ //开眼 $('.closeEye').click(function(){ $(this).siblings('input').attr('type','text'); $(this).hide(); $(this).siblings('.openEye').show(); }); //闭眼 $('.openEye').click(function(){ $(this).siblings('input').attr('type','password'); $(this).hide(); $(this).siblings('.closeEye').show(); }); ...
true
49d01657fc2c5d2caf197c6ff00563bf7cf5509b
JavaScript
tm57/openjub-js-sdk
/src/requests/02_node.js
UTF-8
956
2.609375
3
[ "MIT" ]
permissive
/** * Node implementations of request functions. * @namespace JUB.requests.node */ JUB.requests.node = {} /** * Makes a JSONP GET request from node. * @function JUB.requests.node.get * @param {string} url - URL to send request to. * @param {object} query - GET Query parameters to send along with the requ...
true
884adc3ffc11f5bd048d308bb06b46554797c249
JavaScript
AmaryllisNO/semester-project-2
/js/components/common/filterProducts.js
UTF-8
687
3.0625
3
[]
no_license
import { createProducts } from "./createProducts.js"; export function filterProducts(products) { // console.log(products); const filter = document.querySelector(".search"); filter.addEventListener("keyup", function () { const searchValue = event.target.value.trim().toLowerCase(); console...
true
fca8709f1aa30d6ec67a4c0fd9e7fc89ea99074c
JavaScript
vinicioslc/json-csv
/exporter.js
UTF-8
4,293
2.640625
3
[ "BSD-3-Clause" ]
permissive
const concat = require('concat-stream') const {Transform, Readable} = require("stream") const _get = require("lodash/get") const _defaults = require("lodash/defaults") const _assignIn = require("lodash/assignIn") const _reduce = require("lodash/reduce") //const debug = require("debug")("json-csv:exporter") const b...
true
3596b3eca7c63e2013bf8cb6cfff5ad211efe6b6
JavaScript
hamishtodd1/hamishtodd1.github.io
/ga/quantum/cga.js
UTF-8
14,886
2.953125
3
[ "MIT" ]
permissive
/* Show the hodge dual: take the movable plane you have, and get its normal line through the origin That line will cut the modelled space's line somewhere transformations using such points will be more like 180 rotations (?), that's why it's Cl(2) Reasons to take this super seriously ...
true
7f2b5630ae52b43df5fd53d32d1fd81c9b0162ef
JavaScript
ruthmathew/Lab_Exercise_-7
/Async/assets/js/callback.js
UTF-8
787
3.375
3
[]
no_license
// ASync Callback let login = function(username, password, callback) { setTimeout(() => { callback({ username }) }, 2000) } //Users Work let userWorks = function(username, callback) { setTimeout(() => { callback(["Android App for Uber", "UI Design for Google", "Web App for Facebook"]) ...
true
addcb60e776f4234d14f89186642ee49cdd36f22
JavaScript
dnkm/dktut-js101
/canvas/game.js
UTF-8
5,077
3.140625
3
[]
no_license
class Game { constructor(canvas) { this.canvas = canvas; this.ctx = canvas.getContext("2d"); this.width = canvas.width * 2; this.height = canvas.height * 2; this.procId = -1; this.units = []; this.items = {}; this.spawnUnits(20); this.spawnItems(100); this.gridWidth = 100; ...
true
4381da1dadaaeed0be3fdffc94dcf593cc5c77c4
JavaScript
hrvojedumancic/Dosadasnji_projekti
/osnove JavaScripta i JQueryja kolegij WebDiP/js/hdumancic.js
UTF-8
4,879
2.96875
3
[]
no_license
// 6. funckionalnost - kolačići // ime funkcije - PostojanjeKolacica() window.addEventListener("load", PostojanjeKolacica()); function PostojanjeKolacica() { kolacic = document.cookie; if(kolacic.length === 0) { document.cookie = "prvi dolazak; expires=Mon"; alert("Ova stranica sprema kolač...
true
683ce4ba4290f5940eb51668274db590ab064ac1
JavaScript
mprabs/Graphics-Lab-Works
/bla.js
UTF-8
493
3.40625
3
[]
no_license
function setup() { createCanvas(1000,900); background(255); drawline(50,500,50,50); } function drawline(x1,y1,x2,y2){ if(x1>x2||y1>y2){ k=x1; x1=x2; x2=k; l=y1; y1=y2; y2=l; } let dy=y2-y1,dx=x2-x1; if(x1==x2){ dx=dy; } else if(y1==y2){ dy=dx; } console.log("dx",dx) let p=2*dy-dx; let x=x1...
true
ea6e1f601ab971212acbb37f5a7ce8c6c783ec48
JavaScript
fearussia86/javascript-homework
/hometask-lesson3/js/lesson3.js
UTF-8
3,975
4.5
4
[]
no_license
//1. Написать функцию сравнения двух массивов. Функция принимает на вход два массива, //сравнивает их и возвращает true, если массивы равны и false, если не равны. let arrow1 = [1, 2, 3, 4]; let arrow2 = [5,6,7,8]; let i; function comparisonFunction (arrow1, arrow2) { if(arrow1.length !== arrow2.length) //Браузер пиш...
true
af15384eb05aec4b918a7a7787c5e03fa254cf56
JavaScript
Mvint2647/Team-Generator
/tests/Employee.test.js
UTF-8
766
3.328125
3
[ "MIT" ]
permissive
const Employee = require("../lib/Employee"); test("can you make a new Employee",() => { const e = new Employee (); expect(typeof(e)).toBe("object"); }); test("set name to constructor",() => { const name = "Kayla"; const e = new Employee(name); expect(e.name).toBe(name); }); test("set id to constr...
true
d7ac76b4823e3df00e0c2e8a3cd21beab05becbc
JavaScript
schavarria/wordgame
/common-words.js
UTF-8
2,019
3.078125
3
[]
no_license
$(document).ready(function(){ var commonWords = [ "the","of","and","a","to","in","is","you","that","it","he", "was","for","on","are","as","with","his","they","I","at","be", "this","have","from","or","one","had","by","word","but","not", "what","all","were","we","when","your","can","said","there", "use","an","...
true
d5d224faf543cab637397a7cb751266b010d1e84
JavaScript
immichjs/web-moderno-course
/seção 3 - fundamentos/funcao1.js
UTF-8
1,144
4.71875
5
[]
no_license
// Funções são blocos de construção fundamentais em javascript. Uma função é um // procedimento de javascript - Um conjunto de instruções que executa uma tarefa ou // calcula um valor. Para usar uma função, você deve defini-la em algum lugar no // escopo do qual você quiser chamá-la. // Função sem retorno. function i...
true
a88b2aa2d96ab28856f29ca39ce55c04c98ef599
JavaScript
gustcoder/Javascript2019
/functions.js
UTF-8
830
3.84375
4
[]
no_license
const RetornaNome = function() { return 'Gustavo Ramos' } const ArrowNome = () => 'Veio da Arrow: Gustavo Ramos' const ArrowReturn = (Item) => `O Item informado é ${Item}` const ArrowCondition = (Id) => { if (Id>7) { return "Ok!" } else { return "Não passou!" } } const ArrowUmaLi...
true
b8e8180d4a3b3c0b45d7051ea82bc5f1a4cc1155
JavaScript
Eyongkevin/reactnd-project-would-you-rather-starter
/src/components/Login.js
UTF-8
5,750
2.671875
3
[]
no_license
import React, { Component } from 'react' import { connect } from 'react-redux' import { Redirect } from 'react-router-dom' import { Select } from 'semantic-ui-react' import { handleLoginUser } from '../actions/auth' import logo from '../images/logo.png' import PropTypes from 'prop-types' class Login extends Component{...
true
26292aee83734d35a306469c550f2211273ea7ad
JavaScript
aliCamargo/corporate-expenses-tracker-app
/app/js/controllers/admin.trip.controller.js
UTF-8
2,223
2.53125
3
[]
no_license
/** * @author ctola */ (function() { angular .module('app') .controller('AdminTripController', AdminTripController); AdminTripController.$inject = [ '$filter', 'EmployeeFactory', 'TripFactory', 'toastr' ]; function AdminTripController( $filter, EmployeeFactory, TripFactory, toastr ...
true
f23a92d433c07d314e6958b435c07f0431730bc6
JavaScript
suriyanarasimman/node
/3.js
UTF-8
154
3.328125
3
[]
no_license
//Modules const name1 = 'suriya' const name2 = 'rahul' const fu = (name) => { console.log(`How are you ${name}`) } fu("sample") fu(name1) fu(name2)
true
d9c56bc8e7b6313d7031710e2bd25a8d0983af94
JavaScript
viniciusmeneses/curso-web-exercicios
/Exercícios/6 - Javascript - Objetos/6.11-heranca5.js
UTF-8
618
4.53125
5
[]
no_license
//Toda função tem um atributo chamado .prototype console.log(typeof String) console.log(typeof Array) console.log(typeof Object) //Adicionando novos atributos/funcoes dentro de um determinado //prototótipo, assim, quando um novo objeto for instanciado a partir dessa função //ele terá esses novos atributos/funcões Stri...
true
524808ad6d5cb101e113e4404885b700f9299afb
JavaScript
resv/MINDTIPPER
/WebContent/resources/js/validation/registerValidation.js
UTF-8
2,826
2.90625
3
[]
no_license
function regValidate() { var regUsername = document.forms["regForm"]["regUsername"]; var regEmail = document.forms["regForm"]["regEmail"]; var regConfirmEmail = document.forms["regForm"]["regConfirmEmail"]; var regPassword = document.forms["regForm"][...
true
1947464cae8605c3a4e86b45dfda5af88b2dd47e
JavaScript
errisy/bindable
/bindable/server.js
UTF-8
20,292
2.515625
3
[ "MIT" ]
permissive
"use strict"; //a simple node server const http = require('http'); const url = require('url'); const fs = require('fs'); const vm = require('vm'); const mime_1 = require('./mime'); var NodeServer; (function (NodeServer) { class HttpService { constructor(port) { this.port = 48524; thi...
true
e5d861de8efdc8fa93bba551f80ea5d85a4f6cde
JavaScript
Bwalker01/js-bootcamp-2021
/Practice/world-clock/main.js
UTF-8
1,773
3.1875
3
[]
no_license
let place = places[Math.floor(Math.random() * places.length)]; let city = place.name[Math.floor(Math.random() * place.name.length)]; const renderTime = function (place, city) { let time = new Date(); formattedTime = { hours: time.getHours(), minutes: time.getMinutes(), seconds: time.getSeconds(), }; ...
true
87b64282f0b0d88fc3ae55aa4c05c9b56e176af9
JavaScript
jean-smaug/example-react-mobx-todo
/src/stores/Todo.js
UTF-8
800
2.765625
3
[]
no_license
import { observable, action, computed } from "mobx"; class Todo { static id = 0; @observable todos = []; @action addTodo(name) { this.todos.push({ id: Todo.id, name, checked: false }); Todo.id += 1; } @action checkTodo(todoId) { this.todos = this.todos.map(todo => { if (todo.id === t...
true
5f62733d73523fc1f6011f0322ad33a44912c40d
JavaScript
likane/AudioPlayer
/player.js
UTF-8
833
2.5625
3
[ "MIT" ]
permissive
$(document).ready(function(){ //var audio = "Stairway.mp3"; //var playPic = $("<img>"); //var pausePic = $("<img>"); //var start = 1; $("#playButton").on("click",function() { var $this = $(this), audio = $this.siblings("audio")[0], if (audio.paused === false) { //audio.play(); //$("#playImage...
true
0d7bde13fc31e9b7f205c636ea027a214cdd594c
JavaScript
linkedpipes/applications
/src/frontend/src/ducks/applicationDuck/reducers.jsx
UTF-8
946
2.5625
3
[ "Apache-2.0" ]
permissive
import types from './types'; const INITIAL_STATE = { selectedApplication: {}, selectedApplicationMetadata: undefined }; const applicationReducer = (state = INITIAL_STATE, action) => { switch (action.type) { case types.SET_APPLICATION: return { ...state, selectedApplication: { ...state....
true
421a063f42061e05137dbc73a49a8109e6a0aa6c
JavaScript
Meterprete/DailyFresh
/static/n.js
UTF-8
752
3.390625
3
[]
no_license
var arr = [ {"name": "张三", "id": 1, age: 18}, {"name": "李四", "id": 2, age: 19}, {"name": "张三", "id": 3, age: 18}, {"name": "张三", "id": 4, age: 20}, {"name": "小明", "id": 5, age: 17}, {"name": "小白", "id": 6, age: 18} ]; let tempArr = []; let newarr = []; for (let i = 0; i < arr.length; i++) { ...
true
f76d4117002da8ee81e8533f66655752b16c651f
JavaScript
alexamy/thinknetica-rails
/app/assets/javascripts/utilities/sorting.js
UTF-8
1,414
3.375
3
[]
no_license
document.addEventListener('turbolinks:load', function() { const control = document.querySelector('.sort-by-label'); if(control) { control.addEventListener('click', sortRowsByLabel); } }); function sortRowsByLabel() { const table = document.querySelector('table'); const rows = table.querySelectorAll('tr'); c...
true
4fbf2bed322f98f94c691a19f0c63068abf53209
JavaScript
erxexpress/demo
/js/common.js
UTF-8
539
2.890625
3
[]
no_license
//------------------------------------------------------------------------------ // Common Functions // //------------------------------------------------------------------------------ function clearSelection(id) { $('#' + id).html("&nbsp;"); }; function setSelection(id) { $('#' + id).html("."); }; function...
true
ad8d801eb3d76b8e3f4c7947f82d822e3ae39d4e
JavaScript
erremauro/homecraft
/lib/stopwatch.js
UTF-8
781
3
3
[]
no_license
function StopWatch() { this.startTime = null; this.endTime = null; this.elapsed = { milliseconds: 0, seconds: 0, minutes: 0, hours: 0 } } StopWatch.prototype.start = function() { this.startTime = new Date(); } StopWatch.prototype.stop = function() { this.endTime = new Date(); this._upda...
true
1581c8b19568ed425b94cef1f2baea77bfba1c94
JavaScript
GivenCui/dataStructure
/javascript/code/__tests__/sort/randomArr.js
UTF-8
698
3.078125
3
[]
no_license
export const randomArr = (len = 10) => { let res = [] for (let i = 0; i < len; i++) { let num = Math.floor(Math.random() * len * 3) + 1 // num属于 [1, 3 * len] res.push(num) } return res } const testRandomArr = (config) => { const defaultConfig = { sortName: '选择排序', sortFn: function () { ...
true
6e301a7c5cf604314f8958ce65ff521e6a2c925b
JavaScript
darchitetto/retrospectIt
/client/retrospectIt/boardQuads/boardQuads.js
UTF-8
448
2.5625
3
[]
no_license
Template.boardQuads.helpers({ rowCount: function() { var count = Template.currentData().boardQuads.length / 2; return _.range(count); }, gridData: function() { var boardQuads = Template.currentData().boardQuads; var rowData = []; var gridData = []; for(var n=1; n < boardQuads.length + 1; n++) { rowDa...
true
2bdb86deef72061eb830239d22125aefc4a8ee4c
JavaScript
Teo-Lopez/hooks_example
/src/components/ComplexInput.js
UTF-8
406
2.609375
3
[]
no_license
import React, { useState } from 'react' const ComplexInput = ({ description, initialValue, callBack }) => { const [text, setText] = useState(initialValue) const handleInput = e => { setText(e.target.value) callBack(text) } return ( <label>{description} <input placeholder="Write something" v...
true
4aa783cc08d1c4ecd1309fa03ee155fe630a4e05
JavaScript
chenshaoxuan/soofruit
/models/validators/address.js
UTF-8
1,357
2.578125
3
[ "Apache-2.0" ]
permissive
var ValidateResult = require('./validate_result'); var validator = require('validator'); module.exports.ValidateAddress = function (address) { var result = new ValidateResult(); //address.receiver if (!address.receiver) result.addMsg('receiver', address.receiver, '收货人名字必填'); else if (!validato...
true
63ab633111cfd9b50be402b3323e71247d105175
JavaScript
nltb99/question-answer
/client/src/redux/reducer/HandleComment.js
UTF-8
929
2.53125
3
[]
no_license
import { GETCOMMENT, ADDCOMMENT, DELETECOMMENT, GETQUANTITYOFCOMMENT } from '../actions/actions.js'; const initialState = { comments: [], quantity: '', }; const HandleComment = (state = initialState, action) => { switch (action.type) { case GETCOMMENT: return { ...state...
true
189f7f2bcfd69f89fa21fd2df74e9b58ae1e41f8
JavaScript
Veejay/text-decorator
/streamer.js
UTF-8
2,418
2.671875
3
[]
no_license
const colors = require('colors/safe') class TextTokenizer { constructor(text) { this._text = text } tokenize() { return this._text.split(/(\s{3})/) } } let sample = `Par un jugement nos 0916248, 0916250, 0916251/2-2 du 9 mai 2011, le Tribunal administratif de Paris, après avoir prononcé un non-lieu à ...
true
11f34049f90d0db657901e35be2bbde0488418da
JavaScript
Banerick/DesarrolloWebEntornoCliente
/PrimerTrimestre/PruebaExamen/ejercicio5/code.js
UTF-8
329
3.265625
3
[]
no_license
function ejercicio5(dim,pos){ var a = new Array(dim); for (let i =0; i < dim; i++){ a[i] = new Array(dim); for (let j = 0; j < dim; j++){ a[i][j] = Math.floor(Math.random() * (50 - 10)) + 10; } } console.log(a); return a[pos[0]][pos[1]] } console.log(ejercicio5(3,...
true
f9421b724906723cd59105846b83e1386551b6a2
JavaScript
jgoode7/Tech-Degree-Project-7
/js/app.js
UTF-8
7,005
3.0625
3
[]
no_license
// Alert Banner const alertBanner = document.getElementById('alert'); alertBanner.innerHTML = `<div class="alert-banner"> <p class="alert-text"><strong>Alert: </strong>You have <strong>6</strong> overdue tasks to complete</p> <p class="alert-banner-close">x</p> </div> `; alertBanner.addEventListener('click'...
true
42e16d9c9da11f09bb44b5aab90fddaf164e6de7
JavaScript
izabelamateus/exerciciosGroww
/01 - Introdução à programação com Javascrit/06/06.js
UTF-8
2,331
4.03125
4
[]
no_license
/* RESPOSTA AQUI 👇 */ /* Questão 01 Você foi contratado(a) para trabalhar na NBA, a Liga de Basquete Nacional dos Estados Unidos. Seu trabalho é desenvolver um programa que calcule a quantidade de pontos numa partida. Para isso, você deve criar uma função que receba como parametro as cestas de 2 pontos e as cestas ...
true
a2930bcda49f48c415e92a3cc3e540fe13022b06
JavaScript
twotwo/practice-nodejs
/web_console/models/fake_info.js
UTF-8
728
2.59375
3
[ "MIT" ]
permissive
var users = exports.users = []; users.push({ name: '张三', id: 0 }); users.push({ name: '李四', id: 1 }); users.push({ name: '王二', id: 2 }); users.push({ name: '老刘', id: 3 }); var logs = []; logs.push({ clientTime: '2017-11-20 22:59:53', serverTime: '2017-11-20 23:01:13', deviceId: 0 }); logs.push({ clientTime: '2017-11...
true
7a63d0bea4d3edb9f9f5920da6ffd3f74437c6af
JavaScript
rpatsev/OnlineStoreProject
/OnlineStoreProject/OnlineStoreProject/Scripts/adminProductImage.js
UTF-8
1,239
2.53125
3
[ "MIT" ]
permissive
$(document).ready(function () { var productSelectBox = $("#productId"); var imageField = $("#product_img"); productSelectBox.trigger("change"); productSelectBox.change(changePhoto); changePhoto(); function changePhoto() { var prodid = productSelectBox.val(); $.ajax({ ...
true
f2254063b956acc58ab91b774560204b00513136
JavaScript
neviim/aleftavkernel
/cliente/modulosDev/database.js
UTF-8
559
2.5625
3
[ "MIT" ]
permissive
// mongodb server conecta let mongoose = require('mongoose'); const server = '192.168.200.213:27017'; // Entre com seu IP server mongodb const database = 'terremotos'; // Entre com sua coleção doc class Database { constructor() { this._connect() } _connect() { mongoose.connect(`mongodb://$...
true
60d8f7200a9647e01934f8f8874b16ea901624fa
JavaScript
UNIZAR-30226-2021-10/back-end
/servidor_websockets/index.js
UTF-8
7,226
2.71875
3
[ "MIT" ]
permissive
const express = require('express'); const http = require('http'); const socketio = require ('socket.io'); //Socket client (frontend) const cors = require('cors'); const router = require('./router'); //Funciones diseñadas en fichero users.js const {addUser, removeUser, remove, getUser, getUsersInChatCode} =...
true
8863757cd61200a398bdfd4297e36ce4f655b433
JavaScript
arsenazar/gist-test
/models/github.js
UTF-8
2,851
2.609375
3
[]
no_license
const {GITHUB_API_URL, USER_AGENT, REQUEST_DEBUG} = require('./env'); const request = require('request'); if (REQUEST_DEBUG) { require('request-debug')(request); } const github = { user: '', accessToken: '', config: function(user, accessToken) { this.user = user; this.accessToken = accessToken; }, ...
true
87d9ffa2ded86231504195ed462ba9a600560855
JavaScript
shrish1107/IPL2
/ipl/eco.js
UTF-8
3,069
2.609375
3
[]
no_license
function eco(matches,deliveries) { var result={}; //var ids=[]; for(let match of matches) { // if(match.season==2015) // { // ids.push(match.id); // } // } // console.log(ids); for(let delivery of deliveries) { if(match.id==delivery...
true
ea489848cd470800c34d77f2c2330b2b87d3e6f2
JavaScript
venumora/Search-Financial-Institutions
/app/assets/scripts/components/SearchControl.js
UTF-8
4,447
2.640625
3
[]
no_license
var $ = require('jquery'); import AutoFlyout from './AutoFlyout.js'; // To represent product types. const Types = { "BANK": 1, "INVESTMENT": 2, "LOAN": 3, "CREDIT_CARD": 4, "MORTGAGE": 5 }; class SearchControl extends React.Component { constructor(props) { super(props); this.handleChange = this.ha...
true
360d30d3613edf940fec73b3ec3de51f40e48dd5
JavaScript
otacon6530/VideoGame
/HTML5/wwwroot/js/input.js
UTF-8
914
2.84375
3
[ "MIT" ]
permissive
/** * @author Michael Stephens * @desc Takes input from each source and applies continous or single activations * UP, Down, RIGH, LEFT commands are continous * Action and Cancel commands are single activation */ import { COMMAND } from "./global.js"; import KeyBoardHandler from "./input.keyboard....
true
ee3014cfdb6cc1af6195958784586f0a882d0eea
JavaScript
UnlimitedBladeWorksV/WeAttandance
/WeAttandance/前端APP/cheAttendance/js/config2.js
UTF-8
4,004
2.6875
3
[ "MIT" ]
permissive
//通用接口地址设置 // 183.26.245.185 var server_url = "http://172.16.41.183:8080/"; var tokenHead="ttkoenn " function getServerUrl(){ return server_url; } function getAuthorization(){ // mui.plusReady(function(){ // var authorization=tokenHead+plus.storage.getItem("authorization"); var test="ttkoenn eyJhbGciO...
true
0260e60915089e36a32e13c426318b4f83567edb
JavaScript
BARETFabrice/receptionBorne
/serveurNodeJS/serveurBouees.js
UTF-8
1,034
2.640625
3
[]
no_license
var net = require('net'); var MongoClient = require('mongodb').MongoClient; var url = "mongodb://192.168.56.10:27017/BORNE"; var port_tcp = 3000; var clients=[]; var donneesBouees=[]; function lireMongo() { MongoClient.connect(url, function(err, db) { if (err) throw err; db.collection("BORNE").find({}).toArray(...
true
675390f498e9e35f9c26339e7a73ce5496e42501
JavaScript
vorg/grid-cells
/index.js
UTF-8
404
2.9375
3
[ "MIT" ]
permissive
function grid (w, h, nw, nh, margin) { margin = margin || 0 var cw = (w - margin - margin * nw) / nw var ch = (h - margin - margin * nh) / nh var cells = [] for (var y = 0; y < nh; ++y) { for (var x = 0; x < nw; ++x) { cells.push([ x * cw + (x + 1) * margin, y * ch + (y + 1) * margin...
true
b6b0d9a4ec3bc274c052d8d03a5b766085cafa53
JavaScript
andrearosr/gameofdrones-client
/app/redux/settings.js
UTF-8
1,628
2.546875
3
[ "MIT" ]
permissive
import { createReducer, createActions } from 'reduxsauce' import _ from 'lodash' const { Types, Creators } = createActions({ fetch: null, fetchSuccess: { weapons: [], }, fetchFailure: null, addMove: { weapon: {}, move: null, }, addWeapon: { newWeapon: {}, }, reset: null, }) export co...
true
adbf1ce6136366c80fada0bd129dc1f1b8663e68
JavaScript
cedric444/stage
/Pizzeria/JS/VerifMenu.js
UTF-8
1,365
2.734375
3
[]
no_license
var libelle = document.getElementById("pizzas"); var img = document.getElementById("idProduit"); libelle.addEventListener("click", afficherBase); img.addEventListener("click", redirect); function afficherImage(){ var images = document.getElementsByClassName("images"); if(images){ for(let i=0; i<images...
true
8abb2623d84603ad9b4beaeeaf9ebe65dd526392
JavaScript
coscoaj1/tailwindproject
/src/Components/ImageSearch.js
UTF-8
567
2.640625
3
[]
no_license
import { React, useState } from 'react'; export default function ImageSearch({ searchText }) { const [text, setText] = useState(''); const handleSubmit = (e) => { e.preventDefault(); searchText(text); console.log(text); console.log('clicked'); }; return ( <div> <form className="px - 4" onSubmit={han...
true
073f91d70b2422b87ee45102dbf4bfa2476a4a36
JavaScript
coka/pipette
/app/assets/javascripts/snippets.js
UTF-8
303
2.703125
3
[ "MIT" ]
permissive
$(document).ready(function() { $("#execute").click(function () { command = $("#command").text(); $.post("http://tourette.herokuapp.com", JSON.stringify({"command" : command}), function(response) { $("#output").append("<pre>" + response["output"] + "</pre>"); }, "json"); }); });
true
b1a812dffc0bb36f88a9a960f9c71904525d1845
JavaScript
mjam03/web
/src/Charts/RacingBarChartTwo.js
UTF-8
4,572
2.671875
3
[ "MIT" ]
permissive
import React, { useRef, useEffect } from 'react'; import { axisTop, select, scaleBand, scaleLinear, max, interpolateNumber, interpolateRound, format, easeLinear, range } from 'd3'; import { useResizeObersver } from '../Utils/Utils' import '../App.css' function RacingBarChartThree({ data }) { con...
true
b63713da2931333f11b8232bac2ee19c0f86457c
JavaScript
bailihua93/javascript
/javascript/js/section8_BOM/window_.js
UTF-8
1,863
3
3
[]
no_license
window.onload = function () { //screantop 和 screen left 虽然如此还是无法跨浏览器的条件下取得窗口左边和上边的距离,并且这个必须写在里面或者局部环境里面 var left = (typeof window.screenLeft == "number") ? window.screenLeft : window.screenX; var top = (typeof window.screenTop == "number") ? window.screenTop : window.screenY; /* document.write(left ...
true
db9f1a5c7f980dee9e4d8c4985e1db9f37915f04
JavaScript
kamoliddin5917/pokemon
/javascript/script.js
UTF-8
5,821
2.84375
3
[]
no_license
// HTML digi taglani oberadigon function var findEl = (className) => document.querySelector(className); var myForm = findEl(".js-form"); var mySelectType = findEl(".js-select__type"); var mySearchInput = findEl(".js-search"); var mySelectSort = findEl(".js-select__sort"); var myUlBox = findEl(".js-box"); var myModal =...
true
26edb41ac0e340682a6d25ea0888821df6d3f88a
JavaScript
pulsar-edit/pulsar
/packages/tabs/spec/event-helpers.js
UTF-8
3,771
2.78125
3
[ "MIT" ]
permissive
const buildMouseEvent = (type, target, param) => { if (param == null) { param = {}; } const event = new MouseEvent(type, {bubbles: true, cancelable: true}); if (param?.button != null) { Object.defineProperty(event, 'button', { get() { return param?.button; } }); } if (para...
true
ef8538d28fdef328f617e56f5e9b27ad1a878023
JavaScript
wenhuahao/wenhuahao.github.io
/全屏特效/js/main.js
UTF-8
4,266
2.953125
3
[]
no_license
// var swiperContainer = document.querySelector(".swiper-container"); // var swiperWrapper = swiperContainer.querySelector(".swiper-wrapper"); // var swiperSlides = swiperWrapper.querySelectorAll(".swiper-slide"); // var swiperPagination = swiperContainer.querySelector(".swiper-pagination"); // var swiperPaginationDots...
true
353d3e7d4f171498c19919641f325cd2c0b4ffb2
JavaScript
kemalarifovic/Day08
/ex15/src/index.js
UTF-8
327
3.5
4
[]
no_license
// Only change code below this line function converToInt(str) { return parseInt(str, 16); } converToInt("BA"); converToInt("F1"); converToInt("JeffBezos"); console.log(converToInt("BA")); console.log(converToInt("F1")); console.log(converToInt("JeffBezos")); // Only change code above this line module.exports = conver...
true
adb3beff8532704638c09c6ec31fb5f7deb9b455
JavaScript
Teek-tech/localstorage-crud
/custom.js
UTF-8
4,033
3.0625
3
[]
no_license
// Developed by Tochukwu Odeme ** https://github.com/teek-tech $(document).ready(function() { //create local storage to create new storage and add to cart for specific user device $('.add-to-cart').on('click', function(e){ var productID = $(this).attr('data-id'); var price = $(this).attr('data-p...
true
a233a9a5ab263b7f6f49d05c8a6988b91313ce64
JavaScript
annablanton/3dRenderer
/linkedlist.js
UTF-8
440
3.453125
3
[]
no_license
class LinkedList { constructor() { this.head = null; this.tail = null; } add(elem) { if (this.head === null) { this.head = new Node(elem); this.tail = this.head; } else { this.tail.next = new Node(elem); this.tail = this.tail.n...
true
caae1e69c0822983803d1b1274856cb30e6d5262
JavaScript
Olli-Archives/objects
/lib/User.js
UTF-8
559
2.75
3
[]
no_license
const uuidv4 = require('uuid/v4'); class User{ constructor(email, name, password){ this.email = email; this.name = name; this.password = password; this.uid = uuidv4(); } toString(){ return `${this.name} | ${this.email}`; } resetPassword(oldPassword, newPasswo...
true
69cde758be71f1877c9a6bac6246fe45a7a6da6a
JavaScript
priyanbu/form-validation-in-javascript
/signin.js
UTF-8
2,555
2.90625
3
[]
no_license
let x = document.getElementsByTagName("input"); function signup(){ event.preventDefault(); let firstname = document.getElementById("fname").value; let lastname = document.getElementById("Lname").value; let mail = document.getElementById("email").value; let pnum = document.getElementById("pnum"...
true
0691afecf168b0a94aa45768ec7a387448827dfa
JavaScript
JUCSERahull337/shopping-cart2
/main.js
UTF-8
953
3.34375
3
[]
no_license
// console.log('hello') let AddCart= document.querySelectorAll('.add-cart'); for (let i = 0; i < AddCart.length; i++) { AddCart[i].addEventListener('click',(event) =>{ //console.log('clicked'); cartNumber(); event.preventDefault(); }) } function onLoadPage(){ let product...
true
c01876cca70bb7d9b372dfb0662400c20789e14d
JavaScript
SMcMann/scottsbot
/commands/toggle.js
UTF-8
3,997
2.515625
3
[]
no_license
const Team = require('../modules/team.js') const test = require('../modules/startupData.js') const functions = require('./functions.js') const draftAnnouncement = "722279997959569458" module.exports = { name: 'toggle', cooldown: 0, description: 'toggles the draft either active or disabled', async exec...
true
84cf27c22e694d96500fcd2c20be11e47396a72e
JavaScript
klimenkor/corvid
/ikncu/test.js
UTF-8
2,356
2.625
3
[]
no_license
var moment = require('moment'); // var Jimp = require('jimp'); // function getAlarmLabels(enabled, detected) { // let labels = [] // detected.forEach( dl => { // let found = enabled.find(el => { return el.Name == dl.Name; }); // if(found) { // labels.push(found.Name); // ...
true
fb76ca9f541a3c3a9ee6ae73522bb4eed036251d
JavaScript
TarunJuyal/Simple_Calculator
/js/index.js
UTF-8
1,702
3.1875
3
[]
no_license
addEventListener("load", calculate); function getHistory() { return document.querySelector("#resultHistory").innerText; } function printHistory(valueHistory) { document.querySelector("#resultHistory").innerText = valueHistory; } function getResult() { return document.querySelector("#result").innerText...
true
9de4a64aea6c783b99bd0c39e401e3232486c91a
JavaScript
theDreamer911/codewars
/kyu 7/digitsAverage.js
UTF-8
1,095
4.0625
4
[]
no_license
// function median(digit) { // const arrayDigit = digit.toString().split(""); // const number = arrayDigit.map((x) => parseInt(x)); // const long = number.length; // for (i = 0; i < long; i++) { // if (long % 2 == 0) { // index = Math.round(long / 2); // return number[index]; // } else { //...
true
910f4c9296daa93f22b0e5d4d7c66460efd5923c
JavaScript
barlima/Udemy-React
/src/playground/person.js
UTF-8
202
2.828125
3
[]
no_license
// name export const isAdult = (age) => age >= 18; const canDrink = (age) => age >= 21; export { isAdult, canDrink }; // default export const isSenior = (age) => age >= 65; export default isSenior;
true
a3e553584e184dbf3cbf8e060e8202ca8cd0e360
JavaScript
insideseanshead/fishtank-front
/src/App.js
UTF-8
2,973
2.515625
3
[]
no_license
import React, { useState, useEffect } from "react"; import API from "./utils/API"; import "./App.css"; import { BrowserRouter as Router, Route, Switch } from "react-router-dom"; import Home from "./pages/Home"; import TankDetail from "./pages/TankDetail"; import NavBar from "./components/NavBar"; import ProfilePage fro...
true
8eb01cd22215fcfcf48879a6f54dd4868cbb86b2
JavaScript
yasarb/ceng599
/src/algorithms/LineSegmentIntersection/Readme.js
UTF-8
2,779
3.5
4
[]
no_license
module.exports = { content: `# Line Segment Intersection The **multiple line segment intersection** problem supplies a list of line segments in the Euclidean plane and asks whether any two of them intersect (cross). Simple algorithms examine each pair of segments. However, if a large number of possibly intersecti...
true
ab2f5468c80bf68e0875c0d5bd2a84296a0a663c
JavaScript
jazibnasim/Lab-6
/script-6.js
UTF-8
506
4.1875
4
[]
no_license
//convertTemp(212, "C"); // > 100 //convertTemp(32, "C"); // > 0 //convertTemp(65, "C"); // > 18.333 //convertTemp(-40, "F"); // > - function convertTemp (temp, targetTemp) { if (targetTemp ==="F") { console.log ("It is " + ((temp*1.8) + 32) + "F") } else if (targetTemp ==="C") { console.log ("It i...
true
8a34b84ef920e23a4f1ec84b732638346cc99594
JavaScript
rahul31agrawal/pepcoding-web-development
/Frontend/hooks/src/components/Test/Banner.jsx
UTF-8
333
2.734375
3
[]
no_license
import React, { useState, useEffect } from 'react'; function Banner() { const [count, setCount] = useState(0); useEffect(()=>{ console.log("Boom"); }); return ( <div> <button onClick={() => setCount(count + 1)}>State: {count}</button> </div> ) } export def...
true
7b28eb0be4059e9a86653c3431e7a74113715ae5
JavaScript
WasdDiamond/Projec
/sketch.js
UTF-8
903
3.328125
3
[]
no_license
var dog, happyDog, database, foodS, foodStock; function preload() { dogImg=loadImage("images/dogImg.png") HappyDogImg=loadImage("images/dogImg1.png") } function setup() { createCanvas(500, 500); dog=createSprite(250,300); dog.addImage(dogImg); dog.scale=0.3; database=firebase.database(); foodStock=...
true
4a9f2c77a6e4ea0bb4c03c867fdf6c08381ede6a
JavaScript
chadhietala/webcomponent-experiment
/src/my-button.server.js
UTF-8
1,184
2.59375
3
[]
no_license
import { withShadow } from "./util.js"; import axios from "axios"; export const html = (attrs) => `${attrs.name}<button><slot></slot></button>`; export const MyButton = (attrs, children) => new Promise((resolve) => { setTimeout(() => { resolve(`<my-button>${withShadow(html(attrs))}${children()}</my-button...
true
a83dfa3c88e9578ffce660cfd4cd74322edc1d9a
JavaScript
grimcoder/forSimplr
/src/App.js
UTF-8
4,567
2.546875
3
[]
no_license
import React, { Component } from 'react'; import logo from './logo.svg'; class App extends Component { constructor(props){ super(props) this.state={submitted: false} this.submit = this.submit.bind(this); this.refresh = this.refresh.bind(this); } submit(){ this.setState({submitted: true}); ...
true
a9c0c0ca249848f924f99e8f0e6aa5a3aec20c3a
JavaScript
ludwighansson/internetbanken
/src/showInterest.js
UTF-8
1,502
2.546875
3
[]
no_license
const showInterest = { show: async function(rate) { const mysql = require("promise-mysql"); const config = require("../config/internetbanken.json"); const db = await mysql.createConnection(config); rate = rate.trim(); let str; str = await showAccountInterest(db, r...
true
96129be9c852896f818353b110fda97033fcf310
JavaScript
dfaletar/Seminar2
/seminar2/js/mapPoint.js
UTF-8
1,317
2.78125
3
[]
no_license
var kor = <?php echo json_encode($kor); ?>; var imena = <?php echo json_encode($imena); ?>; var count =<?php echo json_encode($counter); ?>; var tmpIme = []; var tmpNes = []; var infowindow = []; for (var i = 0; i < count; i++) { tmpIme[i] =new google.maps.LatLng(kor[i]); } function initialize() { var m...
true
e608a6c53bcefd675d50ea454dcf4f1c95630934
JavaScript
bishalbaaniya123/AwesomeProject-ReactNative
/app/AsyncStorage/SetItem/index.js
UTF-8
369
3.015625
3
[]
no_license
//send (key,value) as parameter to store data in local storage import {AsyncStorage} from "react-native"; const _storeData = async (key, val) => { try { await AsyncStorage.setItem(key, JSON.stringify(val)); return ({status: 1}); } catch (error) { // Error saving data return ({s...
true
700e42b285cb923732c2cc6d77bf49a8995daba9
JavaScript
naeem676/aircnc-chellange
/src/components/home/experience/ExperienceHome.js
UTF-8
790
2.625
3
[]
no_license
import React, { useEffect, useState } from 'react'; import ExperienceDetails from './experienceDetails/ExperienceDetails'; const ExperienceHome = () => { const [experience, setExperience] = useState([]); useEffect(()=>{ fetch('https://safe-anchorage-48836.herokuapp.com/findExperience') .then(re...
true
3e919b4454c8e237b55d016a6324ca99bf7de229
JavaScript
zynga/apibrowser
/source/class/mdn/Element.js
UTF-8
251
2.59375
3
[ "MIT" ]
permissive
/** * DOM Element. Typically created using `document.createElement()`. * Implements the interface {Node}. * * See also [MDN Documentation](https://developer.mozilla.org/en/DOM/element) * * #main */ core.Main.declareNamespace("Element", null);
true
00069b6a67c5af8bf91069c622837c8dbd44c8bc
JavaScript
jisbruzzi/coolships
/dinamico.js
UTF-8
2,297
2.8125
3
[]
no_license
const disparo = require("./disparo") const partida = require("./partida") //caso general function mejoresPartidasGeneral(turno,disparoSiguiente,lanzaderas, vulnerabilidades,barcos){ //obtener todas las alternativas posibles let alternativas = disparo.posibles(lanzaderas,barcos.length) .map(d=> ...
true
31cb612a07368f3ab7129b1c312d5bd954787532
JavaScript
gozij/shreveport
/react/my-app/src/MyComponent.js
UTF-8
198
2.59375
3
[]
no_license
import React from 'react'; // you can immediately return jsx/html with arrow function-based components! const MyComponent = () => <div>immediately returned html!</div> export default MyComponent;
true
c6da745575911e34041890561cde584a7e5e512e
JavaScript
EricEisaman/cs1-engine
/src/cs1-game-engine/modules/dsl/scene/setRenderOrder.js
UTF-8
349
2.71875
3
[]
no_license
export const setRenderOrder = function(layers='background middleground foreground'){ if(typeof layers == 'string'){ CS1.Scene.setAttribute('render-order',layers); console.log(`render-order layers set to: ${layers}`) } else { console.error('setRenderOrder takes a string of space separat...
true
1e0bc45b57e0d36a8f443036d751b82fd8d8e53d
JavaScript
ChinsenMR/mini
/小程序/pages/search/search.js
UTF-8
7,091
2.59375
3
[]
no_license
// pages/search/search.js Page({ /** * 页面的初始数据 */ data: { keyWord: '', showClosed: false, showMenu: -1, isEmpty: true, // 搜索数据是否为空 isShowSearchBar: true, // 是否显示搜索和搜索记录 proList: [], dataLength: 0, page: 1, sort: 'saleprice', // 筛选类型 thePriceOrder: 'asc', // asc升序,desc降...
true
84b3a9842a52fa19c4b4603acd1e68b8ed56d3aa
JavaScript
poojakarthik/my-work
/html/ui/javascript/modules/fw/component/control/select.js
UTF-8
5,904
2.515625
3
[]
no_license
var Class = require('../../class'), $D = require('../../dom/factory'), Control = require('../control'); var self = new Class({ extends : Control, construct : function() { this.CONFIG = Object.extend({ fnPopulate : {}, bPopulated : { fnSetter : function() { throw new Error("bPopul...
true
f2f29c61f9a148fc50551f6d4ed0c32316906f25
JavaScript
jonathangyc/jonathangyc.github.com
/js/main.js
UTF-8
6,780
2.625
3
[]
no_license
$(document).ready(function(){ // setup breakpoints for screen sizes; var breakMobile = 500, breakTablet = 768, breakDesktop = 1000; // setup for upscroll sticky nav var scrolled, lastST = 0, delta = 10, iHeight = $(".intro").outerHeight(), wWidth = $(window).width(), ...
true
19760c3e80b0e5c1e8b994a5e286a59c6c7c529e
JavaScript
kentobox/homework_kent_tsai
/3_button_circle/js/index.js
UTF-8
778
2.6875
3
[]
no_license
var show = true; $('#showCircle').click(function(){ $('#circle').hide(); }); $('#hideCircle').click(function(){ $('#circle').show(); }); $('#slideUpCircle').click(function(){ $('#circle').slideUp(); }); $('#slideDownCircle').click(function(){ $('#circle').slideDown(); }); $('#animateLeft').click(function(){ $...
true
b4229cb879510d5f42eb4f356d393f79df3e88ae
JavaScript
ligulfzhou/52zhwh
/m.52zhwh.com/src/components/PoemList.js
UTF-8
651
2.546875
3
[]
no_license
import React, { Component } from 'react'; import PoemListCell from './PoemListCell'; export default class JokeList extends Component { constructor(props){ super(props); } onClickJoke(poem_id){ console.log(poem_id); } render (){ var poems = this.props.poems || []; ...
true