code stringlengths 2 1.05M | repo_name stringlengths 5 114 | path stringlengths 4 991 | language stringclasses 1
value | license stringclasses 15
values | size int32 2 1.05M |
|---|---|---|---|---|---|
(function ($) {
Drupal.gardens_wysiwgy = Drupal.gardens_wysiwyg || {};
Drupal.behaviors.gardens_wysiwyg = {
attach: function(context, settings) {
if (typeof CKEDITOR != 'undefined') {
// Bind events to handle enabling and disabling of the WYSIWYG.
CKEDITOR.on('instanceReady', Drupal.behaviors.garden... | james-elliott/azuretest | sites/all/modules/gardens_wysiwyg/js/gardens_wysiwyg.js | JavaScript | gpl-2.0 | 3,311 |
var activityAnimComp;
var taskAnimComp;
var btnAnimComp;
function createComponents(){
activityAnimComp = Qt.createComponent("ActivityAnimationMainView.qml");
taskAnimComp = Qt.createComponent("TaskAnimationMainView.qml");
btnAnimComp = Qt.createComponent("BtnIconAnimatMainView.qml");
}
//Dialogs
////////... | psifidotos/workflow-project | package/contents/ui/DynamicAnimations.js | JavaScript | gpl-2.0 | 5,854 |
module.exports = require( './lib/argparse' );
| tracyapps/chad | node_modules/grunt-contrib-imagemin/node_modules/imagemin/node_modules/imagemin-svgo/node_modules/svgo/node_modules/js-yaml/node_modules/argparse/index.js | JavaScript | gpl-2.0 | 46 |
jQuery(function($){
// Add button (add select users form selection to right form)
$('#edit-add').click(function(e) {
e.preventDefault();
ChangeAdmin('#edit-potential-administrators','#edit-administrators');
if($('#edit-potential-members')){
ChangeAdmin('#edit-potential-members','#edit-class-me... | guoxiangke/druedu | sites/all/modules/customs/druedu_user/js/druedu_user.admin.js | JavaScript | gpl-2.0 | 7,162 |
/**
* skip-link-focus-fix.js
*
* Helps with accessibility for keyboard only users.
*
* Learn more: https://github.com/Automattic/brianzotoole2.0/pull/136
*/
( function() {
var is_webkit = navigator.userAgent.toLowerCase().indexOf( 'webkit' ) > -1,
is_opera = navigator.userAgent.toLowerCase().indexOf( 'oper... | brianotoole/mysite2.0 | wp-content/themes/brianzotoole2-0/js/skip-link-focus-fix.js | JavaScript | gpl-2.0 | 914 |
"use strict";
import socket from "socket.io";
import assert from 'underscore.assert';
export default class SocketHandler {
static register(server){
this.socketRef = socket(server);
}
constructor(namespace="/"){
assert(this.socketRef !== undefined, "you must first register the server using SocketHandler.... | SiestaMadokaist/general-card-game | server/server/socket-handler.js | JavaScript | gpl-2.0 | 501 |
(function(a){jQuery.fn.sortableTable=function(l){function w(f,g){function x(b,c){h.offset({top:Math.min(a(document).height(),Math.max(0,c-h.height()/2)),left:Math.min(a(document).width(),Math.max(0,b-h.width()/2))})}function p(b,c,m){var e=b.offset();return m>=e.top&&c>=e.left&&c<e.left+b.width()&&m<e.top+b.height()}fu... | fobia/srv-tools-phpmyadmin | js/jquery/jquery.sortableTable.js | JavaScript | gpl-2.0 | 3,583 |
/*
* 人人商城
*
* @author ewei 狸小狐 QQ:22185157
*/
define(['jquery','core'], function($){
var comment = {
currentpage: 0, //当前页
pagesize: 10 //每页记录数
};
//获取评论
comment.get = function(){
}
//发表评论
comment.post = function(){
}
... | xianhuachang/one | www/addons/ewei_shop/static/js/app/biz/comment.js | JavaScript | gpl-2.0 | 386 |
module.exports = function (config) {
config.set({
basePath: '../',
files: [
'app/lib/jquery.min.js',
'test/api/**/*.js'
],
proxies: {
'/api/': 'http://127.0.0.1/backle/api/',
'/c/': 'http://127.0.0.1/backle/c/',
'/backle/': 'http://127.0.0.1/backle/',
... | smancke/backle | test/karma-api-tests.conf.js | JavaScript | gpl-2.0 | 510 |
import Geom from './base';
import { mix } from '../util/common';
import SizeMixin from './mixin/size';
import './shape/interval';
class Interval extends Geom {
getDefaultCfg() {
const cfg = super.getDefaultCfg();
cfg.type = 'interval';
cfg.shapeType = 'interval';
cfg.generatePoints = true;
return... | antvis/g2-mobile | src/geom/interval.js | JavaScript | gpl-2.0 | 753 |
function Dialog(config)
{
this.config = config;
this.show = show;
function show()
{
$("#dialog_text").text(config.message);
$("#dialog").dialog(
{
autoOpen : true,
width : 450,
title : config.title || null,
buttons : [
{
text : config.closeText || 'Ok',
click : function()
{
... | laszlo-gazsi/brokenlinkscheck | ThinClient/control/utils/Dialog.js | JavaScript | gpl-2.0 | 369 |
EasySocial
.require()
.library( 'dialog' )
.done(function($){
EasySocial.ajax( 'admin/controllers/languages/getLanguages', {
}).done(function() {
window.location = '<?php echo rtrim( JURI::root() , '/' );?>/administrator/index.php?option=com_easysocial&view=languages';
});
}); | cuongnd/banhangonline88_joomla | administrator/components/com_easysocial/themes/default/languages/initialize.js | JavaScript | gpl-2.0 | 285 |
// Definizione variabile principale per contenere
// le funzioni che verranno richiamate da popup
var SZGoogleDialog =
{
local_ed:'ed',
// Funzione init per le operazioni iniziali del
// componente da eseguire in questo stesso file
init: function(ed) {
SZGoogleDialog.local_ed = ed;
tinyMCEPopup.resizeToInne... | mathewhtc/cats | wp-content/plugins/sz-google/admin/mce/js/SZGooglePlusComments.js | JavaScript | gpl-2.0 | 1,745 |
(function() {
/**
* Extends common lists layout and logic hb-list-container with AMENAGEMENT_SPORTIF
* specific view AND logic.
*/
angular.module('hb5').directive('hbAmenagementSportifList', function () {
return {
require: '^hbListContainer',
restrict: 'A',
templateUrl : "/assets/v... | bsisa/hb-ui | main/src/amenagement_sportif/hbAmenagementSportifListDirective.js | JavaScript | gpl-2.0 | 471 |
jQuery(document).on('ready',function(){
jQuery('ul.img-slider>li>a').on('click', function(event){
jQuery('ul.big>li>img').hide();
var slideId = jQuery(this).attr('data-big');
jQuery('#' + slideId).show();
event.preventDefault();
});
});
| Usik2203/wordpress1 | wp-content/themes/themes-test/js/switch.js | JavaScript | gpl-2.0 | 278 |
define(['services/services', 'controllers/controllers', 'directives/directives'], function () {
var app = angular.module('starter', ['ionic', 'starter.controllers', 'starter.services','starter.directives', 'ngCordova', 'ngSanitize']);
app.run(function($ionicPlatform, $rootScope, $ionicHistory) {
$rootScope.goBa... | WebLearnerTide/PetAdmin | www/js/app.js | JavaScript | gpl-2.0 | 8,172 |
/**
* View for carousel wrapper. Data is category display title and thumbs list
*/
define( 'videohomepage.views.carousel', [
'videopageadmin.collections.categorydata',
'shared.views.carouselthumb',
'shared.views.owlcarousel',
'videopagetool.templates.mustache'
], function(
CategoryDataCollection,
CarouselThumb... | Wikia/OldStructuredDataPrototype | extensions/wikia/VideoPageTool/js/homepage/views/carousel.js | JavaScript | gpl-2.0 | 2,332 |
var main = angular.module("main", [
"main.routing",
"main.templates",
"main.controllers",
"main.directives",
"main.services",
"ngCookies",
"ngMaterial",
"ngScrollSpy",
"ngSanitize"
]).config(["$mdThemingProvider",
function ($mdThemingProvider) {
// Extend the blue-grey th... | code-wukong/lolcomp | frontend/app/main/app.js | JavaScript | gpl-2.0 | 1,540 |
jQuery(document).ready(function($){
$(document).on('click', '.dot-irecommendthis',function() {
var link = $(this);
if(link.hasClass('active')) return false;
var id = $(this).attr('id'),
suffix = link.find('.dot-irecommendthis-suffix').text();
$.post(dot_irecommendthis.ajaxurl, { action:'dot-irecommen... | Som-Energia/web2 | wp-content/plugins/i-recommend-this/js/dot_irecommendthis.js | JavaScript | gpl-2.0 | 497 |
var searchData=
[
['screensaver_5fcomponents',['SCREENSAVER_COMPONENTS',['../classtk_1_1giesecke_1_1spmonitor_1_1Utilities.html#a522abee731d009c55d9fd6541233b580',1,'tk::giesecke::spmonitor::Utilities']]],
['screensaver_5fenabled',['SCREENSAVER_ENABLED',['../classtk_1_1giesecke_1_1spmonitor_1_1Utilities.html#acf97c... | beegee-tokyo/spMonitor | docs/html/search/variables_d.js | JavaScript | gpl-2.0 | 3,058 |
/*
* Path
* @author Caro.Huang
*/
(function () {
var self = caro;
/*
* get dir-path
* @param {string} path
* @return {string}
*/
self.getDirPath = function (path) {
var filename = caro.getFileName(path);
return caro.replaceLast(path, filename, '');
};
/*
* get file name in path
* ... | carozozo/caro | src/lib/path.js | JavaScript | gpl-2.0 | 1,370 |
import { STATUS } from 'foremanReact/constants';
import React, { useState, useEffect, useCallback } from 'react';
import useDeepCompareEffect from 'use-deep-compare-effect';
import PropTypes from 'prop-types';
import { useDispatch, useSelector, shallowEqual } from 'react-redux';
import { Bullseye, Button, Grid, GridIte... | snagoor/katello | webpack/scenes/ContentViews/Publish/CVPublishFinish.js | JavaScript | gpl-2.0 | 6,988 |
module.exports = ScieReseCtrl;
ScieReseCtrl.$inject = ['$rootScope', '$scope', 'IHttp', 'auth', '$uibModal', 'uiGridConstants', 'toastr', '$timeout', '$filter'];
function ScieReseCtrl($rootScope, $scope, IHttp, auth, $uibModal, uiGridConstants, toastr, $timeout, $filter) {
var user = auth.loginUser(),
toU... | john-lius/ais_3.0 | app/page/scieRese/scieRese.controller.js | JavaScript | gpl-2.0 | 16,474 |
var ServerURL = "/ServerSide/";
function replaceNumbers(node) {
if (node.nodeType==3) //Text nodes only
node.nodeValue = node.nodeValue.replace(/[0-9]/g, getArabicNumber);
}
function getArabicNumber(n) {
return String.fromCharCode(1632 + parseInt(n,10));
}
function walk(node, func) {
func(node);
... | majidiust/TaavoniUT3 | Public/Scripts/Info.js | JavaScript | gpl-2.0 | 967 |
/**************Crypt-donate main**************/
function CryptDonator(idOrObject, customize) {
//Check find or create window
this.window;
if(typeof(idOrObject) === "string") {
this.window = document.getElementById(idOrObject);
} else if(typeof(idOrObject) === "object") {
this.window = idOrObject;
} else {
co... | Cryptallica/Site | _js/donator/donator.js | JavaScript | gpl-2.0 | 9,759 |
Meteor.startup(function () {
//AdventureNodes.remove({});
//AdventureMetaData.remove({});
if(AdventureMetaData.find().count() == 0){
AdventureMetaData.insert(
{
title: "Super Great Adventure",
author: "Maciek Chudek",
version: "1",
location: 'Vancouver, Canada',
published: true,
author_id: 0... | MaciekChudek/geo_adventure_maker | server/server.js | JavaScript | gpl-2.0 | 535 |
/**
* @list dependencies
**/
var mocha = require('mocha');
var should = require('should');
var mongoose = require('mongoose');
var Schema = mongoose.Schema;
var findOrCreate = require('../');
mongoose.connect('mongodb://localhost/findOrCreate')
mongoose.connection.on('error', function (err) {
console.error('Mong... | ChatterBoxGames/ChatterBot | node_modules/mongoose-findorcreate/test/index_test.js | JavaScript | gpl-2.0 | 5,973 |
var lPlaySound=1;
function PlaySound(cLink)
{
// alert(cLink);
if(lPlaySound==1)
document.getElementById("sndspan").innerHTML="<embed src='"+cLink+"' hidden=true autostart=true loop=false>";
}
function SoundLink(cLink)
{
if(lPlaySound==1)
return void(0);
else
window.open(cLink);
}
function Sou... | drobovik/cyrillifix | documentation/encoding_tables/Russian Alphabet with Sound and Handwriting_files/sounds.js | JavaScript | gpl-2.0 | 2,158 |
CodeMirror.defineMode("clike",function(config,parserConfig){var indentUnit=config.indentUnit,keywords=parserConfig.keywords||{},blockKeywords=parserConfig.blockKeywords||{},atoms=parserConfig.atoms||{},hooks=parserConfig.hooks||{},multiLineStrings=parserConfig.multiLineStrings;var isOperatorChar=/[+\-*&%=<>!?|\/]/;var ... | alfasado/mt-static-min | mt-static/codemirror/mode/clike/clike.js | JavaScript | gpl-2.0 | 6,427 |
var request = require("request");
var nconf = require('nconf');
nconf.file({ file: 'config/api.json' });
var urlConf = nconf.get('eu');
function apiCall(req, res, url) {
request(url, function(error, response, body) {
if (!error && response.statusCode == 200) {
res.send(body);
... | hezo/little-spy-core | routes/clan.js | JavaScript | gpl-2.0 | 790 |
// Include gulp.
var gulp = require('gulp');
// Include plugins.
var sassLint = require('gulp-sass-lint');
var jshint = require('gulp-jshint');
// SCSS Linting.
gulp.task('scss-lint', function() {
return gulp.src(['./assets/scss/**/*.scss'])
.pipe(sassLint())
.pipe(sassLint.format())
.pipe(sassLint.fail... | MBAllely/Marika-portfolio | sites/all/themes/radix/gulpfile.js | JavaScript | gpl-2.0 | 552 |
var CacheApp = angular.module('CacheService',[]);
CacheApp.factory('CACHE', function ($cacheFactory) {
return $cacheFactory('myCache');
});
| hieupv92/aroundcoders | wp-content/themes/NightFury/js/raw/services/CacheService.js | JavaScript | gpl-2.0 | 146 |
/**
* Menu showing the player's unlocked achievements.
*
* @class AchievementsMenu
* @extends Menu
* @constructor
*/
function AchievementsMenu() {
// call the parent constructor
Menu.call(this);
// add custom buttons
var mainMenu = new Button("mainMenu", "Return to menu", (layout.getWidth()/2)-(this.but... | ChrisBAshton/Radioactive-Evolution | Website/Radioactive-Evolution/js/Menu/AchievementsMenu.js | JavaScript | gpl-2.0 | 6,880 |
/**
* Created by nico on 17/06/15.
*/
/*! DataTables Bootstrap 3 integration
* ©2011-2014 SpryMedia Ltd - datatables.net/license
*/
/**
* DataTables integration for Bootstrap 3. This requires Bootstrap 3 and
* DataTables 1.10 or newer.
*
* This file sets the defaults and adds options to DataTables to style it... | proyectodaw2015/final | views/js/dataTables.bootstrap.js | JavaScript | gpl-2.0 | 7,487 |
Drupal.userpopups = {};
Drupal.behaviors.userpopups = {
attach: function(context, settings) {
jQuery('html').once('popups-initialized').each(function(){
Drupal.userpopups.init();
});
}
};
Drupal.userpopups.init = function init(){
var login_box = jQuery('#block-userlogin');
var pass_box = jQuery(... | hacktm15/lapompa | web/modules/custom/user_blocks/js/userpopups.js | JavaScript | gpl-2.0 | 848 |
$(function(){
/*$.ajax({
type: "post",
url: "",
async:false,
data: {
"userName":userName,
"pwd":pwd
},
dataType: "json",
success: function(data){
if(data['success']){
layer.msg(data['msg'], {icon: 1, time: 1000}, function () {
... | q272654051/asset_Management | WebRoot/content/js/index.js | JavaScript | gpl-2.0 | 633 |
({"iframeTitle1":"編輯區","iframeTitle2":"編輯區框"}) | btribulski/girlsknowhow | sites/all/modules/civicrm/packages/dojo/dijit/form/nls/zh-tw/Textarea.js | JavaScript | gpl-2.0 | 60 |
/*
_ _ _ _
___| (_) ___| | __ (_)___
/ __| | |/ __| |/ / | / __|
\__ \ | | (__| < _ | \__ \
|___/_|_|\___|_|\_(_)/ |___/
|__/
Version: 1.5.0
Author: Ken Wheeler
Website: http://kenwheeler.github.io
Docs: http://kenwheeler.github.io/slick
Repo: http://gith... | kuryerov/portfolio | wp-content/themes/mytheme/forshow/PSDblack/libs/slick-1.5.0/slick/slick.js | JavaScript | gpl-2.0 | 72,579 |
/* This manages all the active games. Ie, it controlls who can access them and
* it sets up access when someone who is authorized asks for it. It also kills
* games when they have met their ending conditions.
* Of course, this also provides some functions for other pieces of the code to
* create games under our ma... | marcrasi/webset | game_manager.js | JavaScript | gpl-2.0 | 3,270 |
'use strict';
var _ = require('lodash');
var chai = require('chai');
var rewire = require('rewire');
var DepGraph = require('dependency-graph').DepGraph;
var init = rewire('../../../core/lib/init');
var mockSrvs = require('../../mocks/services');
// Setup
chai.should();
var depGraph = new DepGraph();... | go-ta/gota-server | test/units/init/process.js | JavaScript | gpl-2.0 | 1,658 |
export { default } from 'ember-jsingla-libs/utils/feedback-message';
| Dracks/Ember-jsingla-libs | app/utils/feedback-message.js | JavaScript | gpl-2.0 | 69 |
var request = require('request');
var q = require('q');
var _ = require('underscore');
module.exports = {
createOozieClient: function (options) {
var _options = options;
return {
// Get oozie status
// return {systemMode: ''}
getStatus: getStatus,
// Get oozie jobs
// return: {
// total: ... | ificha/oozie-client | oozie_api.js | JavaScript | gpl-2.0 | 3,042 |
/**!
* AngularJS file upload shim for HTML5 FormData
* @author Danial <danial.farid@gmail.com>
* @version <%= pkg.version %>
*/
(function() {
var hasFlash = function() {
try {
var fo = new ActiveXObject('ShockwaveFlash.ShockwaveFlash');
if (fo) return true;
} catch(e) {
if (navigator.mimeTypes["applic... | isa-group/prspectives | prspectives/src/main/webapp/libs/uploader/angular-file-upload-shim.js | JavaScript | gpl-2.0 | 9,526 |
//QuestBook Scoreboard
//OnDocumentReady
$(document).ready(function(){
//Initialization of global variables
var scoreIndex = 0;
var score = new Array();
//Calculates total score for players, create scoreboard array
$('.BarPlayer').each(function(i, obj) {
var objs = $(this).children();
var totalvalue = 0;
ob... | HeBaSoft/QuestBook | questbook/Libraries/Scoreboard.js | JavaScript | gpl-2.0 | 1,936 |
/**
* ---------------------------------------------------------------------
* GLPI - Gestionnaire Libre de Parc Informatique
* Copyright (C) 2015-2020 Teclib' and contributors.
*
* http://glpi-project.org
*
* based on GLPI - Gestionnaire Libre de Parc Informatique
* Copyright (C) 2003-2014 by the INDEPNET Devel... | edgardmessias/glpi | lib/bundles/fullcalendar.js | JavaScript | gpl-2.0 | 1,663 |
$(function(){ // on dom ready
$('#cy').cytoscape({
layout: {
name: 'cose',
padding: 10
},
style: cytoscape.stylesheet()
.selector('node')
.css({
'shape': 'ellipse',
'width': 32,
'content': 'data(name)',
'text-valign': 'center',
't... | infoburp/graphlinger | graph.js | JavaScript | gpl-2.0 | 2,668 |
var act = new Object();
act.sh = new Object();
act.sh.multilevel = new Object();
act.sh.multilevel.check = function( args ){
var show = true;
for( var selector in args ){
var classname = args[ selector ];
if( show && !jQuery( selector ).first().is( ':checked' ) ){
show = fa... | vapvarun/MicrocerptBIZ | wp-content/themes/serpent/lib/js/actions.js | JavaScript | gpl-2.0 | 69,799 |
jQuery(document).ready(function() {
if(site.wc_generated !=1){
jQuery('form.quickbooks').find(':input:not(:disabled)').prop('disabled',true);
};
jQuery('#faqs h4').each(function() {
var tis = jQuery(this), state = false, answer = tis.next('div').hide().css('height','auto').slideUp();
tis.click(function(... | SayenkoDesign/selectahead | wp-content/plugins/woocommerce-quickbooks-pos-2013/admin/js/admin.js | JavaScript | gpl-2.0 | 8,677 |
/*
* Filter Behavior
*
* Data attributes:
* - data-behavior="filter" - enables the filter plugin
*
* JavaScript API:
* $('a#someLink').filterBehavior()
*
* Dependences:
* - October Popover (october.popover.js)
*/
| imfaber/imfaber_v2 | modules/backend/assets/js/october.filter.js | JavaScript | gpl-2.0 | 227 |
/*
* Copyright (c) 2012 Francisco Salavert (ICM-CIPF)
* Copyright (c) 2012 Ruben Sanchez (ICM-CIPF)
* Copyright (c) 2012 Ignacio Medina (ICM-CIPF)
*
* This file is part of JS Common Libs.
*
* JS Common Libs is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public Li... | pinmarch/jsorolla | src/lib/cellbase-manager.js | JavaScript | gpl-2.0 | 4,056 |
import F2 from '@antv/f2';
const Shape = F2.Shape;
Shape.registerShape('point', 'with-text', {
draw: function draw(cfg, container) {
const size = cfg.size;
const x = cfg.x;
const y = cfg.y;
const circle = container.addShape('Circle', {
className: 'point',
attrs: {
x,
y,
... | antvis/g2-mobile | examples/point/scatter/demo/ordered-bubble.js | JavaScript | gpl-2.0 | 1,463 |
// search box
+function ($) {
$(document).ready(function (){
var submitIcon = $('.searchbox-icon');
var inputBox = $('.searchbox-input');
var searchBox = $('.searchbox');
var isOpen = false;
submitIcon.click(function(){
if(isOpen == false){
searchBox.addClass('searchbox-open');
... | kalamuna/open-hsu-drops-7 | profiles/openhsu/themes/hsu_kalatheme/js/src/hsu_kalatheme.js | JavaScript | gpl-2.0 | 1,784 |
MaybeLater.Data = function() {
var dataRecord = Ext.data.Record.create([
{name: 'name', mapping: 'fields.name'},
{name: 'description', mapping: 'fields.notes'},
{name: 'effort', type: 'int', mapping: 'fields.effort'},
{name: 'priority', type: 'int', mapping: 'fields.priority'},
{name: 'startDate', type: '... | Kev/maybelater | static/js/MaybeLater.Data.js | JavaScript | gpl-2.0 | 1,381 |
import { getCurrentUser } from '@automattic/calypso-analytics';
import { isAdTrackingAllowed, refreshCountryCodeCookieGdpr } from 'calypso/lib/analytics/utils';
import { debug, isWpcomGoogleAdsGtagEnabled, isFloodlightEnabled, TRACKING_IDS } from './constants';
import { recordParamsInFloodlightGtag } from './floodlight... | Automattic/wp-calypso | client/lib/analytics/ad-tracking/ad-track-signup-start.js | JavaScript | gpl-2.0 | 1,420 |
enchant();
window.onload = function(){
// Scenes
var sceneBoard;
var sceneGameOver;
// Game elements
var map;
var player;
var pinky;
var morado;
var blue;
var yellow;
var scoreLabel;
var levelLabel;
// Tiles
var lifeSpriteNumber = 37;
var floor = -2;
var pill = 161;
var pillPowe... | victorsempere/pacmanjs | dev/assets/enchant/js/pacman.js | JavaScript | gpl-2.0 | 23,989 |
jQuery(document).ready(function($){
element_ui_textarea={
init_ui_textarea:function(){
Joomla_post.list_function_run_befor_submit.push(element_ui_textarea.update_data);
},
update_data:function(data_submit){
$(".block-item.block-item-textarea").each(function(){
... | cuongnd/test_pro | media/elements/ui/textview.js | JavaScript | gpl-2.0 | 577 |
// EPI: 9.9 sort a stack in descending order
import Stack from "./stack"
var s = new Stack(10)
// populate the stack
s.push(6)
s.push(7)
s.push(3)
s.push(2)
s.push(1)
s.push(9)
function Insert(e) {
if (s.empty() == true || s.peek(0) <= e) {
s.push(e)
} else {
let f = s.pop()
Insert(e)
s.push(f)
}
}
... | sambaatteamf1/scratchpad-node8 | epi/stack/sort.js | JavaScript | gpl-2.0 | 532 |
http://jsfiddle.net/fusioncharts/jJM7e/
http://jsfiddle.net/gh/get/jquery/1.9.1/sguha-work/fiddletest/tree/master/fiddles/Gauge/Hover-Effects/Configuring-dial-hover-effects-in-angular-gauge_159/ | sguha-work/fiddletest | fiddles/Gauge/Hover-Effects/Configuring-dial-hover-effects-in-angular-gauge_159/url.js | JavaScript | gpl-2.0 | 194 |
$(document).ready(function () {
$('#feedback-container #close-feedback').click(function () {
hideFeedback();
return false;
});
$('textarea[name=comments]').focus(function () {
if ($(this).val() == 'Additional comments') $(this).val('');
});
$('textarea[name=comments]').blur(function () {
if (... | himsme91/education | sites/all/themes/usgbc/lib/js/section/feedback.js | JavaScript | gpl-2.0 | 3,006 |
function unique(a)
{
var r = new Array();
o:for(var i = 0, n = a.length; i < n; i++)
{
for(var x = 0, y = r.length; x < y; x++)
{
if((r[x][0]==a[i][0]) && (r[x][1]==a[i][1]) && (r[x][2]==a[i][2])) {
// console.log("dupe" + r[x][0] + " " + a[x][0] + " " + r[x][1] + " " + a[x][1]);
continue o;
}
}
... | alikins/sortpal.js | sortpal.js | JavaScript | gpl-2.0 | 17,980 |
'use strict';
module.exports = function (grunt) {
// Load grunt tasks automatically
require('load-grunt-tasks')(grunt);
// Time how long tasks take. Can help when optimizing build times
require('time-grunt')(grunt);
var buildConfig = require('./build.config.js');
var taskConfig = {
... | sebastienD/genetic-car | genetic-car-server/Gruntfile.js | JavaScript | gpl-2.0 | 17,067 |
define(['jquery', 'mustache', 'text!../../html/templates.html', 'bootstrap', 'chosen'], function ($, Mustache, templates) {
var global = this;
global.DWLD = function() {
var CONFIG = {
lang: 'en',
url_data_providers: 'http:... | geobricks/jsgeo | js/download/geobricks_download.js | JavaScript | gpl-2.0 | 23,620 |
/*
* Playlist Object for the jPlayer Plugin
* http://www.jplayer.org
*
* Copyright (c) 2009 - 2013 Happyworm Ltd
* Dual licensed under the MIT and GPL licenses.
* - http://www.opensource.org/licenses/mit-license.php
* - http://www.gnu.org/copyleft/gpl.html
*
* Author: Mark J Panaghiston
* Version:... | monikajoinfilms/jfbackup | sites/all/libraries/jplayer/add-on/jplayer.playlist.js | JavaScript | gpl-2.0 | 16,374 |
$(document).ready(function() {
//alert("Adding accordion js");
//ACCORDION BUTTON ACTION
$('div.accordionButton').click(function() {
$('div.accordionContent').slideUp('normal');
$(this).next().slideDown('normal');
});
//HIDE THE DIVS ON PAGE LOAD
$("div.accordionCon... | adamfisk/littleshoot-client | server/appengine/media/accordion.js | JavaScript | gpl-2.0 | 376 |
'use strict';
angular.module('pizzaApp', [])
.factory('shopCartService', function(){
var factoryInstance = {};
var pizzaListCart = [];
factoryInstance.addPizzaToCart = function(pizza) {
pizzaListCart.push({name: pizza.name, price: pizza.price});
};
factoryInstance.getCart = function(){
return pizzaL... | carlos-/ajs-intro | step4-services/app.js | JavaScript | gpl-2.0 | 1,062 |
define(function() {
return (/^margin/);
});
| mappiamo/mapi-app | platforms/windows/www/lib/jquery/src/css/var/rmargin.js | JavaScript | gpl-2.0 | 48 |
console.log("Inside main.js");
$('#modal1').modal('show'); | sandromehic/minorityGames | public/js/main.js | JavaScript | gpl-2.0 | 60 |
$(document).ready(function(){
//Architect details event listener
$('.view-details').on('click', function(event){
var targetElement = event.target;
var container = targetElement.parentElement.parentElement;
$(container).find('.details').each(function (index, el){
if($(el).is(':visible')) {
... | lukegreen/wats-1020-final-project | js/main.js | JavaScript | gpl-2.0 | 1,160 |
showWord(["a. ","Chalè ki soti nan fon tè.<br>"]) | georgejhunt/HaitiDictionary.activity | data/words/jeyot~emal.js | JavaScript | gpl-2.0 | 51 |
var StrathconaIndustrialPark = {
"type": "FeatureCollection",
"features": [
{
"geometry": {
"type": "Polygon",
"coordinates": [
[
[
-113.46642123578165,
53.47412224209839
],
[
-113.46648208645576,
... | EsriCanada-CE/ecce-app-challenge-2016 | maraudersmApp/maraudersmApp/GeoJsonNeighbor/Strathcona Industrial Park_neighbor.js | JavaScript | gpl-2.0 | 3,541 |
<script type="text/javascript" src=".../Style%20Library/Scripts/jQuery.js"></script>
<script type="text/javascript">
$(document).ready(function(){
//After adding our webparts to the page, we hide all webparts, in this example I have
//added 4 image libs to the page with promoted links on the top. This is t... | soprono/SharePoint-JavaScript | Overwrite Promoted Links to Execute jQuery/OverwritePromotedLinks.js | JavaScript | gpl-2.0 | 6,044 |
var CapturedExceptions = {};
CapturedExceptions.opera_854 = {
message: "Statement on line 44: Type mismatch (usually a non-object value used where an object is required)\n" +
"Backtrace:\n" +
" Line 44 of linked script file://localhost/G:/js/stacktrace.js\n" +
" this.undef();\n" +
" Line 31 of linked sc... | Champii/TowerAdventure | release/js/stacktrace/test/CapturedExceptions.js | JavaScript | gpl-2.0 | 15,589 |
var Rosenthalbuild = {
"type": "FeatureCollection",
"features": [
{
"geometry": {
"type": "Polygon",
"coordinates": [
[
[
-113.69130624824645,
53.51759469073049
],
[
-113.69141875829635,
... | EsriCanada-CE/ecce-app-challenge-2016 | maraudersmApp/maraudersmApp/GeoJsonBuild/Rosenthal.js | JavaScript | gpl-2.0 | 80,921 |
var CRDB_mobile = {
// Message displayed above group record buttons
group_record_message: 'This resource is available from multiple vendors. Please select a link button below.',
// Sets up a mapping of resource field internal names to display names. Customizable by sites.
field_map: {
access: ... | andysokolov/CUFTS | CRDB/root/static/js/crdb_mobile.js | JavaScript | gpl-2.0 | 12,930 |
jQuery(function($){
/*-----------------------------------------------------------------------------------*/
/* Sortable
/*-----------------------------------------------------------------------------------*/
$('.wolf-repeatable-add').click(function() {
field = $(this).closest('td').find('.wolf-custom-repeatable li... | brutaldesign/wolf-discography | classes/assets/js/sortable.js | JavaScript | gpl-2.0 | 956 |
function showrecentpostswiththumbs(json){document.write('<ul class="recent_posts_with_thumbs">');for(var i=0;i<numposts;i++){var entry=json.feed.entry[i];var posttitle=entry.title.$t;var posturl;if(i==json.feed.entry.length)break;for(var k=0;k<entry.link.length;k++){if(entry.link[k].rel=='replies'&&entry.link[k].type==... | linteksi/javascript | thumbnail-recent-post-v3.js | JavaScript | gpl-2.0 | 2,819 |
/**
* @challenge SHORTEST REPETITION
* @see https://www.codeeval.com/open_challenges/107/
* @author dominic england
*/
var fs = require("fs"),
regex = /(.+?)(\1|$)/;
fs.readFileSync(process.argv[2]).toString().split('\n')
// Node on codeeval doesn't seem to support arrow functions?
//
//.forEach((statemen... | raininglemons/CodingChallenges | CodeEval/shortest repetition/server.js | JavaScript | gpl-2.0 | 500 |
jQuery(document).ready(function($) {
// Code here will be executed on document ready. Use $ as normal.
$('.archive .post').hover(function(){
$(this).find('h1').slideToggle();
})
}); | jdockeray/Ava | wp-content/themes/genesis-sample/js/custom.js | JavaScript | gpl-2.0 | 189 |
$(document).ready(function(){
/* ---------- Login Box Styles ---------- */
if($(".login-box")) {
$("#username").focus(function() {
$(this).parent(".input-prepend").addClass("input-prepend-focus");
});
$("#username").focusout(function() {
$(this).parent(".input-prepend").removeClass("input-prepend... | mbret/bdemiagenancy.fr | public/resources/plugins/dashboard/js/custom.js | JavaScript | gpl-2.0 | 43,127 |
$(document).ready(function() {
$('#feedbackForm input')
.not('.optional,.no-asterisk')
.after('<span class="glyphicon glyphicon-asterisk form-control-feedback"></span>');
$("#feedbackSubmit").click(function() {
var $btn = $(this);
$btn.button('loading');
contactForm.clearErrors();
//do a l... | kennydurkin/website | assets/js/contact-form.js | JavaScript | gpl-2.0 | 2,761 |
var HtmlWebpackPlugin = require("html-webpack-plugin"),
autoprefixer = require("autoprefixer"),
path = require("path");
module.exports = {
loaders: [{
test: /\.js$/,
exclude: /node_modules/,
loaders: ['react-hot', 'babel'],
include: path.join(__dirname, 'src')
},{
test... | himynameisdave/gb | webpack.common.config.js | JavaScript | gpl-2.0 | 883 |
$(document).ready(function() {
// Setup initial state
var ids = [];
$.each(KT.repo_status, function(repo_id, status){
if (status.is_running) {
ids.push(repo_id);
KT.content.draw_syncing(repo_id, status.progress.progress, status.sync_id);
}
});
KT.content.reset_products... | daviddavis/katello | app/assets/javascripts/katello/sync_management/sync_management.js | JavaScript | gpl-2.0 | 12,981 |
'use strict';
/* INSTRUCCIONES
- Ejecutar getLocations
- Ejecutar correlateCines para a mano encontrar correlaciones.
*/
var request = require('request'),
cheerio = require('cheerio'),
mongoose = require('mongoose'),
md5 = require('md5'),
fs = require('fs'),
async = require('async'),
events... | ligreman/torrent-rex-server | getLocations.js | JavaScript | gpl-2.0 | 14,062 |
/*
* Copyright (c) 2009, 2010 and 2011 Frank G. Bennett, Jr. All Rights
* Reserved.
*
* The contents of this file are subject to the Common Public
* Attribution License Version 1.0 (the “License”); you may not use
* this file except in compliance with the License. You may obtain a
* copy of the License at:
*
*... | co-alliance/adr | sites/all/modules/islandora_contrib/islandora_scholar/modules/citeproc/lib/citeproc-js/tests/citeproc-js/sys_stdrhino_locale.js | JavaScript | gpl-2.0 | 4,343 |
function _QueryPainter(drawingPanel_ID){
if(drawingPanel_ID == undefined || drawingPanel_ID.length == 0){
console.error("drawing_panel: [" + drawingPanel_ID + "] is inappropriate!");
}
const STATEMENT_MARGIN = 10;
var offset_x = 0;
var offset_y = 0;
var drawingPanel = $("#" + drawingPanel_ID);
... | cho-yonghyun/VQL-web | VQLweb/src/main/webapp/custom/javascript/QueryPainter.js | JavaScript | gpl-2.0 | 838 |
jQuery(document).ready(function(){
jQuery('.ksm-reviews-add').on('click', function(e){
e.preventDefault();
if (jQuery('.ksm-reviews-add-form').is(':visible'))
{
jQuery('.ksm-reviews-add-form').slideUp(500);
}
else
{
jQuery('.ksm-reviews-add-form').slideDown(500);
... | ldmco/Ksenmart | packages/com_ksenmart/site/js/reviews.js | JavaScript | gpl-2.0 | 940 |
showWord(["","refè menm erè, menm krim, repete yon aksyon."
]) | georgejhunt/HaitiDictionary.activity | data/words/residive.js | JavaScript | gpl-2.0 | 64 |
showWord(["","1. Yon moun ki rive nan dezièm nivo nan konesans vodou. 2. Moun ki pa pè kenbe dife chabon nan pla men yo. Dapre kwayans vodou moun ki kanzo manyen dife san yo pa boule <br>"]) | georgejhunt/HaitiDictionary.activity | data/words/ounsikanzo_ousikanzo_.js | JavaScript | gpl-2.0 | 192 |
showWord(["a. ","ki lwen.<br>"]) | georgejhunt/HaitiDictionary.activity | data/words/ziltik.js | JavaScript | gpl-2.0 | 32 |
Meteor.publish("learnings", function(limit) {
return Learnings.find({},
{sort: {created_at: -1}, limit: limit});
});
Meteor.publish("learningsByUserId", function(limit, userId) {
check(userId, String);
if(this.userId){
return Learnings.find({userId: userId},
... | codebuddiesdotorg/codebuddies | server/learnings/publications.js | JavaScript | gpl-3.0 | 975 |
// Globals
// FCEs for current graph
var currentFCEs = 0;
var currentFCEs100 = 0;
var currentFCEs200 = 0;
var currentFCEs300 = 0;
var currentFCEs400 = 0;
var currentFCEsMAT = 0;
// Combined FCEs selected for all graphs
var totalFCEs = 0;
var activeFocus = ''; // The active focus from the 'Focuses' tab.
var ti... | Ian-Stewart-Binks/courseography | public/js/graph/setup.js | JavaScript | gpl-3.0 | 1,470 |
Ext.define('Surveyportal.view.querybuildernewmodel.queryentitiesjoins.QueryEntitiesModel', {
extend: 'Ext.data.Model',
fields: [{
name: 'entId',
type: 'string'
},{
name: 'entName',
type: 'string'
},{
name: 'tableName',
type: 'string'
},{
... | applifireAlgo/appDemoApps201115 | surveyportal/src/main/webapp/app/view/querybuildernewmodel/queryentitiesjoins/QueryEntitiesModel.js | JavaScript | gpl-3.0 | 596 |
/////////////////////////////////////////////////////////////////////////////////
//
// Jobbox WebGUI
// Copyright (C) 2014-2015 Komatsu Yuji(Zheng Chuyu)
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Softwa... | komatsuyuji/jobbox | frontends/public/app/view/common/Condition.js | JavaScript | gpl-3.0 | 2,639 |
// The MIT License (MIT)
// Typed.js | Copyright (c) 2014 Matt Boldt | www.mattboldt.com
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limi... | TermeTheme/TermeTheme | assets/js/typed.js | JavaScript | gpl-3.0 | 16,050 |
var searchData=
[
['bmzs',['BMZS',['../namespaceSpecific.html#adf764cbdea00d65edcd07bb9953ad2b7a924065a2d0165fe2d439a98d5170ccf0',1,'Specific']]],
['bmzu',['BMZU',['../namespaceSpecific.html#adf764cbdea00d65edcd07bb9953ad2b7a3eb23b9a9f4f17e2384b00c30ef95715',1,'Specific']]]
];
| qmc/dsqss | dsqss/dsqss-1.1.18/doc/program_document/html/search/enumvalues_62.js | JavaScript | gpl-3.0 | 282 |
// ChatWebAPIUtils.js
var ChatServerActionCreators = require('../actions/ChatServerActionCreators');
// !!! Please Note !!!
// We are using localStorage as an example, but in a real-world scenario, this
// would involve XMLHttpRequest, or perhaps a newer client-server protocol.
// The function signatures below might ... | companyjuice/trackdragon | web/app/themes/dragon/trackdragon/alt-ninja/src/js/utils/ChatWebAPIUtils.js | JavaScript | gpl-3.0 | 1,471 |
var obj = null;
function checkHover() {
if (obj) {
obj.find('ul').fadeOut('fast');
} //if
} //checkHover
$(document).ready(function() {
$('#Nav > li').click(function() {
if (obj) {
obj.find('ul').fadeOut('fast');
obj = null;
} //if
$(this).find('ul').fadeIn('fast');
$(this).hover(function(){},f... | anti-conformiste/thelia1 | lib/jquery/menu.js | JavaScript | gpl-3.0 | 772 |
const util = require('util');
let inherits = util.inherits;
function Animal(name){
this.name = name;
}
Animal.prototype.walk = function(destination){
console.log(this.name, 'is walking to', destination);
};
let animal = new Animal('elephant');
animal.walk('Melbourne');
//
function Bird(name){
Animal.call(this, ... | mectest1/HelloNodeJS | beginning-node/base/animals.js | JavaScript | gpl-3.0 | 1,262 |
addon.port.on("show", function(myTabs) {
var items = document.getElementById("items");
items.innerHTML = '';
for (var i = 0; i < myTabs.length; i++) {
var p = items.appendChild(document.createElement("p"));
p.id = 'check'+String(i);
var li = p.appendChild(document.createElement("input"));
li.type ... | diracdeltas/tabulous | data/get-text.js | JavaScript | gpl-3.0 | 711 |
import { Component } from 'preact'
import { route } from 'preact-router'
export default class Redirect extends Component {
componentWillMount () {
route(this.props.to)
}
render () {
return null
}
}
| Libranote/Libranote | src/components/redirect.js | JavaScript | gpl-3.0 | 216 |