code stringlengths 1 2.08M | language stringclasses 1
value |
|---|---|
if ($.fn.pagination){
$.fn.pagination.defaults.beforePageText = 'Strana';
$.fn.pagination.defaults.afterPageText = 'z {pages}';
$.fn.pagination.defaults.displayMsg = 'Zobrazuji {from} do {to} z {total} položky';
}
if ($.fn.datagrid){
$.fn.datagrid.defaults.loadMsg = 'Zpracování, čekejte prosím ...';
}
if ($... | JavaScript |
if ($.fn.pagination){
$.fn.pagination.defaults.beforePageText = 'Pagina';
$.fn.pagination.defaults.afterPageText = 'van {pages}';
$.fn.pagination.defaults.displayMsg = 'Tonen van {from} tot {to} van de {total} items';
}
if ($.fn.datagrid){
$.fn.datagrid.defaults.loadMsg = 'Verwerking, even geduld ...';
}
if... | JavaScript |
if ($.fn.pagination){
$.fn.pagination.defaults.beforePageText = 'Страница';
$.fn.pagination.defaults.afterPageText = 'от {pages}';
$.fn.pagination.defaults.displayMsg = 'Показани {from} за {to} от {total} продукти';
}
if ($.fn.datagrid){
$.fn.datagrid.defaults.loadMsg = 'Обработка, моля изчакайте ...';
}
if... | JavaScript |
if ($.fn.pagination){
$.fn.pagination.defaults.beforePageText = 'Página';
$.fn.pagination.defaults.afterPageText = 'de {pages}';
$.fn.pagination.defaults.displayMsg = 'Mostrando {from} a {to} de {total} itens';
}
if ($.fn.datagrid){
$.fn.datagrid.defaults.loadMsg = 'Processando, aguarde ...';
}
if ($.fn.tre... | JavaScript |
if ($.fn.pagination){
$.fn.pagination.defaults.beforePageText = 'Página';
$.fn.pagination.defaults.afterPageText = 'de {pages}';
$.fn.pagination.defaults.displayMsg = 'Mostrando {from} a {to} de {total} elementos';
}
if ($.fn.datagrid){
$.fn.datagrid.defaults.loadMsg = 'Procesando, por favor espere ...... | JavaScript |
if ($.fn.pagination){
$.fn.pagination.defaults.beforePageText = 'Page';
$.fn.pagination.defaults.afterPageText = 'af {pages}';
$.fn.pagination.defaults.displayMsg = 'Viser {from} til {to} af {total} poster';
}
if ($.fn.datagrid){
$.fn.datagrid.defaults.loadMsg = 'Behandling, vent venligst ...';
}
if ($.fn.t... | JavaScript |
if ($.fn.pagination){
$.fn.pagination.defaults.beforePageText = '第';
$.fn.pagination.defaults.afterPageText = '共{pages}頁';
$.fn.pagination.defaults.displayMsg = '顯示{from}到{to},共{total}記錄';
}
if ($.fn.datagrid){
$.fn.datagrid.defaults.loadMsg = '正在處理,請稍待。。。';
}
if ($.fn.treegrid && $.fn.datagrid){
$.fn.tre... | JavaScript |
if ($.fn.pagination){
$.fn.pagination.defaults.beforePageText = 'Σελίδα';
$.fn.pagination.defaults.afterPageText = 'από {pages}';
$.fn.pagination.defaults.displayMsg = 'Εμφάνιση {from} εώς {to} από {total} αντικείμενα';
}
if ($.fn.datagrid){
$.fn.datagrid.defaults.loadMsg = 'Γίνεται Επεξεργασία, Παρακαλώ Περι... | JavaScript |
if ($.fn.pagination) {
$.fn.pagination.defaults.beforePageText = 'Sida';
$.fn.pagination.defaults.afterPageText = 'av {pages}';
$.fn.pagination.defaults.displayMsg = 'Visar {from} till {to} av {total} poster';
}
if ($.fn.datagrid) {
$.fn.datagrid.defaults.loadMsg = 'Bearbetar, vänligen vänta ...';... | JavaScript |
if ($.fn.pagination){
$.fn.pagination.defaults.beforePageText = 'Էջ';
$.fn.pagination.defaults.afterPageText = 'ից {pages}';
$.fn.pagination.defaults.displayMsg = 'Դիտել {from}-ից {to}-ը {total} գրառումից';
}
if ($.fn.datagrid){
$.fn.datagrid.defaults.loadMsg = 'Մշակվում է, խնդրում ենք սպասել ...';
}
if ($.... | JavaScript |
if ($.fn.pagination){
$.fn.pagination.defaults.beforePageText = 'Strona';
$.fn.pagination.defaults.afterPageText = 'z {pages}';
$.fn.pagination.defaults.displayMsg = 'Wyświetlono elementy od {from} do {to} z {total}';
}
if ($.fn.datagrid){
$.fn.datagrid.defaults.loadMsg = 'Przetwarzanie, proszę czekać ...';
... | JavaScript |
if ($.fn.pagination){
$.fn.pagination.defaults.beforePageText = 'Pàgina';
$.fn.pagination.defaults.afterPageText = 'de {pages}';
$.fn.pagination.defaults.displayMsg = "Veient {from} a {to} de {total} d'articles";
}
if ($.fn.datagrid){
$.fn.datagrid.defaults.loadMsg = 'Elaboració, si us plau esperi ...';
}
i... | JavaScript |
$(function () {
jQuery.support.placeholder = false;
test = document.createElement('input');
if('placeholder' in test) jQuery.support.placeholder = true;
if (!$.support.placeholder) {
$('.field').find ('label').show ();
}
}); | JavaScript |
/**
* @name FAQ Plugin
* @author Rod Howard
* @url http://goideate.com
* @date April 28, 2012
* @license GNU/GPL Version 3
*
*
* Example:
*
* $(function() {
* $("element, #id, .class").technify({
* // #{EDIT-HERE}# Your run-time options go here ...
* });
... | JavaScript |
$(function () {
// we use an inline data source in the example, usually data would
// be fetched from a server
var data = [], totalPoints = 200;
function getRandomData() {
if (data.length > 0)
data = data.slice(1);
while (data.length < totalPoints) {
var prev = data.length > 0 ? data[data.length... | JavaScript |
$(function () {
var data = [];
var series = 3;
for( var i = 0; i<series; i++)
{
data[i] = { label: "Series "+(i+1), data: Math.floor(Math.random()*100)+1 }
}
$.plot($("#donut-chart"), data,
{
colors: ["#19bc9c", "#3398db", "#fad231", "#9b59b6"],
series: {
pie: {
... | JavaScript |
$(function () {
var data = [];
var series = Math.floor(Math.random()*10)+1;
var series = 4;
for( var i = 0; i<series; i++)
{
data[i] = { label: "Series"+(i+1), data: Math.floor(Math.random()*100)+1 }
}
$.plot($("#pie-chart"), data,
{
colors: ["#F90", "#222", "#666", "#BBB"],
series... | JavaScript |
$(function () {
var data = new Array ();
var ds = new Array();
data.push ([[1,25],[2,34],[3,37],[4,45],[5,56]]);
data.push ([[1,13],[2,29],[3,25],[4,23],[5,31]]);
data.push ([[1,8],[2,13],[3,19],[4,15],[5,14]]);
data.push ([[1,20],[2,43],[3,29],[4,23],[5,25]]);
for (var i=0, j=data.length; i<j... | JavaScript |
$(function () {
var sin = [], cos = [];
for (var i = 0; i < 10; i += 0.5) {
sin.push([i, Math.sin(i)]);
cos.push([i, Math.cos(i)]);
}
var plot = $.plot($("#line-chart"),
[ { data: sin, label: "sin(x)"}, { data: cos, label: "cos(x)" } ], {
series: {
... | JavaScript |
$(function () {
$('.subnavbar').find ('li').each (function (i) {
var mod = i % 3;
if (mod === 2) {
$(this).addClass ('subnavbar-open-right');
}
});
}); | JavaScript |
/*!
* Chart.js
* http://chartjs.org/
*
* Copyright 2013 Nick Downie
* Released under the MIT license
* https://github.com/nnnick/Chart.js/blob/master/LICENSE.md
*/
//Define the global Chart Variable as a class.
window.Chart = function(context){
var chart = this;
//Easing functions adapted from Robert Pen... | JavaScript |
/**
* Ready event
*
* @author Anton Shevchuk
*/
(function($, undefined) {
$(function(){
// jQUery UI widgets
// Datepickers
if (!$.browser.opera && $.isFunction($.datepicker)) {
$('input[type=date]').datepicker({"dateFormat":'yy-mm-dd'});
}
// Tabs
if ($.isFunction(... | JavaScript |
/**
* Notices
*/
var Messages = (function($, undefined) {
var M = {
_uid:"messages",
_el:null,
_to:null,
_callback:null,
_settings:{
'fadeIn':500,
'fadeOut':500,
'showTime':3000
},
getContainer:function(){
if (... | JavaScript |
/*
Redactor v7.7.2
Updated: July 19, 2012
http://redactorjs.com/
Copyright (c) 2009-2012, Imperavi Ltd.
License: http://redactorjs.com/license/
Usage: $('#content').redactor();
*/
if (typeof RELANG === 'undefined')
{
var RELANG = {};
}
var RLANG = {
html: 'HTML',
video: 'Insert Video...',
image: 'Inse... | JavaScript |
var RELANG = {};
RELANG['fi'] = {
html: 'HTML',
video: 'Video',
image: 'Kuva',
table: 'Taulukko',
link: 'Linkki',
link_insert: 'Lisää linkki...',
unlink: 'Poista linkki',
formatting: 'Tyylit',
paragraph: 'Normaaliteksti',
quote: 'Lainaus',
code: 'Koodi',
header1: 'Otsikko 1',
header2: 'Otsikko 2',
header3... | JavaScript |
var RELANG = {};
RELANG['ko'] = {
html: 'HTML',
video: '비디오',
image: '이미지',
table: '표',
link: '링크',
link_insert: '링크 삽입...',
unlink: '링크 삭제',
formatting: '스타일',
paragraph: '단락',
quote: '인용',
code: '코드',
header1: '헤더 1',
header2: '헤더 2',
header3: '헤더 3',
header4: '헤더 4',
bold: '굵게',
italic: '기울임꼴',
fo... | JavaScript |
//@chen1706@gmail.com
var RELANG = {};
RELANG['zh_cn'] = {
html: 'HTML代码',
video: '视频',
image: '图片',
table: '表格',
link: '链接',
link_insert: '插入链接',
unlink: '取消链接',
formatting: '样式',
paragraph: '段落',
quote: '引用',
code: '代码',
header1: '一级标题',
header2: '二级标题',
header3: '三级标题',
header4: '四级标题',
bold: '粗体',
... | JavaScript |
var RELANG = {};
RELANG['by'] = {
html: 'Код',
video: 'Відэа',
image: 'Малюнак',
table: 'Табліца',
link: 'Спасылка',
link_insert: 'Уставіць спасылку ...',
unlink: 'Выдаліць спасылку',
formatting: 'Стылі',
paragraph: 'Звычайны тэкст',
quote: 'Цытата',
code: 'Код',
... | JavaScript |
var RELANG = {};
RELANG['ru'] = {
html: 'Код',
video: 'Видео',
image: 'Изображение',
table: 'Таблица',
link: 'Ссылка',
link_insert: 'Вставить ссылку ...',
unlink: 'Удалить ссылку',
formatting: 'Форматирование',
paragraph: 'Обычный текст',
quote: 'Цитата',
code: 'Код',
header1: 'Заголовок 1',
header2: 'Заго... | JavaScript |
var RELANG = {};
RELANG['it'] = {
html: 'HTML',
video: 'Video',
image: 'Immagine',
table: 'Tabella',
link: 'Collegamento',
link_insert: 'Inserisci un collegamento ...',
unlink: 'Rimuovi il collegamento',
formatting: 'Stili',
paragraph: 'Paragrafo',
quote: 'Quote',
code: 'Codice',
header1: 'H1',
header2: 'H... | JavaScript |
var RELANG = {};
RELANG['es'] = {
html: 'HTML',
video: 'Video',
image: 'Imagen',
table: 'Tabla',
link: 'Enlace',
link_insert: 'Insertar enlace ...',
unlink: 'Desenlazar',
formatting: 'Estilos',
paragraph: 'Párrafo',
quote: 'Comillas',
code: 'Código',
header1: 'Cabecera 1',
header2: 'Cabecera 2',
header3: ... | JavaScript |
var RELANG = {};
RELANG['lv'] = {
html: 'HTML кods',
video: 'Video',
image: 'Attēls',
table: 'Tabula',
link: 'Saite',
link_insert: 'Iekļaut saiti ...',
unlink: 'Noņemt saiti',
formatting: 'Stili',
paragraph: 'Vienkāršs teksts',
quote: 'Citāts',
code: 'Kods',
header1: 'Virsraksts 1',
header2: 'Virsraksts 2'... | JavaScript |
var RELANG = {};
RELANG['ja'] = {
html: 'HTML',
video: 'ビデオ',
image: 'イメージ',
table: 'テーブル',
link: 'リンク',
link_insert: 'リンクの挿入 ...',
unlink: 'リンクを外す',
formatting: 'スタイル',
paragraph: '段落',
quote: '引用',
code: 'コード',
header1: 'ヘッダー 1',
header2: 'ヘッダー 2',
header3: 'ヘッダー 3',
header4: 'ヘッダー 4',
bold: '太字',
i... | JavaScript |
var RELANG = {};
RELANG['hu'] = {
html: 'HTML',
video: 'Videó',
image: 'Kép',
table: 'Tábla',
link: 'Link',
link_insert: 'Link beszúrás ...',
unlink: 'Link megszüntetés',
formatting: 'Stílusok',
paragraph: 'Bekezdés',
quote: 'Idézet',
code: 'Kód',
header1: 'Címsor 1',
header2: 'Címsor 2',
header3: 'Címsor... | JavaScript |
var RELANG = {};
RELANG['tr'] = {
html: 'HTML',
video: 'Video',
image: 'Görsel',
table: 'Tablo',
link: 'Bağlantı',
link_insert: 'Bağlantı Ekle ...',
unlink: 'Bağlantı Kaldır',
formatting: 'Stiller',
paragraph: 'Paragraf',
quote: 'Alıntı',
code: 'Kod',
header1: 'Başlık 1',
header2: 'Başlık 2',
header3: 'Ba... | JavaScript |
var RELANG = {};
RELANG['pt_br'] = {
html: 'Ver HTML',
video: 'Vídeo',
image: 'Imagem',
table: 'Tabela',
link: 'Link',
link_insert: 'Inserir link...',
unlink: 'Remover link',
formatting: 'Estilos',
paragraph: 'Parágrafo',
quote: 'Citação',
code: 'Código',
header1: 'T&iacut... | JavaScript |
var RELANG = {};
RELANG['ua'] = {
html: 'Код',
video: 'Відео',
image: 'Зображення',
table: 'Таблиця',
link: 'Посилання',
link_insert: 'Вставити посилання ...',
unlink: 'Видалити посилання',
formatting: 'Стилі',
paragraph: 'Звичайний текст',
quote: 'Цитата',
code: 'Код',
header1: 'Заголовок 1',
... | JavaScript |
var RELANG = {};
RELANG['nl'] = {
html: 'HTML',
video: 'Video',
image: 'Afbeelding',
table: 'Tabel',
link: 'Link',
link_insert: 'Link invoegen...',
unlink: 'Link ontkoppelen',
formatting: 'Stijlen',
paragraph: 'Paragraaf',
quote: 'Citaat',
code: 'Code',
header1: 'Kop 1',
header2: 'Kop 2',
header3: 'Kop 3'... | JavaScript |
var RELANG = {};
RELANG['fa'] = {
html: 'اچ تی ام ال',
video: 'درج ویدیو...',
image: 'درج تصویر',
table: 'جدول',
link: 'پیوند',
link_insert: 'درج پیوند ...',
unlink: 'از بین بردن پیوند',
formatting: 'فالب بندی',
paragraph: 'پراگراف',
quote: 'نقل قول',
code: 'کد',
header1: 'سرامد 1',
header2: 'سرامد 2',
he... | JavaScript |
var RELANG = {};
RELANG['fr'] = {
html: 'Code HTML',
video: 'Vidéo',
image: 'Image',
table: 'Tableau',
link: 'Lien URL',
link_insert: 'Insérer/Modifier un lien',
unlink: 'Nettoyer le lien',
styles: 'Styles',
paragraph: 'Paragraphe',
quote: 'Citation',
code: 'Code',
header1: 'Titre 1',
header2: 'Titre 2',
... | JavaScript |
var RELANG = {};
RELANG['sq'] = {
html: 'HTML',
video: 'Video',
image: 'Fotografi',
table: 'Tabelë',
link: 'Link',
link_insert: 'Lidh linq ...',
unlink: 'Hiq linkun',
formatting: 'Stilet',
paragraph: 'Paragraf',
quote: 'Kuotë',
code: 'Kod',
header1: 'Header 1',
header2: 'Header 2',
header3: 'Hea... | JavaScript |
var RELANG = {};
RELANG['de'] = {
html: 'HTML',
video: 'Video',
image: 'Bilder',
table: 'Tabelle',
link: 'Link',
link_insert: 'Link einfügen ...',
unlink: 'Link entfernen',
formatting: 'Formatvorlagen',
paragraph: 'Absatz',
quote: 'Zitat',
code: 'Code',
header1: 'Überschrift 1',
header2: 'Übe... | JavaScript |
var RELANG = {};
RELANG['en'] = {
html: 'HTML',
video: 'Insert Video...',
image: 'Insert Image...',
table: 'Table',
link: 'Link',
link_insert: 'Insert Link ...',
unlink: 'Unlink',
formatting: 'Formatting',
paragraph: 'Paragraph',
quote: 'Quote',
code: 'Code',
header1: 'Header 1',
header2: 'Header 2',
head... | JavaScript |
var RELANG = {};
RELANG['cs'] = {
html: 'HTML',
video: 'Video',
image: 'Obrázek',
table: 'Tabulka',
link: 'Odkaz',
link_insert: 'Vložit odkaz ...',
unlink: 'Odstranit odkaz',
formatting: 'Styly',
paragraph: 'Odstavec',
quote: 'Citace',
code: 'Kód',
header1: 'Nadpis 1',
header2: 'Nadpis 2',
header3: 'Nadpi... | JavaScript |
var RELANG = {};
RELANG['pl'] = {
html: 'Źródło',
video: 'Wideo',
image: 'Obrazek',
table: 'Tabela',
link: 'Link',
link_insert: 'Wstaw link ...',
unlink: 'Usuń link',
formatting: 'Style',
paragraph: 'Zwykły tekst',
quote: 'Cytat',
code: 'Kod źródłowy',
header1: 'Nagłówek 1',
header2: 'Nagłówek 2',
header3... | JavaScript |
var RELANG = {};
RELANG['bg'] = {
html: 'HTML',
video: 'Видео',
image: 'Изображение',
table: 'Таблица',
link: 'Връзка',
link_insert: 'Вкарай връзка ...',
unlink: 'Премахни връзка',
formatting: 'Стилове',
paragraph: 'Параграф',
quote: 'Цитат',
code: 'Код',
header1: 'Заглавие 1',
header2: 'Заглавие 2',
head... | JavaScript |
var RELANG = {};
RELANG['eo'] = {
html: 'HTML', // substantive
video: 'Enŝovu Videon...', // imperative
image: 'Enŝovu Bildon...', // imperative
table: 'Tabelo', // substantive
link: 'Ligu', // imperative
link_insert: 'Enŝovu Ligilon ...', // imperative
unlink: 'Malligu', // imperative
formatting: 'Tekstaranĝo'... | JavaScript |
var RELANG = {};
RELANG['sk'] = {
html: 'HTML',
video: 'Video',
image: 'Obrázok',
table: 'Tabulka',
link: 'Odkaz',
link_insert: 'Vložiť odkaz ...',
unlink: 'Odstrániť odkaz',
formatting: 'Štýl',
paragraph: 'Odstavec',
quote: 'Citácia',
code: 'Kód',
header1: 'Nadpis 1',
header2: 'Nadpis 2',
header3: 'Nadpi... | JavaScript |
;(function($) {
var pluginName = 'grid'
, defaults = {};
function Plugin(element, options) {
this.element = $(element);
this.options = $.extend({}, defaults, this.element.data(), options || {}) ;
this.data = {};
this._defaults = defaults;
this._name = plug... | JavaScript |
/**
*
* @author Alexander Khaylo <alex.khaylo@gmail.com>
* @copyright Copyright (c) 2012 NIX Solutions (http://www.nixsolutions.com)
*/
$(function() {
$('.grid-buttons').delegate('a#up-button', 'click', function(e) {
e.stopPropagation();
var url = this.href, res = [];
$('#gri... | 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 |
//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 |
/**
* 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 |
/**
* 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 |
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 |
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 |
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 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 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 |
$(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 |
// 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 |
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 |
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 |
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 |
/**
* @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 |
/*
* 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 |
/*
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 |
$(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 |
<!-- -*- 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 controller = new AssessmentEditorController(
Y,
cb_global.form,
cb_global.xsrf_token,
function(s) { return window.confirm(s); },
cbShowMsg,
formatServerErrorMessage
);
controller.init(); | 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 |
<!-- -*- 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 |
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 |
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 |
//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 |
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 |
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 |
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 |
/*
* 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 |
/*
* 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 |
// 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 |
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 |
/*
* 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 |
/*
* 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 |
GcbGoogleDriveTagChild.main();
| 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 |
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 |
/**
* 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 |
/**
* 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 |
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/assets_lib_butterbar/*.js',
// Files to test
'mo... | JavaScript |
describe('ButterBar', function() {
var popup, message, close, butterBar;
beforeEach(function() {
jasmine.getFixtures().fixturesPath = 'base/';
loadFixtures(
'tests/unit/javascript_tests/assets_lib_butterbar/fixture.html');
popup = $('#gcb-butterbar-top').get(0);
message = $('#gcb-butterbar-... | 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_skill_map/lesson_editor/*.js',
// Test ... | JavaScript |
// Variables required in global scope
var cbShowMsg, cbShowMsgAutoHide;
function MockSkillList(list, locationList) {
this.idCounter = 0;
this.list = list || [];
this.locationList = locationList;
}
MockSkillList.prototype = {
getSkillById: function(skillId) {
for (var i = 0; i < this.list.length; i++) {
... | 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',
'https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.2/jquery-ui.min.js',
KARMA_LIB + '/jasmine-jquery-1.5.2.js',
// Test files
'te... | JavaScript |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.