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
eb7cf4b912a7a2c35bec2a045a51c44521e381bf
JavaScript
Umar-Zak/Santrac-Frontend
/src/component/users-table.jsx
UTF-8
1,594
2.53125
3
[]
no_license
import React, { useState, useEffect } from "react"; import { toast } from "react-toastify"; import { getAllUsers } from "../utils/user"; import { paginate } from "../utils/paginate"; import Pagination from "./pagination"; const UsersTable = () => { let [users, setUsers] = useState([]); const [pageNumber, setPageNum...
true
596c40d87b970b60f8b1acecb82cc9518e530f83
JavaScript
cblair1994/cblair1994.github.io
/Chapter12/map.js
UTF-8
3,736
2.53125
3
[]
no_license
"use strict"; function setUpPage(){ var e=document.querySelectorAll("#room div"); zIndexCounter=e.length+1; for(var t=0;t<e.length;t++){ e[t].style.msTouchAction="none"; e[t].style.touchAction="none"; if(e[t].addEventListener){ e[t].addEventListener("mousedown",startDrag,false); e[t].addEventListener("to...
true
f2bfb16cf3fef195e634d146a33796ef3d4d8811
JavaScript
abdipriyangga/B22-javascript-2
/number-2.js
UTF-8
652
3.375
3
[]
no_license
const nama = [ "Abigail", "Alexandra", "Alison", "Amanda", "Angela", "Bella", "Carol", "Caroline", "Carolyn", "Deirdre", "Diana", "Elizabeth", "Ella", "Faith", "Olivia", "Penelope"] function searchName(huruf, pembatas, callback) { const nameFilter = nama.filter((kata) => { return kata.toLowerCase().include...
true
8f20685175a774aa6e7d5d9eae1959e10bb2016e
JavaScript
krzysztofantczak/generator
/lib/copy.js
UTF-8
1,242
2.90625
3
[ "MIT" ]
permissive
/** * Creates a copy of the specified template in the current working directory. * * @package generator * @author Andrew Sliwinski <andrew@diy.org> */ /** * Dependencies */ var wrench = require('wrench'), fs = require('fs'); /** * Export * * @param {String} Template name * @param {String} Destina...
true
39e3b4ae9842c8637a98f91c4e8da008735302f7
JavaScript
Powerkyria/Modulo-2
/2.13. Metodos funcionales del array/TAREA 2.13-8 El ganador de la carrera/main.js
UTF-8
569
3.546875
4
[]
no_license
'use strict'; // https://books.adalab.es/materiales-front-end-i/modulo-2.-programando-la-web/2_13_metodos_funcionales_array#ejercicio-8 const runners = [ { name: 'Gregory Goyle', time: 56 }, { name: 'Nymphadora Tonks', time: 9 }, { name: 'Luna Lovegood', time: 45 }, { name: 'Cedric Diggory', time: 28 }, { name: ...
true
f9801e3cc65529ad42bcd307dc5186fda7401bb5
JavaScript
985ch/server-985ch
/app/service/qqbot/cmd.js
UTF-8
1,740
3.140625
3
[]
no_license
// 命令解析脚本 'use strict'; module.exports = app => { class MyService extends app.Service { // 从字符串的指定位置开始截取参数 readParams(text, n) { if (n < 0) return []; const params = []; const len = text.length; do { n = this.skipEmpty(text, n, len); const readed = this.readAParam(text...
true
22aa0b0cac746c7d0fe3f6ef9b359ba8187fbd9c
JavaScript
Sabiha722/Webtech-Final
/FinalLabMVC/views/js/validateuser.js
UTF-8
2,270
3.265625
3
[]
no_license
function validateform(){ var name=document.registerform.name.value; var password=document.registerform.password.value; var username=document.registerform.username.value; var email=document.registerform.email.value; var phone=document.registerform.phone.value; var haserror = 0; if (isNaN(phone)){ document.getElementBy...
true
2753b7c77694a2eafd0b34938cfae221ae4ddfcc
JavaScript
alexdenbaugh/c0321-code-solutions
/javascript-light-bulb/main.js
UTF-8
486
3.140625
3
[]
no_license
var $lightBulb = document.querySelector('.light-bulb'); var $background = document.querySelector('.container'); var lightOn = false; $lightBulb.addEventListener('click', function () { if (!lightOn) { $lightBulb.className = 'light-bulb light-on'; $background.className = 'container light-on-background'; lig...
true
691f38188689ea2ed88c4b7be2bfb396eaa24229
JavaScript
degod/rxhacknews
/src/App.js
UTF-8
1,723
2.921875
3
[]
no_license
import React from "react"; class App extends React.Component { constructor(props) { super(props); this.state = { items: [], isLoaded: false }; } componentDidMount() { let fidelis = this; fetch("https://hacker-news.firebaseio.com/v0/topstories.json?print=pretty") ...
true
035b700cc1eeac6e2c05d1c2664a171c493dce67
JavaScript
boljen/node-json-tcp
/test/mock.js
UTF-8
1,107
2.8125
3
[ "MIT" ]
permissive
var EventEmitter = require('events').EventEmitter; function duplexSocketMock() { var socket = new EventEmitter(); socket.write = function(bf) { this._d = bf; this.emit('readable'); }; socket.read = function() { var d = this._d || null; delete this._d; return d; }; return socket; } func...
true
702071460c0343cbef5fea50979da8058b0ad73c
JavaScript
tulachan/cosc484projet
/Readit_React_Front_End/src/search.js
UTF-8
1,410
2.640625
3
[]
no_license
import React, { Component } from 'react'; import { Link } from 'react-router-dom'; class Search extends Component { constructor(props) { super(props); this.state = { subreadit_name: "", array: [] }; } handleChangeQuery = (event) => { let subname ...
true
045a7f5b470907116782755d4ca983b6cad8f767
JavaScript
MarkVed17/learn-javascript-scrimba
/2. Practice time - part 1/2. Contatenate two strings in a function/index.js
UTF-8
223
4.40625
4
[]
no_license
let name = "Linda" let greeting = "Hi there" // Create a function that logs out "Hi there, Linda!" when called function greet() { let greetingMessage = greeting + ", " + name console.log(greetingMessage) } greet()
true
36a5cbd7a52eaa2f447dd9bf5ed876fad87a79a9
JavaScript
NickChuCode/my-code
/leetcode/easy/922.SortArrayByParityII.js
UTF-8
1,034
4.375
4
[ "MIT" ]
permissive
// Given an array A of non-negative integers, half of the integers in A are odd, and half of the integers are even. // // Sort the array so that whenever A[i] is odd, i is odd; and whenever A[i] is even, i is even. // // You may return any answer array that satisfies this condition. // // // // Example 1: // // Input: ...
true
2cfb8a3a21228a39892763ee8277afcb5bfcba7c
JavaScript
liamizaguirre/ProgramacionImperativa
/FuncionesExtra.js
UTF-8
1,255
3.9375
4
[]
no_license
// Ejercicio 1: funciones que recibe pulgadas y las pasa a cm// let pulgadaACentimetro = pulgada => { return pulgada*2.54 } console.log(pulgadaACentimetro(2)) //Ejercicio 2: convierte un string en un URL // let url = string => { return "http://www."+string+".com" } console.log(url("pepito")) // Ejercicio 3: adm...
true
4a934e78a0d6f5c5e4857391efdab3e0d79c0c87
JavaScript
pabloivanjuarez/goo-goo_book-search
/client/src/pages/Search.js
UTF-8
1,313
2.625
3
[ "MIT" ]
permissive
import React, { useState } from "react"; import API from "../utils/API"; import Jumbotron from "../components/Jumbotron"; import SearchBox from "../components/SearchBox"; import SearchResults from "../components/SearchResults"; function Search() { const [book, setBook] = useState([]); const [searchTerm, setSea...
true
b6e8eb57b671d01ef0b06f289d43320733e71101
JavaScript
cstps/nonogram-puzzle
/js/main.js
UTF-8
3,691
3.71875
4
[]
no_license
/*----- constants -----*/ const solution = [ [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], // column 0 [0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0], // column 1 [0, 0, 0, 1, 1, 0, 0, 1, 1, 0, 0], // column 2 [0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0], // column 3 [0, 0, 0, 1, 1, 1, 1, 1, 1, 0, 0], // column 4 [0, 0, 1, 1, 0, ...
true
45a61762a76b61336686de9e00601be8615d9349
JavaScript
shaekuronen/marionette-boilerplate
/dev/js/models/item.js
UTF-8
632
2.578125
3
[ "MIT" ]
permissive
App.ItemModel = Backbone.Model.extend({ initialize: function() { // get the categories of the current model var _categories = this.get('categories'); // add category 'all' to the temp categories array _categories.push('all'); // add the updated categories to the current model this.set('ca...
true
6302eb900e966b8f87643755a2e7f95390753a7c
JavaScript
matheus21/curso-apis-nodejs
/06-cli/index.js
UTF-8
2,322
3.109375
3
[]
no_license
const Commander = require('commander') const Database = require('./database') const Heroi = require('./heroi') main() async function main() { Commander .version('v1') //Pega parametros .option('-n, --nome [value]', "Nome do Heroi") .option('-p, --poder [value]', "Poder do Heroi") ...
true
c4f9795cef672f1eb5e3b8752e1a1f5c83734449
JavaScript
rvno/nubeTewb
/app/assets/javascripts/components/CategoryBox.js.jsx
UTF-8
2,986
2.78125
3
[ "MIT" ]
permissive
var CategoryBox = React.createClass({ showVideo: function(e){ e.preventDefault(); var localVideo = this; var path = e.target.parentElement.href; var request = $.ajax({ url: path, method: 'get', dataType: 'json' }); request.done(function(response){ console.log('hello') console.log(response.vi...
true
31bde95e93e390ffe3246db2b53151d5f9d69ca5
JavaScript
Mercenaryw/SENAIBAURU
/Atv2/multiplos5.js
UTF-8
150
3.15625
3
[]
no_license
for (let i = 1; i < 51; i++) { if (i % 5 == 0) { console.log(i); } } for (let i = 5; i < 51; i = i + 5) { console.log(i + "*"); }
true
3d2ce77f59497fddca1c27651c38dbe13be7863d
JavaScript
TrevorStubbs/TypeScriptTutorial
/Types/app.js
UTF-8
368
3.15625
3
[]
no_license
// Unknown Type var userInput; //unknown; var userName; userInput = 'Max'; userInput = 5; // Need an extra type check to when using unknown. if (typeof userInput === 'string') { userName = userInput; } // Never function return type function generateError(message, code) { throw { message: message, errorCode: cod...
true
21d09b0ca5855bf59173d720d8e89c8e06b522d7
JavaScript
clarosi/yolo-boss-job
/src/shared/components/Pagination/index.js
UTF-8
1,227
2.59375
3
[]
no_license
import React from 'react'; import { PAGE, PAGER_SIZE } from '../../constants/number'; import './Pagination.css'; export const Pagination = props => { const { begin, end, onPagination } = props; let stop = begin + PAGER_SIZE; if (stop >= end) stop -= begin; return ( <ul className="pagination"> <li>...
true
85ac874b1261d20c6aa9129d35bf7f67c144287b
JavaScript
chromium/chromium
/third_party/blink/web_tests/external/wpt/html/webappapis/dynamic-markup-insertion/opening-the-input-stream/abort-refresh-immediate.window.js
UTF-8
4,842
2.578125
3
[ "BSD-3-Clause", "GPL-1.0-or-later", "MIT", "LGPL-2.0-or-later", "Apache-2.0", "LicenseRef-scancode-warranty-disclaimer", "LGPL-2.1-only", "GPL-2.0-only", "LGPL-2.0-only", "BSD-2-Clause", "LicenseRef-scancode-other-copyleft" ]
permissive
// The following tests deal with the <meta http-equiv=refresh> pragma and the // `Refresh` header. The spec is still hazy on the precise behavior in those // cases but we use https://github.com/whatwg/html/issues/4003 as a guideline. async_test(t => { const frame = document.body.appendChild(document.createElement("i...
true
3b073bf565fc899b2cb3cebf42813bc256dc1f8e
JavaScript
spriyabtech1989/Nodejs
/Prg04.js
UTF-8
133
3.171875
3
[]
no_license
var num = 20; if( num <= 100) console.log("computer"); if( num <= 200) console.log("Keyboard"); if( num <= 300) console.log("Mouse");
true
2a72d6500a916fdb97c09c65cde5a8b651275c40
JavaScript
LittleStone9527/d3.js
/app/scripts/directives/axis.js
UTF-8
1,580
2.75
3
[]
no_license
'use strict'; /** * @ngdoc directive * @name d3jsApp.directive:axis * @description * # axis */ angular.module('d3jsApp') .directive('axis', function () { return { restrict: 'EA', link: function (scope, element, attrs) { //定义画布尺寸并且添加画布 var width = 800; var height = 400; ...
true
59a8c1290349da6f91361448fd5f10c9a9806483
JavaScript
mstippa/ArtisticStylizerPlatform
/webServer/www/controllers/upgrade-to-premium-controller.js
UTF-8
1,186
2.546875
3
[]
no_license
/** This is just a little demo of what we can do with node.js we first get the data we need (in this case wer're requiring '../model/test-data' but in the future we can get data from a database) after we get the data we brake it down into list items to be printed to the user. **/ var User = require('../model/us...
true
91c459b67ea4b35e1be5a8dd5a0e021a47cd6467
JavaScript
titanicsunkomg/titanicsunkomg.github.io
/Battleships/settings.js
UTF-8
296
2.515625
3
[]
no_license
var gridNum = 8; var gridSize = 50; var boardSize = gridNum * gridSize; var shipLengths = [4, 3, 3, 2]; document.documentElement.style.setProperty("--gridSize", gridSize.toString().concat("px")); document.documentElement.style.setProperty("--boardSize", boardSize.toString().concat("px"));
true
736ad6dc06e493ba28e7e48ac5166d5b94f574d1
JavaScript
zula1010/cartblanche-20
/app/static/js/arthor-old/at_mesg.js
UTF-8
471
2.578125
3
[]
no_license
var Mesg = { Info: 'info', Error: 'error' }; var AutoHideInfoMesgTimeout = 4500; function add_at_mesg(content, type) { var $mesg = $($('.at_mesgs .at_mesg')[0]); var $cpy = $mesg.clone(); $cpy.find('.at_mesg_content').text(content); $cpy.addClass(type); // auto-hide info messages if (type === Mesg.In...
true
cbb89e2ac1137ac18d479a4cbd4ef9d6cdbbea62
JavaScript
LibbyHart/Sprint-Challenge-RDBMS
/data/routers/projects.js
UTF-8
2,673
2.578125
3
[]
no_license
const express = require('express'); const server = express(); // const db = require('../db'); const projects = require('../helpers/projectHelpers'); const router = express.Router(); const errorHandler = (status, message, res) => { res.status(status).json({ error: message }); return; }; //Project Endpoints ...
true
dc50e3cb9b91c9d621c704b317ee086ea1768456
JavaScript
julien-f/js-source-map-support-2
/index.spec.js
UTF-8
10,079
2.546875
3
[ "ISC" ]
permissive
// Test suite taken from https://github.com/evanw/node-source-map-support require("./register"); const clearCache = require("./").clearCache; // =================================================================== const assert = require("assert"); const fs = require("fs"); const path = require("path"); const SourceMa...
true
5e9fbb8520965930857681184594c90ac33f7265
JavaScript
asiekierka/ZipLoader
/src/PromiseLike.js
UTF-8
331
2.625
3
[ "MIT" ]
permissive
const isPromiseSuppoted = typeof Promise === 'function'; export default isPromiseSuppoted ? Promise : class PromiseLike { constructor( executor ) { let callback = () => {}; const resolve = () => { callback(); }; executor( resolve ); return { then( _callback ) { callback = _callback; } ...
true
2b446475e32252fa3ee091a062dd7dc9a6043b4e
JavaScript
josh432/algosforyou
/algorithimpractice/findexponentrecursion.js
UTF-8
168
3.59375
4
[]
no_license
//recursive find an exponent var exponent =function(base, exp){ if(exp === 1) { return base; } return base * exponent(base, --exp) } console.log(exponent(5, 4));
true
80a926fe717a8d1e76a41bc970b8f59f3ecafdbd
JavaScript
paullewallencom/node-978-1-7839-8840-2
/_/section 1/client.js
UTF-8
180
2.859375
3
[ "Apache-2.0" ]
permissive
function init() { var link = document.getElementById("clickEl"); link.addEventListener("click", function changeColor() { this.style.color = "red"; }); } init();
true
a605987b537b7f795c121e2a2a64a2139a0b4548
JavaScript
HernanArena/Rest-Webserver
/server/routes/upload.js
UTF-8
3,414
2.59375
3
[]
no_license
const express = require('express'); const fileUpload = require('express-fileupload'); const app = express(); const Usuario = require('../models/usuario'); const Producto = require('../models/producto'); const fs = require('fs'); const path = require('path'); // default options app.use(fileUpload()); app.put('/upload/...
true
d5471e7bc220cf08e2d85b253d663d0ca6c0452e
JavaScript
ZainCruz/ConversionCalculator
/js/Legnth.js
UTF-8
1,784
3.203125
3
[ "MIT" ]
permissive
var report3 = function (inches, foot) { document.getElementById("result3").innerHTML = inches + "in = " + foot + "ft"; }; document.getElementById("F_to_i").onclick = function () { var f = document.getElementById("inchFoot").value; report3((f * 12 ), f); }; document.getElementById("i_to_F...
true
6ff443e56b7ac63bf1efdc1352b41ee2b2847bfe
JavaScript
jackmead515/socketapp
/server/utils/validation.test.js
UTF-8
596
2.5625
3
[]
no_license
var expect = require('chai').expect; var {isRealString} = require('./validation'); describe('isRealString - validation.js', () => { it('Should identify a non valid string.', (done) => { var s = 'ajdsfasdf '; var p = ' adsfasdf'; var t = ' '; var g = ' dafs ...
true
937a905455920d504b0d8301f8ba4e7d151e024f
JavaScript
Macezu/FullstackOpen
/osa2/puhelinluettelo/src/App.js
UTF-8
3,428
2.90625
3
[]
no_license
import React,{ useEffect,useState } from 'react' import Persons from './components/Persons' import PersonRecords from './components/PersonRecords' import Filter from './components/Filter' import Numberbase from './components/Numbers' const App = () => { const [persons,setPersons] = useState([]) const [newName,set...
true
98855e33786b26b6eb64b468816e0bc6849d0d3d
JavaScript
shootsoft/webuyer
/src/api/services/WeidianService.js
UTF-8
2,898
2.65625
3
[]
no_license
/** * WeidianService * * @description :: Server-side logic for managing weidians * @help :: See http://sailsjs.org/#!/documentation/concepts/Controllers */ module.exports = { url: 'http://api.vdian.com/', filename: 'weidian_token.json', token: '', /** * `WeidianService.init_token()` * init token */...
true
38119f442cba1c3d5076bbdb7a24f22bbecdd319
JavaScript
GRayHook/js-photo-slider
/js-scripts/libs/touches.js
UTF-8
1,303
2.828125
3
[]
no_license
function touches() { var zis = this; zis.posX = 0; zis.posX2 = 0; zis.posY = 0; zis.posY2 = 0; zis.posOn = false; zis.callback_start = function() {}; zis.callback_move = function() {}; zis.callback_stop = function() {}; zis.touches_positionHandler = function(e) { if ((e.clientX)&&(e.clientY)) { ...
true
482175f9c35780fe88e6542f901fdeb1bbafd6d3
JavaScript
IonicaBizau/cli-snow
/lib/index.js
UTF-8
5,917
2.796875
3
[ "MIT" ]
permissive
var Ul = require("ul"); /** * CliSnow * Initializes the snow in command line. * * @name CliSnow * @function * @param {Object} options The settings object, containing the following fields: * * - `speed` (Number): How fast the snow falls. You can choose a number in between 0 - 5. The higher, the faster (default...
true
d36decdf4f8ddbd6cefbb372332ddb278e19a06e
JavaScript
dhakalmahima188/Assignment
/index.js
UTF-8
602
3.328125
3
[]
no_license
// Object //let person={ // name: "mahima", // age:12, // fullname: function(){ // console.log(person.name+"dhakal is a good girl") // } // } // person.fullname(); // person.name="dhakal" // console.log(person); // let array=[1,2,3]; // array.push(10); // array.pop(); // array.shift(); //a...
true
7204816398cc65eff7ed44c713920287a96f7c83
JavaScript
Zarlengo/VerdantEarth
/public/js/articles.js
UTF-8
719
3.0625
3
[]
no_license
let slideIndex = 0; const slideTimer = 5000; // Change image every 5 seconds showSlides(); // Function to hide and show the articles function showSlides() { let i; const slides = document.querySelectorAll(".article-card"); for (i = 0; i < slides.length; i++) { slides[i].style.display = "none"; } slideInd...
true
789902f481597b04bd01b1f9862095252930018e
JavaScript
dorsy99/advent-of-code-2020
/day3/day3_2.js
UTF-8
1,400
3.109375
3
[]
no_license
var demo = [ "..##.......", "#...#...#..", ".#....#..#.", "..#.#...#.#", ".#...##..#.", "..#.##.....", ".#.#.#....#", ".#........#", "#.##...#...", "#...##....#", ".#..#...#.#" ]; var fs = require('fs'); var filename = "./day3input.txt"; fs.readFile(filename, 'utf8', functi...
true
4eb333625604bac9ba12bb19c9044a3bc14e6e49
JavaScript
easingthemes/screen2touch
/src/App.js
UTF-8
2,815
2.859375
3
[]
no_license
import React, { Component } from 'react'; import './App.css'; import mic from './mic'; class App extends Component { constructor() { super(); this.state = { average: 0, lastClap: (new Date()).getTime(), isClap: false, bgColor: '#ccc', freqs: [], frequencyBinCount: [] ...
true
9b80507fabc5507575d2bcb73c506e8d1d24b68d
JavaScript
nshakoori/homestars-frontend
/src/components/Room/RoomsReducer.test.js
UTF-8
1,856
2.53125
3
[]
no_license
import RoomsReducer from './RoomsReducer'; import * as types from '../../constants/actionTypes'; const initialState = { isFetching: false, error: undefined, rooms: [] } describe('rooms reducer', () => { it('should return the initial state', () => { expect(RoomsReducer(undefined, {})).toEqual(initialState)...
true
1b755d6ab1300a72ee99221fbf1f88b4d762496a
JavaScript
AndreaDeMartino/WhatsappWeb
/script/main.js
UTF-8
6,151
2.8125
3
[]
no_license
/* START DOCUMENT READY */ $(document).ready(function () { /********************** GENERIC VARIABLES **********************/ var inputMessage = $('#input-chat__write'); var messageText = inputMessage.val(); var inputSearch = $('#input-search'); // Change Send Icon on inputMessage focus inputMessa...
true
256d23395a660d150f9179fb4eb067efafa42ec5
JavaScript
negi-sachin/myReactjs
/index.js
UTF-8
21,836
4.03125
4
[]
no_license
//-------------------------Displaying hw----------------------------------------------- // ReactDOM.render( // <h1>Hello, sachin!</h1>, // document.getElementById('root') // ); //-------------------------------JSX--------------------------------------- // const name = 'Josh Perez'; // const eleme...
true
caa9bc8a091f6df07d0f6ec48470972a1317a3a7
JavaScript
CamiloDelReal/x_material_controls
/js/Stack.js
UTF-8
171
3.109375
3
[]
no_license
function Stack() { var stack = []; this.push = function(item) { stack.push(item); } this.pop = function() { return stack.pop(); } }
true
9f1b4a0d1d813b0f9d76a76d83038116c6e2bbb5
JavaScript
khuatduc/bai1
/TH/Bai.js
UTF-8
2,214
2.625
3
[]
no_license
$(document).ready(function(){ var cus =new Customers(); cus.loadData(); $('#them').hide(); cus.initEvent(); }) class Customers{ constructor(){ } hello(){ alert("hello"); } initEvent(){ $('#btnAdd').click(this.btnAddOnClick); $('#dong').click(this.btnCancelO...
true
cc344757dec0887221d3dd9a02e7204e218260ef
JavaScript
aimzOG/html200-spring2019
/Lesson03/exercise-three.js
UTF-8
141
2.953125
3
[]
no_license
const phrase = ["hakuna", "matata", "it", "means", "no", "worries"]; phrase.forEach(function (word, i) { console.log(i + ", " + word) });
true
70935a8c2275b2d190b30c8d7cbf31f2853edaef
JavaScript
ozten/innercircle
/lib/id.js
UTF-8
625
2.78125
3
[]
no_license
/** * An id is a basic component of Enclave and Camlistore. * It is the stable identifier that never changes. * It can be opaque (mention:23423ae324) or * human friendly (email:shout@ozten.com) * * Schema: * - */ module.exports = function(aProtocol, identifier) { if (! identifier) { var parts = aP...
true
7c9352e7f1187ec3e46717063880692e96edb0b7
JavaScript
uikrati/Weather-journal
/docs/js/app.js
UTF-8
3,043
3.484375
3
[]
no_license
//global variables const apiKey = '&appid=da262f17244272b7f61604a3a917398e&units=imperial'; const baseURL= 'https://api.openweathermap.org/data/2.5/weather?zip='; //Get date value and make it readable let d = new Date() let date = `${d.getMonth()+1}/${d.getDate()}/${d.getFullYear()}` // Event listener to add funct...
true
a073121566e6f035d0052c60eff90b8428f3a672
JavaScript
AlexisFigueroaDev/JS-Node-React
/Fundamentos/template-string.js
UTF-8
255
3.4375
3
[]
no_license
const nombre = 'Alexis'; const real = 'Gabriel'; const normal = nombre + ' ' + real; const template = `nombre completo: ${normal} Figueroa`; console.log(normal); console.log(template); const html = ` <h1>Hola</h1> <p>Mundo</p> `; console.log(html);
true
ac4b0654be49fdd9d0de6c93926b764e64bb4f11
JavaScript
BLeeCCS/King-of-Tokyo
/Javascript/monster/enterCity.js
UTF-8
4,060
3.15625
3
[]
no_license
import { displayText } from "../game/displayText.js"; export function enterCity(monster,monsterArray) { let namePNG = ""; let name = ""; switch(monster.name) { case "mekadragon": namePNG = "MekaDragon"; name = "MEKADRAGON"; break; case "alienoid": ...
true
aeadb03d22745f74b5d47bd9a85dabbde8649d8e
JavaScript
HuddyHuda/js-callbacks-lab
/starter-code/timers.js
UTF-8
930
3.625
4
[]
no_license
// your code here: function init(){ var seconds = 0; var timerID = 0; var reset = document.getElementById('reset'); reset.addEventListener('click', resetIt); var start = document.getElementById('start'); start.addEventListener('click', startIt); var pause = document.getElementById('pause'); pause.addEventListene...
true
32902438056d2ff5e1921ca97918be38d80af2a2
JavaScript
youta32449999/webworkers
/vrm_worker/src/js/main.js
UTF-8
1,566
3.046875
3
[]
no_license
async function main() { if (window.Worker) { const width = 1000; const height = 800; // 背景画像を読み込み const backgroundImage = new Image(); backgroundImage.src = '/assets/image/sabanna.jpg'; await backgroundImage.decode(); // 背景画像をImageBitmapに変換するoffscreenCanvasを...
true
ee2b71648ef35ec83406c441b2203a8ccd8edf98
JavaScript
ChanNyein-V/JavaScript-Level-1
/jsprojectlone/formvalidationbaby/js/app.js
UTF-8
2,416
2.921875
3
[]
no_license
const form = document.getElementById('form'); const username = document.getElementById('username'); const email = document.getElementById('email'); const password = document.getElementById('password'); const cfmpassword = document.getElementById('cfmpassword'); // Event Listener form.addEventListener('submit',function...
true
3a82dc892c7722e9089c30875bb0a42605714372
JavaScript
YassineQYH/01-Javascript
/js/02.1-fonction.js
UTF-8
2,485
4.0625
4
[]
no_license
/* Créer une fonction */ /* -------------------------------------------------------------------- */ /* Une fonction est une suite d'instructions ayant un rôle précis (pour ne pas dire une fonction précise...). On lui donne (éventuellement) des arguments (également appelés paramètres) entre les parenthèses qui su...
true
318c8cb2d44db6a0a63f6b99bf9a61c1e9ca8e5a
JavaScript
shaunwcolley/assignmentday16
/fizzbuzz.js
UTF-8
490
3.859375
4
[]
no_license
let testNumber1 = 15; let testNumber2 = 0; let testNumber3 = 3; let testNumber4 = 5; let testNumber5 = 2; function fizzbuzz(number) { if(number % 3 == 0 && number % 5 == 0) { console.log("FizzBuzz"); } else if (number % 3 == 0) { console.log("Fizz"); } else if (number % 5 == 0) { console.log("Buz...
true
0a53ff2cc4dbdb3b7b35c400fabef29d2f16b5fe
JavaScript
binocarlos/failquarry
/v7_nodejs/lib/container/inspectselect.js
UTF-8
5,412
2.8125
3
[ "MIT" ]
permissive
/* Module dependencies. */ var _ = require('lodash'); module.exports = parse; /* Quarry.io Selector ------------------- Represents a CSS selector that will be passed off to selectors or perform in-memory search */ /*********************************************************************************** *****...
true
9ab89e96a0b33a5767df657756c9e7995e851490
JavaScript
Muaadahmed/page-fetcher
/fetcher.js
UTF-8
445
2.75
3
[]
no_license
const cmdArgs = process.argv.slice(2); const request = require('request'); const fs = require('fs'); let content = ''; request(`${cmdArgs[0]}`, (error, response, body) => { if(!error){ content += body; let arr = content.split(""); fs.writeFile(`${cmdArgs[1]}`, content, error => { console.log(`Downl...
true
d5d5dfeb6da03dfd058bd71cec6419ad2f5bca3c
JavaScript
MarllonCampos/Countdown-Timer
/script.js
UTF-8
1,232
3.578125
4
[]
no_license
let tempo = JSON.parse(localStorage.getItem('Tempo')) let frase = tempo.frase let hours = tempo.hours let minutes = tempo.minutes let seconds = tempo.seconds const phraseEl = document.querySelector('h1') const hoursEl = document.querySelector('.hours') const minutesEl = document.querySelector('.minutes') const sec...
true
20657d62e9290ac7a4b8d3caf38e0a198139ae81
JavaScript
bravedown/my-bot
/commands/discordmon/add-dmon.js
UTF-8
1,075
2.765625
3
[]
no_license
const db = require("../../models"); const rarities = require('../../config/rarities.json'); module.exports = { name: 'add-dmon', description: 'Add dmon to db.', args: true, execute(message, args) { if (!message.guild.members.cache.get(message.author.id).hasPermission('ADMINISTRATOR')) ret...
true
4d606b77115d13aefbf001278475d0f78dffccb8
JavaScript
eonarheim/Tiny-AStar
/astar.js
UTF-8
4,822
3.453125
3
[ "BSD-3-Clause" ]
permissive
/// Small A* implementation in javascript var Node = function(x, y, weight){ var me = this; me.x = x; me.y = y; me.weight = weight; me.hscore = 0; me.gscore = 0; me.solid = false; me.previousNode = null; me.reset = function(){ me.hscore = 0; me.gscore = 0; me.previousNode = null; } m...
true
8885b621c67f13a29154ad5512790de6920f9203
JavaScript
programergabyvargas/SecTurismo
/src/components/subcomponentes/GoogleMap.js
UTF-8
2,504
2.53125
3
[]
no_license
import React, { Component } from "react"; /* Ej de uso: <GoogleMap lat="-33.6576955" lng="-65.4579169" zoom="10" gwidth="100%" gheight="400px" /> */ class GoogleMap extends Component { constructor(props) { super(props); this.state = { loading: true, id: "", ...
true
9905e9db2dd02c7958d0a08fb42060f9ceb4d01d
JavaScript
fconte/3il-typescript
/solution.js
UTF-8
1,785
3.53125
4
[]
no_license
// Nous allons créer le coeur d'une todo list. // Une toto list est définie par une liste qui contient des todos // Une todo est définie par un identifiant, un titre et un état (todo, done) // 1 - Création d'un enum 'State' qui aura deux valeurs: Todo et Done var State; (function (State) { State[State["Todo"] = 0] ...
true
c97e3fc369536656b2c857ded002ef2d35a5865f
JavaScript
LukmanSingla/Project-28
/ball.js
UTF-8
611
2.953125
3
[]
no_license
class Ball{ constructor(x,y,radius){ var options={ restitution:1, friction:1, density:1.5 } this.body=Bodies.circle(x,y,radius,options); World.add(world,this.body); this.diameter=radius*2; this.image=loadImage("ball.png");...
true
5809b6cf5f5cfdc59ae0cc32bfa7d21f58fe74ae
JavaScript
0xBlackMirror/FCC-UrlShortner
/app.js
UTF-8
2,579
2.640625
3
[]
no_license
// Setting Basic Node Requires const express = require('express'); const bodyParser = require('body-parser'); const mongoose = require('mongoose'); var ObjectID = require('mongodb').ObjectID; // Express Middleware const app = module.exports = express(); // BodyParser Middleware app.use(bodyParser.json()); app.use(bodyP...
true
3c268d9d2e00e7a96fe97d3f8a7b0e16a84cb719
JavaScript
luckmer/E-commerce-Shop
/src/components/FilterEffect.js
UTF-8
1,509
2.546875
3
[]
no_license
import { useEffect } from "react"; import { useSelector } from "react-redux"; function FilterEffect(search, setFilteredData) { const state = useSelector(state => state.Context.fetchData) useEffect(() =>{ let filterS = state.slice(); if (search.filterInput) { filterS = filterS...
true
fd8e6fcecc89e322d0e4b8a26925242cd218a6d7
JavaScript
paubedac/fibonacci
/src/app.js
UTF-8
463
3.109375
3
[]
no_license
import express from 'express' import { fibonacci } from './fibonacci' const app = express() // respond with "hello world" when a GET request is made to the homepage app.get('/', function (req, res) { res.send('hello world') }) app.get('/fibonacci/:number', function (req, res) { const result = fibonacci(req.params...
true
a4ea72718c5ccc6c88c8bb8e143cbb00877b5ba9
JavaScript
pnimit/npatel52.github.io
/js/timer.js
UTF-8
1,677
3.828125
4
[]
no_license
function Timer(hours, minutes, seconds){ // Checking for NaN h = (hours !== hours)? 0 : hours; m = (minutes !== minutes)? 0 : minutes; s = (seconds !== seconds)? 0 : seconds; getHours = function(){ if(this.h < 10) return "0" + this.h; return this.h; }; getMinutes = function(){ if(this.m ...
true
12780d3f9cdc4a2e5984f5743608ee16254775f5
JavaScript
julfair/moodvisual
/static/js/public/graphic.js
UTF-8
3,020
2.59375
3
[]
no_license
var something = new Array( [62,35,255], [60,255,60], [255,35,98], [45,175,230], [255,0,255], [255,128,0]); var colorsEnergetic = new Array( [63, 229, 251], [226, 228, 107], [173, 192, 78], [252, 70, 107], ) var colorsFrantic = new Array( [251, 63, 63], [155, 107, 228], ...
true
5943968c87215a975d070372c3afcab46d3c56b5
JavaScript
jgoizueta/timerange
/lib/timeinstant.js
UTF-8
6,628
3.34375
3
[ "BSD-3-Clause" ]
permissive
const { dateValue, valueComponents, YEAR, MONTH, DAY, HOUR, MINUTE, SECOND, fullDate } = require('./time'); const { timeStartEndToText, textToTimeStartEnd, roundDateValue } = require('./conversions'); /** * Class TimeInstant represent zone-less dates (and times). * A time instant (point in time) is r...
true
1f59d1290ed630dd2129ae35ca249b8b7de223f8
JavaScript
yura8822/device-store
/src/main/resources/static/js/category.js
UTF-8
2,129
2.75
3
[]
no_license
$(document).ready(function () { }); function add_category() { var text = {} text["name"] = $("#add_category_name").val(); $.ajax({ url: "api/categories", type: "POST", headers: { "Content-Type": "application/json", }, contentType: "application/json"...
true
542e5b941ef15d546bae3bdf67978d8e5e53f500
JavaScript
ortizjs/algorithms_
/LeetcodeQuestions/intersectionOfTwoArrays-II-350.js
UTF-8
868
3.734375
4
[]
no_license
/** * @param {number[]} nums1 * @param {number[]} nums2 * @return {number[]} * * Time: O(n + m) where n and m are the lengths of the array. We iterate through the first * and then through the second. Insert and look up operations in hashmap take linear time. * Space: O(min(n,m)) as we use the size of smaller ar...
true
ae451b3edc16482e179130576204bce30ae782fc
JavaScript
Mishon-pon-pon/getInfoAboutPackage
/GIAP.js
UTF-8
1,377
2.53125
3
[]
no_license
const https = require("https"); const { Octokit } = require("@octokit/core"); const fs = require("fs"); /** * create auth token in github and paste into Octokit params */ const octokit = new Octokit({ auth: `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`, }); let getInfo = (package, callback) => { return https.get( ...
true
a0a9b34525b52a96e745a21e6b96021e4939154b
JavaScript
AlexGitH/excel-test
/client/src/utils/testing/cellFormulaCalculations.js
UTF-8
3,029
2.6875
3
[]
no_license
// DEBUG: USED FOR DEBUG ONLY /* eslint { "no-eval" : 0 } */ //tested in browser const cells = { A4 : { col : 1, row : 4, value : null, expr : '=A9+A8' }, A5 : { col : 1, row : 5, value : null, expr : '=A9+A8 - 1' }, A6 : { col : 1, row : 6, value : null, expr : null }, A...
true
142a3fd16fdc8c4e0ff6b69f7f53eeb8ca7a0ad6
JavaScript
vipulrawat/jc-test
/src/__tests__/prime.test.js
UTF-8
612
2.953125
3
[]
no_license
/* eslint no-unused-expressions: 0 */ import prime from '../backend/sequencers/primeSeq'; let iterations = 100; describe('prime sequence', () => { it('should generate first five correct prime numbers', () => { const gen = prime(); const expected = [2, 3, 5, 7, 11]; for (let i = 0; i < 5; i += 1) { ...
true
7be48623cc706e61020ca5c03e56e1b0f3f3e7e9
JavaScript
tk3fftk/kakomon
/nodejs/abc086A.js
UTF-8
240
3.1875
3
[]
no_license
function Main(input) { const i = input.split('\n'); const [a, b] = i[0].split(' '); (parseInt(a) * parseInt(b)) % 2 === 0 ? console.log('Even') : console.log('Odd'); } Main(require('fs').readFileSync('/dev/stdin', 'utf8'));
true
4fb40c8e8ed2afdb6f1d9d4175a941bc93e1eb37
JavaScript
sakshamahluwalia/Key-Logger
/content.js
UTF-8
640
3.390625
3
[]
no_license
var word = ""; var letter = ""; // Listen to any, "keypress" event. addEventListener('keypress', function(event) { word += event.key; // if the key pressed is a, "space character" start a new word. if (event.code == "Space") { word += " "; } }); // update the log after window has been closed. window.onbefore...
true
2ea0158c24976e8788ac1d24d56a56b405d7f980
JavaScript
Kadem9/galeriephoto
/js/app.js
UTF-8
666
3.078125
3
[]
no_license
const bloc = Array.from(document.querySelectorAll(".cadre")); const li = Array.from(document.querySelectorAll("li")); li.forEach((date) => { date.addEventListener("click", (e) => { for (let i = 0; i < li.length; i++) { if (li[i] === e.target) { li[i].classList.add("actual"); ...
true
9f70c955e6faf7292ed57389d080aa454e98c060
JavaScript
bregord/nearbuy
/js/tester.js
UTF-8
552
3.328125
3
[]
no_license
function test(){ var latitude; var longitude; var geocoder = new google.maps.Geocoder(); var address = document.getElementById("address").value; geocoder.geocode( { 'address': address}, function(results, status) { if (status == google.maps.GeocoderStatus.OK) { // do something with the geocoded resul...
true
3f3878bceaf9eac3ff06760dd5d91539d77251c0
JavaScript
apache/couchdb-fauxton
/app/addons/setup/__tests__/helpers.test.js
UTF-8
2,235
2.5625
3
[ "Apache-2.0" ]
permissive
// Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed un...
true
1e24b555032b522fdca7b1a4573594295e5d106d
JavaScript
DeLukzCoder/SP-7-Assignment4
/app/app.js
UTF-8
1,603
2.8125
3
[]
no_license
/** * * @author Lukasz Krawczyk */ 'use strict'; var app = angular.module('myApp', []); app.filter('name', function () { return function (person) { return person.lastName + ", " + person.firstName; }; }); app.directive('loginForm', function () { return { restrict: 'EA', templ...
true
33ae84e23f43b5f12a6ed4065d1f9a447ac65698
JavaScript
Aaron-Jeffers/Graphics_Programming_Project
/res/combiShader.frag
UTF-8
4,347
2.984375
3
[]
no_license
#version 330 uniform vec2 resolution; //Resolution of the texture, higher the number effectively 'zooms in on the shaders' uniform float timeStep; //Variable to keep track of time uniform int octaves; //Number of octaves, used to determine level of detail of wave in noise function uniform float amplitude; //Deter...
true
c977f35425c3c2334b5fddb5b3c3406ba069f330
JavaScript
ferronsays/Pollock.js
/js/Pollock.js
UTF-8
6,401
2.875
3
[ "MIT" ]
permissive
/* Pollock.js Simple tool to get you up an running with a canvas element. Named after the artist. Pollock provides an animation loop and a basic structure for some canvas creativity; interactive or not. This is about as simple as it gets. If you are looking for something a little more fleshed out, I recommend ...
true
b0bd6e904363620259236ab1d93df75ff039777b
JavaScript
Majidova/Homeworkk3
/script.js
UTF-8
3,838
4.6875
5
[]
no_license
// 1. // let myAlphabet = ['A', 'B', 'C', 'D','E','F', 'G']; // What is the length of the array? // Write a function called myAlphabetLength which console.logs the length of the array // Within the function also use an if-conditional statement that checks if the number of items within the array are less than 4 let myAl...
true
5acc97f6c460ade89b729850bc2da3489da09b46
JavaScript
JKirchartz/demos
/webcomponents/notepad.js
UTF-8
1,071
2.875
3
[]
no_license
class notepad extends HTMLElement { _shadowRoot = null; _filename = "notepad"; constructor() { super(); this._filename = this.hasAttribute('filename') ? this.getAttribute('filename') : this._filename; this._shadowRoot = this.attachShadow({mode: 'open'}); this._shadowRoot.innerHTML = ` ...
true
32bee177f67cc450785957a1c8f0a4b3e423a64a
JavaScript
coolkeychen/blog
/demos/deepCopy/deepCopy.js
UTF-8
1,281
3.640625
4
[]
no_license
const x = { body: { name: "cat", age: 29 } } let y = JSON.parse(JSON.stringify(x)); let z = Object.create(x); y.body.name ='go'; console.log(x.body.name); // 'cat' console.log(y.body.name); //'go' console.log(x===y); //false console.log(x===z); //false console.log(y.body.name===x.body.name); /...
true
4da9632dbd7643ea4dbfa207643b905671529380
JavaScript
andreabenedetti/the-point-of-no-return
/libs/js/tempd3.js
UTF-8
2,508
2.546875
3
[ "MIT" ]
permissive
var temp = d3.select("#temp-graph"), margin = {top: 20, right: 20, bottom: 40, left: 50}, widthTemp = d3.select("h1.titolo2").node().getBoundingClientRect().width - margin.left - margin.right, heightTemp = 700 - margin.top - margin.bottom, f = temp.append("g").attr("transform", "translate(" + margin.lef...
true
8cf5620b4ac1a2cec93d0f2ef04822941de4760b
JavaScript
asathoor/SecondSemester-spring-2019
/video/js/video.js
UTF-8
574
2.6875
3
[]
no_license
'use strict' /** * file: video.js * purpose: display and control video via Js **/ let MyVideo = function () { this.vid.src = 'https://ia800300.us.archive.org/3/items/bb_snow_white/bb_snow_white_512kb.mp4'; this.vid.style.width = '100%'; // ye olde mobile first trick this.vid.style.maxWidth = '800px'; // limit ...
true
5c0f381172533b316b1a838a73210f57342d17f0
JavaScript
siesgst-tech/fossgst
/src/public/javascripts/navbar.js
UTF-8
305
2.546875
3
[]
no_license
var aboutButton = document.getElementById('offcanvas-about'); var aboutSlider = document.getElementById('offcanvas-about-slider'); aboutButton.addEventListener('click', function (event) { console.log('in here'); aboutSlider.style.display = aboutSlider.style.display === 'none' ? 'block' : 'none'; });
true
a2100aa86fca98d2a9fed48f398e9f462bd6b5f0
JavaScript
loopmachine/re-structure
/examples/todomvc/db.js
UTF-8
2,082
2.71875
3
[]
no_license
import Immutable from 'immutable'; // -- initial application db export function initDb() { return Immutable.fromJS({ todos: { '1': { id: '1', title: 'one', done: false }, '2': { id: '2', tit...
true
280a6453ecf83006a505685f84f1529299a60e01
JavaScript
martincartledge/coding_exercises
/print_immutable_linked_list_in_reverse.js
UTF-8
516
3.671875
4
[]
no_license
// https://leetcode.com/problems/print-immutable-linked-list-in-reverse/ // recursive var printLinkedListInReverse = function (head) { if (!head) return; printLinkedListInReverse(head.getNext()); head.printValue(); }; // iterative var printLinkedListInReverse = function (head) { if (!head) return; let curre...
true
332cd9cf1ffcd444b3453ac1eb73d186d740dcba
JavaScript
takurofukuta/sandbox-javascript-study
/src/index.js
UTF-8
2,159
3.296875
3
[]
no_license
import "./styles.css"; const addTask = () => { // 入力された値を取得し、入力フォームを空にする const inputText = document.getElementById("input-text").value; document.getElementById("input-text").value = ""; // 未完了タスクの追加処理 // liタグ作成 const li = document.createElement("li"); // divタグ作成 const div = document.createElement("div...
true
9be36de68ac7a7f67619deac8b995b20ab5b497b
JavaScript
danhartley/snapdragon-redux
/src/checklist/checklist.js
UTF-8
1,233
2.53125
3
[]
no_license
import "babel-polyfill"; import 'checklist/style.scss'; import { checklists } from 'checklist/checklists'; import { toollist } from 'checklist/checklist.tools'; import { about } from 'checklist/checklist-about'; const menuButtons = Array.from(document.querySelectorAll('.js-menu button')); menuButtons.forEach(option...
true
bbc9046a06cb79f00b428c53fe7d44770af5807b
JavaScript
daeyeon/iotjs-samples
/robot-control/iotjs_modules/robot/moter.js
UTF-8
2,664
2.53125
3
[]
no_license
/* Copyright 2018-present Samsung Electronics Co., Ltd. and other contributors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * U...
true
f0ca62ca49f171585adc0a9e840f00129386a390
JavaScript
TitanKuzmich/group-corp-2
/KrivonosAleksandr/react/lesson2/src/components/ChatArea.jsx
UTF-8
3,108
2.546875
3
[]
no_license
import React, {Component} from 'react'; import {TitleArea} from './areas/TitleArea.jsx'; import {InputArea} from './areas/InputArea.jsx'; import {MessagesCheck} from "./areas/messages/MessagesCheck"; import {Scrollbars} from "react-custom-scrollbars"; export class ChatArea extends Component { state = { a...
true
e857f0d10755183bcba2e1f3a3f679932e019ea6
JavaScript
JoshOlds/weatherstation
/server.js
UTF-8
2,252
3.015625
3
[]
no_license
/* Single file server to take temperature readings and report them to web API Author: Joshua Olds */ var interval = 15; var address = 'https://boiseweather.herokuapp.com/api/weather' var pin = 'P9_15' var mode = '2302' var fs = require('fs'); var request = require('request'); var exec = require('child_process').exec; ...
true
8507cb1aec9500282b4bdf6ee69ee4c65a2d4e11
JavaScript
bingv150/iClient-for-JavaScript
/libs/SuperMap/Strategy/GeoText.js
UTF-8
50,192
2.5625
3
[ "Apache-2.0" ]
permissive
/* COPYRIGHT 2012 SUPERMAP * 本程序只能在有效的授权许可下使用。 * 未经许可,不得以任何手段擅自使用或传播。*/ /** * @requires SuperMap/Strategy.js */ /** * Class: SuperMap.Strategy.GeoText * 控制标签渲染的策略。 * * Inherits from: * - <SuperMap.Strategy> */ SuperMap.Strategy.GeoText = SuperMap.Class(SuperMap.Strategy, { /** * Property: viewLabe...
true