code stringlengths 1 2.08M | language stringclasses 1
value |
|---|---|
function EliminarArchivo(id, tabla, campo)
{
$('img_delete').src = 'img/loader.png';
var opt = {
// Use POST
method: 'post',
// Send this lovely data
postBody: 'id=' + id,
// Handle successful response
onSuccess: function(t) {
if (t.responseText != '')
{
... | JavaScript |
// script.aculo.us unittest.js v1.7.0, Fri Jan 19 19:16:36 CET 2007
// Copyright (c) 2005, 2006 Thomas Fuchs (http://script.aculo.us, http://mir.aculo.us)
// (c) 2005, 2006 Jon Tirsen (http://www.tirsen.com)
// (c) 2005, 2006 Michael Schuerig (http://www.schuerig.de/michael/)
//
// script.aculo.us ... | JavaScript |
// script.aculo.us slider.js v1.7.0, Fri Jan 19 19:16:36 CET 2007
// Copyright (c) 2005, 2006 Marty Haught, Thomas Fuchs
//
// script.aculo.us is freely distributable under the terms of an MIT-style license.
// For details, see the script.aculo.us web site: http://script.aculo.us/
if(!Control) var Control = {};
Cont... | JavaScript |
// script.aculo.us scriptaculous.js v1.7.0, Fri Jan 19 19:16:36 CET 2007
// Copyright (c) 2005, 2006 Thomas Fuchs (http://script.aculo.us, http://mir.aculo.us)
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"),... | JavaScript |
// script.aculo.us builder.js v1.7.0, Fri Jan 19 19:16:36 CET 2007
// Copyright (c) 2005, 2006 Thomas Fuchs (http://script.aculo.us, http://mir.aculo.us)
//
// script.aculo.us is freely distributable under the terms of an MIT-style license.
// For details, see the script.aculo.us web site: http://script.aculo.us/
var... | JavaScript |
// UK lang variables
tinyMCE.addToLang('',{
bold_desc : 'Bold (Ctrl+B)',
italic_desc : 'Italic (Ctrl+I)',
underline_desc : 'Underline (Ctrl+U)',
striketrough_desc : 'Strikethrough',
justifyleft_desc : 'Align left',
justifycenter_desc : 'Align center',
justifyright_desc : 'Align right',
justifyfull_desc : 'Al... | JavaScript |
/**
* ES lang variables
*
* Authors : Alvaro Velasco,
* Adolfo Sanz De Diego (asanzdiego) <asanzdiego@yahoo.es>,
* Carlos C Soto (eclipxe) <csoto@sia-solutions.com>
* Eneko Castresana Vara
* Last Updated : July 14, 2006
* TinyMCE Version : 2.0.6.1
*/
tinyMCE.addToLa... | JavaScript |
// UK lang variables
tinyMCE.addToLang('',{
theme_style_select : '-- Styles --',
theme_code_desc : 'Edit HTML Source',
theme_code_title : 'HTML Source Editor',
theme_code_wordwrap : 'Word wrap',
theme_sub_desc : 'Subscript',
theme_sup_desc : 'Superscript',
theme_hr_desc : 'Insert horizontal ruler',
theme_rem... | JavaScript |
/**
* ES lang variables
*
* Authors : Alvaro Velasco,
* Adolfo Sanz De Diego (asanzdiego) <asanzdiego@yahoo.es>,
* Carlos C Soto (eclipxe) <csoto@sia-solutions.com>
* Eneko Castresana Vara
* Last Updated : July 14, 2006
* TinyMCE Version : 2.0.6.1
*/
tinyMCE.addToLang... | JavaScript |
function init() {
var inst;
tinyMCEPopup.resizeToInnerSize();
inst = tinyMCE.selectedInstance;
// Give FF some time
window.setTimeout('insertHelpIFrame();', 10);
var tcont = document.getElementById('plugintablecontainer');
var plugins = tinyMCE.getParam('plugins', '', true, ',');
if (plugins.lengt... | JavaScript |
var detail = 50, strhex = "0123456789abcdef", i, isMouseDown = false, isMouseOver = false;
var colors = new Array(
"#000000","#000033","#000066","#000099","#0000cc","#0000ff","#330000","#330033",
"#330066","#330099","#3300cc","#3300ff","#660000","#660033","#660066","#660099",
"#6600cc","#6600ff","#990000","#99... | JavaScript |
var action, element;
function init() {
tinyMCEPopup.resizeToInnerSize();
var inst = tinyMCE.getInstanceById(tinyMCE.getWindowArg('editor_id'));
var anchor = tinyMCE.getParentElement(inst.getFocusElement(), "a", "name");
var img = inst.getFocusElement();
action = 'insert';
if (anchor != null) {
ele... | JavaScript |
function init() {
tinyMCEPopup.resizeToInnerSize();
}
var charmap = new Array();
// for mor details please see w3c.org
// now here is the complete list ;)
charmap = [
[' ', ' ', true, 'no-break space'],
['&', '&', true, 'ampersand'],
['"', '"', true, 'quotati... | JavaScript |
function saveContent() {
tinyMCE.setContent(document.getElementById('htmlSource').value);
tinyMCE.closeWindow(window);
}
function onLoadInit() {
tinyMCEPopup.resizeToInnerSize();
// Remove Gecko spellchecking
if (tinyMCE.isGecko)
document.body.spellcheck = tinyMCE.getParam("gecko_spellcheck");
do... | JavaScript |
var url = tinyMCE.getParam("external_image_list_url");
if (url != null) {
// Fix relative
if (url.charAt(0) != '/' && url.indexOf('://') == -1)
url = tinyMCE.documentBasePath + "/" + url;
document.write('<sc'+'ript language="javascript" type="text/javascript" src="' + url + '"></sc'+'ript>');
}
function... | JavaScript |
var url = tinyMCE.getParam("external_link_list_url");
if (url != null) {
// Fix relative
if (url.charAt(0) != '/' && url.indexOf('://') == -1)
url = tinyMCE.documentBasePath + "/" + url;
document.write('<sc'+'ript language="javascript" type="text/javascript" src="' + url + '"></sc'+'ript>');
}
function ... | JavaScript |
Ajax.CachedAutocompleter = Class.create();
Object.extend(Object.extend(Ajax.CachedAutocompleter.prototype, Autocompleter.Base.prototype), {
initialize: function(element, update, url, options) {
this.baseInitialize(element, update, options);
this.options.asynchronous = true;
this.... | JavaScript |
/*
* Copyright 2013 Google Inc. All Rights Reserved.
*
* 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 applica... | JavaScript |
$(function() {
// Hide the other invitation inputs when the "Enable Invitations checkbox"
// is unchecked.
var checkbox = $("div.invitation-enable > input[type=\"checkbox\"]");
function updateInvitationFields() {
if (checkbox.prop("checked")) {
$(".invitation-data").parent().show();
} else {
... | JavaScript |
$(function() {
var XSRF_TOKEN = $("#invitation-div").data("xsrf-token");
// XSSI prefix. Must be kept in sync with models/transforms.py.
var XSSI_PREFIX = ")]}'";
function parseJson(s) {
return JSON.parse(s.replace(XSSI_PREFIX, ''));
}
function onSendButtonClick() {
var request = JSON.stringify({
... | JavaScript |
/*
Copyright 2013 Google Inc. All Rights Reserved.
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 a... | JavaScript |
/*
Copyright 2013 Google Inc. All Rights Reserved.
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 a... | JavaScript |
/**
* The definitions of the controls used by the iframed popup.
*
* @param frameProxy The proxy which is used to communicate with the editor in
* the parent window.
* @param env The shared GCB envronment variables.
*/
function FramedEditorControls(Y, frameProxy, env) {
this._Y = Y;
this._frameProxy = fra... | JavaScript |
/**
* Define the methods of the GCB rich text editor here.
*/
function getGcbRteDefs(env, Dom, Editor, Resize) {
var IS_NEW_FORM_LAYOUT = false;
return {
setOptions: function(options) {
GcbRteField.superclass.setOptions.call(this, options);
this.options.opts = options.opts || {};
this.optio... | JavaScript |
function ButterBar(popup, message, close) {
this.popup = popup;
this.message = message;
this.close = close;
}
ButterBar.prototype.showMessage = function(text) {
this.message.textContent = text; // FF, Chrome
this.message.innerText = text; // IE
ButterBar.keepInView();
if (! $(this.popup).hasClass("sho... | JavaScript |
// Defer execution to jQuery ready.
jQuery(function($) {
// Resize child frames to the size of their contents every 75ms.
setInterval(function() {
$('iframe.gcb-needs-resizing').each(function(elem) {
try {
$(this).height($(this).contents().height());
} catch(error) {
// Eat errors, w... | JavaScript |
//server communications timeout
var ajaxRpcTimeoutMillis = 45 * 1000;
// XSSI prefix. Must be kept in sync with models/transforms.py.
var xssiPrefix = ")]}'";
/**
* Compare two JS objects for equality by value.
*/
function deepEquals(x, y) {
if (typeof(x) != "object") {
return x === y;
}
if (typeof(y) != "... | JavaScript |
var tag = document.getElementsByName('tag')[0];
if (tag) {
tag.onchange = function(event) {
var value = cb_global.form.getValue();
value.attributes = {};
window.parent.frameProxy.setValue(value);
var tagName = tag.options[tag.selectedIndex].value;
window.location = getAddCustomTagUrl(cb_global, t... | JavaScript |
/*
* Parent frame code for Google Drive tag functionality.
*
* Requires child in google_tag_child_frame.js. The parent is loaded after
* oeditor.js. It accepts commands from the child frame, which is rendered as an
* InputEx lightbox, does work, and relays results back to the child.
*
* It's weird that we're usi... | JavaScript |
function gcbTagHtml5TrackVideo(instanceId) {
var index = 0;
var video = $('#' + instanceId)[0];
var eventLogger = function(event) {
var dataDict = {
'instance_id': instanceId,
'event_id': index,
'position': video.currentTime,
'rate': video.playbackRate,
'default_rate': video.defa... | JavaScript |
var codeEditor = new CodeEditorControl(
document.getElementsByName("markdown")[0]);
// force code editor to load the current mode
codeEditor.setMode("markdown");
$("select[name='mode']").change(function() {
codeEditor.setMode($(this).val());
});
| JavaScript |
// embed YouTube API only once
if (typeof(window['gcb_tag_youtube_videos']) == "undefined"){
// send a milestone event every time this many seconds of video are watched
var GCB_VIDEO_TRACKING_CHUNK_SEC = 30;
// video player status
var gcb_youtube_player_ready = false;
// list of videos to embed
var gcb_ta... | JavaScript |
/*
* Child frame code for Google Drive tag functionality.
*
* Requires parent in google_tag_child_parent.js. The child is rendered as an
* InputEx lightbox. It relays commands to the parent, which does actual work
* and relays results back to the child.
*
* It's weird that we're using postMessage here but we sti... | JavaScript |
/*
* Common utility methods used across clients of Google APIs.
*
* @param {object} JSON JSON processing module.
*/
window.GoogleApiClientTools = (function(JSON) {
module = {};
module._typeId = 'google-drive';
// XSSI prefix must be kept in sync with models/transforms.py.
module._xssiPrefix = ")]}'";
mo... | JavaScript |
/*
* Manages drive tag controls at tag render time.
*
* Open issues:
*
* - The structure of the preview frame is not the same as the structure of the
* content frame: we write into preview directly; content loads its data via
* its src. We patch over the most egregious UI differences, but it's not
* possi... | JavaScript |
GcbGoogleDriveTagChild.main();
| JavaScript |
function parseJson(s) {
var XSSI_PREFIX = ")]}'";
return JSON.parse(s.replace(XSSI_PREFIX, ""));
}
function onSubmitButtonClick(key, xsrfToken, button) {
var formData = $("#" + key).serializeArray();
var request = JSON.stringify({
"xsrf_token": xsrfToken,
"key": key,
"payload": {
"form_data":... | JavaScript |
$(function() {
var notes = (
'Note: Deleting translations will take several seconds, ' +
'and may time out. If this happens, you can try ' +
'deleting fewer languages at a time, or use the command ' +
'line tool. See .../modules/i18n_dashboard/jobs.py for ' +
'complete instructions and... | JavaScript |
$(function() {
var notes = (
'Note: Downloading translation files will take several seconds, ' +
'and may time out. If this happens, you can try ' +
'exporting fewer languages at a time, or use the command ' +
'line tool. See .../modules/i18n_dashboard/jobs.py for ' +
'complete instruc... | JavaScript |
var VERB_NEW = 1;
var VERB_CHANGED = 2;
var VERB_CURRENT = 3;
var VERB_NEW_CLASS = "verb-new";
var VERB_CHANGED_CLASS = "verb-changed";
var VERB_CURRENT_CLASS = "verb-current";
var EDITED_CLASS = "edited";
var NOT_STARTED_TRANSLATION = 0;
var VALID_TRANSLATION = 1;
var INVALID_TRANSLATION = 2;
function getVerbClassN... | JavaScript |
$(function() {
var notes = (
'Note: Uploading translation files will take several seconds, ' +
'and may time out. If this happens, you can try ' +
'importing fewer languages at a time, or use the command ' +
'line tool. See .../modules/i18n_dashboard/jobs.py for ' +
'complete instructi... | JavaScript |
// XSSI prefix. Must be kept in sync with models/transforms.py.
var xssiPrefix = ")]}'";
var xsrfToken = $("table.i18n-progress-table").data("isTranslatableXsrfToken");
/**
* Parses JSON string that starts with an XSSI prefix.
*/
function parseResponse(s) {
return JSON.parse(s.replace(xssiPrefix, ''));
}
functio... | JavaScript |
var codeEditor = new CodeEditorControl(
document.getElementsByName("code")[0]);
// force code editor to load the current mode
codeEditor.setMode($("select[name='mode']").val());
$("select[name='mode']").change(function() {
codeEditor.setMode($(this).val());
});
| JavaScript |
CodeMirror.modeURL = "/modules/code_tags/codemirror/mode/%N/%N.js";
$('code.codemirror-container-readonly').each(function() {
var code = $(this).text();
$(this).empty();
var cmInstance = CodeMirror(this, {
value: code,
lineNumbers: true,
readOnly: true
});
var mode = $(this).data('mode');
cmInst... | JavaScript |
$(function() {
// Hide the OEditor widget which just lists the skill id's in a list in text
// inputs, and replace it with the skill widget div.
var skillPanelDiv = $('div.skill-panel');
var skillEditorForOeditor = new SkillEditorForOeditor(cb_global);
skillPanelDiv.hide();
skillPanelDiv.after(skillEditorFo... | JavaScript |
/**
* This file contains the classes to manage Skill Mapping widgets.
*/
var SKILL_API_VERSION = '1';
var ESC_KEY = 27;
var MAX_SKILL_REQUEST_SIZE = 10;
/*********************** Start Dependencies ***********************************/
// The following symols are required to be defined in the global scope:
// cbSho... | JavaScript |
var ARROW_DOWN_CLASS = 'md-keyboard-arrow-down';
var ARROW_UP_CLASS = 'md-keyboard-arrow-up';
var HIGHLIGHTED_CARD_CLASS = 'highlighted';
var CLICKABLE_SKILL_CLASS = 'clickable';
var SHADED_CARD_CLASS = 'shaded';
var IS_INITIALIZED = 'initialized';
function now() {
return new Date().getTime();
}
function SkillPanel... | JavaScript |
/**
* Make a skill display list from a list of skill titles.
*/
function getSkillList(list) {
var ol = $('<ol class="skill-display-root"></ol>');
$.each(list, function() {
var li = $('<li class="skill"></li>').text(this);
ol.append(li);
});
return ol;
}
/**
* Return the HTML for a tooltip which list... | JavaScript |
/**
* @fileoverview Utility to add AJAX handler to pages.
*/
function element(id) {
return document.getElementById(id);
}
// Update a particular HTML element with a new value
function updateInnerHTML(elmId, value) {
element(elmId).innerHTML = value;
}
function updateValue(elmId, value) {
element(elmId).value... | JavaScript |
<!-- -*- mode: javascript; -*- -->
<div id="labels_on_students_graph"></div>
<script>
function labels_on_students(data){
var dimension = data.labels_on_students.crossfilter.dimension(
function byTitle(label){
return label.title;
});
var group = dimension.group().reduceSum(
function byCount... | JavaScript |
function AssessmentEditorController(Y, inputExForm, xsrfToken, confirm, notify,
formatError) {
this.Y = Y;
this.inputExForm = inputExForm;
this.xsrfToken = xsrfToken;
this.confirm = confirm;
this.notify = notify;
this.formatError = formatError;
}
AssessmentEditorController.prototype.exportToHTMLAssessme... | JavaScript |
/**
* A class which represents a button which can toggle between two states ("a"
* and "b") on a click.
* @param {YUI Node} divNode the node which the button will be inserted in
* @param {string} aText the text which will be shown when the button is in "a"
* state (the default)
* @param {string} bText the tex... | JavaScript |
var controller = new AssessmentEditorController(
Y,
cb_global.form,
cb_global.xsrf_token,
function(s) { return window.confirm(s); },
cbShowMsg,
formatServerErrorMessage
);
controller.init(); | JavaScript |
var COURSE_SORTABLE_SELECTOR = 'div.course-outline.editable ol.course';
var UNIT_SORTABLE_SELECTOR = 'div.course-outline.editable ol.unit';
var UNIT_LESSON_TITLE_REST_HANDLER_URL = 'rest/course/outline';
var UNIT_LESSON_TITLE_XSRF_TOKEN = $('.course-outline')
.data('unitLessonTitleXsrfToken');
var UNIT_TITLE_TEMPLA... | JavaScript |
//XSSI prefix. Must be kept in sync with models/transforms.py.
var XSSI_PREFIX = ")]}'";
var ESC_KEY = 27;
/**
* Parses JSON string that starts with an XSSI prefix.
*/
function parseJson(s) {
return JSON.parse(s.replace(XSSI_PREFIX, ""));
}
function setDraftStatus(padlock, isDraft) {
if (isDraft) {
padlock.... | JavaScript |
function showNoPermissionsMessage() {
$("#formContainer > div > form > fieldset > .inputEx-Group > fieldset")
.append("There are currently no permissions assigned nor registered.");
}
function setUpRoleEditorForm() {
var all_hidden = true;
$(".permission-module").each(function() {
if($(this).find(".inputEx... | JavaScript |
<!-- -*- mode: javascript; -*- -->
<div>
<style scoped>
.graph_container {
float: left;
text-align: center;
}
h4 {
margin: 10px;
}
.graph_graph {
margin: 10px;
}
</style>
<!-- Titles and containers for graphs -->
<div class="graph_container">
<h4>Counts of Answers</h4>
... | JavaScript |
var SHOW_SCORES_LABEL = 'Assign scores to individual choices';
var HIDE_SCORES_LABEL = 'Return to choice picker view';
var HIDE_SCORES_WARNING_LABEL =
'Return to choice-picker (Note: scores will change)';
/* Whether to show the numeric score or a radio/checkbox. */
var setScores = false;
var setScoresToggleButton... | JavaScript |
var EMPTY_LIST_MESSAGE = 'There are no questions available to add to this ' +
'group.';
$('.question-group-items.empty-question-list')
.hide()
.after($('<div class="empty-question-list-message"></div>')
.text(EMPTY_LIST_MESSAGE));
| JavaScript |
var isPeerAssessmentTable;
$(function() {
if (cb_global.schema.properties.course) {
// Only activate this functionality on the Settings > Course view
init();
}
});
function init() {
isPeerAssessmentTable = cb_global.schema.properties.course.properties
.certificate_criteria._inputex.is_peer_assess... | JavaScript |
var XSRF_TOKEN = $('div.gcb-ratings-widget').data('xsrf-token');
var KEY = window.location.pathname + window.location.search;
function parseJson(s) {
var XSSI_PREFIX = ')]}\'';
return JSON.parse(s.replace(XSSI_PREFIX, ''));
}
function onRatingClick(target) {
target = $(target);
target.closest('ul').find('li >... | JavaScript |
var typesInfo;
var dimTypes;
var progressDimRadioLabels = ['Not started', 'In progress', 'Completed'];
function createRadioElements(parent, labels, call_back) {
var previousContainer = parent.find('#progress-buttons-container');
if (previousContainer.length) {
previousContainer.show();
} else {
var cont... | JavaScript |
// Copyright 2012 Google Inc. All Rights Reserved.
//
// 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 applicabl... | JavaScript |
// Copyright 2012 Google Inc. All Rights Reserved.
//
// 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 applicabl... | JavaScript |
// Copyright 2012 Google Inc. All Rights Reserved.
//
// 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 applicabl... | JavaScript |
// Copyright 2012 Google Inc. All Rights Reserved.
//
// 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 applicabl... | JavaScript |
// Copyright 2012 Google Inc. All Rights Reserved.
//
// 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 applicabl... | JavaScript |
// Copyright 2012 Google Inc. All Rights Reserved.
//
// 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 applicabl... | JavaScript |
// Copyright 2012 Google Inc. All Rights Reserved.
//
// 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 applicabl... | JavaScript |
// Copyright 2012 Google Inc. All Rights Reserved.
//
// 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 applicabl... | JavaScript |
// Copyright 2012 Google Inc. All Rights Reserved.
//
// 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 applicabl... | JavaScript |
// Copyright 2012 Google Inc. All Rights Reserved.
//
// 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 applicabl... | JavaScript |
// Copyright 2012 Google Inc. All Rights Reserved.
//
// 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 applicabl... | JavaScript |
// Copyright 2012 Google Inc. All Rights Reserved.
//
// 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 applicabl... | JavaScript |
// Copyright 2012 Google Inc. All Rights Reserved.
//
// 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 applicabl... | JavaScript |
// Copyright 2012 Google Inc. All Rights Reserved.
//
// 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 applicabl... | JavaScript |
// Copyright 2012 Google Inc. All Rights Reserved.
//
// 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 applicabl... | JavaScript |
// Copyright 2012 Google Inc. All Rights Reserved.
//
// 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 applicabl... | JavaScript |
// Copyright 2012 Google Inc. All Rights Reserved.
//
// 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 applicabl... | JavaScript |
// Copyright 2012 Google Inc. All Rights Reserved.
//
// 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 applicabl... | JavaScript |
// Copyright 2012 Google Inc. All Rights Reserved.
//
// 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 applicabl... | JavaScript |
// Copyright 2012 Google Inc. All Rights Reserved.
//
// 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 applicabl... | JavaScript |
// Copyright 2012 Google Inc. All Rights Reserved.
//
// 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 applicabl... | JavaScript |
// Copyright 2012 Google Inc. All Rights Reserved.
//
// 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 applicabl... | JavaScript |
// Copyright 2012 Google Inc. All Rights Reserved.
//
// 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 applicabl... | JavaScript |
// Copyright 2012 Google Inc. All Rights Reserved.
//
// 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 applicabl... | JavaScript |
// Copyright 2012 Google Inc. All Rights Reserved.
//
// 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 applicabl... | JavaScript |
// Copyright 2012 Google Inc. All Rights Reserved.
//
// 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 applicabl... | JavaScript |
// Copyright 2012 Google Inc. All Rights Reserved.
//
// 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 applicabl... | JavaScript |
// Copyright 2012 Google Inc. All Rights Reserved.
//
// 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 applicabl... | JavaScript |
// Copyright 2012 Google Inc. All Rights Reserved.
//
// 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 applicabl... | JavaScript |
// Copyright 2012 Google Inc. All Rights Reserved.
//
// 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 applicabl... | JavaScript |
// Copyright 2012 Google Inc. All Rights Reserved.
//
// 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 applicabl... | JavaScript |
// Copyright 2013 Google Inc. All Rights Reserved.
//
// 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 applicabl... | JavaScript |
// Copyright 2013 Google Inc. All Rights Reserved.
//
// 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 applicabl... | JavaScript |
$(function() {
function showMenu() {
$("#gcb-nav-y").addClass("shown");
$(document.body).addClass('hide-overflow');
}
function hideMenu() {
$("#gcb-nav-y").removeClass("shown");
$(document.body).removeClass('hide-overflow');
}
function toggleMenu() {
if ($("#gcb-nav-y").hasClass("shown")) ... | JavaScript |
describe('normalize scores', function() {
var oldY;
function arrayEqual(a, b) {
if (a.length != b.length) {
return false;
}
for (var i = 0; i < a.length; i++) {
if (a[i] !== b[i]) {
return false;
}
}
return true;
}
beforeEach(function() {
if (window.Y) {
... | JavaScript |
basePath = '../../../..';
var YUI_BASE = process.env.YUI_BASE;
var KARMA_LIB = process.env.KARMA_LIB;
files = [
JASMINE,
JASMINE_ADAPTER,
YUI_BASE + '/yui/yui.js',
YUI_BASE + '/yui-base/yui-base.js',
YUI_BASE + '/node-core/node-core.js',
YUI_BASE + '/array-extras/array-extras.js',
YUI_BASE + '/dom-scree... | JavaScript |
describe('assessment tags', function() {
var LOGGING_LOCATION = 'http://localhost:8080/unit?unit=1&lesson=2';
var MESSAGES = {
correctAnswer: 'Yes, the answer is correct.',
incorrectAnswer: 'No, the answer is incorrect.',
partiallyCorrectAnswer: 'The answer is partially correct.',
yourScoreIs: 'Your... | JavaScript |
basePath = '../../../..';
var KARMA_LIB = process.env.KARMA_LIB;
files = [
JASMINE,
JASMINE_ADAPTER,
'https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js',
KARMA_LIB + '/jasmine-jquery-1.5.2.js',
// Test files
'tests/unit/javascript_tests/modules_assessment_tags/*.js',
// Test resources
... | JavaScript |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.