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
1f306c841c6d10028e55b1c2c4647d4027b6cf83
JavaScript
Hi-Cloudy/FirstProgram
/DTRBlog/DTRBlog/obj/Release/AspnetCompileMerge/TempBuildDir/Scripts/Article/editor.js
UTF-8
17,592
2.75
3
[ "MIT" ]
permissive
 //实现元素的 var resizseable = { position: function (ele, e) {//鼠标的位置, ele: 元素,e: 元素move鼠标事件对象 var width = ele.offsetWidth; var height = ele.offsetHeight; var offsetX = e.offsetX; var offsetY = e.offsetY; if (offsetX >= width - 10 && offsetY < height - 10) {//右 retu...
true
b59360a174d1be8eb20343c07f333660a8357b8f
JavaScript
bmoconnell/git_practice
/Matching Game/app.js
UTF-8
2,699
3.609375
4
[]
no_license
//make an array of our card images const cardArray = [ {name: "rose", img: "images/rose.png"}, {name: "rose", img: "images/rose.png"}, {name: "daffodil", img: "images/daffodil.jpg"}, {name: "daffodil", img: "images/daffodil.jpg"}, {name: "bluebell", img: "images/bluebell.png"}, ...
true
8e9028b2230ce8637af20d6814d8df2d35ba597e
JavaScript
halaei/2048
/js/logics/tile.js
UTF-8
312
3.078125
3
[ "MIT" ]
permissive
/** * Tile Class **/ function Tile(value) { this.value = value; this.cell = null; } Tile.prototype.roll= function(dst) { this.cell.empty(); dst.setTile(this); }; Tile.prototype.merge = function(dst) { this.value += dst.tile.value; this.roll(dst); dst.locked = true; };
true
bc8717cb4c64eede5dca37f99afaf6aaf0385433
JavaScript
akshaybarve06/PARKING_LOT_PROBLEM_BY_TDD
/test/ParkingLotTests.js
UTF-8
9,068
3
3
[]
no_license
// Importing require library let expect = require('chai').expect var assert = require('chai').assert let sinon = require('sinon') let parkingLotMain = require('../main/ParkingLotMainClass') let owner= require('../main/ParkingLotOwner') let parkingAttendent=require('../main/ParkingAttendant') let cars=require('../main/...
true
bca25abff861e8cc8261c8d2f1de866a67af5156
JavaScript
Tehl/txtelite
/port/c_string.js
UTF-8
1,181
3.078125
3
[ "MIT" ]
permissive
function c_string(length) { this._data = Array(length).fill(0); } c_string.prototype.get = function(idx) { if (idx >= 0 && idx < this._data.length) { return this._data[idx]; } return 0; }; c_string.prototype.set = function(idx, value) { if (idx >= 0 && idx < this._data.length) { this._data[idx] = va...
true
6fe0e28c4aeef40cb8f86331f831463a7727caa5
JavaScript
shunwuyu/lesson_md
/typescript/getUserInfo/2.js
UTF-8
111
2.6875
3
[]
no_license
var getUserInfos = function (user) { return "name: " + user.name + " age: " + user.age; }; getUserInfos();
true
f957291935da45100ba436f7eccfc07452937461
JavaScript
Phildo/what-doesnt-kill-you
/handlers/roundhandler.js
UTF-8
13,961
2.875
3
[]
no_license
var RoundHandler = function(scene) { this.scene = scene; var roundTypes = ["NULL","DUDES","DUDES_AND_SHOOTER","DUDES_AND_SHOOTERS","DUDES_AND_SUPERDUDES","SPEEDERFUCK","SMORGASBOARD","SHOOTERS_AND_SUPERS","TANK_N_FRIENDS","SUPERSPEEDERFUCK","SUPERS","TANKFUCK","RANDOM"]; this.rounds = []; var tmpRound; //Ev...
true
2cd2371431ce96de38356e3b0e3ece20561c8002
JavaScript
Kukks/ng1-todo-example
/client/common/list/list-item/list-item.controller.js
UTF-8
1,174
2.578125
3
[]
no_license
import {ListItem, ListItemStates} from '../list.models'; export default class ListItemController { constructor($scope) { this.reset(); } reset() { this.showValidationMessage = false; this.nameEditMode = this.item ? false : true; this.newName = this.item ? this.item.name : 'New Item'; } edit...
true
258948d62b55d6c0cbe16462aefc080ed2de402d
JavaScript
micahbule/reactjs-cynder-tutorial
/server.js
UTF-8
1,646
2.546875
3
[]
no_license
var fs = require('fs'); var path = require('path'); var express = require('express'); var bodyParser = require('body-parser'); var JsonStore = require('simple-json-store'); var shortid = require('shortid'); var app = express(); var COMMENTS_FILE = path.join(__dirname, 'products.json'); var jsonStore = new JsonStore(C...
true
60ca345ddedf048641ef03b7dad51e7fef2dc7ad
JavaScript
slaveunit/slaveunit1.0
/js/scripts.js
UTF-8
4,079
2.796875
3
[]
no_license
// message box color exercise $(".message-box, .message-box-sm").css("background-color", "black"); //fb like button (function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) return; js = d.createElement(s); js.id = id; js.src = "//connect.facebook.net/en_US/sdk.js#xf...
true
d1d7256654e17d8726ea203d80bd04b604c02afa
JavaScript
katjadulmaine/burger
/controllers/burgers_controller.js
UTF-8
1,655
2.96875
3
[]
no_license
var express = require("express"); var router = express.Router(); var burger = require("../models/burger.js"); // Create all our routes and set up logic within those routes where required. router.get("/", function (req, res) { burger.selectAll(function (data) { var burgerList = { burgers: data }...
true
0508cf60f4992a74d391a8175dee899bd8fd0c0b
JavaScript
naviniitk/ToDoList
/src/submit.js
UTF-8
545
2.765625
3
[]
no_license
import { Task } from './task'; const mySubmit = () => { const title = document.getElementById('title').value; const desc = document.getElementById('description').value; const priority = document.getElementById('priority').value; const date = document.getElementById('date').value; const reminder = new Task(ti...
true
a7173c44449d61fe35fbb52cfc98563d4c9ec7bf
JavaScript
ciproSi/cbc-exercises
/day-16/train-station/with-api/TrainDeparture.js
UTF-8
2,387
3.3125
3
[]
no_license
'use strict'; class TrainDeparture { constructor(timeHrs, timeMins, trainName, trainNr, to, status, track) { this.timeHrs = timeHrs; this.timeMins = timeMins; this.trainName = trainName; this.trainNr = trainNr; this.to = to; this.status = status; this.track =...
true
9c92ce35bdf5f7d3485ecfe09f86b85983132f5a
JavaScript
robbiegreiner/number-guesser-vanilla-js
/script.js
UTF-8
972
3.765625
4
[]
no_license
const input = document.getElementById('num-input') const guessBtn = document.getElementById('guess-btn'); const guessSpan = document.getElementById('guess'); const highlowok = document.getElementById('highlowok'); const resetBtn = document.getElementById('reset-btn'); const generateRandom = () => { return Math.floor...
true
8e506f60b6cf948b7b7b803ad850eadf482c79a5
JavaScript
mationai/advent-of-code
/js-pipe-fkit_2017/test/14.js
UTF-8
739
2.75
3
[]
no_license
const should = require('should') const { take } = require('fkit') const { multiKnotHash, count1s } = require('../dist/day14') // Test examples from instruction const p1 = { d: 'flqrgnkx', expectedSample: `d4 55 0a ad 68 c9 44 d6`.split('\n'), expectedSample1s: 29, } const getXcharsYlines = (a, x, y) => take(y...
true
09e1090e551f652d173cd9979302671715624bce
JavaScript
lyon-liao/react-es6-flux-demo
/js/stores/movieStore.js
UTF-8
676
2.828125
3
[]
no_license
import $ from 'jquery'; import EventEmitter from 'events'; const URL = "https://raw.githubusercontent.com/facebook/react-native/master/docs/MoviesExample.json"; var movies = []; class MovieStore extends EventEmitter { constructor(props){ super(props); this.init(); } init(){ $.get(URL).then((response...
true
61fb26bfde74624b2204a61c3a5a63d052747119
JavaScript
TarunKumar-01/TarunKumar
/8. Web Development/javascript assignment/javascript a1/basic js 2/19.js
UTF-8
279
3.171875
3
[]
no_license
<!DOCTYPE html> <html> <body> <button onclick="myFunction()">Try it</button> <p id="demo"></p> <script> function myFunction() { var a = ["a", "b","c"]; var b= [1,2,3]; var c = a.concat(b); document.getElementById("demo").innerHTML = c; } </script> </body> </html>
true
f0db1c98580a7b83dbee5013d83998688ec33070
JavaScript
magdalena70/Front-End-JavaScript
/JavaScript-Advanced/Homework_05-JavaScript-Design-Patterns/Problem_01-TODO-List-Variant_2/helpers/extenssions.js
UTF-8
1,396
2.890625
3
[]
no_license
'use strict'; Function.prototype.extend = function(parent){ if(!Object.create){ Object.create = function(proto){ function F(){}; F.prototype = proto; return new F(); }; }; this.prototype = Object.create(parent.prototype); this.prototype.constructor = this; } function getCurrDayName(){ var currDate...
true
e0ea86a7a604ee38b141400f53d8f58282dd5a1e
JavaScript
Rakhsanth/garageDeviceAppFrontEnd
/controllers/users.js
UTF-8
6,204
2.53125
3
[ "MIT" ]
permissive
// 3rd party modules const jwt = require('bcryptjs'); // custom modules const ErrorResponse = require('../utils/error'); const User = require('../models/User'); const asyncHandler = require('../middlewares/asyncHandler'); const { validatePassword } = require('../inputValidators'); /* route: GET /users/me desc...
true
48f9b4af0410993e2cc4868a8d6e4247ffb3fba8
JavaScript
ziniman/aws-translate-demo
/translate-site/js/loadContent.js
UTF-8
1,760
2.671875
3
[ "BSD-3-Clause", "Apache-2.0" ]
permissive
var urlParams = new URLSearchParams(window.location.search); var languageId = urlParams.get('lang'); var title = document.getElementsByTagName('title')[0]; var cv = document.getElementById('cv'); var myName = document.getElementById('myName'); var siteTitle = document.getElementById('siteTitle'); if (languageId && la...
true
2016624ddc505b1d0ab1502f730e5eb4c5c78097
JavaScript
intxcc/Bankruptcy-Webapp
/src/chart/Axis.js
UTF-8
3,671
2.96875
3
[]
no_license
'use strict' import autobind from 'autobind-decorator' import { lineNoSingle, text } from './AtomicDraws' class Axis { constructor (chart) { this.chart = chart } @autobind drawXStep (x, y, length) { lineNoSingle(this.chart.ctx, x, y, x, y + length) } @autobind bottomAxis () { let ctx = th...
true
badce859d0dd97fa2bdacc90af4a3ccd4a814605
JavaScript
nick1973/mitel_vault
/public/js/products_controller.js
UTF-8
1,028
2.59375
3
[ "MIT" ]
permissive
var helloApp = angular.module("helloApp", []); helloApp.controller("CompanyCtrl", function($scope, $http) { $http.get("/test") .then(function (response) { $scope.bonds = response.data; //Console.log(response.data); }); //$scope.bonds = []; $scope.addRow = function()...
true
e05c0053a37533ae75e7c311d8d53ec0e76b70f4
JavaScript
devslife7/fewpjs-iterators-fndcl-fnexpr-filter-lab-wdc01-seng-ft-060120
/index.js
UTF-8
346
2.84375
3
[ "LicenseRef-scancode-public-domain", "LicenseRef-scancode-unknown-license-reference" ]
permissive
const findMatching = ( drivers, str ) => { return drivers.filter( driver => driver.toLowerCase() === str.toLowerCase() ) } const fuzzyMatch = ( drivers, str ) => { return drivers.filter( d => d.toLowerCase().startsWith(str.toLowerCase())) } const matchName = ( drivers, str ) => { return drivers.filter( driver ...
true
e567190316e901c5472e75786ced218fef2e8e95
JavaScript
michaeljoepeterson/FoodNearYou
/index.js
UTF-8
14,645
2.859375
3
[]
no_license
const endUrl = "https://developers.zomato.com/api/v2.1/"; const zomatoKey = "a0f05595eda479ba1030417f5224deca"; let infoWindowArray = []; let markerArray = []; let addressArray = []; let mapObj; //checks input for illegal characters function checkInput(strToCheck){ const legalChars = /^[a-zA-z0-9.,?!;\s']*$/; retu...
true
18f60f1f25d55f23daae2729237ac30adc8e7b66
JavaScript
gorajski/phase-0-tracks
/web_dev/client_side_js/test.js
UTF-8
273
2.796875
3
[]
no_license
console.log("The script is running!"); function createGreenBorder() { var photo = document.getElementById("hplogo"); photo.style.border = "3px solid green"; } var photo = document.getElementById("hplogo"); photo.addEventListener("Click", createGreenBorder);
true
54172c5cf79e472989e4aa2023d6827192f8c292
JavaScript
neverhood671/SmartHomeLogic
/tests/checks.js
UTF-8
3,636
2.765625
3
[]
no_license
const assert = require('assert'); const fs = require('fs'); var calcBestSchedule = require('../index.js'); var inputFileName = "../data/input.json"; //Попали ли все устройства в расписание function isAllDevicesInSchedule(input, output) { var isCorrect = true; for (var i = 0; i < input.devices.length; i++) {...
true
b86b4646312e406d2df7640c15368e36f2396c6f
JavaScript
chenliwen123/workorder
/src/filters/filters.js
UTF-8
529
2.890625
3
[]
no_license
export default { formatDate(time){ let date = null if ((time + '').length === 10) { date = new Date(time * 1000) } else { date = new Date(time) } const Y = date.getFullYear() const M = date.getMonth() + 1 const D = date.getDate() const H = date.getHours() const MM = dat...
true
be186e346b518edbca9daaf44e1c72c69f9f49dc
JavaScript
adelasofia/strimzi
/assets/javascript/connectors-page.js
UTF-8
2,652
2.53125
3
[ "Apache-2.0" ]
permissive
$(document).ready(function() { $('.card').click(function() { var cardId = event.currentTarget.id; var contentWrapper = $("#content_" + cardId); // Hides previously open content $(".connector-content-wrapper.open").removeClass("open"); // Displays content for clicked card contentWrapper.add...
true
b5a8d15b5070c500d3cb3056f604686d236ff321
JavaScript
rafaelgov95/estaqui
/Teste.js
UTF-8
1,107
2.78125
3
[]
no_license
"use strict"; var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.definePrope...
true
b7308756008cad0a8578b25c73fd33ef4612bf49
JavaScript
IhorWenher/JS_home
/js/02-input.js
UTF-8
209
3.4375
3
[]
no_license
//let userInput = prompt('Введіть число 10'); //userInput = Number(userInput); //console.log(typeof userInput); //console.log(userInput === 10); //console.log(5 < 2); //console.log("5" === 5);
true
5f302c0565ed4a611f23b3416027eeba49c17e36
JavaScript
DBenson1017/survivor-client
/src/components/Result.js
UTF-8
2,781
2.53125
3
[]
no_license
import React from 'react'; import AirCard from './AirCard' import Superfund from './Superfund' import { Grid } from 'semantic-ui-react' class Result extends React.Component { state={ airData: null, superData: null } sortData = ()=>{ this.showAir() this.showSuperfund...
true
01a4ae71dd12d5b870275f3747c4193fe441c037
JavaScript
mentionslit/IntroToNodeJS
/Lab8Question2.js
UTF-8
802
3.8125
4
[]
no_license
console.log('Lab8Question2'); //Step 1: Define input variables let numbers = [70, 72, 74, 76, 78, 80, 82, 84, 86, 88, 90, 92, 94, 96, 98, 100]; var results = numbers; //Step 2: Calculations for (let counter = 0; counter < 16; counter++){ if (counter <= 6) console.log(numbers[counter] + ': Below Average'); else i...
true
45345646d31dec9c44d61c442fb2c9fc21111511
JavaScript
Kingjosh007/jest-testing-practice
/Calculator.js
UTF-8
199
2.890625
3
[]
no_license
class Calculator { static add = (a, b) => a + b; static subtract = (a, b) => a - b; static divide = (a, b) => a / b; static multiply = (a, b) => a * b; } module.exports = Calculator;
true
46c13bdb01a53b1c1c60294ac4715f2d05b68f09
JavaScript
Bogdan-Blaj/apple-scroll
/js/app.js
UTF-8
3,041
2.953125
3
[]
no_license
const intro = document.querySelector(".intro"); const text = intro.querySelector("h1"); const paragraph = intro.querySelector("p"); //END SECTION const section = document.querySelector("section"); const end = section.querySelector("h1"); //SCROLLMAGIC const controller = new ScrollMagic.Controller(); //Apple images co...
true
931dc8bf3a15c673dbeab3aeca0261a05686fe58
JavaScript
danielleknudson/data-structures
/sprint-two/src/graph.js
UTF-8
1,339
4.1875
4
[]
no_license
var Graph = function(){ this.vertices = []; this.edges = []; }; // O(1) Graph.prototype.addNode = function(node){ this.vertices.push(node); }; // O(n) Graph.prototype.contains = function(node){ for (var i = 0; i < this.vertices.length; i++){ if (this.vertices[i] === node){ return true; } } ...
true
5652457e8b40bfceb7df730d5402f64868e1d00c
JavaScript
ansonl/SCIAF
/scrolling.js
UTF-8
3,639
2.8125
3
[ "CC-BY-3.0" ]
permissive
var scrollLeftDownTimer; var scrollLeftTimer; var scrollLeftUpTimer; var scrollUpTimer; var scrollRightUpTimer; var scrollRightTimer; var scrollRightDownTimer; var scrollDownTimer; scrollingLeftDown = 0; scrollingLeft = 0; scrollingLeftUp = 0; scrollingUp = 0; scrollingRightUp = 0; scrollingRight = 0; scrollingRightDow...
true
696bee20028cd25f5977599b9b2aca92eca67e98
JavaScript
Fe-eze/AlgoCasts-master
/exercises/capitalize/index.js
UTF-8
868
4.4375
4
[]
no_license
// --- Directions // Write a function that accepts a string. The function should // capitalize the first letter of each word in the string then // return the capitalized string. // --- Examples // capitalize('a short sentence') --> 'A Short Sentence' // capitalize('a lazy fox') --> 'A Lazy Fox' // capitalize('lo...
true
115fed3efb710ecea3c1d0670d30b15a858d4353
JavaScript
adub65/js-advanced-functions-generalized-map-and-reduce-lab-pca-001
/index.js
UTF-8
358
3.234375
3
[ "LicenseRef-scancode-public-domain", "LicenseRef-scancode-unknown-license-reference" ]
permissive
function map(sourceArray, callback) { const result = [] for(const element of sourceArray) { result.push(callback(element)) } return result } function reduce(array, callback, start) { let result = start ? start : array[0] let i = start ? 0 : 1 for(const elem of array.slice(i)) { result = callbac...
true
930592e7d1dadd467db3aad24a285394a3f90be5
JavaScript
hlthi/react-simple-app
/src/compoments/TableRef.js
UTF-8
4,048
2.65625
3
[]
no_license
import React from 'react'; import PropTypes from 'prop-types'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import { Checkbox, Table, Header } from 'semantic-ui-react'; import { selectedUserAdd, selectedUserRemove } from '../actions/user'; import { addPieData, removePieData } from ...
true
575042d501ec5ea76b87d49f49a37a978e104b9f
JavaScript
annikastookey/flappybat
/model.js
UTF-8
3,446
3.125
3
[]
no_license
console.log("loaded model.js"); class Model { constructor(app) { console.log("constructing model"); this.app = app; this.player = undefined; this.obstacles = undefined; this.runTime = 0; this.highscore = document.getElementById("highScore"); this.score = document.getElementById("score"); ...
true
80a8c0634c35325d2f1b272f31c3c95730b676a0
JavaScript
rafaelcabrera/intro_node
/paquetes/modulo/utiles/bcrypt.js
UTF-8
412
2.546875
3
[ "MIT" ]
permissive
const bcrypt = require('bcrypt'); // import * as bcrypt from 'bcrypt'; // const saltRounds = 10; const password = '1234Segura!'; bcrypt.hash(password, 5, (err, hash) => { console.log(hash); bcrypt.compare(password, hash, (err, res) => { //console.log(err); console.log(res); }); }) //pass r...
true
9cc2de1ebfcfe3806005b73b44e41418ba22fceb
JavaScript
jfalxa/plan
/src/help.js
UTF-8
853
2.71875
3
[]
no_license
function help() { alert(` # ALL - press SPACE to switch between modes - use your trackpad or drag your mouse around to move on the stage - hold CTRL while scrolling to control zoom # EDIT - click on an empty space to start a new polygon - click on the first point of a new polygon to close it - hold CTRL and click ...
true
6b67f725759f3d22e1cfa0d5c539a49212023dba
JavaScript
red-rc/www.postline.net
/script.js
WINDOWS-1251
1,401
3.296875
3
[]
no_license
//Registration's logic var register_caches = []; //A variable in which all information is stored document.getElementById('add').onclick = function(){ //The function that when you click the "register me" button adds data to the localStorage var name = document.getElementById('name'); var surname = docu...
true
24c5c1a6029619c51aa6af7e2b08af81ad6fcbea
JavaScript
mr-svetley/kekstagram-new
/js/slider.js
UTF-8
2,590
2.71875
3
[]
no_license
'use strict'; window.slider = (function () { var VALUE_MIN = 0; var VALUE_MAX = 100; var VALUE_DEFAULT = 100; var photoEditor = document.querySelector('.img-upload__overlay'); var slider = photoEditor.querySelector('.img-upload__effect-level'); var sliderPin = slider.querySelector('.effect-level__pin'); ...
true
e8fd29b69c932e0c0c3dea2c5ec84ca411929914
JavaScript
Hyedima/Intro_Javascript
/a6f2ace99697bfc3a4b4d10fb01a24b27e503377/js/contacts.js
UTF-8
1,292
3.84375
4
[]
no_license
/* Activity: Contact manager */ // TODO: Complete the program var contact = { init : function(firstName,lastName){ this.firstName = firstName; this.lastName = lastName; }, describe : function(){ var desc = "Last name: "+this.lastName+", first name: "+ this.firstName; return desc; } }...
true
8955bb710ae0219dc96e3d621139a800ab8894bb
JavaScript
lamorin/frontend-nanodegree-arcade-game
/js/app.js
UTF-8
5,165
3.234375
3
[]
no_license
(function (global) { var configuration = { "limits" : { "upperLimit" : -80, "rightLimit" : 500, "downLimit" : 450, "leftLimit" : -50 }, "stepX" : 100, "stepY" : 83, "rowRockOne" : 229, "ro...
true
9d9fe1184a374c28cc64daf64f111c357528f9a5
JavaScript
fsd66/sharepad
/src/server.js
UTF-8
1,013
2.546875
3
[]
no_license
const http = require("http"); const path = require("path"); const express = require("express"); const socketio = require("socket.io"); const app = express(); const httpServer = http.createServer(app); const io = socketio(httpServer); app.use("/public", express.static(path.join(__dirname, "..", "web", "public"))); a...
true
a9d9638876e93bc8a981c74b9fcfa17c61186017
JavaScript
BairnOwl/runDvous
/public/schedule.js
UTF-8
3,278
2.796875
3
[]
no_license
/** * Created by bairnowl on 7/22/16. */ var socket = io.connect(); window.addEventListener('load', function() { var req = new XMLHttpRequest(); req.onreadystatechange = function() { if (req.readyState == 4 && req.status == 200) { var customers = JSON.parse(req.responseText); ...
true
5949d4488f0aa20a6d0c777f2d2358cb8154be60
JavaScript
dbuhtiyarov/gitlab-ci
/specs/async.spec.js
UTF-8
1,396
3.03125
3
[ "MIT" ]
permissive
'use strict'; import { waterfall, parallel} from '../src/async'; describe('testing parallel', () => { it ('should return a Promise object', () => { const p = parallel([], function(){}); expect(typeof p.then).toEqual('function'); }); it ('should return correct output', (done) => { const arr = [1]; ...
true
dedbfdbb8748351af4ef3f0021605aebc4b8b3ed
JavaScript
12Starlight/React-Redux
/W13D1/react_widgets/frontend/components/auto_copy.jsx
UTF-8
848
2.78125
3
[]
no_license
import React from 'react' class Autocomplete extends React.Component { constructor(props) { super(props); this.state = { inputVal: "" } this.searchField = this.searchField.bind(this); } searchField(e) { this.setState({ inputVal: e.currentTarget.value }); } render() {...
true
e2cf336677a5c51f1472cb813bbeadf0e123e87d
JavaScript
suika1/restaurant-app
/src/reducers/restaurants.js
UTF-8
810
2.546875
3
[]
no_license
import { GET_RESTAURANTS_REQUEST, GET_RESTAURANTS_ERROR, GET_RESTAURANTS_SUCCESS } from '../action-types/map-restaurants'; const defaultState = { isFetching: false, error: '', items: [], }; export default function restaurants(state = defaultState, action) { switch (action.type) { c...
true
a2472dfb5315f2db84705e6db7105048966c4475
JavaScript
LiLiu93/PicMe
/picme/posts/static/posts/js/index_map.js
UTF-8
3,796
2.890625
3
[]
no_license
$(document).ready(function () { jQuery(function () { // Asynchronously Load the map API var script = document.createElement('script'); script.src = "https://maps.googleapis.com/maps/api/js?key=AIzaSyCiyqhxEO_GOK25D9xry5vmOPanYLQZgIU&callback=refresh_map&language=en"; document.body.ap...
true
cf39ebd9f55694087a951364d1ee6ce42ae0eabc
JavaScript
himanshusearchhomeindia/GeneralSearch
/RESTAPIProj/RESTAPIApp/static/js/index.js
UTF-8
4,464
2.703125
3
[ "MIT" ]
permissive
let ur1 = location.search.slice(1).split('&'); //accessing the url from the page url tab with filtering the values from (1) it will divide the url into two ('&') it will filter the url from & and make a list of filtered elements. query = {} //making an empty query dictionary to append all the queries from the search ...
true
577f51315194eaeaa462d98946a6e3686c36921c
JavaScript
generalui/ffmpeg-inline
/examples/example_1.js
UTF-8
1,402
2.65625
3
[]
no_license
$(function() { var $inputFile = $('#inputFile') var $videos = $('#videos') function handleChange(event) { var file = event.target.files[0] var inputFiles = [file] var globalOptions = '-y' // always overwrite files var convertOptions = '-preset ultrafast -s 320x200' var outputFiles = ['output...
true
a397b516acc77a71c2f43467a156dcc10caf2c05
JavaScript
parveshh/ts-talk
/src/01-Introduction/intro.js
UTF-8
344
2.703125
3
[]
no_license
{ const user = { 'id': 1, firstName: 'Donald', lastName: 'T', isPresident: function () { /** Some process here.. */ return false; } }; // lets check if user is president then allow to delete files if (user.isPresident) { // delete all files console.log('files...
true
9b77a7be7302c6c3f94539480d8b3da6c5ee2c29
JavaScript
Winrur/testwoo
/engine/misc/JumpStartDebug.js
UTF-8
1,305
2.640625
3
[]
no_license
function JumpStartDebug() { this.slates = {}; } JumpStartDebug.prototype.updateSlate = function(slateName, data) { var slate = this.slates[slateName] || this.createSlate(slateName); slate.update.call(slate, data); }; JumpStartDebug.prototype.createSlate = function(slateName, data) { var slate = { "name": slateN...
true
75c7a54216c15d148753ec02a377c3822bc3a426
JavaScript
harjaapdhillon16/Go-Vid-Api
/routes/username.js
UTF-8
1,263
2.578125
3
[]
no_license
const express = require("express"); const UsernameApi = new express.Router(); var admin = require("firebase-admin"); var serviceAccount = require("./govid.json"); admin.initializeApp({ credential: admin.credential.cert(serviceAccount), databaseURL: "https://govid-faa37.firebaseio.com/", }); const db = admin.datab...
true
464d33b0e7bd90fb67a3e2afb0f7d01960b86abd
JavaScript
mikevh/AzureIoTHubMigration
/device/main.js
UTF-8
2,487
2.5625
3
[ "MIT" ]
permissive
"use strict"; var config = require('./config'); var iot = require('./iot/iotManager'); var status = {text: 'Online'}; var service = new iot.Service(config); startSensorControl(); // ************************************************************************ // Master function. Creates iot device and connects to iot serv...
true
8b2f36a8358f4f6a2a82aee6a411ded009e3c94c
JavaScript
NateSpring/TaktTimer
/timer.js
UTF-8
14,640
3.109375
3
[]
no_license
// Extract URL string -> parse to Vars function getUrlVars() { var vars = {}; var parts = window.location.href.replace(/[?&]+([^=&]+)=([^&]*)/gi, function( m, key, value ) { vars[key] = value; }); return vars; } ////////////////// URL EXTRACTED ///////////////// let productName = getUrlVars()[...
true
a508fe62c9b32a25eeb8e9abcd7829263401ee9b
JavaScript
surajdandwani/grid
/Css/grid.js
UTF-8
1,617
2.703125
3
[]
no_license
// Column Switcher const columnswitcher = document.getElementById("columns-switcher"); var demo1 = document.querySelector(".columns-container"); columnswitcher.addEventListener("change", (evt) => { demo1.style.gridTemplateColumns = evt.target.value; }); // Column Switcher // Row Switcher const rowswitcher = docu...
true
35fb47d91814cadad8e7e7cc2e0bd50aab618996
JavaScript
niqueeee/C.B.U.L.M.S.
/public/custom/utilitiesAjax.js
UTF-8
1,105
2.5625
3
[]
no_license
$(document).ready(function() { setdata(); function successPrompt(){ title="Utlities has been updated!"; $.notify(title, "success", { timer:1000 }); } $('#btnSave').on('click',function(e) { if($('#myForm').parsley().isValid()) { $.ajaxSetup( { headers: { 'X-CSRF-TOKEN': $('meta[name="...
true
985b935b1f7f3d9fff1ee006def8b9087f35e243
JavaScript
Praman1212/e-commerce
/index.js
UTF-8
2,255
2.78125
3
[]
no_license
$(document).ready(function(){ $("#banner-area .owl-carousel").owlCarousel({ dots: true, items:1 }); // Top sale Owl carousel $("#top-sale .owl-carousel") .owlCarousel({ loop: true, nav: true, dots: false, responsive: { 0:{ it...
true
e526ce9fe77cd6cce04a406a63d4dd18d8f8530f
JavaScript
evertonsmenezes/ReactHooksInPratice
/src/App.js
UTF-8
931
2.515625
3
[]
no_license
import React, { useState, useMemo } from 'react'; import './App.css'; import Example1 from './Example1'; import Example2 from './Example2'; import Example3 from './Example3'; export default function App() { const [idItem, setIdItem] = useState(2); const _returnExample = useMemo(() => { switch (idItem) { ...
true
af6c293200d6d5da4333e0e73f50948ffafbd712
JavaScript
hackupstate/careers-in-code-sandbox
/cohort-1/guscost/yahtzee/index.js
UTF-8
692
3.9375
4
[]
no_license
const prompt = require('prompt-sync')(); const DICE_SYMBOLS = [ '\u2680', // ⚀ '\u2681', '\u2682', '\u2683', '\u2684', '\u2685', ]; function rollDice(numberOfDice) { const rolledDice = []; for (let i = 0; i < numberOfDice; i++) { const dieSymbolIndex = Math.floor(Math.random() * 6); rolledDice...
true
d4c0fca9a64c13444a34acb51cd3669cc6be09ca
JavaScript
seyong/csc428A2Starter
/src/textarea.js
UTF-8
2,358
3.46875
3
[]
no_license
/*************************************************** * CSC428/2514 - St. George, Fall 2018 * * File: textarea.js * Summary: Textfield which displays input characters by users. * * The code is commented, and the comments provide information * about what each js file is doing. * * Written by: Seyong Ha, Mingming Fan, ...
true
b98b6f7c847b8b4d8e177f3865bb6e0fcd0fa1f1
JavaScript
cyphernetica/todo
/src/modules/todo/Todo.js
UTF-8
5,189
2.515625
3
[]
no_license
import React from 'react'; import Todoitem from './Todoitem' import Formtodo from './Formtodo' // Firebase App (the core Firebase SDK) is always required and must be listed first import firebase from "firebase/app"; // If you are using v7 or any earlier version of the JS SDK, you should import firebase using namespac...
true
bfe2006f4fa174058f95574ee74f966dba687811
JavaScript
cdrani/anml
/src/api/get_random_name.js
UTF-8
767
2.6875
3
[ "MIT" ]
permissive
import uniqueRandom from 'unique-random' import anml from '../anml.json' import getCommon from './get_common' const getCommonOrScientific = () => { const num = uniqueRandom(0, 1)() return num === 1 ? 'common' : 'scientific' } const keyOrValue = typeOfName => { const libraryLength = Object.keys(anml).length - 1...
true
facd3367eb30c4e5fe8c161969564840677ffa16
JavaScript
atheneliu/-
/src/utils/lang.js
UTF-8
1,317
3.3125
3
[]
no_license
/** * 此工具方法中主要存放一些 js 对象或者语言方面的处理函数 * PS: lang 是 language 的简称 */ export function isArray(o) { return Object.prototype.toString.apply(o) === '[object Array]' } export function isFunction(o) { return Object.prototype.toString.apply(o) === '[object Function]' } export function isObject(o) { return Object.proto...
true
eddde8a05de3f8ccd2d1d0fbf94c87825a50ff77
JavaScript
lewis88/JS_Music_store
/testing.js
UTF-8
1,491
2.734375
3
[]
no_license
var Store = require( './store_constructor' ); var hmv = new Store( 'HMV', 'Edinburgh', 1000 ); hmv.addRecord( 'Oasis', 'Wonderwall', 10, 5); hmv.addRecord( 'Slipknot', '1st Album', 12, 6); hmv.addRecord( 'Oasis', 'Wonderwall', 10, 5); hmv.addRecord( 'Slipknot', '1st Album', 12, 5); hmv.addRecord( 'Nirvana', 'Nevermind...
true
1d8e71d49a43151a12e6651e32ce87fe296646d8
JavaScript
victorabraham/Fullstack-Starter
/web-app/src/utils/orderHelpers.js
UTF-8
428
2.875
3
[]
no_license
export function updateTotal(orders) { let orderList = []; for (let order of orders) { let total = 0; for (let item of order.orderItems) { total += item.price; } order.total = total; orderList.push(order); } return orderList; } export function calculateTotal(order) { let total = 0; ...
true
72b6a8862ec553f5814e287580d029c347d1e6f9
JavaScript
N8python/BoombaZoomba
/public/person.js
UTF-8
35,016
2.546875
3
[]
no_license
function vecTo(x1, y1, x2, y2, mag = 1) { const xDist = x2 - x1; const yDist = y2 - y1; let direction; if (xDist > 0 && yDist > 0) { direction = degrees(Math.atan(yDist / xDist)); } else if (xDist > 0 && yDist < 0) { direction = 360 + degrees(Math.atan(yDist / xDist)); } else { ...
true
4dd5da4b02b61b8fe4d041f126665739af17df88
JavaScript
dorisobor/booking
/booking-app/src/components/parts/BookingGuestDetails.js
UTF-8
2,156
2.515625
3
[]
no_license
import React from 'react'; import InputField from './InputField.js'; function BookingGuestDetails(props) { //if its in an error state then display the error message let errorNameMessage = null; let errorLastNameMessage = null; let errorEmailMessage = null; let errorPhoneMessage = null; if (props.errorName...
true
b4e1c0f1c0e00274a1f17b544d71b57d8064bdc7
JavaScript
robbtraister/composition-composer
/bin/spawn.js
UTF-8
885
2.765625
3
[]
no_license
'use strict' const childProcess = require('child_process') const _spawn = (cmd, args, options) => new Promise((resolve, reject) => { const proc = /^win/i.test(process.platform) ? childProcess.spawn('cmd', ['/s', '/c', cmd].concat(args), options) : childProcess.spawn(cmd, args, options) const si...
true
81ec31ed81d7341a8a38d7990654c27ab4d9a044
JavaScript
Lidiia92/Redux-Todo
/todo1/src/components/TodoList.js
UTF-8
1,547
2.65625
3
[]
no_license
import React from 'react'; import { addTodo, toggleTodo} from '../actions'; import { connect } from 'react-redux'; class TodoListContainer extends React.Component { constructor() { super(); this.state = { todoInput: '' }; } handleChanges = event => { this.setState({ [even...
true
a935b09d7e985df7494033148f50de15ae7d5203
JavaScript
diipacheco/exercises-js
/exercises-js/Exercicio 7/index.js
UTF-8
377
3.234375
3
[]
no_license
// Exercício de Manipulação do DOM \\ // Escuta de "foco de janela" \\ window.addEventListener('focus', event => { console.log("focus"); }); // ======================================== \\ // Escuta de "click no documento HTML" \\ document.addEventListener('click', event => { console.log("click")...
true
a0804643ef8b2b8d904c5a66a1baf6f8e3045231
JavaScript
OssiB/fullstack-part3
/index.js
UTF-8
2,612
2.53125
3
[]
no_license
const express = require('express') require('dotenv').config() const app = express() const bodyParser = require('body-parser') const Contact = require('./models/contact') const morgan = require('morgan') app.use(bodyParser.json()) const cors = require('cors') app.use(cors()) const requestLogger = (request, respons...
true
b8153366960a6337aef37a477130a2c679d332eb
JavaScript
Stef-Lev/SHA_Lessons_Node.js
/week3/Homework/project-HackYourTemperature-III/app.js
UTF-8
1,171
2.796875
3
[ "CC-BY-4.0" ]
permissive
"use strict" const express = require("express"); const path = require("path"); const app = express(); const exphbs = require("express-handlebars"); const fetch = require("node-fetch"); const port = 3000; app.use(express.urlencoded({ extended: true })); app.set("view engine", "handlebars"); app.engine("handlebars", e...
true
a63096360205c0eb28c6b4b8776409b2226b8b34
JavaScript
cazzer/hey-fridge
/server/breakdown/path.test.js
UTF-8
1,294
2.84375
3
[ "CC0-1.0" ]
permissive
var test = require('tape') var Breakdown = require('./path') var bd = new Breakdown() var bd2 = new Breakdown({name: 'child'}) const TEST_VALUE = 'Hi' const TEST_REQUEST = { path: 'data', body: TEST_VALUE } test('a request is resolved by an immediate handler', t => { t.plan(1) bd.use('data', (request, res...
true
1e3129d9b086b1fe8bebc8ba9352dd08368ff85d
JavaScript
ch3lsea/Prime_day11_notes
/Day 11.js
UTF-8
1,028
2.6875
3
[]
no_license
//Day 11 //Picking up where we left off yesterday with the same bootstrap set up //Adding a picture at the top of a sub header col div--kitten //Adding well to the first sub head class section //color.adobe.com will help select colors //The explore tab at the top is super helpful for getting user generated color pa...
true
d2fe9eb74aa09bcfa8fb4fc5262eb2d3ac55251e
JavaScript
as17744/code-writing-test
/zigzag/index.js
UTF-8
610
3.5
4
[]
no_license
const convert = (str, numRow) => { const len = str.length; if (numRow === 1 || len <= numRow || len < 3) { return str; } const resList = new Array(numRow); let godown = true; let curRow = 0; for (let i = 0; i < len; i++) { resList[curRow] = resList[curRow] ? `${resList[curRow...
true
00c1eb79c482101e5cdb764bf18f2a6c39569e68
JavaScript
apatil88/FullStackWebDevelopmentProjects
/YelpCamp/routes/campgrounds.js
UTF-8
3,512
2.703125
3
[]
no_license
var express = require("express"); var router = express.Router(); var Campground = require("../models/campground.js"); var Comment = require("../models/comment.js"); var middleware = require("../middleware") //INDEX - Show all campgrounds router.get("/campgrounds", function(req, res){ //Get all campgrou...
true
ada652744456ed28e484286ad8fc1e4943bf9e45
JavaScript
shama009/Trivia-Game
/assets/javascript/app.js
UTF-8
5,854
3.578125
4
[]
no_license
// Trivia Game // display start button on page load // build an array with questions and answers // display questions with multiple choice to the user // set timer to 30 seconds // allow user to select only one option // display correct/wrong answers and unanswered questions score when time's up or if user clicks "done...
true
755c3711195e303dbd16782472b1223c5269570a
JavaScript
LinSme/WincAcademyWebDevOpdrachten
/21. Opdracht Functions calling functions/script.js
UTF-8
1,637
4
4
[]
no_license
//Hey Kiddo opdracht console.log("\n", "Hey Kiddo opdracht", "\n"); const myFunction1 = function (age) { return age >= 18; }; const myFunction2 = function (age) { if (myFunction1(age) === true) { return "hello there"; } else { return "hey kiddo"; }; }; console.log("Chec...
true
a72c2e9ed8381e1097ad617af8e43e9eba4a5c2c
JavaScript
JudieT215/GossipGirlClickyGit
/src/App.js
UTF-8
2,071
2.890625
3
[]
no_license
import React from 'react'; import './App.css'; import Card from "./components/Card"; import gossipGirl from "./gossipGirl.json"; import Header from "./components/Header"; import GameBoard from "./components/GameBoard"; import NavBar from "./components/NavBar"; class App extends React.Component { state = { gossi...
true
aebce6e6ffde1396c662f4491bf53c742e815e44
JavaScript
Junior-duo-project/junior-duo-project
/client/App.jsx
UTF-8
3,170
2.515625
3
[]
no_license
import React from 'react'; import ReactDOM from 'react-dom'; import $ from "jquery"; import BlogList from "./component/BlogList.jsx"; import SignUp from "./component/SignUp.jsx" import UserBlogList from './component/userBlogList.jsx'; import CreateBlog from './component/CreateBlog.jsx'; import Login from './component/L...
true
d7499271ae1185792f0b012ac57887820f3a4f98
JavaScript
karansingh01/karanFraVGS
/KaranSinMorsommeFerie/IT2/Uke_41_prøve/oppgaver_partall_side_94/oppgaver.js
UTF-8
143
3.078125
3
[]
no_license
// oppgave 1 a) /* for(var i=10; i>=1; i-=1){ console.log(i) } */ for(var i=0; i<=50; i+=1){ if (i % 2 === 0 ){ console.log(i); } }
true
2b7f6acf60a8ce83f6310c904710152e257eab7c
JavaScript
vibhorsingh11/30DaysLeetCoding
/Challenges/Week 1/01-SingleNumber.js
UTF-8
626
4.09375
4
[]
no_license
/* Given a non-empty array of integers, every element appears twice except for one. Find that single one. Note: Your algorithm should have a linear runtime complexity. Could you implement it without using extra memory? Example 1: Input: [2,2,1] Output: 1 */ /** * @param {number[]} nums * @retu...
true
a86363e44d21204bed7bd193f412a69c142ca2ce
JavaScript
Olovyannikov/funiro
/src/js/modules/products.module.js
UTF-8
8,248
2.71875
3
[]
no_license
export const products = () => { const catalogList = document.querySelector('.catalog-list'); const catalogMore = document.querySelector('#more'); let prodQuantity = 3; let dataLength = null; const normalPrice = str => { return String(str).replace(/(\d)(?=(\d\d\d)+([^\d]|$))/g, '$1 ') } ...
true
19b9b8d2f89b7175475f020e3b040729a69394ee
JavaScript
wesley1001/balnarring2015
/views/feed.js
UTF-8
735
2.53125
3
[]
no_license
'use strict'; var React = require('react-native'); var { StyleSheet, Text, View, } = React; var FeedView = React.createClass({ goHome: function() { this.props.navigator.popToTop(); }, render: function() { return ( <View style={styles.container}> <Text>I am the...
true
42f0f50810c29f625c003041bea5100f21e9e43a
JavaScript
maucalil/CS50-FinalProject
/fp/static/addbill.js
UTF-8
439
2.703125
3
[]
no_license
document.querySelector('#name').onkeyup = function () { if(document.querySelector('#name').value === '') { document.querySelector('#submit').disabled = true; } }; document.querySelector('#price').onkeyup = function () { if(document.querySelector('#price').value === '') { document.querySelec...
true
911395de18462d5df3030f685d7b48673cb88deb
JavaScript
AlexzanderF/Softuni
/Softuni JS Fundamental/Data Types and Variables/Exercise.js
UTF-8
2,460
4
4
[]
no_license
// # 1 function sumDigits(number){ number = number.toString(); let sum = 0; for (let i = 0; i < number.length; i++){ sum += Number(number[i]); } console.log(sum); } // # 2 function charsToString(char1, char2, char3){ let result = `${char1}${char2}${char3}`; console.log(result); } /...
true
965bb3d793152888a9adfcbd41e652dc31f0d774
JavaScript
GovindCoding/next-fullstack-app
/app/models/user.model.js
UTF-8
6,018
2.578125
3
[]
no_license
'use strict' const sql = require("../config/db"); // const logger = require('../config/logger'); const SERVICE_FILE_NAME = "user.model :: "; // constructor const User = function(user) { this.first_name = user.firstName; this.last_name = user.lastName; this.email = user.email; this.phone = user.phone; ...
true
14997d672b4110bfd896f58088b40204931a4fb0
JavaScript
lgaskill/glow-blueprint
/src/server/models/user.js
UTF-8
1,762
2.53125
3
[ "MIT" ]
permissive
const mongoose = require("mongoose"); const crypto = require("crypto"); const jwt = require("jsonwebtoken"); const purchaseHistoryItem = new mongoose.Schema({ itemId: String, name: String, description: String, transactionId: String, createdAt: Date }); const userSchema = new mongoose.Schema({ username: St...
true
4e6145fea186c3bd7e7996ac6497cf32d1ed6a13
JavaScript
Asarvarjon/CRM-for-Najottalim
/server.js
UTF-8
1,144
2.5625
3
[]
no_license
const express = require("express") const HomeRoute = require('./Routes/HomeRoute') const Database = require("./Modules/database") const user = new Database() // server is ready const server = express() server.listen(4000, () => { }) server.use(express.static("Public")) server.use( express.urlencoded ( { ...
true
aa51fca16df1b25184fa9f46175cca29d25208c2
JavaScript
bishunkumar/EG_TEST_Bishun
/rte_backup-1.0/jcr_root/etc/clientlibs/granite/coralui2/optional/rte/js/core/TableMatrix.js
UTF-8
26,731
2.5625
3
[]
no_license
/************************************************************************* * * ADOBE CONFIDENTIAL * ___________________ * * Copyright 2012 Adobe Systems Incorporated * All Rights Reserved. * * NOTICE: All information contained herein is, and remains * the property of Adobe Systems Incorporated and its suppliers, * i...
true
427e67c657997a33702641d6331703f631978bff
JavaScript
vigohanuratama/Week8
/Soal 4/index.js
UTF-8
522
3.609375
4
[]
no_license
// Buatlah sebuah function untuk mengenkripsi dan mendekripsi suatu text menggunakan // package crypto-js //memanggil file package crypto-js let CryptoJS = require("crypto-js"); const text ="Fazztrack" const enkripsi = (text) => { let result = CryptoJS.AES.encrypt(text,"123").toString() return result } encry...
true
9f7a418ce8bd5c264e2b43a86535aa384d9f5ccf
JavaScript
zinserjan/eslint-config-deprecated
/test/error/strings/escape.js
UTF-8
335
2.859375
3
[ "MIT" ]
permissive
/* eslint-disable no-unused-vars */ /** * Do not unnecessarily escape characters in strings. * * Why? Backslashes harm readability, thus they should only be present when necessary. * * see https://github.com/airbnb/javascript/tree/eslint-config-airbnb-v9.0.1#strings--escaping */ // bad const foo = '\'this\' \i\...
true
2179dc6f2abbedad3a0909e7a1f943f2fa51e5da
JavaScript
EloKmsk/projects
/app.js
UTF-8
1,786
3.390625
3
[]
no_license
/* Déclaration de mes éléments */ const base = document.querySelector(".randomColor"); const container = document.querySelector("#container"); const btn = document.querySelector("#quote"); /* Fonction pour mettre une couleur aléatoire */ function getRandomColor() { const red = Math.random() * 256; const green ...
true
1903fdf8e98ad9617697f3a0141143c419e81232
JavaScript
november-pain/Web-app-for-hotels-and-restaurants
/hot_res_djng/hot_res_app/src/components/AllCategories.jsx
UTF-8
1,067
2.578125
3
[]
no_license
import React, { useContext, useEffect, useState } from "react"; import Category from "./Category.jsx"; import { CategoriesContext } from "./сontext.js"; export default (props) => { const [{ categories, loading }, setState] = useState({ categories: null, loading: true, }); const { chosenCategory, setCategory } ...
true
b62d629242d2b607a863e8b2ca706599e567f858
JavaScript
di0fref/Wordpress-stuff
/themes/Beige/WooThemes Demo_files/switcher_data/styleselect.js
WINDOWS-1252
1,202
2.75
3
[]
no_license
// Get an XMLHttpRequest object function GetHttpRequest() { if (window.XMLHttpRequest) { return new XMLHttpRequest(); } else if (window.ActiveXObject) { return new ActiveXObject('Microsoft.XMLHTTP'); } else { return null; } } function popandchange(rawurl) { var hr = GetHttpRequest(); var payloa...
true