code
stringlengths
1
2.08M
language
stringclasses
1 value
/** * Grid theme for Highcharts JS * @author Torstein Hønsi */ Highcharts.theme = { colors: ['#058DC7', '#50B432', '#ED561B', '#DDDF00', '#24CBE5', '#64E572', '#FF9655', '#FFF263', '#6AF9C4'], chart: { backgroundColor: { linearGradient: [0, 0, 500, 500], stops: [ [0, 'rgb(255, 255, 255)'], ...
JavaScript
/** * Gray theme for Highcharts JS * @author Torstein Hønsi */ Highcharts.theme = { colors: ["#DDDF0D", "#7798BF", "#55BF3B", "#DF5353", "#aaeeee", "#ff0066", "#eeaaee", "#55BF3B", "#DF5353", "#7798BF", "#aaeeee"], chart: { backgroundColor: { linearGradient: [0, 0, 0, 400], stops: [ [0,...
JavaScript
/** * Dark blue theme for Highcharts JS * @author Torstein Hønsi */ Highcharts.theme = { colors: ["#DDDF0D", "#55BF3B", "#DF5353", "#7798BF", "#aaeeee", "#ff0066", "#eeaaee", "#55BF3B", "#DF5353", "#7798BF", "#aaeeee"], chart: { backgroundColor: { linearGradient: [0, 0, 250, 500], stops: [ ...
JavaScript
// ==ClosureCompiler== // @compilation_level SIMPLE_OPTIMIZATIONS /** * @license Highcharts JS v2.1.6 (2011-07-08) * * (c) 2009-2011 Torstein Hønsi * * License: www.highcharts.com/license */ // JSLint options: /*jslint forin: true */ /*global document, window, navigator, setInterval, clearInterva...
JavaScript
/** * -------------------------------------------------------------------- * jQuery-Plugin "daterangepicker.jQuery.js" * by Scott Jehl, scott@filamentgroup.com * http://www.filamentgroup.com * reference article: http://www.filamentgroup.com/lab/update_date_range_picker_with_jquery_ui/ * demo page: http://www.fila...
JavaScript
$(function () { $('.date_has_event').each(function () { // options var distance = 10; var time = 250; var hideDelay = 50; var hideDelayTimer = null; // tracker var beingShown = false; var shown = false; var trigger = $(this); var popup = $('.events ul', this).css('opacity', 0); // set the mou...
JavaScript
//v1.7 // Flash Player Version Detection // Detect Client Browser type // Copyright 2005-2007 Adobe Systems Incorporated. All rights reserved. var isIE = (navigator.appVersion.indexOf("MSIE") != -1) ? true : false; var isWin = (navigator.appVersion.toLowerCase().indexOf("win") != -1) ? true : false; var isOpera = (na...
JavaScript
/** jquery.color.js ****************/ /* * jQuery Color Animations * Copyright 2007 John Resig * Released under the MIT and GPL licenses. */ (function(jQuery){ // We override the animation for all of these color styles jQuery.each(['backgroundColor', 'borderBottomColor', 'borderLeftColor', 'borderRightColor', '...
JavaScript
/* * jQuery Easing v1.3 - http://gsgd.co.uk/sandbox/jquery/easing/ * * Uses the built in easing capabilities added In jQuery 1.1 * to offer multiple easing options * * TERMS OF USE - jQuery Easing * * Open source under the BSD License. * * Copyright © 2008 George McGinley Smith * All rights reserved. * ...
JavaScript
/*! Copyright (c) 2009 Brandon Aaron (http://brandonaaron.net) * Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php) * and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses. * Thanks to: http://adomas.org/javascript-mouse-wheel/ for some pointers. * Thanks to: Mathias Ba...
JavaScript
/* * FancyBox - jQuery Plugin * Simple and fancy lightbox alternative * * Examples and documentation at: http://fancybox.net * * Copyright (c) 2008 - 2010 Janis Skarnelis * * Version: 1.3.1 (05/03/2010) * Requires: jQuery v1.3+ * * Dual licensed under the MIT and GPL licenses: * http://www.opensource.org...
JavaScript
// script.aculo.us scriptaculous.js v1.8.1, Thu Jan 03 22:07:12 -0500 2008 // Copyright (c) 2005-2007 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.8.1, Thu Jan 03 22:07:12 -0500 2008 // Copyright (c) 2005-2007 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/ va...
JavaScript
/* * FullCalendar v1.4.8 Google Calendar Extension * * Copyright (c) 2010 Adam Shaw * Dual licensed under the MIT and GPL licenses, located in * MIT-LICENSE.txt and GPL-LICENSE.txt respectively. * * Date: Sat Oct 16 17:10:03 2010 -0700 * */ (function($) { $.fullCalendar.gcalFeed = function(feedUrl, options)...
JavaScript
/* ------------------------------------------------------------------------- JavaScript Form Validator Version 2.0.2 Copyright 2003 JavaScript-coder.com. All rights reserved. You use this script in your Web pages, provided these opening credit lines ar...
JavaScript
// JavaScript Setings for Fancybox Pop up window $(document).ready(function() { $(".popframe").fancybox({ 'width' : 1018, 'height' : '80%', 'autoDimensions' : false, 'autoScale' : true, 'transitionIn' : 'none', 'transitionOut' : 'none', 'type' : 'iframe', 'titleShow' ...
JavaScript
// ----------------------------------------------------------------------------------- // // Lightbox v2.04 // by Lokesh Dhakar - http://www.lokeshdhakar.com // Last Modification: 2/9/08 // // For more information, visit: // http://lokeshdhakar.com/projects/lightbox2/ // // Licensed under the Creative Commons Attributi...
JavaScript
/** * @preserve * FullCalendar v1.4.8 * http://arshaw.com/fullcalendar/ * * Use fullcalendar.css for basic styling. * For event drag & drop, requires jQuery UI draggable. * For event resizing, requires jQuery UI resizable. * * Copyright (c) 2010 Adam Shaw * Dual licensed under the MIT and GPL licenses, locate...
JavaScript
/** * Cookie plugin * * Copyright (c) 2006 Klaus Hartl (stilbuero.de) * Dual licensed under the MIT and GPL licenses: * http://www.opensource.org/licenses/mit-license.php * http://www.gnu.org/licenses/gpl.html * */ /** * Create a cookie with the given name and value and other optional parameters. * * @examp...
JavaScript
// // Uncomment desired date format. // //var sFormat = 1; // January 1, 1970 //var sFormat = 2; // January 01, 1970; not implemented yet //var sFormat = 3; // Jan. 1, 1970; not implemented yet //var sFormat = 4; // Jan. 01, 1970; not implemented yet //var sFormat = 5; // Friday, 29 April, 2005 var sFormat = 6; // Fri...
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