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
7b6427f68456c893df3aa59b57f5522e86c1b808
JavaScript
ahelmberger/katas
/2014-12-30-js-kata-yahtzee/src/yahtzee.js
UTF-8
1,791
3.234375
3
[ "MIT" ]
permissive
'use strict'; const contains = (array, value) => array.indexOf(value) !== -1; const distribute = roll => roll.reduce((dist, dots) => { dist[dots - 1] += 1; return dist; }, [0, 0, 0, 0, 0, 0]); const allEqual = roll => roll.every(dots => dots === roll[0]); const allDifferent = roll => distribute(roll).every(count =>...
true
cfd7a3b3d8724f49a444ded183cca36a0dae0ea5
JavaScript
ljwaheng/Exp
/DS/L_board/static/js/main.js
UTF-8
6,377
2.625
3
[ "Apache-2.0" ]
permissive
var board = []; var score = 0; var hasConflicted = []; var n = getQueryString('k'); var d = getQueryString('d'); var randx = 0; var randy = 0; var pieces = []; var len; var index = 0; var delay = 1000; if(d!=null){ delay = d; } $(document).ready(function () { prepareForMobile(); //初始化棋盘格 init(); ...
true
26235f1bc9630c8b624a4186f64e666aac985436
JavaScript
danielpflood/wordpress-to-firebase
/index.js
UTF-8
2,158
2.671875
3
[ "MIT" ]
permissive
const wpapi = require('wpapi') const moment = require('moment') const firebase = require('firebase') // environment variables see: https://github.com/motdotla/dotenv require('dotenv').config({ silent: true }) // wpapi config const domain = `https://${process.env.DOMAIN}/wp-json` const wp = new wpapi({ endpoint: domai...
true
7b37fa1f38c1f58e01864851fa931e025ebb3077
JavaScript
glockw/usersapp
/src/reducer/index.js
UTF-8
336
2.75
3
[]
no_license
const initialState = { users: [], page: 1, }; export default function Users(state = initialState, action) { if (action.type === "FETCH_USERS_SUCCEEDED") { const { users } = action.payload.users; return { ...state, page: state.page + 1, users: state.users.concat(...users), }; } ...
true
9f4df125e9d5992e9d04367b56e0b62312da59c7
JavaScript
vanetix/header-vue
/src/store.js
UTF-8
4,647
2.65625
3
[]
no_license
import Vue from 'vue'; import Vuex from 'vuex'; import axios from 'axios'; Vue.use(Vuex); const lexSort = (value) => { return (a, b) => { const aValue = a[value].toLowerCase(); const bValue = b[value].toLowerCase(); return aValue < bValue ? -1 : 1; }; }; const state = { user: { name: "Billy Bo...
true
f3cf73c409bb5b2b9c72736be97de026ef581ecb
JavaScript
snewer/yii2-files
/src/static/widget/script.js
UTF-8
5,493
2.546875
3
[ "BSD-3-Clause" ]
permissive
(function ($) { function getEmptyWidget() { return '<span>Файл не загружен</span>'; } function getExistFileWidget(data) { return '<p><b><a target="_blank" href="' + data.url + '">' + data.name + '</a></b></p>' + '<p>' + data.size + '</p>' + '<div title="Удалить файл...
true
5115912a5683528ba110fe01f6c4bb650bf05e5f
JavaScript
jNullj/finnish_summer_bot
/index.js
UTF-8
2,765
2.703125
3
[]
no_license
// for testing/easy configuration const botinfo = require("./botinfo.js"); const fs = require('node:fs'); const path = require('node:path'); const TOKEN = botinfo.token; const Discord = require('discord.js'); const myIntents = new Discord.IntentsBitField() myIntents.add(Discord.IntentsBitField.Flags.GuildMessages); my...
true
89752457f065c37e0d20a02f075e1a16236f60e5
JavaScript
bbixby1764/CcCodesample
/childcare/childcare.js
UTF-8
1,996
3.890625
4
[]
no_license
var list = document.getElementsByTagName('li'); var arr = new Array(); var ascendArr = new Array(); var descendArr = new Array(); function descend(descendArr){ var ulist =document.getElementById('ulist'); var descendList = ''; //remove old, unsorted list while (ulist.firstChild){ ulist.removeChi...
true
4111ae0f86367dab086e10ebec1f58730d07a8e9
JavaScript
mariusGundersen/MultitouchPresentation
/Demos/Origami3D/examples/mode7/gui.js
UTF-8
1,092
3.4375
3
[]
no_license
var GUI = function(ctx, textImage){ this.ctx = ctx this.textImage = textImage this.textToDraw = []; } GUI.prototype.drawCharAt = function(character, x, y){ if(character > 96){ this.ctx.drawImage(this.textImage, (character-96)*8, 67, 8, 8, x, y, 8, 8); return 8; }else if(character > 64){ this.ctx.drawImage(t...
true
86f106696518dda6dad1d3b6b305f3f72141f0fb
JavaScript
mvDayao/LoginRegistrationform
/validation.js
UTF-8
5,686
3.046875
3
[]
no_license
// var lname = document.getElementById('lname'); var fname = document.getElementById('fname'); var stud = document.getElementById('stud'); var level = document.getElementById('level'); var bdate = document.getElementById('bdate'); var mob = document.getElementById('mob'); var email = document.getElementById('email'); v...
true
57d3f7c371fbc84fcf532b9502f7c2f9ad78749d
JavaScript
KristinaBelyakova/react-auth
/front/src/components/Signup.js
UTF-8
3,427
2.546875
3
[ "MIT" ]
permissive
import React, { useRef } from 'react'; import { useDispatch } from 'react-redux' import { useHistory } from 'react-router-dom' function Signup(props) { const dispatch = useDispatch() const history = useHistory() const first_password = useRef() const repeat_password = useRef() const reg1 = new RegExp(/[^A...
true
8aed3815c1b037578f6514b9cb85fe5101fd224b
JavaScript
gari20/Task1
/src/models/employee.model.js
UTF-8
3,194
2.78125
3
[]
no_license
var dbConn=require("../../config/db.config"); var Employee=function(employee){ this.first_name=employee.first_name; this.last_name=employee.last_name; this.email=employee.email; this.phone=employee.phone; this.organization=employee.organization; this.designation=em...
true
b664f02cb1086e58561a7ff26a3fb36b4a1f6838
JavaScript
KennyStanleyJr/gif-search
/request.js
UTF-8
2,049
3.234375
3
[]
no_license
let q = ''; let button = false; let errorCounter = 0; // First we get the viewport height and we multiple it by 1% to get a value for a vh unit let vh = window.innerHeight * 0.01; // Then we set the value in the --vh custom property to the root of the document document.documentElement.style.setProperty('--vh', `${vh}p...
true
8fd1ab6dfe4e66f3287ac23aa4dbf130b3f2751d
JavaScript
chirimen-oh/chirimen-drivers
/microbit-examples/amg8833/main.js
UTF-8
4,205
2.796875
3
[ "MIT" ]
permissive
//import AMG8833 from "https://unpkg.com/@chirimen/AMG8833?module"; import AMG8833 from "https://cdn.jsdelivr.net/npm/@chirimen/amg8833/amg8833.js"; window.connect = connect; window.disconnect = disconnect; var microBitBle; var amg8833; var readEnable; var autoGain = false; var tMax, tMin; var tMaxTxt, tMinTxt, tM...
true
0fd68060c5ae126b7d4a6c86712149d3d3c5ef63
JavaScript
marcintreder/klara
/index.js
UTF-8
4,214
2.515625
3
[ "MIT" ]
permissive
#!/usr/bin/env node --harmony const fse = require("fs-extra"); const configTemplate = require("./templates/config.template"); /* CLI tools */ const inquirer = require("inquirer"); const clear = require("clear"); const questions = require("./templates/onboarding.questions"); const chalk = require("chalk"); const styles ...
true
e7abda26540ea8095010e72c2846441d9c397928
JavaScript
pauldraper/byu-coding-challenge-2014F
/pluto/solutions/solution.js
UTF-8
3,129
2.765625
3
[]
no_license
process.stdin.resume(); process.stdin.setEncoding('utf8'); var chunks = []; process.stdin.on('data', function (chunk) { chunks.push(chunk); }); process.stdin.once('end', function() { main(chunks.join('')); }); function main(input) { var lines = input.split('\n'); for(var i = 1; i <= +lines[0]; i++) { console.log...
true
9b90b8f7213f52cffe032726d6f38214d0289374
JavaScript
amamf/kindle-notes
/app/scripts/book-cloud.js
UTF-8
2,189
2.625
3
[ "MIT" ]
permissive
(function(app) { 'use strict'; app.BookCloud = function(container, type) { this.container = d3.select(container); this.type = type; }; app.BookCloud.prototype.render = function(notes) { var that = this; var books = d3.nest().key(function(d) { return d.book; }).entries(notes), size = this.container.no...
true
70d6911b7ca684b02f1223e5a04338bc3c62f0c2
JavaScript
kamilplaczek/nodemegle
/models/users-store.js
UTF-8
811
2.84375
3
[]
no_license
const User = require('./user'); const ACTIVE_USERS_LIST = Symbol('ACTIVE_USERS_LIST'); class UsersStore { constructor() { this[ACTIVE_USERS_LIST] = []; } isUsernameAvailable(name) { return !this[ACTIVE_USERS_LIST].filter(x => x.userName == name).length; } addUser(user) { if...
true
e9e1411216ec618555cadfcd02130d02de6edfa1
JavaScript
hacknlove/onGet
/src/lib/get.js
UTF-8
908
2.921875
3
[ "ISC" ]
permissive
import { findPlugin } from '../private/findPlugin' import { resources } from './conf' /** * Returns the value of a resource * If the resource has not been used yet, so it has no value cached, the plugin that deals with its url could evaluate the value. This is only possible when the evaluation is synchronous and the...
true
4d9c3b9fd42a3d5b5467326a77898689e1b3b568
JavaScript
nurielmeni/strapi-plugin-import-export-content
/admin/src/utils/exportUtils.js
UTF-8
1,070
2.625
3
[ "MIT" ]
permissive
import FORMATS from "../constants/formats"; function downloadFile(name, content, type) { const format = FORMATS.find(({ mimeType }) => mimeType === type); const file = new Blob([content], { type }); const fileURL = window.URL.createObjectURL(file); const dateTime = new Date().toLocaleDateString(); const el...
true
cf358eadef19705c5640881b2778c08627bc4c73
JavaScript
MusicalCreeper01/ThreeJS-Game-Engine
/src/core/vector3.js
UTF-8
1,402
3.6875
4
[ "MIT" ]
permissive
/** * The class for storing a 3 dimensional vector * @constructor * @param {number|undefined} newX - The X position for the Vector * @param {number|undefined} newY - The Y position for the Vector * @param {number|undefined} newZ - The Z position for the Vector */ Ember.Vector3 = function(newX, newY, newZ){ /** ...
true
53802b16b434429d8b09da58f5b6004452a79752
JavaScript
ryanwzy/view-world
/scripts/bar.1.js
UTF-8
1,660
2.625
3
[ "MIT" ]
permissive
var megaMenu = document.getElementById("overlay"); var ham_layer = document.getElementsByClassName('ham-layer'); var toggle = false; var click = false; function toggleHamMenu() { if (toggle == false) { document.getElementById('top_bun').style.top = "11px"; document.getElementById('top_bun').style.t...
true
bf6e6b443fd4e3f2eddbbf2d77699aa39b53b265
JavaScript
zhang13pro/TS-technical
/source/5chapter/2-20-2-24/3prototypeextendsjuxianxing.js
UTF-8
1,888
3.890625
4
[]
no_license
function Parent (name, age) { this.name = name this.age = age } Parent.prototype.friends = ["xiaozhang", "xiaoli"] Parent.prototype.eat = function () { console.log(this.name + " 吃饭"); } function Son (name, age, favor, sex) { this.favor = favor // 兴趣爱好 this.sex = sex } // function Son2 (name,age,address, sex)...
true
f4f6b695007d18b58dadbe39aef31bb6c0d0a86a
JavaScript
Stooh/screeps
/HelperFunctions.js
UTF-8
1,859
2.734375
3
[]
no_license
var HelperFunctions = {}; const GARBAGE_DELAY = 30; const OBJECT_CREATE_CALLBACK = function() {return {}}; HelperFunctions.createMemory = function(label, base) { var memory = base ? base.memory : Memory; var res = memory[label]; if(!res) { res = {}; memory[label] = res; } return re...
true
eb476bb3190c0b7a3b1844cfc369a4c5fe3edb71
JavaScript
javiermortiz/app-academy
/W23D3/tree_order_project/lib/leet_code_105.js
UTF-8
773
3.234375
3
[]
no_license
// View the full problem and run the test cases at: // https://leetcode.com/problems/construct-binary-tree-from-preorder-and-inorder-traversal/ const { TreeNode } = require('./tree_node.js'); var buildTree = function (preorder, inorder) { if (!preorder.length && !inorder.length) return null; let root = new...
true
1454cca18d36e81ba7a95bdb91c7b07fd392cc58
JavaScript
DanMartyns/SoftwareEngineering
/P2G1/Dashboard/interface/src/components/Body/Body.js
UTF-8
1,920
2.59375
3
[]
no_license
import React, {Component} from 'react'; import DisplayResultSN from '../DisplayResultSN/'; import DisplayResultHR from '../DisplayResultHR/'; import Video from '../Video/'; import './Body.css'; class Body extends Component { constructor(props) { super(props); this.state = { items: [], isLoaded:...
true
57037b4736e7d910ac42399515a5b088c3c0ddad
JavaScript
ZinhAL-Sweedy/node-school-lessons
/bytewiser/typed-arrays.js
UTF-8
218
2.828125
3
[]
no_license
process.stdin.on('data', function (buff) { var typedArray = new Uint8Array(buff.length); for (var i = 0; i < typedArray.length; i++) { typedArray[i] = buff[i]; } console.log(JSON.stringify(typedArray)); });
true
bdd27caf3006bc9fb509946aa1be9c76d3eec4ea
JavaScript
freebz/Functional-JavaScript-Programming
/ch07/code7-41.js
UTF-8
415
3.734375
4
[]
no_license
// 코드 7-41 test3 async function test3() { var list = [1, 3, 5, 6, 7, 9]; return list.map(async function(val, i) { console.log(val, i); // 동시에 모두 실행됨 return await delay(val * 10); // 동시에 모두 실행됨 }); } test3().then(function(result) { console.log(result); // [Promise, Promise, Promise, Promise, Promis...
true
066d2af5cc2c843643233d79d6cd975ece9bdca4
JavaScript
feiyuerenhai/babel
/index.js
UTF-8
2,638
2.9375
3
[]
no_license
import {A, B} from './compo.jsx'; console.log('运行成功', A, B); //babel-node index.js --presets es2015,stage-2; //对于ES7才支持的import关键字,请使用babel-node加preset集运行 //不仅如此,babel默认支持编译jsx文件,啊哈~ //* 关于Babel * //babel总是能将ES6语法转换为ES5语法 //请注意转换的只是语法,比如class A; let [a, b]; ()=>{}; //比如将import转换为require //而不包含新的API,比如Promise、Generator、...
true
a370bc4c96dd192287382ea9f19c2aa22d5526b0
JavaScript
darkhorse-coder/ordering-components-react
/src/components/GoogleAutocompleteInput/index.js
UTF-8
3,324
2.515625
3
[]
no_license
import React, { useEffect, useRef } from 'react' import PropTypes, { string } from 'prop-types' import { WrapperGoogleMaps } from '../WrapperGoogleMaps' /** * Component to make an input with Google Autocomplete * @param {object} props Props of AutocompleteInput component */ const AutocompleteInput = (props) => { ...
true
d24db70ba3d256d967731661159dd29414b621a3
JavaScript
frauke227/E2E-FinalProject
/flaskblog/static/js/script.js
UTF-8
3,435
2.875
3
[]
no_license
console.log("it works"); let autocomplete; function initAutocomplete() { console.log("autocomplete"); autocomplete = new google.maps.places.Autocomplete( document.getElementById("autocomplete"), { types: ["geocode"] } ); map = new google.maps.Map(document.getElementById("map"), { zoom: 14, ce...
true
8ee0b9a852a9f4f6a107878f03b17ab9ab710f4c
JavaScript
myselfpiyush/LeetCode_Solution
/24.js
UTF-8
509
3.703125
4
[]
no_license
// 24. Swap Nodes in Pairs function ListNode(val, next) { this.val = val === undefined ? 0 : val; this.next = next === undefined ? null : next; } var swapPairs = function (head) { let node = new ListNode(null); node.next = head; let previous = node; while (previous.next && previous.next.next) { let f...
true
39b75cb0ec79490f6905da7d5281009a10eaa7ac
JavaScript
cr-gonzalez/05-new-article-creation
/starter-code/scripts/articleView.js
UTF-8
3,087
3.171875
3
[]
no_license
// Configure a view object, to hold all our functions for dynamic updates and article-related event handlers. var articleView = {}; articleView.render = function() { articles.forEach(function(a) { $('#articles').append(a.toHtml('#article-template')); $('#author-filter').append(a.toHtml('#author-filter-templa...
true
e96908ee219946391b660f29d1e5765de8cf9bf3
JavaScript
ykabusalah/curiosum
/src/Result.js
UTF-8
2,730
2.625
3
[]
no_license
import React from "react"; import { Frame } from 'framer' import rapperImages from "./rapperImages"; import "./Result.css"; const Result = ({ rapperName }) => { console.log("rapper name", rapperName); let rapperImage = rapperImages[rapperName]; return ( <div id='result'> <div id='profile-header'> ...
true
ad8cc84dfec443b4dd913443cc2ff5d1a956b2d9
JavaScript
mdang/the-explorer-vanilla
/js/nav.js
UTF-8
3,040
2.65625
3
[]
no_license
(function() { 'use strict'; const ACTIVE_CLASS = 'active'; const PANEL_CLASS = 'nav-panel'; const nav = document.getElementsByTagName('nav')[0]; const btns = nav.getElementsByTagName('a'); const dropdown = document.getElementById('dropdown'); let currentPanel = null; const removeActiveClasses = butt...
true
9297541c77b0403f86d715176041d65fe76fe4ad
JavaScript
hesterrk/Sprint-Challenge-React-Wars
/starwars/src/components/Characters/CharacterContainer.js
UTF-8
917
2.984375
3
[]
no_license
import React, {useState, useEffect} from 'react'; import axios from 'axios'; import Character from './Character'; const CharacterContainer = () => { //initialising the state with an empty array as our data takes this form const [people, setPeople] = useState([]); useEffect(() => { axios.get('h...
true
af2ea99294f06e7792d4ee7591949a6bd18cac45
JavaScript
sunbeams001/fonteditor
/src/ttf/util/reduceGlyf.js
UTF-8
1,037
2.8125
3
[ "MIT" ]
permissive
/** * @file reduceGlyf.js * @author mengke01 * @date * @description * 缩减glyf大小,去除冗余节点 */ define( function (require) { var reducePath = require('graphics/reducePath'); /** * 缩减glyf,去除冗余节点 * * @param {Object} glyf glyf对象 * @return {Object} glyf对象 ...
true
b6e05a01e70d25ba423bcdeb402fc906a40fe95b
JavaScript
tipyaf/yannickB
/js/stop.js
UTF-8
2,299
2.515625
3
[]
no_license
/** * Created by yannickbenchimol on 18/04/2016. */ // global variable for the player var player; // this function gets called when API is ready to use function onYouTubePlayerAPIReady() { // create the global player from the specific iframe (#video) //cv video player = new YT.Player('video', { ...
true
49811613f348ce6036a41a3a2e4932c90430d775
JavaScript
cspp01/pi
/time_axis/js/concise.js
UTF-8
1,107
2.53125
3
[]
no_license
$(function(){ (function() { var $archivePage = $getEClass('archive-page'); var num = 0; //文章列表在时间轴上慢慢出现 if ($archivePage && $archivePage.length != 0) { var time = setInterval(function () { $archivePage[num].setAttribute('class', $archivePage[num].getAttrib...
true
18733262dc410576f6149b41ea2c0c7850b48d01
JavaScript
tclohm/oldsite-rw
/web/src/hooks/useSessionStorage.js
UTF-8
375
2.6875
3
[ "MIT" ]
permissive
import { useState } from "react"; export const useSessionStorage = (key, initialValue) => { const [stored, setStored] = useState(() => { const item = sessionStorage.getItem(key) return item ? JSON.parse(item) : initialValue }); const setValue = (value) => { setStored(value) sessionStorage.setItem(key, JSON...
true
563de4f4c4356b7f469af24774c20e3322a9b14a
JavaScript
tchapeaux/pixijs-music-park
/js/level.js
UTF-8
4,588
2.734375
3
[]
no_license
"use strict"; var Level = function (jsonfile) { this.ready = false; this.container = new PIXI.Container(); this.crowdLevel = 1; var level = this; // make 'this' accessible in scope $.getJSON(jsonfile, "", function (data) { level.ready = true; level.json = data; console.log...
true
8dfc922a01e68a7ccfefbbc06d2b551ecf26f8f4
JavaScript
pamods/ModX
/com.zx.pa.modxs/ui/main/game/live_game/js/audio.js
UTF-8
30,075
2.515625
3
[]
no_license
var audioModel = (function () { /* determines the minimum time between responses. */ /* triggered responses (of the same or higher priority) that occur during the timeout will be queued. */ var audio_response_que = []; var global_audio_response_timeout = 3 * 1000 /* in ms*/; var global_timeout_acti...
true
a5563cb7c918a6d79aa0bf55ea3620df0aafcb9d
JavaScript
GBobzin/plotly_challenge
/static/js/app.js
UTF-8
3,291
3.15625
3
[]
no_license
//Failed first attempt, starting by gathering all data in the beginning. //Tried this approach, dind't work //unpack inofrmation from DATA file //** //function unpack(rows, index) { // return rows.map(function(row) { // return row[index]; // }); // } //Variable to reach data file //var dataPath = d3.jso...
true
5bc84edaed39c211a9152b589e4b3b0316eca45f
JavaScript
caballerof/codingInterviewAlgorithms
/exercises/cci/chapter_1/1_is_uniq.test.js
UTF-8
765
3.046875
3
[]
no_license
const isUniq = require('./1_is_uniq'); describe('Unique string tests - true', () => { test('test 1', () => { const str = 'abc'; expect(isUniq(str)).toBeTruthy(); }); test('test 2', () => { const str = 'abc1234$%&'; expect(isUniq(str)).toBeTruthy(); }); test('test 3', () => { const str =...
true
94c5f0f2ff39b70f07b7f7d1cf8ea620ff88e849
JavaScript
JulioPradera/wmdd_4820
/week4/func1.js
UTF-8
439
4.28125
4
[]
no_license
// function declaration function add (a, b) { return a + b } // function expression let subt = function (a, b) { return a - b } // arrow or 'fat arrow' function // this will often appear as an anonymous function let multipl = ((a, b) => a * b) // calling (using) a function console.log(add(2, 2)) console.log(subt...
true
64c20d720725fbf2e109acfec6f90dc22c4afd14
JavaScript
SmritiNarayan/personalized-browser-chrome-extension
/part2/rishabh/skipFirst.js
UTF-8
679
2.703125
3
[ "MIT" ]
permissive
document.addEventListener('DOMContentLoaded', init); function init(){ localStorage.startTime = (new Date()).getTime(); x=document.getElementById("skipButton"); x.onclick=storeInDb; chrome.bookmarks.onCreated.addListener(addBookmark); } function addBookmark(id, bookmark) { if(bookmark.url){ localStorage.endT...
true
1494d6c217c106134496f6291fb10ff7fb550c67
JavaScript
iicoom/Note
/Interview/Algorithm-DS/A-DS/Hash Table/JS_HashTable.js
UTF-8
2,663
4.46875
4
[ "MIT" ]
permissive
// Hash table is one of the most important data structures in computing. // In JavaScript we don’t have any built-in hash table. // http://www.mojavelinux.com/articles/javascript_hashes.html var h = new Object(); // or just {} h['one'] = 1; h['two'] = 2; h['three'] = 3; // show the values stored for (var k in h) { ...
true
d00d27239596fcbe071f24799c0057e96d9a844f
JavaScript
asinnnn/game-code-bites
/bouncing-part1/index.js
UTF-8
1,028
3.15625
3
[]
no_license
const canvas = document.getElementById("canvas"); const context = canvas.getContext("2d"); const width = canvas.width = 320; const height = canvas.height = 480; const boxWidth = 30; const boxHeight = 60; const gravity = 0.7; canvas.style.marginTop = window.innerHeight / 2 - height / 2 + "px"; const box = { x: width...
true
76645a4b1e9d0c6dcacf2e4c75090f10c6016a25
JavaScript
brevehart/Web-Game-Scripts
/deriv_clicker_scripts.js
UTF-8
892
3.015625
3
[]
no_license
(function(){ var mult = 100; setInterval(function(){ moneyButtonClick(mult*player.clickPower); player.totalManualClicks += mult*player.clickPower; }, 10*mult ); })(); var buyTier = function(tier){ var order = [3, 4, 1, 2, 0]; var types = 5; //console.log('buying tier: ' + tier); for(var i = 0; i...
true
2041b980663f1ab8469f4904b939c16621c8db79
JavaScript
sid10on10/GUVI_codekata
/string/panagram.js
UTF-8
895
4.03125
4
[]
no_license
// Getting input via STDIN const readline = require("readline"); const inp = readline.createInterface({ input: process.stdin }); const userInput = []; inp.on("line", (data) => { userInput.push(data); }); inp.on("close", () => { //start-here //Your code goes here … replace the below line with your code logic...
true
c99112251114ba1b75744c408521b2798827b4be
JavaScript
google/blockly-samples
/plugins/block-shareable-procedures/test/event_test_helpers.js
UTF-8
1,684
2.9375
3
[ "Apache-2.0" ]
permissive
/** * @license * Copyright 2022 Google LLC * SPDX-License-Identifier: Apache-2.0 */ const sinon = require('sinon'); /** * Returns a matcher that asserts that the actual object has the same properties * and values (shallowly equated) as the expected object. * @param {!Object} expected The expected set of proper...
true
b28bb9229481d3932ecf1e46eff17fc0be7c3aac
JavaScript
ivicmirko/WebProgramiranje-projekat-2019
/WebOglasi/WebContent/JavaScriptFiles/Category.js
UTF-8
5,841
2.515625
3
[ "MIT" ]
permissive
/** * */ var editCatID; function adminShowCategories(){ $.ajax({ url:"rest/categories/getAllCategories", type:"GET", contentType: "application/json", success: function(categories) { $("#registrationForm").hide(); $("#allUsersDiv").hide(); $("#addCategoryForm").hide(); $("#allCategoriesDiv")....
true
e059cdff872844de2654e6ca85e76749d2e8409c
JavaScript
solomiiagulitashvili/sedona
/scripts/scripts.js
UTF-8
1,873
2.765625
3
[]
no_license
var map; function initMap() { map = new google.maps.Map(document.getElementById('map'), { center: { lat: 111.8301581, lng: 34.8544438 }, zoom: 16, }); var marker = new google.maps.Marker({ position: { lat: 111.8301581, lng: 34.8544438 }, map: map, }); } // document.addEventListener('DOMContentL...
true
7788da4126f17a0d6e8f24d22a3d1c3b6bfe7c46
JavaScript
soyarielruiz/2clase_git
/9_clase/app-ws.js
UTF-8
1,703
2.96875
3
[]
no_license
const servidor = require('http').createServer(handler) const fs = require('fs') const io = require('io')(servidor) //se puede usar fetch, node-fetch, request function handler( req, res) { let archivo = fs.createReadStream( __dirname + "index-ws.html") res.writeHead(200, {"content-type": "text/html"}) archivo.pipe(...
true
2adcbb75c27713ba392d978578b9d0ed55c8b2f8
JavaScript
mateodelnorte/objectify-folder
/modules.js
UTF-8
1,469
2.59375
3
[]
no_license
const debug = require('debug')('objectify-folder'); const fs = require('fs'); const glob = require('glob'); const path = require('path'); module.exports = async (options) => { if (typeof options === 'string') { options = { path: options }; } if ( ! options.path) throw new Error('objectify-folder ...
true
78d7c1c1e024faf5e118095d3d17e3fbb84d68d7
JavaScript
kitkatwastaken/GitNPM
/lib/getter.js
UTF-8
5,312
2.546875
3
[]
no_license
const request = require('request'); const inquirer = require('inquirer'); let result; const simpleGit = require('simple-git'); const github = require('octonode'); const git = simpleGit(); const config = require('./config.json'); let msg = 'g'; var client = github.client(config.token); var ghme = client.me(); ...
true
6c3f9237f6ff6cd15363496e87a5ab6a62da7c1f
JavaScript
Komodoro/Open-Mind
/platforms/browser/www/js/paddy/viavia.js
UTF-8
8,142
2.96875
3
[ "MIT", "Apache-2.0" ]
permissive
//grid width and height var gWidth = 560; var gHeight = 560; var bHeight = 80; var bWidth = 80; //padding around grid var p = 0; //size of canvas var cWidth = gWidth + (p*2); var cHeight = gHeight + (p*2); var img = new Image(); var div = document.getElementById('tram'); function drawBoard(context){ context.sav...
true
316420c7fec530d0dd0a4bad3c3e993111ded048
JavaScript
alex-vo/frontend-project-lvl2
/src/formatters/stylish.js
UTF-8
1,482
3.15625
3
[]
no_license
const stringify = (o, prefix) => { if (!o || typeof o === 'string') return o; if (typeof o !== 'object' || Array.isArray(o)) return JSON.stringify(o); const result = Object.keys(o) .map((key) => `${prefix} ${key}: ${stringify(o[key], `${prefix} `)}`); return `{\n${result.join('\n')}\n${prefix}}`; };...
true
91ec7fefab0707a7e27e56d4e3f0c2c38679a490
JavaScript
Prasadraj6897/Procart_Example1
/client_clone/src/containers/AddressForm/AddressForm.jsx
UTF-8
5,519
2.609375
3
[]
no_license
import React, { useEffect, useState } from "react"; import { useDispatch, useSelector } from "react-redux"; import { addAddress_action } from "../../actions/address.action"; import {MaterialButton, MaterialInput} from '../MaterialUi_Layout/UI_Layout' /** * @author * @function AddressForm **/ const AddressForm = (...
true
b0f7e90189dd465b141b0decd63d206719c60110
JavaScript
jwc0906/game_reco
/app/src/components/GameFinder.js
UTF-8
15,840
2.8125
3
[]
no_license
import React from 'react'; class GameFinder extends React.Component{ constructor(props) { super(props); this.state={ game_name: "", platform1: false, platform2: false, price1: false, price2: false, price3: false, start_year: 1900, last_yea...
true
cf79c58d673c793ef1924504459e42b784566ff7
JavaScript
phammon/node-chat
/server/utils/message.test.js
UTF-8
1,162
2.90625
3
[]
no_license
let expect = require('expect'); let {generateMessage, generateLocationMessage} = require('./message'); describe('generateMessage', () => { it('should generate a message object', () => { let from = 'jesus'; let text = 'Praise thee lord'; //calling the generateMessage function and passing i...
true
0c1810464a9846a39cce8eb2143bd557126a7ee2
JavaScript
CyRuslier/jeu-1-v2
/win.js
UTF-8
748
3.234375
3
[]
no_license
class Cap { constructor() { const capImg = document.createElement('img'); capImg.onload = () => { this.capImg = capImg; const capImgRatio = capImg.naturalWidth/capImg.naturalHeight; this.w = 70; this.h = 60; this.x = 0; this.y = -this.h; } ...
true
26119b5020077ca9b86598f44a0aea2ef08eb777
JavaScript
LiveHappier/rules_pug
/pug/pug.js
UTF-8
540
2.640625
3
[ "MIT" ]
permissive
const pug = require("pug"); const fs = require("fs"); const params = process.argv.slice(2); const src = params[0]; const outFile = params[1]; // Compile the source code const compiledFunction = pug.compileFile(src); const data = compiledFunction(); const buffer = Buffer.from(data); fs.open(outFile, "w", function(err...
true
edd5f66b82b1aae540236a0f681ce54f13a96b7d
JavaScript
AlpacaTravel/fexp-js
/packages/fexp-js/cli.js
UTF-8
991
2.75
3
[ "MIT" ]
permissive
const fs = require("fs"); const path = require("path"); const util = require("util"); const compile = require("./src/compile"); const fsReadFile = util.promisify(fs.readFile); const fsWriteFile = util.promisify(fs.writeFile); (async () => { // Build the expression const expr = ["==", ["get", "foo"], "bar"]; /...
true
d01d2556a06568a2d4bf4fd5c81c6494c4ff222b
JavaScript
yimysanchez88/patitasdecorazon
/js/contador.js
UTF-8
890
3.25
3
[]
no_license
<script type="text/javascript"> var time; var on = false; var seconds = 0; var minutes = 0; var startTime = function(){ seconds++; time = setTimeout("startTime()",1000); if(seconds > 59) {seconds = 0; minutes++;} document.getElementById("minutes").value = minutes; // M...
true
45bf00ca8d8bc1d4152a0fc1c3a8420eca1b041d
JavaScript
hackwork-tymm0/stupid-mobileapp
/platforms/android/assets/www/src/auth/confirm.js
UTF-8
1,010
2.578125
3
[]
no_license
function Confirm (code) { this.confirmCode = code; } Confirm.prototype.start = function (cb) { var confirmData = { code: this.confirmCode }; $.ajax({ method: 'get', url: StupidMessengerServer.url + "/auth/confirm", data: confirmData, success:...
true
b2afb7ff2161247bf2115e064274445c20146989
JavaScript
aleksanderbrymora/sei-36
/frank_da/week2/day3/dancingcat/main.js
UTF-8
693
3.421875
3
[]
no_license
let img = document.getElementsByTagName('img')[0]; let countLeft = 0; let startLeft = true; const catWalk = function () { if (startLeft === true) { let left = parseInt(img.style.left, 10); img.style.left = (left + 2) + 'px'; countLeft += 1; if (countLeft === 100) { st...
true
5ec87337668d1bb728059bdba958b170272a33eb
JavaScript
justsolarry/GrooteSchuurVON2017
/js/databaseReadWrite.js
UTF-8
11,125
2.625
3
[ "MIT" ]
permissive
var ip; var dbName; function configureDB(){ ip = dbConfig.ipAddress; dbName = dbConfig.dbName; if(ip == "" || ip == null){ ip = "localhost"; } if(dbName == "" || dbName == null){ dbName = "test1"; } //createSession(); } function retrieveAllDocs(){ var ...
true
4cca7fed1ea8901aeeefdd29ffa2a590e0e75c73
JavaScript
lucas-marciano/estudo
/controllers/aula06.controller.js
UTF-8
264
2.875
3
[]
no_license
//nome do controler | função //$scope contem as variaveis do bloco de codigo marcado pela função app.controller('aula06Controller',function($scope){ $scope.nome = "Lucas de Almeida Marciano"; $scope.olaMundo = function(nome){ alert("Ola mundo " + nome); } });
true
9d59e5382a7cb8bb3f60d39ca3ab0990add2edc0
JavaScript
Hives/notes
/src/note-controller.js
UTF-8
357
2.59375
3
[]
no_license
(function(exports) { function NoteController(notelist) { this._notelist = notelist this._notelistView = new NoteListView(this._notelist) } NoteController.prototype.displayNotes = function(){ var app = document.getElementById('app') app.innerHTML = this._notelistView.getHTML() } exports.Note...
true
a00a47b59ceb62704d716c8c23bbd82a5b3f62da
JavaScript
chetansingh4635/sendit
/routes/user/twitterUserInfo.js
UTF-8
1,554
2.59375
3
[]
no_license
/* Route for user to login vai Social */ var Route = require('../../lib/Route'), Promise = require("bluebird"), errors = require('../../lib/errors'), utility = require('../../lib/utility'), userModule = require('../../modules/user/'), authModule = require('../../modules/auth/'), resources = requi...
true
00957bdc158097080ba0897b944e23f889baaa18
JavaScript
NikolaySolodukhin/guess-melody
/src/js/count-score.js
UTF-8
646
2.59375
3
[]
no_license
import { GameSettings } from './data/game-play.js'; const countScore = answers => { return answers.reduce((playerScore, answer) => { if (!answer.correct) { return playerScore - GameSettings.QUICK_ANSWER_POINT; } if (answer.time <= GameSettings.MAX_QUICK_ANSWER_TIME) { return playerScore + Ga...
true
bff5079a7238da5e1f104c1b408c59ba57429104
JavaScript
moty66/a-better-capitalist
/lib/models/candle.js
UTF-8
1,038
2.75
3
[ "ISC" ]
permissive
var util = require('util'); var BaseModel = require('./base'); /** * A candle, representing a single timeframe of market activity. * @constructor */ function Candle () { BaseModel.apply(this, arguments); } util.inherits(Candle, BaseModel); // Start: beginning of our time window BaseModel.addProperty(Candle, 'st...
true
102eab1b8dc05a3a957d023168429ec2b2f4937c
JavaScript
hewenhan/myService
/lib/steamLib.js
UTF-8
2,603
2.5625
3
[]
no_license
var reqHttp = require("request_http"); var languageJson = { bulgarian: "保加利亚语", czech: "捷克语", danish: "丹麦语", dutch: "荷兰语", english: "英语", finnish: "芬兰语", french: "法语", greek: "希腊语", german: "德语", hungarian: "匈牙利语", italian: "意大利语", japanese: "日语", koreana: "韩语", norwegian: "挪威语", polish: "波兰语", portugu...
true
611b3076896588bccd72fdea774ba3323719a12f
JavaScript
gowtham-personal/PUPPEETEER-AUDIO-RECORD
/wavWorker.js
UTF-8
778
2.578125
3
[]
no_license
importScripts("/lib/wavEncoder.js"); let encoder = undefined let recorderBuffer = []; self.onmessage = function (event) { let data = event.data; switch (data.command) { case "ENCODE_AUDIO": encodeAudio(); break; case "RECORD_AUDIO": recordAudio(data.buffer); break case "cancel": cleanu...
true
7b88819015bf56adacb8ef80536eba8940ce0c5d
JavaScript
Rubalaine/editorjs-test
/src/scripts/pdfMake.js
UTF-8
691
2.5625
3
[]
no_license
//SOME DEPENDECIES const pdfMake = require("pdfmake/build/pdfmake.js"); const pdfFonts = require("pdfmake/build/vfs_fonts.js"); pdfMake.vfs = pdfFonts.pdfMake.vfs; export const printPDF = (doc) => { // const documentDefinition = { content: [{ text: [] }] }; doc.forEach((e) => { //this block pushes those obj...
true
5bbccbf25e9355622b5ab26847eec7e3d74a677c
JavaScript
Sherooz297/TO-DO-LIST-APP
/app.js
UTF-8
1,639
3.71875
4
[]
no_license
// EDIT AND DELETE BUTTONS var removebtn = '<button><i class="fa fa-trash" aria-hidden="true"></i></button>' var editbtn = '<button><i class="fa fa-pencil-square-o" aria-hidden="true"></i></button>' //FUNCTION TO GET THE VALUE FROM INPUT function addIteam() { var iteam = document.getElementById('Iteam'...
true
3313c435acbc4cc4d59ca1091e4240ac871831d2
JavaScript
shershnevsergey/code-and-magick
/js/util.js
UTF-8
474
3
3
[]
no_license
'use strict'; (function() { var ESC_KEYCODE = 27; var ENTER_KEYCODE = 13; //Генерация случаных значении массивов window.generateRandom = function(sourceMassive) { return Math.floor(Math.random() * sourceMassive.length) }; window.util = { isEscEvent: function (event) { return event.keyCode ==...
true
3dddd8eb373e38dba2be5cf2b58a73631cf16ae3
JavaScript
gungunfebrianza/Mastering-Node.js
/17. Errors/Custom-error.js
UTF-8
676
3.3125
3
[ "MIT" ]
permissive
function walletValidation(id) { if (id === undefined) { try { throw new Error("Wallet Validation Error: Cant Create Object Without ID !"); } catch (err) { console.log(err.message); return false } } else if (typeof id === 'string') { try { throw new Error("Wallet Validation ...
true
55a67f217cf9b7c9d8ca7b1761b37aeb5ea0fa57
JavaScript
komuto/pwa
/src/Containers/Balance/Topup.js
UTF-8
3,671
2.53125
3
[]
no_license
/** * Safei Muslim * Yogyakarta , 3 Oktober 2017 * PT Skyshi Digital Indonesa */ /** including dependencies */ import React, { Component } from 'react' import { connect } from 'react-redux' /** including component */ import Content from '../../Components/Content' import Section from '../../Components/Section' impo...
true
0298e50658afad57662451041ed2ba98b8e15886
JavaScript
Piyadassii/Abhidhammavatara
/app/tab.js
UTF-8
402
2.921875
3
[]
no_license
$(".arrow").click((event) => { const targetText = event.target.parentElement.nextElementSibling; const targetArrow = event.target; targetText.classList.contains("hidden") ? targetText.classList.remove("hidden") : targetText.classList.add("hidden"); targetArrow.classList.contains("rotate") ? targ...
true
2c530cf864331700e0876362c08af731a4d2da02
JavaScript
WhileTruu/salmefelt-em
/scripts/itemJsonFilesAsElmModule.js
UTF-8
2,151
2.703125
3
[ "MIT" ]
permissive
#!/usr/bin/env node // https://gist.github.com/choonkeat/b9959168e15d813d9f8a84d0e2c9632a const fs = require("fs"); const { readFilesIntoObject } = require("./util"); /* type alias Item = { titleEn : String , titleEt : String , date : Time.Posix , priority : Int , bodyEn : String , bodyEt : St...
true
cbf6e768e43bc87e4acc6a1a74084e050be771c8
JavaScript
pearlshare/location-tools
/lib/points.js
UTF-8
952
3.03125
3
[]
no_license
var Position = require("./position"); var pointsToRect = require("./util/points_to_rect"); var getDistance = require("./util/get_distance"); /** * Manage a set of points * @param {Array} points array to * @returns {Points} instance for managing sets of points */ function Points (points) { if (!Array.isArray(...
true
cc3a0f6e18a34c78d9aa0bcdc8dba461ed2c917b
JavaScript
satomikenta-org/GraphQL-API-DEMO
/services/article.js
UTF-8
654
2.734375
3
[]
no_license
const pool = require('../mysqlConn'); class Article { static async getArticle(article_id) { const sql = "SELECT * FROM articles WHERE article_id = ?"; try { const result = await pool.query(sql, [ article_id ]); return result[0]; } catch(err) { console.log(err); } } static asyn...
true
d51d9ffc4d64ce638f1c5e973330123c8a5bb5f2
JavaScript
mlmrmail/genBackend
/lib/controllers/users/login/normalLoging.js
UTF-8
1,528
2.765625
3
[]
no_license
// controlling normal login using username and password const _ = require('lodash'); const db = require('../../db/mongo_database'); const commonDB = require('../../db/common_db'); let user, pwd; function validateParams(username, password) { if (_.isEmpty(username) || _.isNull(username) || _.isEmpty(password) || _.i...
true
cbb5469af70125914ce9bf1bab6b89bdd0decba2
JavaScript
jrtorresb/js_1
/one.js
UTF-8
1,457
4.0625
4
[ "MIT" ]
permissive
console.log(1+2); // var camelCase // RUBY : snake_case /** * Tipo de datos: Números Booleanos Objeto, HASH O DICCIONARIO, ARRAY O LISTA Variables var firstName; * **/ var firstName="Ben"; var lastName=" Delacre"; var fullName=firstName+lastName; console.log(firstName); console.log(lastName); console.log(full...
true
3e3c45cfc9a28ce7b4c8fb04570f97f2e44e1e54
JavaScript
maru25-alt/instagramClone
/src/components/CreateComment.js
UTF-8
1,624
2.578125
3
[]
no_license
import React, { useState, useEffect } from 'react' import { db, firebase } from '../store/firebase'; export default function CreateComment({postId}) { const [comment, setComment] = useState(""); const [disabled, setDisabled] = useState(true); const handleChange = (e) => { setComment(e.target.valu...
true
e827f399c3ff38ee4f7da5b5a04674a4cd196e6f
JavaScript
JohnEdy/proyecto1
/taller1/ejercicio3.js
UTF-8
611
3.75
4
[]
no_license
// Pedir al usuario el número de niños y niñas de un salón, y sacar porcentaje de niños y niñas en un salon //ejemplo: si en un salon hay 16 niñas, y 4 niños. total 20 (100%), 20% niños y 80% niñas let ninos = parseInt(prompt("digite la cantidad de niños del salón")); let ninas = parseInt(prompt("digite la cantidad de ...
true
648039ca3cb35bcf96eaa65a1dc1efb54503ebcb
JavaScript
MatthewVaccaro/chowScout_Frontend_Web
/src/data/context/restaurantContext.js
UTF-8
1,414
2.6875
3
[]
no_license
import { createContext, useState } from "react"; import { isOpen, setupTimes } from "../../logic/timeHelpers"; export const restaurantContext = createContext(); export function RestaurantProvider(props) { const [restaurant, setRestaurant] = useState({ results: null, sections: [], methods: { updateRestaurantD...
true
6633a2c06726211e7770b307415eef480b7efd62
JavaScript
Jacks128/tytusx
/20211SVAC/G20/dist/Descargas.js
UTF-8
1,619
2.921875
3
[ "MIT" ]
permissive
function GenerarDescarga() { if (tab == 1) { download(editor.getValue(), "XML-FILE.xml", "text/xml"); } else if (tab == 2) { download(editor2.getValue(), "XML-FILE.xml", "text/xml"); } else if (tab == 3) { download(editor3.getValue(), "XML-FILE.xml", "text/xml"); } else if (tab =...
true
0d87d57ab7521a7489bacf8faff28df8c20c07b9
JavaScript
maruV/registration-client
/src/Pages/Registration.jsx
UTF-8
2,599
3.109375
3
[]
no_license
import React, { Component } from 'react'; import axios from "axios"; class Registration extends Component { constructor(props){ super(props) /* state contains the employee attributes */ this.state = { empID:'', empUName:'', ...
true
2b4a8f457ca9d59059b78e089aa50ca3f44815d7
JavaScript
RetaxMaster/LaravelProjectBase
/public/js/input/functions/functions.js
UTF-8
14,141
2.9375
3
[ "MIT" ]
permissive
const functions = { //Valida inputs y textareas de un formulario validateInputs : form => { let flag = true; form.querySelectorAll("input:not(.no-required), textarea:not(.no-required), .text-area-container .text-area").forEach(element => { if ((element.tagName == "INPUT" && element...
true
96853273e2aa89e03bfb7befd4d1a5e13645bb4c
JavaScript
alexchardtke/project-manager-react
/src/containers/conditions.js
UTF-8
1,769
2.53125
3
[]
no_license
import React, { Component } from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; class Conditions extends Component { render() { const { conditions } = this.props; if (!conditions) return null; console.log('Current Observation: ', conditions); const location = c...
true
7df8b0413206041a1dbc3caceeeaebd2d9b0dfc3
JavaScript
meenu2424/Web_projects
/JavaScript/validate.js
UTF-8
295
2.984375
3
[]
no_license
<!DOCTYPE html> <html> <body> <h1>JavaScript Can Validate Input</h1> <p>Please input a number between 1 and 10:</p> <input id="num"> <button type="button" onclick="myfunction()">Submit</button> <p id="demo"></p> <script> function myfunction(){ var x,text; x=document.getElementById("nu") }
true
7b9ea7e9ce633ff59db08fd0611a1d173240b9ea
JavaScript
qureebme/fullStackOpen
/part1_exercise/anecdotes/src/index.js
UTF-8
2,063
3.125
3
[]
no_license
import React, {useState} from 'react'; import ReactDOM from 'react-dom'; const anecdotes = [ 'If it hurts, do it more often', 'Adding manpower to a late software project makes it later!', 'The first 90 percent of the code accounts for the first 90 percent of the development time...The remaining 10 percent of the...
true
0adafd81f3f0765e8febacf473e50bd558768978
JavaScript
Destination-Capstone/Related-Info
/server/index.js
UTF-8
1,727
2.578125
3
[]
no_license
/* eslint-disable arrow-parens */ /* eslint-disable spaced-comment */ /* eslint-disable no-underscore-dangle */ const express = require('express'); const path = require('path'); const cors = require('cors'); const { City, Home, Activity } = require('../database/index.js'); const app = express(); const PORT = 3000; a...
true
07f1d155c7a128a6b46ba42d9e60c00c04ff0246
JavaScript
AlexanderMykytiuk/goit-js-hw-13-image-finder
/src/index.js
UTF-8
1,027
2.75
3
[]
no_license
import './styles.scss'; import refs from './JS/refs'; import apiService from './JS/api-service'; import updateHitsMarkup from './JS/update-hits-markup'; import toastr from './JS/toastr'; import loadMoreBtn from './JS/load-more-btn'; refs.searchForm.addEventListener('submit', event => { event.preventDefault(); cons...
true
e8f036ae13396c1dd529fe63d6afc4b310410736
JavaScript
devfoo-one/MME2-SS2015
/uebung01/js/app.js
UTF-8
2,531
3.578125
4
[]
no_license
/* MME2 Uebung 1 - Tom Oberhauser */ var player; //video player element var btnPlay; //play/pause toggle button var timeSlider; window.onload = function() { player = document.getElementById("video"); btnPlay = document.getElementById("btn-play"); btnStop = document.getElementById("btn-stop"); btnFulls...
true
de6c08d87d91f7a2783bcc9c82e9b8d127a147b7
JavaScript
sal314/provant
/html/assets/js/Print.js
UTF-8
356
2.890625
3
[]
no_license
// // Print.js // // // Print the contents of a <div> // @param div - id of the <div> to print // function printMe(div) { var d2p = document.getElementById(div); if (d2p) { var Win = window.open('', 'PrintWindow', ''); Win.document.writeln(d2p.innerHTML); Win.document.close(); Win.focus(); W...
true
2fb7df88646cd8718d46da4ab4e45187a29d960b
JavaScript
nixvaidya/Vehicle-Parking-Assignment
/parking/src/main/webapp/resources/js/viewproduct.js
UTF-8
1,988
2.875
3
[]
no_license
$( document ).ready(function() { /* Default update button inactive */ $('#update-btn').prop('disabled', true); /*message = "${message}"; if(message==""){ }else{ alert(message); } */ /* Reset Functionality */ $("#reset-btn").click(function(){ $("#...
true