code
stringlengths
1
2.08M
language
stringclasses
1 value
/** * Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.html or http://ckeditor.com/license * * CKFinder 2.x - sample "dummy" plugin. * * To enable it, add the following line to config.js: * config.extraPlugins = 'dummy'; */ /** * See http...
JavaScript
/* Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKFinder.setPluginLang( 'dummy', 'pl', { dummy : { title : 'Testowe okienko', menuItem : 'Otwórz okienko dummy', typeText : 'Podaj jakiś tekst...
JavaScript
/* Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKFinder.setPluginLang( 'dummy', 'en', { dummy : { title : 'Dummy dialog', menuItem : 'Open dummy dialog', typeText : 'Please type some text.' } });
JavaScript
/* Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ (function() { var a = (function() { var f = { jY: 'B23B', _: {}, status: 'unloaded', basePath: (functi...
JavaScript
/* Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckfinder.com/license */ CKFinder.customConfig = function( config ) { // Define changes to default configuration here. For example: // config.skin = 'v1'; // config.language = 'fr'; }; ...
JavaScript
window.onload = function() { var copyP = document.createElement( 'p' ) ; copyP.className = 'copyright' ; copyP.innerHTML = '&copy; 2007-2011 <a href="http://cksource.com" target="_blank">CKSource</a> - Frederico Knabben . All rights reserved.<br /><br />' ; document.body.appendChild( document.createElement( '...
JavaScript
window.onload = function() { var copyP = document.createElement( 'p' ) ; copyP.className = 'copyright' ; copyP.innerHTML = '&copy; 2007-2011 <a href="http://cksource.com" target="_blank">CKSource</a> - Frederico Knabben . Kaikki oikeudet pidätetään.<br /><br />' ; document.body.appendChild( document.createEle...
JavaScript
window.onload = function() { var copyP = document.createElement( 'p' ) ; copyP.className = 'copyright' ; copyP.innerHTML = '&copy; 2007-2011 <a href="http://cksource.com" target="_blank">CKSource</a> - Frederico Knabben . Todos los derechos reservados.<br /><br />' ; document.body.appendChild( document.create...
JavaScript
window.onload = function() { var copyP = document.createElement( 'p' ) ; copyP.className = 'copyright' ; copyP.innerHTML = '&copy; 2007-2011 <a href="http://cksource.com" target="_blank">CKSource</a> - Frederico Knabben . Todos los derechos reservados.<br /><br />' ; document.body.appendChild( document.create...
JavaScript
window.onload = function() { var copyP = document.createElement( 'p' ) ; copyP.className = 'copyright' ; copyP.innerHTML = '&copy; 2007-2011 <a href="http://cksource.com" target="_blank">CKSource</a> - Frederico Knabben . Wszystkie prawa zastrzeżone.<br /><br />' ; document.body.appendChild( document.createEl...
JavaScript
/* * CKFinder * ======== * http://ckfinder.com * Copyright (C) 2007-2011, CKSource - Frederico Knabben. All rights reserved. * * The software, this file and its contents are subject to the CKFinder * License. Please read the license.txt file before using, installing, copying, * modifying or distribute ...
JavaScript
/* * CKFinder * ======== * http://ckfinder.com * Copyright (C) 2007-2011, CKSource - Frederico Knabben. All rights reserved. * * The software, this file and its contents are subject to the CKFinder * License. Please read the license.txt file before using, installing, copying, * modifying or distribute ...
JavaScript
$(document).ready(function(){ $("form").bind("submit",function(){ if($("input[name='name']").val()=='') { alert(NAME_EMPTY_TIP); $("input[name='name']").focus(); return false; } }); });
JavaScript
jQuery(function($){ $("#user_group").change(function(){ var gid = this.value; getUserGroupAuthoritys(gid); }); }); function getCitys(province,city) { var provinceID = $(province).val(); $.ajax({ url: APP + '?' + VAR_MODULE + '=Region&' + VAR_ACTION + '=getCitys', type:"POST", cache: false, ...
JavaScript
$(document).ready(function(){ $("form").bind("submit",function(){ if($("input[name='name']").val()=='') { alert(NAME_EMPTY_TIP); $("input[name='name']").focus(); return false; } }); });
JavaScript
jQuery(function($){ $(".module-item").change(function(){ var parent = $(this).parent().parent().parent().parent(); if(this.checked) { $('.select-all,.action-item',parent).attr({'disabled':true,'checked':false}); } else { $('.select-all,.action-item',parent).attr({'disabled':false}); } }...
JavaScript
jQuery(function($){ $(document).mousemove(function(e){ var obj = e.target; if ($(obj).attr('tagName').toLowerCase() == 'span' && typeof(obj.onclick) == 'function' && (obj.onclick.toString().indexOf('textEdit') != -1 || obj.onclick.toString().indexOf('numberEdit') != -1)) { obj.title = CLIC...
JavaScript
$(document).ready(function(){ $("form").bind("submit",function(){ if($("input[name='name']").val()=='') { alert(NAME_EMPTY_TIP); $("input[name='name']").focus(); return false; } }); });
JavaScript
$(document).ready(function(){ $("input[name='share_btn']").bind("click",function(){ var kw = $("input[name='search_shop']").val(); if($.trim(kw)=='') { alert(PLEASE_INPUT_KW); return; } $.ajax({ url: APP+'?'+VAR_MODULE+'='+CURR_MODULE+'&'+VAR_ACTION+'=searchShop&kw='+kw, type:"POST", ...
JavaScript
var ajaxError = false; (function($){ $.ajaxError = function(msg){ ajaxError = true; if(!msg) msg = AJAX_ERROR; $(".ajax-loading").html(msg).addClass("ajax-error").stop(true).show(); $(".ajax-loading").css({"opacity":1}).fadeOut(3000); }; $.getStringLength=function(str) { str = $.trim(st...
JavaScript
/** * weebox.js * @category javascript * @package jquery * @author Jack <xiejinci@gmail.com> * @version */ (function($) { var cachedata = {}; var arrweebox = new Array(); var weebox = function(content,options) { var self = this; this.dh = null; this.mh = null; this.dc ...
JavaScript
$(document).ready(function(){ $.getJSON('http://tj.fanwe.com/license.php?callback=?',function(data){ if(data.lisence!='') { var str = "域名已授权"; } else { var str = "域名未授权"; } var version = CURRENT_VERSION; if(parseFloat(data.version)>parseFloat(version)) { $("#version_tip").html("...
JavaScript
(function($){ $.fn.bgIframe = $.fn.bgiframe = function(s) { // This is only for IE6 if ( $.browser.msie && /msie 6.0/i.test(navigator.userAgent) ) { s = $.extend({ top : 'auto', // auto == .currentStyle.borderTopWidth left : 'auto', // auto == .currentStyle.borderLeftWidth width : 'a...
JavaScript
/* http://www.JSON.org/json2.js 2011-02-23 Public Domain. NO WARRANTY EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK. See http://www.JSON.org/js.html This code should be minified before deployment. See http://javascript.crockford.com/jsmin.html USE YOUR OWN COPY. IT IS EXTREMELY UNWISE...
JavaScript
$(document).ready(function(){ $("select[name='cate']").bind("dblclick",function(){ add_cate(); }); $("input[name='add']").bind("click",function(){ add_cate(); }); $("select[name='share_cate']").bind("dblclick",function(){ remove_cate(); }); $("input[name='remove']").bind("click",function(){ re...
JavaScript
$(document).ready(function(){ $("form").bind("submit",function(){ if($.trim($("input[name='shop_name']").val())=='') { alert(NAME_EMPTY_TIP); $("input[name='shop_name']").focus(); return false; } if($.trim($("input[name='shop_url']").val())=='') { alert(URL_EMPTY_TIP); $("input[na...
JavaScript
/* Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang('placeholder','he',{placeholder:{title:'מאפייני שומר מקום',toolbar:'צור שומר מקום',text:'תוכן שומר המקום',edit:'ערוך שומר מקום',textMissing:'שו...
JavaScript
/* Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang('placeholder','en',{placeholder:{title:'Placeholder Properties',toolbar:'Create Placeholder',text:'Placeholder Text',edit:'Edit Placeholder',te...
JavaScript
/* Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.add('docprops',{init:function(a){var b=new CKEDITOR.dialogCommand('docProps');b.modes={wysiwyg:a.config.fullPage};a.addCommand('docProps',b);CKEDITOR.d...
JavaScript
/* Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang('uicolor','he',{uicolor:{title:'בחירת צבע ממשק משתמש',preview:'תצוגה מקדימה',config:'הדבק את הטקסט הבא לתוך הקובץ config.js',predefined:'קבוצות...
JavaScript
/* Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang('uicolor','en',{uicolor:{title:'UI Color Picker',preview:'Live preview',config:'Paste this string into your config.js file',predefined:'Predefi...
JavaScript
/* Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */
JavaScript
/* Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang('devtools','en',{devTools:{title:'Element Information',dialogName:'Dialog window name',tabName:'Tab name',elementId:'Element ID',elementType:'E...
JavaScript
/* Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.editorConfig = function( config ) { config.skin = 'kama' ; config.toolbar_Default = [ ['Paste','PasteText','PasteFromWord','-','Undo','Redo'],...
JavaScript
/* Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ // Compressed version of core/ckeditor_base.js. See original for instructions. /*jsl:ignore*/ if(!window.CKEDITOR)window.CKEDITOR=(function(){var a={timestamp:'',vers...
JavaScript
/* Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ // Compressed version of core/ckeditor_base.js. See original for instructions. /*jsl:ignore*/ if(!window.CKEDITOR)window.CKEDITOR=(function(){var a={timestamp:'',vers...
JavaScript
jQuery(function($){ $(".topic_list li").hover(function(){ $(this).addClass('h'); },function(){ $(this).removeClass('h'); }); $(".topic_list .tl_c .pic").hover(function(){ var li = $(this).parent().parent(); var html = $('.show_big_img',li).html(); if(html.length > 10) { html = html.repl...
JavaScript
jQuery(function($){ $("#registerForm input[istip]").focus(function(){ var istip = parseInt(this.getAttribute('istip')); var rel = this.getAttribute('rel'); if(istip == 0) { this.setAttribute('istip',1); $(rel).css("visibility",'visible'); } }); $("#reg_email").blur(function(){ var obj...
JavaScript
var url='local';
JavaScript
var timer = null; var autoLayout_user = { columnCount: 4, divWidth: 222, marginTop: 14, marginLeft: 14, colArray: [], freeLeft: 0, rightLoad: true, defaults: { contentID: "", rightLoad: true, leftID: null, rightID: null, linkUrl: "", ...
JavaScript
jQuery(function($){ $('.t_l .pic div').live('click',function(){ var parent = $(this).parent(); var index = $('div',parent).index(this); var picb = parent.next(); parent.hide(); var picbobj = $('li',picb).eq(index); picbobj.show(); $('.lazyload',picbobj).attr('src',$('.lazyload',picbobj).attr('ori...
JavaScript
var goodsID = 0; var consigneeWebBox = null; jQuery(function($){ $(".exchangeBtn").click(function(){ if(!$.Check_Login()) return false; goodsID = this.getAttribute("goodsID"); goodsType = this.getAttribute("goodsType"); if(goodsType == 0) { var readyFun = function(weebox){ weebox.dc....
JavaScript
(function() { var a = { hostName: "localhost/share_tu/", domain: "http://localhost/share_tu", locationHost: encodeURIComponent(window.location), isIE: navigator.userAgent.indexOf("MSIE") > 0, isIE6: navigator.userAgent.indexOf("MSIE 6") > 0, isIE7: navigator.us...
JavaScript
jQuery(function($){ $("#albumTitle,#albumTags,#albumContent").focus(function() { $(this).siblings(".error_icon").hide(); $(this).siblings(".ok_icon").hide(); $(this).addClass("h"); $(this).next(".info_tip").show(); }); $("#albumTitle,#albumTags,#albumContent").blur(function() { $(this).removeCla...
JavaScript
jQuery(function($){ var max_day = 29; for(max_day; max_day > 1;max_day--) { $("#valid_time").append('<option value ="' + max_day + '">' + max_day + '天</option>'); } $(".epi_text,.epi_content").focus(function() { $(this).siblings(".epi_err").hide(); $(this).siblings(".epi_ok").hide(); $(this).ad...
JavaScript
var darenIndex = 1; var shareTimer; var autoTimer = null; FANWE.INDEX_SHARE_WIDTH = 415; var jsonUrl = SITE_PATH+"services/service.php?m=index&a=share&p="; var isHasNextPage = true; var DIVID = 0; jQuery(function($){ $('.rightbox').live('mouseover', function(){ $(this).children(".pin").children(".modify"...
JavaScript
jQuery(function($){ $("#checkcode_change").click(function(){ changeCheckCode(); }); $("#loginForm").submit(function(){ $(".err_name").hide(); $(".err_pass").hide(); $(".lg_login_loading").hide(); $(".iserror").hide(); $(".iserror2").hide(); var form = this; var name_tip = this.emai...
JavaScript
jQuery(function($){ }); /*var timer = null; var autoLayout = { columnCount: 4, divWidth: 222, marginTop: 14, marginLeft: 14, colArray: [], freeLeft: 0, rightLoad: true, defaults: { contentID: "", rightLoad: true, leftID: null,...
JavaScript
var timer = null; var autoLayout = { columnCount: 4, divWidth: 222, marginTop: 14, marginLeft: 14, colArray: [], freeLeft: 0, rightLoad: true, defaults: { contentID: "", rightLoad: true, leftID: null, rightID: null, linkUrl: "", is...
JavaScript
/* * usage: in page head &lt;script src="/consts.js"&gt;&lt;/script&gt; * consts(constName); * uri(uriTemplate, arg1, arg2 ... ,argn); */ /* * 参数表: 常量名称 * 返回: 常量值 */ var im20consts = function(constName) { var constVal = im20consts.constData[constName]; if (constVal) { return constVal; }...
JavaScript
// JavaScript Document jQuery(function($){ fnsharetools(); $(window).onresize = function() { fnsharetools(); } $(window).scroll(function(){ if($(this).scrollTop()>61){ $('#header-2').addClass('topfixed'); } else { $('#header-2').removeClass('topfixed'); } fnsharetools...
JavaScript
jQuery(function($){ $(".shop_item").hover(function(){ $('.link_btn',this).show(); },function(){ $('.link_btn',this).hide(); }); });
JavaScript
var timer = null; var autoLayout_album = { columnCount: 4, divWidth: 222, marginTop: 14, marginLeft: 14, colArray: [], freeLeft: 0, rightLoad: true, defaults: { contentID: "", rightLoad: true, leftID: null, rightID: null, linkUrl: "",...
JavaScript
(function() { var a = { hostName: "localhost/share_tu/", domain: "http://localhost/share_tu", locationHost: encodeURIComponent(window.location), isIE: navigator.userAgent.indexOf("MSIE") > 0, isIE6: navigator.userAgent.indexOf("MSIE 6") > 0, isIE7: navigator.us...
JavaScript
jQuery(function($){ $(".topic_list li").hover(function(){ $(this).addClass('h'); },function(){ $(this).removeClass('h'); }); $(".topic_list .tl_c .pic").hover(function(){ var li = $(this).parent().parent(); var html = $('.show_big_img',li).html(); if(html.length > 10) { html = html.repl...
JavaScript
jQuery(function($){ $("#registerForm input[istip]").focus(function(){ var istip = parseInt(this.getAttribute('istip')); var rel = this.getAttribute('rel'); if(istip == 0) { this.setAttribute('istip',1); $(rel).css("visibility",'visible'); } }); $("#reg_email").blur(function(){ var obj...
JavaScript
var url='local';
JavaScript
var timer = null; var autoLayout_user = { columnCount: 4, divWidth: 222, marginTop: 14, marginLeft: 14, colArray: [], freeLeft: 0, rightLoad: true, defaults: { contentID: "", rightLoad: true, leftID: null, rightID: null, linkUrl: "", ...
JavaScript
jQuery(function($){ $('.t_l .pic div').live('click',function(){ var parent = $(this).parent(); var index = $('div',parent).index(this); var picb = parent.next(); parent.hide(); var picbobj = $('li',picb).eq(index); picbobj.show(); $('.lazyload',picbobj).attr('src',$('.lazyload',picbobj).attr('ori...
JavaScript
var goodsID = 0; var consigneeWebBox = null; jQuery(function($){ $(".exchangeBtn").click(function(){ if(!$.Check_Login()) return false; goodsID = this.getAttribute("goodsID"); goodsType = this.getAttribute("goodsType"); if(goodsType == 0) { var readyFun = function(weebox){ weebox.dc....
JavaScript
(function() { var a = { hostName: "localhost/share_tu/", domain: "http://localhost/share_tu", locationHost: encodeURIComponent(window.location), isIE: navigator.userAgent.indexOf("MSIE") > 0, isIE6: navigator.userAgent.indexOf("MSIE 6") > 0, isIE7: navigator.us...
JavaScript
jQuery(function($){ $("#albumTitle,#albumTags,#albumContent").focus(function() { $(this).siblings(".error_icon").hide(); $(this).siblings(".ok_icon").hide(); $(this).addClass("h"); $(this).next(".info_tip").show(); }); $("#albumTitle,#albumTags,#albumContent").blur(function() { $(this).removeCla...
JavaScript
jQuery(function($){ var max_day = 29; for(max_day; max_day > 1;max_day--) { $("#valid_time").append('<option value ="' + max_day + '">' + max_day + '天</option>'); } $(".epi_text,.epi_content").focus(function() { $(this).siblings(".epi_err").hide(); $(this).siblings(".epi_ok").hide(); $(this).ad...
JavaScript
var darenIndex = 1; var shareTimer; var autoTimer = null; FANWE.INDEX_SHARE_WIDTH = 415; var jsonUrl = SITE_PATH+"services/service.php?m=index&a=share&p="; var isHasNextPage = true; var DIVID = 0; jQuery(function($){ $('.rightbox').live('mouseover', function(){ $(this).children(".pin").children(".modify"...
JavaScript
jQuery(function($){ $("#checkcode_change").click(function(){ changeCheckCode(); }); $("#loginForm").submit(function(){ $(".err_name").hide(); $(".err_pass").hide(); $(".lg_login_loading").hide(); $(".iserror").hide(); $(".iserror2").hide(); var form = this; var name_tip = this.emai...
JavaScript
jQuery(function($){ }); /*var timer = null; var autoLayout = { columnCount: 4, divWidth: 222, marginTop: 14, marginLeft: 14, colArray: [], freeLeft: 0, rightLoad: true, defaults: { contentID: "", rightLoad: true, leftID: null,...
JavaScript
var timer = null; var autoLayout = { columnCount: 4, divWidth: 222, marginTop: 14, marginLeft: 14, colArray: [], freeLeft: 0, rightLoad: true, defaults: { contentID: "", rightLoad: true, leftID: null, rightID: null, linkUrl: "", ...
JavaScript
/* * usage: in page head &lt;script src="/consts.js"&gt;&lt;/script&gt; * consts(constName); * uri(uriTemplate, arg1, arg2 ... ,argn); */ /* * 参数表: 常量名称 * 返回: 常量值 */ var im20consts = function(constName) { var constVal = im20consts.constData[constName]; if (constVal) { return constVal; }...
JavaScript
// JavaScript Document jQuery(function($){ fnsharetools(); $(window).onresize = function() { fnsharetools(); } $(window).scroll(function(){ if($(this).scrollTop()>61){ $('#header-2').addClass('topfixed'); } else { $('#header-2').removeClass('topfixed'); } fnsharetools...
JavaScript
jQuery(function($){ $(".shop_item").hover(function(){ $('.link_btn',this).show(); },function(){ $('.link_btn',this).hide(); }); });
JavaScript
var timer = null; var autoLayout_album = { columnCount: 4, divWidth: 222, marginTop: 14, marginLeft: 14, colArray: [], freeLeft: 0, rightLoad: true, defaults: { contentID: "", rightLoad: true, leftID: null, rightID: null, linkUrl: "",...
JavaScript
(function() { var a = { hostName: "localhost/share_tu/", domain: "http://localhost/share_tu", locationHost: encodeURIComponent(window.location), isIE: navigator.userAgent.indexOf("MSIE") > 0, isIE6: navigator.userAgent.indexOf("MSIE 6") > 0, isIE7: navigator.us...
JavaScript
// Simple Set Clipboard System // Author: Joseph Huckaby var ZeroClipboard = { version: "1.0.7", clients: {}, // registered upload clients on page, indexed by id moviePath: 'ZeroClipboard.swf', // URL to movie nextId: 1, // ID of next movie $: function(thingy) { // simple DOM lookup utility function if (t...
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
function removeJavaScriptDisabledWarning() { // Not using jQuery here for maximum speed document.getElementById('javascript-disabled').style.display = 'none'; } function addJavaScriptDisabledWarning() { document.getElementById('javascript-disabled').style.display = 'block'; } function initLayout(suiteName...
JavaScript
window.util = function () { function map(elems, func) { var ret = []; for (var i = 0, len = elems.length; i < len; i++) { ret[i] = func(elems[i]); } return ret; } function filter(elems, predicate) { var ret = []; for (var i = 0, len = elems.lengt...
JavaScript
window.model = (function () { function Suite(data) { var suite = createModelObject(data); suite.source = data.source; suite.relativeSource = data.relativeSource; suite.fullName = data.parent ? data.parent.fullName + '.' + data.name : data.name; setStats(suite, data.statistic...
JavaScript
window.fileLoading = (function () { var fileLoadingCallbacks = {}; var timestamp = new Date().getTime(); function loadKeywordsFile(filename, callback) { fileLoadingCallbacks[filename] = callback; var script = document.createElement('script'); script.type = 'text/javascript'; ...
JavaScript
window.testdata = function () { var elementsById = {}; var idCounter = 0; var _statistics = null; var LEVELS = ['TRACE', 'DEBUG', 'INFO', 'WARN', 'FAIL', 'ERROR']; var STATUSES = ['FAIL', 'PASS', 'NOT_RUN']; var KEYWORDS = ['KEYWORD', 'SETUP', 'TEARDOWN', 'FOR', 'VAR']; function addElement...
JavaScript
var LEVELS = {TRACE: 0, DEBUG: 1, INFO: 2, WARN: 3, FAIL: 4, NONE: 5}; function toggleSuite(suiteId) { toggleElement(suiteId, ['keyword', 'suite', 'test']); } function toggleTest(testId) { toggleElement(testId, ['keyword']); } function toggleKeyword(kwId) { toggleElement(kwId, ['keyword', 'message']); } ...
JavaScript
storage = function () { var prefix = 'robot-framework-'; function init(user) { prefix += user + '-'; } function get(name, defaultValue) { if (!localStorage) return defaultValue; var value = localStorage[prefix + name]; if (typeof value === 'undefined') ...
JavaScript
load('../ext-lib/jasmine-reporters/ext/env.rhino.1.2.js'); Envjs.scriptTypes['text/javascript'] = true; var specFile = arguments[0]; console.log("Loading: " + specFile); window.location = specFile
JavaScript
/** * Top level namespace for Jasmine, a lightweight JavaScript BDD/spec/testing framework. * * @namespace */ var jasmine = {}; /** * @private */ jasmine.unimplementedMethod_ = function() { throw new Error("unimplemented method"); }; /** * Use <code>jasmine.undefined</code> instead of <code>undefined</code>,...
JavaScript
jasmine.TrivialReporter = function(doc) { this.document = doc || document; this.suiteDivs = {}; this.logRunningSpecs = false; }; jasmine.TrivialReporter.prototype.createDom = function(type, attrs, childrenVarArgs) { var el = document.createElement(type); for (var i = 2; i < arguments.length; i++) { var ...
JavaScript
describe("Text decoder", function () { function multiplyString(string, times) { var result = ""; for (var i = 0; i < times; i++){ result += string; } return result; } it("should have empty string with id 0", function () { var strings = window.testdata.St...
JavaScript
window.output = {}; describe("Statistics", function () { var totals = [ {label: "Critical Tests", pass: 1, fail: 1}, {label: "All Tests", pass: 2, fail: 3} ]; var tags = [ {label: "first tag", pass: 3, fail: 0, ...
JavaScript
describe("Searching by tags", function () { it("should find tags by name", function () { expect(model.containsTag(['name'], 'name')).toBeTruthy(); expect(model.containsTag(['x', 'y', 'z'], 'y')).toBeTruthy(); expect(model.containsTag([], 'name')).not.toBeTruthy(); expect(model.conta...
JavaScript
describe("LogLevelController", function() { function checkCombination(min_level, default_level, should_show, expected_default, show_trace) { var controller = LogLevelController(min_level, default_level); expect(controller.showLogLevelSelector()).toEqual(should_show); if(should_show){ ...
JavaScript
window.setupsAndTeardownsOutput = {}; window.setupsAndTeardownsOutput["suite"] = [1,2,3,0,[],[1,0,28],[],[[4,0,1,0,[],[1,22,5],[[1,5,0,6,7,[1,23,0],[],[[23,2,7]]],[0,8,0,0,0,[1,24,2],[[0,9,0,10,0,[1,24,1],[],[]],[2,5,0,6,11,[1,25,0],[],[[25,2,11]]]],[]],[2,5,0,6,12,[1,26,0],[],[[26,2,12]]]]]],[[1,5,0,6,13,[1,21,1],[],...
JavaScript
window.passingFailingOutput = {}; window.passingFailingOutput["suite"] = [1,2,3,0,[],[0,0,25],[],[[4,0,1,0,[],[1,23,1],[[0,5,0,6,7,[1,23,1],[],[[24,2,7]]]]],[8,0,1,0,[],[0,24,1,9],[[0,10,0,11,9,[0,24,1],[],[[25,4,9]]]]]],[],[2,1,2,1]]; window.passingFailingOutput["strings"] = []; window.passingFailingOutput["strings...
JavaScript
window.testsAndKeywordsOutput = {}; window.testsAndKeywordsOutput["suite"] = [1,2,3,0,[],[1,0,30],[],[[4,0,1,0,[],[1,23,4],[[0,5,0,0,0,[1,23,1],[[0,6,0,7,0,[1,24,0],[],[]]],[]],[0,8,0,0,0,[1,24,1],[[0,6,0,7,0,[1,25,0],[],[]]],[]],[0,9,0,0,0,[1,25,1],[[0,6,0,7,0,[1,25,1],[],[]]],[]],[0,10,0,0,0,[1,26,0],[[0,6,0,7,0,[1,...
JavaScript
window.messagesOutput = {}; window.messagesOutput["suite"] = [1,2,3,0,[],[1,0,27],[],[[4,0,1,0,[],[1,23,4],[[0,5,0,6,7,[1,24,0],[],[[24,2,8]]],[0,5,0,6,9,[1,24,0],[],[[24,2,9]]],[0,5,0,6,10,[1,24,1],[],[[25,3,12]]],[0,13,0,14,15,[1,25,0],[],[[25,2,16],[25,0,17]]],[0,5,0,6,18,[1,26,0],[],[[26,0,19],[26,1,20],[26,0,21]]...
JavaScript
window.teardownFailureOutput = {}; window.teardownFailureOutput["suite"] = [1,2,1,0,[],[0,0,27,3],[[4,5,6,0,[],[0,22,4],[],[[7,0,1,0,[],[0,24,1,8],[[0,9,0,10,11,[1,24,0],[],[[24,2,11]]]]],[12,0,1,0,[],[0,25,1,13],[[0,14,0,15,16,[0,25,1],[],[[26,4,16]]]]]],[],[2,0,2,0]]],[],[[2,14,0,15,0,[0,27,0,17],[],[[27,4,17]]]],[2...
JavaScript
window.suiteOutput = {}; window.suiteOutput["suite"] = [1,2,3,4,[5,6],[1,0,138],[],[[7,8,1,9,[10,11],[1,32,106],[[0,12,0,13,14,[1,32,101],[],[[133,2,15]]],[3,16,0,0,0,[1,133,5],[[4,17,0,0,0,[1,133,2],[[0,18,0,0,19,[1,133,2],[[0,20,0,21,22,[1,134,1],[],[[135,2,23]]]],[]]],[]],[4,24,0,0,0,[1,135,3],[[0,18,0,0,19,[1,136,...
JavaScript
/* * Copyright (c) 2011 Google Inc. * * 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 agreed to in writin...
JavaScript
/* * Copyright (c) 2011 Google Inc. * * 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 agreed to ...
JavaScript
/* * Copyright (c) 2011 Google Inc. * * 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 agreed to ...
JavaScript
/* html5slider - a JS implementation of <input type=range> for Firefox 4 and up https://github.com/fryn/html5slider Copyright (c) 2010-2011 Frank Yan, <http://frankyan.com> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software")...
JavaScript
// Keep track of some UI elements var overlayControls = document.getElementById('overlayControls'); var scaleTxt = document.getElementById('scaleTxt'); var offsetTxt = document.getElementById('offsetTxt'); // Track our overlays for re-use later var overlays = []; // Scale limits---tiny hats look silly, but tiny monoc...
JavaScript
//additional DOM ready handlers dojo.ready( function () { //Menu toggling dojo.query('#_menu li h2').forEach( function (item, index, arr) { dojo.connect(item, 'onclick', null, function(event) { var ul = dojo.query('ul', event.target.parentNode).pop(); //if no UL element is available exit...
JavaScript