code stringlengths 1 2.08M | language stringclasses 1
value |
|---|---|
jQuery(document).ready(function ($) {
var $datepickerRange = $('[data-datepicker-range]'),
$datepicker = $('[data-datepicker]');
if ($datepickerRange.length > 0) {
$datepickerRange.each(function () {
var datepickers = $datepickerRange.data('datepicker-range');
i... | JavaScript |
/**
* Simple AJAX form handler
*
* @param [customFormData]
*/
jQuery.fn.formSubmit = function (customFormData) {
/**
* Displays a loading layer
* @private
*/
function _showLoadingLayer($form) {
var $loadingLayer = $('#loading-layer');
if ($loadingLayer.length ===... | JavaScript |
jQuery(document).ready(function ($) {
var $errorBox = $('#error-box');
// At first, remove all previous validation error states
$('form .form-group.has-error')
.removeClass('has-error')
.find('.validation-failed').remove();
// Next, highlight all input fields where the validati... | JavaScript |
$(document).ready(function () {
var $resourcesTable = $('#resources-table');
$resourcesTable.find('tbody tr:not(.sub-table-header)').hide();
$resourcesTable.find('.sub-table-header').click(function () {
$(this).nextUntil('tr.sub-table-header').toggle();
var visibleLength = $resource... | JavaScript |
$(document).ready(function () {
$('input[name="action"]').bind('click',function () {
if ($(this).val() == 1) {
$('#test-newsletter').show();
} else {
$('#test-newsletter').hide();
}
}).filter(':checked').trigger('click');
}); | JavaScript |
jQuery(document).ready(function ($) {
$('input[name="readmore"]').on('click',function () {
var $elem = $('#readmore-container');
if ($(this).val() == 1) {
$elem.show();
} else {
$elem.hide();
}
}).filter(':checked').click();
});
| JavaScript |
/**
* @license Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or http://ckeditor.com/license
*/
/**
* This file was added automatically by CKEditor builder.
* You may re-use it at any time to build CKEditor again.
*
* If you would like to bu... | JavaScript |
/**
* @license Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.editorConfig = function( config ) {
// Define changes to default configuration here. For example:
// config.language = 'fr';
// config.uiColor = '#... | JavaScript |
/*
Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
| JavaScript |
/**
* Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or http://ckeditor.com/license
*/
// This file contains style definitions that can be used by CKEditor plugins.
//
// The most common use for it is the "stylescombo" plugin, which shows a combo
... | JavaScript |
/** This file is part of KCFinder project
*
* @desc File related functionality
* @package KCFinder
* @version 3.12
* @author Pavel Tzonkov <sunhater@sunhater.com>
* @copyright 2010-2014 KCFinder Project
* @license http://opensource.org/licenses/GPL-3.0 GPLv3
* @license http://opensource.... | JavaScript |
/** This file is part of KCFinder project
*
* @desc Context menus
* @package KCFinder
* @version 3.12
* @author Pavel Tzonkov <sunhater@sunhater.com>
* @copyright 2010-2014 KCFinder Project
* @license http://opensource.org/licenses/GPL-3.0 GPLv3
* @license http://opensource.org/licenses/... | JavaScript |
/** This file is part of KCFinder project
*
* @desc Object initializations
* @package KCFinder
* @version 3.12
* @author Pavel Tzonkov <sunhater@sunhater.com>
* @copyright 2010-2014 KCFinder Project
* @license http://opensource.org/licenses/GPL-3.0 GPLv3
* @license http://opensource.org/... | JavaScript |
/** This file is part of KCFinder project
*
* @desc My jQuery UI & Uniform fixes
* @package KCFinder
* @version 3.12
* @author Pavel Tzonkov <sunhater@sunhater.com>
* @copyright 2010-2014 KCFinder Project
* @license http://opensource.org/licenses/GPL-3.0 GPLv3
* @license http://opensourc... | JavaScript |
/** This file is part of KCFinder project
*
* @desc Upload files using drag and drop
* @package KCFinder
* @version 3.12
* @author Forum user (updated by Pavel Tzonkov)
* @copyright 2010-2014 KCFinder Project
* @license http://opensource.org/licenses/GPL-3.0 GPLv3
* @license http://opens... | JavaScript |
// @author Rich Adams <rich@richadams.me>
// Implements a tap and hold functionality. If you click/tap and release, it will trigger a normal
// click event. But if you click/tap and hold for 1s (default), it will trigger a taphold event instead.
;(function($)
{
// Default options
var defaults = {
dura... | JavaScript |
/** This file is part of KCFinder project
*
* @desc Helper functions integrated in jQuery
* @package KCFinder
* @version 3.12
* @author Pavel Tzonkov <sunhater@sunhater.com>
* @copyright 2010-2014 KCFinder Project
* @license http://opensource.org/licenses/GPL-3.0 GPLv3
* @license http://... | JavaScript |
/** This file is part of KCFinder project
*
* @desc Helper MD5 checksum function
* @package KCFinder
* @version 3.12
* @author Pavel Tzonkov <sunhater@sunhater.com>
* @copyright 2010-2014 KCFinder Project
* @license http://opensource.org/licenses/GPL-3.0 GPLv3
* @license http://opensourc... | JavaScript |
/** This file is part of KCFinder project
*
* @desc Miscellaneous functionality
* @package KCFinder
* @version 3.12
* @author Pavel Tzonkov <sunhater@sunhater.com>
* @copyright 2010-2014 KCFinder Project
* @license http://opensource.org/licenses/GPL-3.0 GPLv3
* @license http://opensource... | JavaScript |
/** This file is part of KCFinder project
*
* @desc Base JavaScript object properties
* @package KCFinder
* @version 3.12
* @author Pavel Tzonkov <sunhater@sunhater.com>
* @copyright 2010-2014 KCFinder Project
* @license http://opensource.org/licenses/GPL-3.0 GPLv3
* @license http://open... | JavaScript |
/** This file is part of KCFinder project
*
* @desc Right Click jQuery Plugin
* @package KCFinder
* @version 3.12
* @author Pavel Tzonkov <sunhater@sunhater.com>
* @copyright 2010-2014 KCFinder Project
* @license http://opensource.org/licenses/GPL-3.0 GPLv3
* @license http://opensource.o... | JavaScript |
/** This file is part of KCFinder project
*
* @desc Folder related functionality
* @package KCFinder
* @version 3.12
* @author Pavel Tzonkov <sunhater@sunhater.com>
* @copyright 2010-2014 KCFinder Project
* @license http://opensource.org/licenses/GPL-3.0 GPLv3
* @license http://opensourc... | JavaScript |
/*
Uniform v2.1.2
Copyright © 2009 Josh Pyles / Pixelmatrix Design LLC
http://pixelmatrixdesign.com
Requires jQuery 1.3 or newer
Much thanks to Thomas Reynolds and Buck Wilson for their help and advice on
this.
Disabling text selection is made possible by Mathias Bynens
<http://mathiasbynens.be/> and his noSelect p... | JavaScript |
/** This file is part of KCFinder project
*
* @desc Settings panel functionality
* @package KCFinder
* @version 3.12
* @author Pavel Tzonkov <sunhater@sunhater.com>
* @copyright 2010-2014 KCFinder Project
* @license http://opensource.org/licenses/GPL-3.0 GPLv3
* @license http://opensourc... | JavaScript |
/** This file is part of KCFinder project
*
* @desc User Agent jQuery Plugin
* @package KCFinder
* @version 3.10
* @author Pavel Tzonkov <sunhater@sunhater.com>
* @copyright 2010-2014 KCFinder Project
* @license http://opensource.org/licenses/GPL-3.0 GPLv3
* @license http://opensource.or... | JavaScript |
/** This file is part of KCFinder project
*
* @desc User Agent jQuery Plugin
* @package KCFinder
* @version 3.12
* @author Pavel Tzonkov <sunhater@sunhater.com>
* @copyright 2010-2014 KCFinder Project
* @license http://opensource.org/licenses/GPL-3.0 GPLv3
* @license http://opensource.or... | JavaScript |
/** This file is part of KCFinder project
*
* @desc Image viewer
* @package KCFinder
* @version 3.12
* @author Pavel Tzonkov <sunhater@sunhater.com>
* @copyright 2010-2014 KCFinder Project
* @license http://opensource.org/licenses/GPL-3.0 GPLv3
* @license http://opensource.org/licenses/L... | JavaScript |
/** This file is part of KCFinder project
*
* @desc Dialog boxes functionality
* @package KCFinder
* @version 3.12
* @author Pavel Tzonkov <sunhater@sunhater.com>
* @copyright 2010-2014 KCFinder Project
* @license http://opensource.org/licenses/GPL-3.0 GPLv3
* @license http://opensource.... | JavaScript |
/** This file is part of KCFinder project
*
* @desc Toolbar functionality
* @package KCFinder
* @version 3.12
* @author Pavel Tzonkov <sunhater@sunhater.com>
* @copyright 2010-2014 KCFinder Project
* @license http://opensource.org/licenses/GPL-3.0 GPLv3
* @license http://opensource.org/l... | JavaScript |
/** This file is part of KCFinder project
*
* @desc Clipboard functionality
* @package KCFinder
* @version 3.12
* @author Pavel Tzonkov <sunhater@sunhater.com>
* @copyright 2010-2014 KCFinder Project
* @license http://opensource.org/licenses/GPL-3.0 GPLv3
* @license http://opensource.org... | JavaScript |
new Image().src = 'themes/default/img/loading.gif'; // preload animated gif
| JavaScript |
new Image().src = 'themes/dark/img/loading.gif'; // preload animated gif
| 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 writing, softwa... | JavaScript |
(function(window) {
var ORIGIN_ = location.protocol + '//' + location.host;
function SlideController() {
this.popup = null;
this.isPopup = window.opener;
if (this.setupDone()) {
window.addEventListener('message', this.onMessage_.bind(this), false);
// Close popups if we reload the main window.
win... | JavaScript |
/*
* Hammer.JS
* version 0.4
* author: Eight Media
* https://github.com/EightMedia/hammer.js
*/
function Hammer(element, options, undefined)
{
var self = this;
var defaults = {
// prevent the default event or not... might be buggy when false
prevent_default : false,
css_hacks ... | JavaScript |
/**
* @authors TODO
* @fileoverview TODO
*/
document.cancelFullScreen = document.webkitCancelFullScreen ||
document.mozCancelFullScreen;
/**
* @constructor
*/
function SlideDeck(el) {
this.curSlide_ = 0;
this.prevSlide_ = 0;
this.config_ = null;
this.container = el || document.... | JavaScript |
require(['order!../slide_config', 'order!modernizr.custom.45394',
'order!prettify/prettify', 'order!hammer', 'order!slide-controller',
'order!slide-deck'], function(someModule) {
});
| JavaScript |
var SLIDE_CONFIG = {
// Slide settings
settings: {
title: 'Building Web Applications that use Google APIs and the JavaScript Client for Google APIs',
subtitle: '',
useBuilds: true, // Default: true. False will turn off slide animation builds.
usePrettify: true, // Default: true
enableSlideAreas:... | JavaScript |
/*
* Copyright 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 |
/*
* jsTree 1.0-rc3
* http://jstree.com/
*
* Copyright (c) 2010 Ivan Bozhanov (vakata.com)
*
* Licensed same as jquery - under the terms of either the MIT License or the GPL Version 2 License
* http://www.opensource.org/licenses/mit-license.php
* http://www.gnu.org/licenses/gpl.html
*
* $Date: 2... | JavaScript |
/*
* Copyright 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 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 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 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 applicable law o... | 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 applicable law o... | 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 applicable law o... | JavaScript |
function get_theme(path)
{
return (
[
['<IMG SRC=' + path +'/folder.gif> ', '<IMG SRC=' + path +'/folderopen.gif> '],
['', ''],
['', ''],
'<IMG SRC=' + path +'/page.gif> ',
['', ''],
[' ', ' '],
]
);
}
| JavaScript |
function get_theme(path)
{
return (
[
['<IMG ALIGN=TOP SRC=' + path + '/folder.gif>', '<IMG ALIGN=TOP SRC=' + path + '/folderopen.gif>'],
['<IMG ALIGN=TOP SRC=' + path + '/plus.gif>', '<IMG ALIGN=TOP SRC=' + path + '/minus.gif>'],
['<IMG ALIGN=TOP SRC=' + path + '/plusbottom.gif>', '<IMG ALIGN=TOP SRC=' +... | JavaScript |
/*
JSCookTree v1.01. (c) Copyright 2002 by Heng Yuan
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
to deal in the Software without restriction, including without limitation
the rights to use, copy, modify, ... | JavaScript |
function get_theme(path)
{
return (
[
['<IMG ALIGN=TOP SRC="' + path +'/folder.gif">', '<IMG ALIGN=TOP SRC="' + path +'/folderopen.gif">'],
['<IMG ALIGN=TOP SRC="' + path +'/plus.gif">', '<IMG ALIGN=TOP SRC="' + path +'/minus.gif">'],
['<IMG ALIGN=TOP SRC="' + path +'/plusbottom.gif">', '<IMG ALIGN=TOP ... | JavaScript |
function get_theme(path)
{
return (
[
['<IMG SRC=' + path + '/folder.gif> ', '<IMG SRC=' + path + '/folderopen.gif> '],
['', ''],
['', ''],
'<IMG SRC=' + path + '/page.gif> ',
['', ''],
[' ', ' '],
]
);
}
| JavaScript |
function get_theme(path)
{
return (
[
['<IMG ALIGN=TOP SRC=' + path +'/folder.gif>', '<IMG ALIGN=TOP SRC=' + path +'/folderopen.gif>'],
['<IMG ALIGN=TOP SRC=' + path +'/plus.gif>', '<IMG ALIGN=TOP SRC=' + path +'/minus.gif>'],
['<IMG ALIGN=TOP SRC=' + path +'/plusbottom.gif>', '<IMG ALIGN=TOP SRC='... | JavaScript |
var theme =
[
['<IMG SRC=theme/folder.gif> ', '<IMG SRC=theme/folderopen.gif> '],
['', ''],
['', ''],
'<IMG SRC=theme/page.gif> ',
['', ''],
[' ', ' '],
];
| JavaScript |
/*
JSCookTree v1.01. (c) Copyright 2002 by Heng Yuan
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
to deal in the Software without restriction, including without limitation
the rights to use, copy, modify, ... | JavaScript |
function skip_question()
{
$.post("?module=testing&action=skip_question", function(data) {
if (data == "1")
location.replace(location.href);
});
}
| JavaScript |
function MarkAllRows(container_id)
{
var rows = document.getElementById(container_id).getElementsByTagName('tr');
var unique_id;
var checkbox;
var checked = document.getElementById('all_items').checked;
for ( var i = 0; i < rows.length; i++ )
{
checkbox = rows[i].getElementsByT... | JavaScript |
function change_group()
{
group = $('#list_group').val();
$.post("?module=login&action=change_group&group_id=" + group, function(data) {
$('#list_user_login').html(data);
});
}
| JavaScript |
/**
* http://www.openjs.com/scripts/events/keyboard_shortcuts/
* Version : 2.01.A
* By Binny V A
* License : BSD
*/
shortcut = {
'all_shortcuts':{},//All the shortcuts are stored in this array
'add': function(shortcut_combination,callback,opt) {
//Provide a set of default options
... | JavaScript |
function back_question()
{
$.post("?module=testing&action=back_question", function(data) {
if (data == "1")
location.replace(location.href);
});
}
| JavaScript |
function change_module()
{
module = $('#module').val();
$.post("?module=access&action=change_module&module_id=" + module, function(data) {
$('#action').html(data);
});
}
| JavaScript |
function get_test_description()
{
test = $('#test_id').val();
$.post("?module=testing&action=get_test_description&test_id=" + test, function(data) {
$('#test_id_description_item').html(data);
});
}
| JavaScript |
function change_course()
{
course = $('#course').val();
$.post("?module=view_books&action=change_course&course_id=" + course, function(data) {
$('#book_description_item').html('');
$('#book').html(data);
});
}
| JavaScript |
/*
JSCookTree v1.01. (c) Copyright 2002 by Heng Yuan
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
to deal in the Software without restriction, including without limitation
the rights to use, copy, modify, ... | JavaScript |
function get_book_description()
{
book = $('#book').val();
$.post("?module=view_books&action=get_book_description&book_id=" + book, function(data) {
$('#book_description_item').html(data);
});
}
| JavaScript |
/**
* jQuery.timers - Timer abstractions for jQuery
* Written by Blair Mitchelmore (blair DOT mitchelmore AT gmail DOT com)
* Licensed under the WTFPL (http://sam.zoy.org/wtfpl/).
* Date: 2009/10/16
*
* @author Blair Mitchelmore
* @version 1.2
*
**/
jQuery.fn.extend({
everyTime: function(interval... | JavaScript |
function change_section()
{
section = $('#section_id').val();
$.post("?module=testing&action=change_section§ion_id=" + section, function(data) {
$('#test_id_description_item').html('');
$('#test_id').html(data);
});
}
| JavaScript |
function get_theme(path)
{
return (
[
['<IMG SRC=' + path +'/folder.gif> ', '<IMG SRC=' + path +'/folderopen.gif> '],
['', ''],
['', ''],
'<IMG SRC=' + path +'/page.gif> ',
['', ''],
[' ', ' '],
]
);
}
| JavaScript |
function get_theme(path)
{
return (
[
['<IMG ALIGN=TOP SRC=' + path + '/folder.gif>', '<IMG ALIGN=TOP SRC=' + path + '/folderopen.gif>'],
['<IMG ALIGN=TOP SRC=' + path + '/plus.gif>', '<IMG ALIGN=TOP SRC=' + path + '/minus.gif>'],
['<IMG ALIGN=TOP SRC=' + path + '/plusbottom.gif>', '<IMG ALIGN=TOP SRC=' +... | JavaScript |
/*
JSCookTree v1.01. (c) Copyright 2002 by Heng Yuan
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
to deal in the Software without restriction, including without limitation
the rights to use, copy, modify, ... | JavaScript |
function get_theme(path)
{
return (
[
['<IMG ALIGN=TOP SRC="' + path +'/folder.gif">', '<IMG ALIGN=TOP SRC="' + path +'/folderopen.gif">'],
['<IMG ALIGN=TOP SRC="' + path +'/plus.gif">', '<IMG ALIGN=TOP SRC="' + path +'/minus.gif">'],
['<IMG ALIGN=TOP SRC="' + path +'/plusbottom.gif">', '<IMG ALIGN=TOP ... | JavaScript |
function get_theme(path)
{
return (
[
['<IMG SRC=' + path + '/folder.gif> ', '<IMG SRC=' + path + '/folderopen.gif> '],
['', ''],
['', ''],
'<IMG SRC=' + path + '/page.gif> ',
['', ''],
[' ', ' '],
]
);
}
| JavaScript |
function get_theme(path)
{
return (
[
['<IMG ALIGN=TOP SRC=' + path +'/folder.gif>', '<IMG ALIGN=TOP SRC=' + path +'/folderopen.gif>'],
['<IMG ALIGN=TOP SRC=' + path +'/plus.gif>', '<IMG ALIGN=TOP SRC=' + path +'/minus.gif>'],
['<IMG ALIGN=TOP SRC=' + path +'/plusbottom.gif>', '<IMG ALIGN=TOP SRC='... | JavaScript |
var theme =
[
['<IMG SRC=theme/folder.gif> ', '<IMG SRC=theme/folderopen.gif> '],
['', ''],
['', ''],
'<IMG SRC=theme/page.gif> ',
['', ''],
[' ', ' '],
];
| JavaScript |
/*
JSCookTree v1.01. (c) Copyright 2002 by Heng Yuan
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
to deal in the Software without restriction, including without limitation
the rights to use, copy, modify, ... | JavaScript |
function skip_question()
{
$.post("?module=testing&action=skip_question", function(data) {
if (data == "1")
location.replace(location.href);
});
}
| JavaScript |
function MarkAllRows(container_id)
{
var rows = document.getElementById(container_id).getElementsByTagName('tr');
var unique_id;
var checkbox;
var checked = document.getElementById('all_items').checked;
for ( var i = 0; i < rows.length; i++ )
{
checkbox = rows[i].getElementsByT... | JavaScript |
function change_group()
{
group = $('#list_group').val();
$.post("?module=login&action=change_group&group_id=" + group, function(data) {
$('#list_user_login').html(data);
});
}
| JavaScript |
/**
* http://www.openjs.com/scripts/events/keyboard_shortcuts/
* Version : 2.01.A
* By Binny V A
* License : BSD
*/
shortcut = {
'all_shortcuts':{},//All the shortcuts are stored in this array
'add': function(shortcut_combination,callback,opt) {
//Provide a set of default options
... | JavaScript |
function back_question()
{
$.post("?module=testing&action=back_question", function(data) {
if (data == "1")
location.replace(location.href);
});
}
| JavaScript |
function change_module()
{
module = $('#module').val();
$.post("?module=access&action=change_module&module_id=" + module, function(data) {
$('#action').html(data);
});
}
| JavaScript |
function get_test_description()
{
test = $('#test_id').val();
$.post("?module=testing&action=get_test_description&test_id=" + test, function(data) {
$('#test_id_description_item').html(data);
});
}
| JavaScript |
function change_course()
{
course = $('#course').val();
$.post("?module=view_books&action=change_course&course_id=" + course, function(data) {
$('#book_description_item').html('');
$('#book').html(data);
});
}
| JavaScript |
/*
JSCookTree v1.01. (c) Copyright 2002 by Heng Yuan
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
to deal in the Software without restriction, including without limitation
the rights to use, copy, modify, ... | JavaScript |
function get_book_description()
{
book = $('#book').val();
$.post("?module=view_books&action=get_book_description&book_id=" + book, function(data) {
$('#book_description_item').html(data);
});
}
| JavaScript |
/**
* jQuery.timers - Timer abstractions for jQuery
* Written by Blair Mitchelmore (blair DOT mitchelmore AT gmail DOT com)
* Licensed under the WTFPL (http://sam.zoy.org/wtfpl/).
* Date: 2009/10/16
*
* @author Blair Mitchelmore
* @version 1.2
*
**/
jQuery.fn.extend({
everyTime: function(interval... | JavaScript |
function change_section()
{
section = $('#section_id').val();
$.post("?module=testing&action=change_section§ion_id=" + section, function(data) {
$('#test_id_description_item').html('');
$('#test_id').html(data);
});
}
| JavaScript |
/*
jQuery Coda-Slider v1.1 - http://www.ndoherty.com/coda-slider
Copyright (c) 2007 Niall Doherty
Inspired by the clever folks at http://www.panic.com/coda
Many thanks to Gian Carlo Mingati. Coda-Slider is a heavily modified version of his slideViewer, which can be found at http://www.gcmingati.net/wordp... | JavaScript |
var Timer;
var TotalSeconds;
function CreateTimer(TimerID, Time) {
Timer = document.getElementById(TimerID);
TotalSeconds = Time;
UpdateTimer()
window.setTimeout("Tick()", 1000);
}
function Tick() {
if (TotalSeconds <= 0) {
alert("Time's up!")
return;
}
... | JavaScript |
var _countDowncontainer=0;
var _currentSeconds=0;
function ActivateCountDown(strContainerID, initialValue) {
_countDowncontainer = document.getElementById(strContainerID);
if (!_countDowncontainer) {
alert("count down error: container does not exist: "+strContainerID+
"\nmake sure html element with th... | 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... | JavaScript |
/* ================================================================
This copyright notice must be untouched at all times.
The original version of this scriptt and the associated (x)html
is available at http://www.stunicholls.com/menu/mini-tabbed-pages.html
Copyright (c) 2005-2007 Stu Nicholls. All rights reserve... | 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... | JavaScript |
/* ================================================================
This copyright notice must be untouched at all times.
The original version of this scriptt and the associated (x)html
is available at http://www.stunicholls.com/menu/mini-tabbed-pages.html
Copyright (c) 2005-2007 Stu Nicholls. All rights reserve... | 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... | JavaScript |
/* ================================================================
This copyright notice must be untouched at all times.
The original version of this scriptt and the associated (x)html
is available at http://www.stunicholls.com/menu/mini-tabbed-pages.html
Copyright (c) 2005-2007 Stu Nicholls. All rights reserve... | JavaScript |
//Recent Posts Script
var postTitleOriginal, myLink, myDiv, myImage, mySeparator;
var main;
var float_clear=false;
var flag = 0;
function acrosspgrecentpost(json) {
for (var i = 0; i < numberOfPosts; i++) {
if (i == json.feed.entry.length) break;
var s;
var entry = json.feed.entry[i];
var postT... | JavaScript |
function showrecentpostswiththumbs(json) {
document.write('<ul class="recent_posts_with_thumbs">');
for (var i = 0; i < numposts; i++) {
var entry = json.feed.entry[i];
var posttitle = entry.title.$t;
var posturl;
if (i == json.feed.entry.length) break;
for (var k = 0; k ... | JavaScript |
//Recent Posts Script
var postTitleOriginal, myLink, myDiv, myImage, mySeparator;
var main;
var float_clear=false;
var flag = 0;
function acrosspgrecentpost(json) {
for (var i = 0; i < numberOfPosts; i++) {
if (i == json.feed.entry.length) break;
var s;
var entry = json.feed.entry[i];
var postT... | JavaScript |
$("#LinkList2 ul a").each(function () {
var key = $(this).text();
if (key == 'twitter') {
$(this).html('<div class="twitter-si"/>');
}
if (key == 'facebook') {
$(this).html('<div class="facebook-si"/>');
}
if (key == 'google') {
$(this).html('<div class="googleplus-si"/>');
}
if (... | JavaScript |
jQuery.cookie = function (key, value, options) {
// key and at least value given, set cookie...
if (arguments.length > 1 && String(value) !== "[object Object]") {
options = jQuery.extend({}, options);
if (value === null || value === undefined) {
options.expires = -1;
}
if (typeof options.expires === 'numbe... | JavaScript |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.