code stringlengths 1 2.08M | language stringclasses 1
value |
|---|---|
describe('The student skill widget', function() {
beforeEach(function() {
var that = this;
gcbCanPostEvents = true;
gcbAudit = jasmine.createSpy('gcbAudit');
now = function() { return that.currentTimeMs; };
jasmine.getFixtures().fixturesPath = 'base/';
loadFixtures('tests/unit/javascript_tes... | 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_core_tags/*.js',
// Files to test
'modul... | JavaScript |
// GoogleDriveTagParent refers to top, but karma tests run inside of an iframe.
// Bind top to window so this difference doesn't cause breakage.
// TODO(johncox): get rid of this when we write real tests using iframs.
top = window;
describe('core tags module', function() {
window.cb_global = {
schema: {
p... | 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_certificate/*.js',
// Test resources
{
... | JavaScript |
describe('certificate criteria user interface', function() {
window.cb_global = {
schema: {
properties: {
course: {
properties: {
certificate_criteria: {
_inputex : {
is_peer_assessment_table : {
1: true,
2: fals... | 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('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 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 |
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 |
{
"multiple_choice_activity": [{
"questionType": "multiple choice",
"choices": [
["A", true, "Correct."],
["B", false, "Incorrect"],
["C", false, "Incorrect"],
["D", false, "Incorrect"]
]
}],
"multiple_choice_group_activity": [{
"questionType": "multiple choice group",
... | 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 file
'tests/unit/javascript_tests/assets_lib_activity_generic/tests.js',
{
patter... | JavaScript |
describe('V 1.4 Activities and Assessments', function() {
var event_payloads, interactions;
var auditDataDict, auditSource, auditIsAsync, mockLocation;
function checkAuditValues(expectedData, expectedSource, expectedAsync) {
// This addition to the data dict mocks the corresponding action in gcbAudit
au... | 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_questionnaire/*.js',
// Test resources
... | JavaScript |
describe("questionnaire library", function () {
beforeEach(function () {
jasmine.getFixtures().fixturesPath = "base/";
loadFixtures("tests/unit/javascript_tests/modules_questionnaire/" +
"fixture.html");
this.payload = JSON.parse(readFixtures(
"tests/unit/javascript_tests/modules_question... | JavaScript |
basePath = '../../../..';
files = [
JASMINE,
JASMINE_ADAPTER,
// Test files
'tests/unit/javascript_tests/modules_oeditor/*.js',
// Files to test
'modules/oeditor/oeditor.js',
'modules/oeditor/popup.js',
'modules/oeditor/rte.js'
];
exclude = [
'**/karma.conf.js'
];
browsers = ['PhantomJS'];
single... | JavaScript |
describe('deepEquals', function() {
it('matches objects which are equal', function() {
var a = {
'a': [1, 2, 3],
'b': {'c': 'C', 'd': null}
};
var b = {
'b': {'d': null, 'c': 'C'},
'a': [1, 2, 3]
};
expect(deepEquals(a, b)).toBe(true);
});
it('distinguishes objects are ... | JavaScript |
<!-- -*- mode: javascript; -*- -->
<div id="model_visualizations_dump"></div>
<div id="answers_pie_chart"></div>
<script>
// Integration tests want to know what data page we're on, so give
// them some text with which they can tell. Since these values are
// supplied by the REST service, we can be sure we're on the ... | JavaScript |
<!-- -*- mode: javascript; -*- -->
<script
src="/static/crossfilter-1.3.7/crossfilter-1.3.7/crossfilter.min.js">
</script>
<script
src="/static/d3-3.4.3/d3.min.js">
</script>
<script
src="/static/dc.js-1.6.0/dc.js-1.6.0/dc.min.js">
</script>
<link
rel="stylesheet"
type="text/css"
href="/static/dc.js-... | 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 |
$(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 |
// 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 |
$(document).ready(function() {
$('table tr').click(function(event) {
if (event.target.type !== 'checkbox') {
$(':checkbox', this).trigger('click');
}
});
});
| JavaScript |
/*!
* Thumbnail helper for fancyBox
* version: 1.0.7 (Mon, 01 Oct 2012)
* @requires fancyBox v2.0 or later
*
* Usage:
* $(".fancybox").fancybox({
* helpers : {
* thumbs: {
* width : 50,
* height : 50
* }
* }
* });
*
*/
(fun... | JavaScript |
/*!
* Media helper for fancyBox
* version: 1.0.6 (Fri, 14 Jun 2013)
* @requires fancyBox v2.0 or later
*
* Usage:
* $(".fancybox").fancybox({
* helpers : {
* media: true
* }
* });
*
* Set custom URL parameters:
* $(".fancybox").fancybox({
* helpers : {
* ... | JavaScript |
/*!
* Buttons helper for fancyBox
* version: 1.0.5 (Mon, 15 Oct 2012)
* @requires fancyBox v2.0 or later
*
* Usage:
* $(".fancybox").fancybox({
* helpers : {
* buttons: {
* position : 'top'
* }
* }
* });
*
*/
(function ($) {
//Shortcut for ... | JavaScript |
/*! Copyright (c) 2011 Brandon Aaron (http://brandonaaron.net)
* Licensed under the MIT License (LICENSE.txt).
*
* Thanks to: http://adomas.org/javascript-mouse-wheel/ for some pointers.
* Thanks to: Mathias Bank(http://www.mathias-bank.de) for a scope bug fix.
* Thanks to: Seamus Leahy for adding deltaX and delta... | 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 |
(function($){
'use strict';
// custom masonry type gallery plugin
$.fn.customGallery = function(options) {
return this.each(function() {
var $gridContainer = $(this),
padding = ($gridContainer.hasClass('portfolio-with-padding-yes') || $gridContainer.hasClass('gallery-with-padding-yes'))? 5 : 0 ;
v... | JavaScript |
/*!
* Documenter 2.0
* http://rxa.li/documenter
*
* Copyright 2011, Xaver Birsak
* http://revaxarts.com
*
*/
$(document).ready(function() {
var timeout,
sections = new Array(),
sectionscount = 0,
win = $(window),
sidebar = $('#documenter_sidebar'),
nav = $('#documenter_nav'),
logo = $('#documenter... | 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 res... | 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 |
(function($){
'use strict';
// custom masonry type gallery plugin
$.fn.customGallery = function(options) {
return this.each(function() {
var $gridContainer = $(this),
padding = ($gridContainer.hasClass('portfolio-with-padding-yes') || $gridContainer.hasClass('gallery-with-padding-yes'))? 5 : 0 ;
v... | JavaScript |
document.write('<'+'script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js"></script'+'>');
function showUp() {
dnotice('<iframe height="40" name="uploadF" id="upload" width="500" style="border:none" src="http://gta-sa.5d6d.net/plugin.php?upload.html"></iframe>', null, '500', '150');
$('floatwi... | JavaScript |
// Copyright 2011 Google Inc. All Rights Reserved.
/**
* @fileoverview This script posts to the data servlet with a request for data
* to display until either the servlet responds with data or responds that it
* failed. The servlet responds to each post with a message, which the script
* displays to the user and d... | JavaScript |
var dragy=0,dragx=0;
var dragapproved=false;
function moveF(e)
{
if (e.button==0)
{
window.scrollBy(dragx-e.pageX,dragy-e.pageY);
dragy=e.pageY;
dragx=e.pageX;
}
}
function downF(e)
{
dragy=e.pageY;
dragx=e.pageX;
}
if (window.navigator.userAgent.indexOf("Firefox")>=1)
{
... | JavaScript |
function checkNick() {
var userName = document.redForm.userName.value;
if (userName == null || trim(userName) == "") {
return false;
}
if(userName.length<5 || userName.length>20){
alert("会员名的长度不正确,正确的长度为5-20位字符");
document.redForm.userName.focus();
return false;
}
document.checkNickForm.userNa... | JavaScript |
function send_request(callback, urladdress, isReturnData){
var xmlhttp = getXMLHttpRequest();
xmlhttp.onreadystatechange = function(){
if (xmlhttp.readyState == 4) {//readystate 为4即数据传输结束
try{
if(xmlhttp.status == 200){
if(isReturnData && isReturnData==t... | JavaScript |
function colorEvent(eventObject,productid){
var main_image = document.getElementById('main_image');
if(eventObject && main_image){
var productimg = document.getElementById('productImage_'+ eventObject.value);
if(productimg && productimg.value.trim()!=""){
main_image.style.background = "url(http:/... | JavaScript |
<!--
document.writeln('<div id=meizzDateLayer style="position: absolute; width: 142; height: 166; z-index: 9998; display: none">');
document.writeln('<span id=tmpSelectYearLayer style="z-index: 9999;position: absolute;top: 2; left: 18;display: none"></span>');
document.writeln('<span id=tmpSelectMonthLayer style="z... | JavaScript |
ycn=window.ycnui||{};
ycn.Common=new function(){this.lTrim=function(i){return i.replace(/^\s*/,"");};this.rTrim=function(i){return i.replace(/\s*$/,"");};this.trim=function(i){return this.rTrim(this.lTrim(i));};this.getEl=function(i){if(!document.getElementById)return false;if(typeof i==="string"){return document.getE... | JavaScript |
var scale=0;
var original=0;
var change=0;
var iratio=0;
var objImg=null;
window.onload=function()
{
objImg= ifm_show_prd.document.getElementById('objImg');
objImg.src=document.getElementById('hid_largepictureurl').value;
}
function dochange(imagesrc){
window.location="#pictrue_show";
objImg.... | JavaScript |
function getAD(adcode){
var TurnAD = document.getElementById('TurnAD');
if(TurnAD && adcode!=""){
TurnAD.innerHTML= "";
send_request(function(value){TurnAD.innerHTML=value}, "/ad/load.go?adcode="+ adcode, true);
}
} | JavaScript |
// Calendar: a Javascript class for Mootools that adds accessible and unobtrusive date pickers to your form elements <http://electricprism.com/aeron/calendar>
// Calendar RC4, Copyright (c) 2007 Aeron Glemann <http://electricprism.com/aeron>, MIT Style License.
var Calendar = new Class({
options: {
blocked: [], /... | JavaScript |
function winOpen (strURL,strName,width,height)
{
theWindow = window.open (strURL,strName,"width="+width+" height="+height+" scrollbars=yes left="+(1024-width)/2+" top="+(768-height)/2);
if (theWindow.opener == null) theWindow.opener = window;
if (window.focus) theWindow.focus();
}
//验证邮件
function ve... | JavaScript |
/*
Petunjuk pengisian:
1. Kode mobil seperti ---> var pajerodakar4x4 <--- jangan pernah diganti! Jika diganti, maka harga yang dicantumkan tidak akan muncul pada website.
2. Yang perlu anda ubah hanya harga mobil tersebut, contoh: "Rp. 525.000.000" diubah menjadi "Rp. 515.000.000"
3. Anda dapat mengubah kata "Indent" ... | JavaScript |
/*
* FCKeditor - The text editor for internet
* Copyright (C) 2003-2006 Frederico Caldeira Knabben
*
* Licensed under the terms of the GNU Lesser General Public License:
* http://www.opensource.org/licenses/lgpl-license.php
*
* For further information visit:
* http://www.fckeditor.net/
*
* "S... | JavaScript |
/*
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
* Copyright (C) 2003-2007 Frederico Caldeira Knabben
*
* == BEGIN LICENSE ==
*
* Licensed under the terms of any of the following licenses at your
* choice:
*
* - GNU General Public License Version 2 or later (the "GPL")
* ... | JavaScript |
/*
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
* Copyright (C) 2003-2007 Frederico Caldeira Knabben
*
* == BEGIN LICENSE ==
*
* Licensed under the terms of any of the following licenses at your
* choice:
*
* - GNU General Public License Version 2 or later (the "GPL")
* ... | JavaScript |
/*
* FCKeditor - The text editor for internet
* Copyright (C) 2003-2006 Frederico Caldeira Knabben
*
* Licensed under the terms of the GNU Lesser General Public License:
* http://www.opensource.org/licenses/lgpl-license.php
*
* For further information visit:
* http://www.fckeditor.net/
*
* "... | JavaScript |
/*
* FCKeditor - The text editor for internet
* Copyright (C) 2003-2006 Frederico Caldeira Knabben
*
* Licensed under the terms of the GNU Lesser General Public License:
* http://www.opensource.org/licenses/lgpl-license.php
*
* For further information visit:
* http://www.fckeditor.net/
*
* "... | JavaScript |
/*
* FCKeditor - The text editor for internet
* Copyright (C) 2003-2006 Frederico Caldeira Knabben
*
* Licensed under the terms of the GNU Lesser General Public License:
* http://www.opensource.org/licenses/lgpl-license.php
*
* For further information visit:
* http://www.fckeditor.net/
*
* "... | JavaScript |
/*
* FCKeditor - The text editor for internet
* Copyright (C) 2003-2006 Frederico Caldeira Knabben
*
* Licensed under the terms of the GNU Lesser General Public License:
* http://www.opensource.org/licenses/lgpl-license.php
*
* For further information visit:
* http://www.fckeditor.net/
*
* "... | JavaScript |
////////////////////////////////////////////////////
// spellChecker.js
//
// spellChecker object
//
// This file is sourced on web pages that have a textarea object to evaluate
// for spelling. It includes the implementation for the spellCheckObject.
//
////////////////////////////////////////////////////
... | JavaScript |
////////////////////////////////////////////////////
// wordWindow object
////////////////////////////////////////////////////
function wordWindow() {
// private properties
this._forms = [];
// private methods
this._getWordObject = _getWordObject;
//this._getSpellerObject = _getSpellerObject;
this._wo... | JavaScript |
////////////////////////////////////////////////////
// controlWindow object
////////////////////////////////////////////////////
function controlWindow( controlForm ) {
// private properties
this._form = controlForm;
// public properties
this.windowType = "controlWindow";
// this.noSuggestionSelection =... | JavaScript |
/*
* FCKeditor - The text editor for internet
* Copyright (C) 2003-2006 Frederico Caldeira Knabben
*
* Licensed under the terms of the GNU Lesser General Public License:
* http://www.opensource.org/licenses/lgpl-license.php
*
* For further information visit:
* http://www.fckeditor.net/
*
* "... | JavaScript |
/*
* FCKeditor - The text editor for internet
* Copyright (C) 2003-2006 Frederico Caldeira Knabben
*
* Licensed under the terms of the GNU Lesser General Public License:
* http://www.opensource.org/licenses/lgpl-license.php
*
* For further information visit:
* http://www.fckeditor.net/
*
* "... | JavaScript |
/*
* FCKeditor - The text editor for internet
* Copyright (C) 2003-2006 Frederico Caldeira Knabben
*
* Licensed under the terms of the GNU Lesser General Public License:
* http://www.opensource.org/licenses/lgpl-license.php
*
* For further information visit:
* http://www.fckeditor.net/
*
* "... | JavaScript |
/*
* FCKeditor - The text editor for internet
* Copyright (C) 2003-2006 Frederico Caldeira Knabben
*
* Licensed under the terms of the GNU Lesser General Public License:
* http://www.opensource.org/licenses/lgpl-license.php
*
* For further information visit:
* http://www.fckeditor.net/
*
* "... | JavaScript |
/*
* FCKeditor - The text editor for internet
* Copyright (C) 2003-2006 Frederico Caldeira Knabben
*
* Licensed under the terms of the GNU Lesser General Public License:
* http://www.opensource.org/licenses/lgpl-license.php
*
* For further information visit:
* http://www.fckeditor.net/
*
* "... | JavaScript |
/*
* FCKeditor - The text editor for internet
* Copyright (C) 2003-2006 Frederico Caldeira Knabben
*
* Licensed under the terms of the GNU Lesser General Public License:
* http://www.opensource.org/licenses/lgpl-license.php
*
* For further information visit:
* http://www.fckeditor.net/
*
* "... | JavaScript |
/*
* FCKeditor - The text editor for internet
* Copyright (C) 2003-2006 Frederico Caldeira Knabben
*
* Licensed under the terms of the GNU Lesser General Public License:
* http://www.opensource.org/licenses/lgpl-license.php
*
* For further information visit:
* http://www.fckeditor.net/
*
* "... | JavaScript |
/*
* FCKeditor - The text editor for internet
* Copyright (C) 2003-2006 Frederico Caldeira Knabben
*
* Licensed under the terms of the GNU Lesser General Public License:
* http://www.opensource.org/licenses/lgpl-license.php
*
* For further information visit:
* http://www.fckeditor.net/
*
* "... | JavaScript |
/*
* FCKeditor - The text editor for internet
* Copyright (C) 2003-2006 Frederico Caldeira Knabben
*
* Licensed under the terms of the GNU Lesser General Public License:
* http://www.opensource.org/licenses/lgpl-license.php
*
* For further information visit:
* http://www.fckeditor.net/
*
* "... | JavaScript |
/*
* FCKeditor - The text editor for internet
* Copyright (C) 2003-2006 Frederico Caldeira Knabben
*
* Licensed under the terms of the GNU Lesser General Public License:
* http://www.opensource.org/licenses/lgpl-license.php
*
* For further information visit:
* http://www.fckeditor.net/
*
* "S... | JavaScript |
/// <reference name="MicrosoftAjax.js"/>
function ProductCategoriesForm(str)
{
alert("fdf");
}
| JavaScript |
//添加品牌二级分类
function Stair(strValue)
{
if(strValue!="")
{
MyShop.Web.ShopAdmin.Product.Pro_Brand_Add.SecondaryCategories(strValue,test_call_backSecondary);
document.getElementById("CategoriesValue").innerHTML="二级分类:";
document.getElementById("rpitchon").checked=false;
}
}
//修改品牌分... | JavaScript |
function Pro_CategoriesDel(id)
{
MyShop.Web.ShopAdmin.TurnSon.Turnsonlist.Del(id,test_call_back)
}
function test_call_back(res)
{
if(res.value=="")
{
window.location.reload()
// DeleteRow();
}
else
{
alert(res.value);
}
res=null;
}
//删除品牌分类
function Bra... | JavaScript |
function Mdelete(BID)
{
if(confirm("删除后将不可再恢复,您确认要删除吗?"))
{
MyShop.Web.ShopAdmin.Member.MemberRank_List.MemberDel(BID);
DeleteRow();
}
}
| JavaScript |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.