code
stringlengths
1
2.08M
language
stringclasses
1 value
(function($) { var cultures = $.global.cultures, en = cultures.en, standard = en.calendars.standard, culture = cultures["en-US"] = $.extend(true, {}, en, { }, cultures["en-US"]); culture.calendar = culture.calendars.standard; })(jQuery);
JavaScript
(function($) { var cultures = $.global.cultures, en = cultures.en, standard = en.calendars.standard, culture = cultures["ru-RU"] = $.extend(true, {}, en, { name: "ru-RU", englishName: "Russian (Russia)", nativeName: "русский (Россия)", language: "ru", ...
JavaScript
(function($) { var cultures = $.global.cultures, en = cultures.en, standard = en.calendars.standard, culture = cultures["fr-FR"] = $.extend(true, {}, en, { name: "fr-FR", englishName: "French (France)", nativeName: "français (France)", language: "fr", ...
JavaScript
(function($) { var cultures = $.global.cultures, en = cultures.en, standard = en.calendars.standard, culture = cultures["de-DE"] = $.extend(true, {}, en, { name: "de-DE", englishName: "German (Germany)", nativeName: "Deutsch (Deutschland)", language:...
JavaScript
(function($) { var cultures = $.global.cultures, en = cultures.en, standard = en.calendars.standard, culture = cultures["cs-CZ"] = $.extend(true, {}, en, { name: "cs-CZ", englishName: "Czech (Czech Republic)", nativeName: "čeština (Česká republika)", languag...
JavaScript
(function($) { var cultures = $.global.cultures, en = cultures.en, standard = en.calendars.standard, culture = cultures["ja-JP"] = $.extend(true, {}, en, { name: "ja-JP", englishName: "Japanese (Japan)", nativeName: "日本語 (日本)", language: "ja", number...
JavaScript
/*! * jQuery globalization Plugin v1.0.0pre * http://github.com/jquery/jquery-global * * Copyright Software Freedom Conservancy, Inc. * Dual licensed under the MIT or GPL Version 2 licenses. * http://jquery.org/license */ (function() { var globalization = {}, localized = { en: {} }; localized["de...
JavaScript
(function($) { var cultures = $.global.cultures, en = cultures.en, standard = en.calendars.standard, culture = cultures["it-IT"] = $.extend(true, {}, en, { name: "it-IT", englishName: "Italian (Italy)", nativeName: "italiano (Italia)", language: "it", ...
JavaScript
(function($) { var cultures = $.global.cultures, en = cultures.en, standard = en.calendars.standard, culture = cultures["he-IL"] = $.extend(true, {}, en, { name: "he-IL", englishName: "Hebrew (Israel)", nativeName: "עברית (ישראל)", language: "he", is...
JavaScript
(function($) { var cultures = $.global.cultures, en = cultures.en, standard = en.calendars.standard, culture = cultures["sa-IN"] = $.extend(true, {}, en, { name: "sa-IN", englishName: "Sanskrit (India)", nativeName: "संस्कृत (भारतम्)", language: "sa", ...
JavaScript
(function($) { var cultures = $.global.cultures, en = cultures.en, standard = en.calendars.standard, culture = cultures["hr"] = $.extend(true, {}, en, { name: "hr", englishName: "Croatian", nativeName: "hrvatski", language: "hr", numberFormat: { ...
JavaScript
if (typeof RedactorPlugins === 'undefined') var RedactorPlugins = {}; RedactorPlugins.fullscreen = { init: function() { this.fullscreen = false; this.addBtn('fullscreen', 'Fullscreen', function(obj) { obj.toggleFullscreen(); }); this.setBtnRight('fullscreen'); }, toggleFullscreen: function() { ...
JavaScript
if (typeof RedactorPlugins === 'undefined') var RedactorPlugins = {}; RedactorPlugins.advanced = { init: function() { var Redactor=this; this.addBtnBefore('video', 'plugin_img', 'Insert Image', function(obj) { Redactor.saveSelection(); ...
JavaScript
if (typeof RedactorPlugins === 'undefined') var RedactorPlugins = {}; RedactorPlugins.advanced = { init: function() { this.addBtnAfter('link', 'advanced', 'Advanced', function(obj) { obj.insertHtml('<b>It\'s awesome!</b> '); }); this.addBtnSeparatorBefore('advanced'); } }
JavaScript
/* jshint forin:true, noarg:true, noempty:true, eqeqeq:true, boss:true, undef:true, curly:true, browser:true, jquery:true */ /* * jQuery MultiSelect UI Widget 1.14pre * Copyright (c) 2012 Eric Hynds * * http://www.erichynds.com/jquery/jquery-ui-multiselect-widget/ * * Depends: * - jQuery 1.4.2+ * - jQuery U...
JavaScript
/* jshint forin:true, noarg:true, noempty:true, eqeqeq:true, boss:true, undef:true, curly:true, browser:true, jquery:true */ /* * jQuery MultiSelect UI Widget Filtering Plugin 1.5pre * Copyright (c) 2012 Eric Hynds * * http://www.erichynds.com/jquery/jquery-ui-multiselect-widget/ * * Depends: * - jQuery UI Mul...
JavaScript
// Copyright (C) 2006 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 t...
JavaScript
/* jshint forin:true, noarg:true, noempty:true, eqeqeq:true, boss:true, undef:true, curly:true, browser:true, jquery:true */ /* * jQuery MultiSelect UI Widget 1.14pre * Copyright (c) 2012 Eric Hynds * * http://www.erichynds.com/jquery/jquery-ui-multiselect-widget/ * * Depends: * - jQuery 1.4.2+ * - jQuery U...
JavaScript
/* jshint forin:true, noarg:true, noempty:true, eqeqeq:true, boss:true, undef:true, curly:true, browser:true, jquery:true */ /* * jQuery MultiSelect UI Widget Filtering Plugin 1.5pre * Copyright (c) 2012 Eric Hynds * * http://www.erichynds.com/jquery/jquery-ui-multiselect-widget/ * * Depends: * - jQuery UI Mul...
JavaScript
(function($){ var el, widget, button, input; function getVisible() { return widget.find(".ui-multiselect-checkboxes input:visible"); } function getChecked() { return el.multiselect("getChecked"); } function getSelected() { return el.children(":selected"); } function searchFor(term) { ...
JavaScript
(function($){ module("methods"); test("open", function(){ expect(2); el = $("select").multiselect().multiselect("open"); ok( el.multiselect("isOpen"), "isOpen parameter true" ); equals( menu().css("display"), "block", "Test display CSS property" ); el.multiselect("destroy"); }); test("close", fun...
JavaScript
(function($){ var el, widget, elems; module("html", { setup: function() { el = $("select").multiselect(); widget = el.multiselect("widget"); } }); test("pull in optgroup's class", function(){ expect(5); elems = widget.find('.ui-multiselect-optgroup-label'); equals( elems.length, 3, 'There are thr...
JavaScript
/* * QUnit - A JavaScript Unit Testing Framework * * http://docs.jquery.com/QUnit * * Copyright (c) 2009 John Resig, Jörn Zaefferer * Dual licensed under the MIT (MIT-LICENSE.txt) * and GPL (GPL-LICENSE.txt) licenses. */ (function(window) { var defined = { setTimeout: typeof window.setTimeout !== "undefined...
JavaScript
(function($){ module("events"); test("multiselectopen", function(){ expect(27); // inject widget el = $("<select multiple><option value='foo'>foo</option></select>").appendTo(body); el.multiselect({ open: function(e,ui){ ok( true, 'option: multiselect("open") fires open callback' ); equals(th...
JavaScript
var el; var body = document.body; function button(){ return el.next(); } function menu(){ return el.multiselect("widget"); } function header(){ return menu().find('.ui-multiselect-header'); } QUnit.done = function(){ $("select").hide(); }; (function($){ module("core"); test("init", function(){ expect(6...
JavaScript
(function($){ module("options"); test("noneSelectedText", function(){ expect(7); var text; el = $("select").multiselect({ noneSelectedText: 'None Selected' }); // read from widget text = el.multiselect("option", "noneSelectedText"); equals( button().text(), text, 'on init, button reads "No...
JavaScript
/* Simplified Chinese initialisation for the jQuery UI multiselect plugin. */ /* Written by Ben (ben@zfben.com). */ (function ( $ ) { $.extend($.ech.multiselect.prototype.options, { checkAllText: '全選', uncheckAllText: '清空', noneSelectedText: '請選擇', selectedText: '# 已選擇' }); })( jQuery );
JavaScript
/* Simplified Chinese initialisation for the jQuery UI multiselect plugin. */ /* Written by Ben (ben@zfben.com). */ (function ( $ ) { $.extend($.ech.multiselect.prototype.options, { checkAllText: '全选', uncheckAllText: '清空', noneSelectedText: '请选择', selectedText: '# 已选择' }); })( jQuery );
JavaScript
/* Brazilian initialisation for the jQuery UI multiselect plugin. */ /* Written by Vinícius Fontoura Corrêa (vinusfc@gmail.com). */ (function ( $ ) { $.extend($.ech.multiselect.prototype.options, { checkAllText: 'Marcar todos', uncheckAllText: 'Desmarcar todos', noneSelectedText: 'Selecione as opções', selectedTe...
JavaScript
/* Japanese initialisation for the jQuery UI multiselect plugin. */ /* Written by Daisuke (daisuketaniwaki@gmail.com). */ (function ( $ ) { $.extend($.ech.multiselect.prototype.options, { checkAllText: 'すべて選択', uncheckAllText: '選択解除', noneSelectedText: '選択してください', selectedText: '#つ選択中' }); })( jQ...
JavaScript
/* Italian initialization for the jQuery UI multiselect plugin. */ /* Written by Vincenzo Farruggia(mastropinguino@networky.net). */ (function ( $ ) { $.extend($.ech.multiselect.prototype.options, { checkAllText: 'Seleziona tutto', uncheckAllText: 'Deseleziona tutto', noneSelectedText: 'Seleziona le opzioni', sel...
JavaScript
/* Spanish initialisation for the jQuery UI multiselect plugin. */ /* Written by Vinícius Fontoura Corrêa (vinusfc@gmail.com). */ (function ( $ ) { $.extend($.ech.multiselectfilter.prototype.options, { label: "Filtro:", placeholder: "Introduzca una palabra" }); })( jQuery );
JavaScript
/* Japanese initialisation for the jQuery UI multiselect plugin. */ /* Written by Daisuke (daisuketaniwaki@gmail.com). */ (function ( $ ) { $.extend($.ech.multiselectfilter.prototype.options, { label: '絞込み:', placeholder: 'キーワードを入力してください' }); })( jQuery );
JavaScript
/* Polish initialisation for the jQuery UI multiselect plugin. */ /* Written by Tomasz Mazur (contact@tomaszmazur.eu). */ (function ( $ ) { $.extend($.ech.multiselectfilter.prototype.options, { label: "Filtruj:", placeholder: "Wprowadź słowa kluczowe" }); })( jQuery );
JavaScript
/* French initialisation for the jQuery UI multiselect plugin. */ /* Written by Charles SANQUER (charles.sanquer@spyrit.net). */ (function ( $ ) { $.extend($.ech.multiselect.prototype.options, { checkAllText: 'Tout cocher', uncheckAllText: 'Tout décocher', noneSelectedText: 'Selectionner les options', selectedTex...
JavaScript
/* Brazilian initialisation for the jQuery UI multiselect plugin. */ /* Written by Yusuf Özer (realsby@gmail.com). */ (function ( $ ) { $.extend($.ech.multiselectfilter.prototype.options, { label: "Filtre:", placeholder: "Bir kelime yazın" }); })( jQuery );
JavaScript
/* Italian initialization for the jQuery UI multiselect plugin. */ /* Written by Vincenzo Farruggia(mastropinguino@networky.net). */ (function ( $ ) { $.extend($.ech.multiselectfilter.prototype.options, { label: "Filtro:", placeholder: "Digita una parola chiave" }); })( jQuery );
JavaScript
/* Czech initialisation for the jQuery UI multiselect plugin. */ /* Written by Michi (michi.m@gmail.com). */ (function ( $ ) { $.extend($.ech.multiselectfilter.prototype.options, { label: "Filtrovat:", placeholder: "Napište výraz" }); })( jQuery );
JavaScript
/* Russian initialisation for the jQuery UI multiselect plugin. */ /* Written by Artem Packhomov (gorblnu4@gmail.com). */ (function ( $ ) { $.extend($.ech.multiselect.prototype.options, { checkAllText: 'Отметить все', uncheckAllText: 'Снять отметку со всех', noneSelectedText: 'Выберите из списка', selectedText: '...
JavaScript
/* Brazilian initialisation for the jQuery UI multiselect plugin. */ /* Written by Vinícius Fontoura Corrêa (vinusfc@gmail.com). */ (function ( $ ) { $.extend($.ech.multiselectfilter.prototype.options, { label: "Filtro:", placeholder: "Entre com a palavra" }); })( jQuery );
JavaScript
/* Spanish initialisation for the jQuery UI multiselect plugin. */ /* Written by Vinius Fontoura Correa(vinusfc@gmail.com). */ (function ( $ ) { $.extend($.ech.multiselect.prototype.options, { checkAllText: 'Marca todas', uncheckAllText: 'Desmarque todas', noneSelectedText: 'Seleccione las opciones', selectedText...
JavaScript
/* German initialisation for the jQuery UI multiselect plugin. */ /* Written by Sven Tatter (sven.tatter@gmail.com). */ (function ( $ ) { $.extend($.ech.multiselectfilter.prototype.options, { label: "Suchen:", placeholder: "Stichwort eingeben" }); })( jQuery );
JavaScript
/* Spanish initialisation for the jQuery UI multiselect plugin. */ /* Written by Tomasz Mazur (contact@tomaszmazur.eu). */ (function ( $ ) { $.extend($.ech.multiselect.prototype.options, { checkAllText: 'Zaznacz wszystkie', uncheckAllText: 'Odznacz wszystkie', noneSelectedText: 'Wybierz opcje', selectedText: 'Zaz...
JavaScript
/* Russian initialisation for the jQuery UI multiselect plugin. */ /* Written by Artem Packhomov (gorblnu4@gmail.com). */ (function ( $ ) { $.extend($.ech.multiselectfilter.prototype.options, { label: "Фильтр:", placeholder: "Введите запрос" }); })( jQuery );
JavaScript
/* German initialisation for the jQuery UI multiselect plugin. */ /* Written by Sven Tatter (sven.tatter@gmail.com). */ (function ( $ ) { $.extend($.ech.multiselect.prototype.options, { checkAllText: 'Alle auswählen', uncheckAllText: 'Alle abwählen', noneSelectedText: 'Nichts ausgewählt', selectedText: '# ausgewä...
JavaScript
/* Brazilian initialisation for the jQuery UI multiselect plugin. */ /* Written by Yusuf Özer (realsby@gmail.com). */ (function ( $ ) { $.extend($.ech.multiselect.prototype.options, { checkAllText: 'Tümünü seç', uncheckAllText: 'Tümünü sil', noneSelectedText: 'Seçenekleri belirleyin', selectedText: '# adet se...
JavaScript
/* French initialisation for the jQuery UI multiselect plugin. */ /* Written by Charles SANQUER (charles.sanquer@spyrit.net). */ (function ( $ ) { $.extend($.ech.multiselectfilter.prototype.options, { label: "Filtre:", placeholder: "Entrer un mot clé" }); })( jQuery );
JavaScript
/* Simplified Chinese initialisation for the jQuery UI multiselect plugin. */ /* Written by Ben (ben@zfben.com). */ (function ( $ ) { $.extend($.ech.multiselectfilter.prototype.options, { label: '过滤:', placeholder: '输入关键字过滤' }); })( jQuery );
JavaScript
/* Simplified Chinese initialisation for the jQuery UI multiselect plugin. */ /* Written by Ben (ben@zfben.com). */ (function ( $ ) { $.extend($.ech.multiselectfilter.prototype.options, { label: '過濾:', placeholder: '輸入關鍵字過濾' }); })( jQuery );
JavaScript
/* Czech initialisation for the jQuery UI multiselect plugin. */ /* Written by Michi (michi.m@gmail.com). */ (function ( $ ) { $.extend($.ech.multiselect.prototype.options, { checkAllText: 'Vybrat vše', uncheckAllText: 'Zrušit výběr', noneSelectedText: 'Nic není vybráno', selectedText: '# vybráno' }); })( jQuery...
JavaScript
//<![CDATA[ // Recent Post widget for Blogger with Preloader // Author: Taufik Nurrohman // https://plus.google.com/108949996304093815163/about // Licence: Free for change, keep the original attribution, non commercial function showRecentPosts(json) { for (var i = 0; i < rp_numPosts; i++) { if (i == json.feed....
JavaScript
//<![CDATA[ var thumbnail_mode = "float" ; summary_noimg = 250; summary_img = 210; img_thumb_size = 95; var numm_rand_post=3; function removeHtmlTag(strx,chop){ if(strx.indexOf("<")!=-1){ var s = strx.split("<"); for(var i=0;i<s.length;i++){ if(s[i].indexOf(">")!=-1){...
JavaScript
var JudNav = {}; //Pengambilan judul artikel melalui feed function ambilJudNav(json) { for (var i = 0; i < json.feed.entry.length; i++) { var judul = json.feed.entry[i]; var data = ""; for (var k = 0; k < judul.link.length; k++) { if (judul.link[k].rel == 'alternate') { data = judul.link[k].href; break } } if (...
JavaScript
$(document).ready(function() { function filterPath(string) { return string .replace(/^\//,'') .replace(/(index|default).[a-zA-Z]{3,4}$/,'') .replace(/\/$/,''); } var locationPath = filterPath(location.pathname); var scrollElem = scrollableElement('html', 'body'); $('a[href*=#]').each...
JavaScript
//<![CDATA[ $(document).ready(function() { function getTargetTop(elem){ var id = elem.attr("href"); var offset = 60; return $(id).offset().top - offset; } $('a[href^="#"]').click(function(event) { var target = getTargetTop($(this)); $('html, body').animate({scrollTop:target}, 1200); event.preventDefault(); }...
JavaScript
/** * An object of type SimpleRotator can be used to implement a trackball-like mouse rotation * of a WebGL scene about the origin. Only the first parameter to the constructor is required. * When an object is created, mouse event handlers are set up on the canvas to respond to rotation. * The class defines the fol...
JavaScript
/* * @author Olivier Le Diouris */ // TODO This config in CSS // We wait for the var- custom properties to be implemented in CSS... // @see http://www.w3.org/TR/css-variables-1/ /* * For now: * Themes are applied based on a css class: * .display-scheme * { * color: black; * } * * if color is ...
JavaScript
/** * To debug: * Prompt> set HTTP_PROXY=http://www-proxy.us.oracle.com:80 * Prompt> npm install -g node-inspector * Prompt> node-inspector * * From another console: * Prompt> node --debug server.js */ "use strict"; process.title = 'node-leap-motion'; // Port where we'll run the websocket server ...
JavaScript
// App specific code var nbMessReceived = 0; var init = function() { ws.onopen = function() { try { var text; try { text = 'Message:'; } catch (err) { text = '<small>Connected</small>'; } promptFld.innerHTML = text; if (nbMessRecei...
JavaScript
"use strict"; var connection; (function () { var ws = window.WebSocket || window.MozWebSocket; if (!ws) { displayMessage('Sorry, but your browser does not support WebSockets.'); return; } // open connection var rootUri = "ws://" + (document.location.hostname === "" ? "localhost" : document.locati...
JavaScript
"use strict"; var connection; (function () { var ws = window.WebSocket || window.MozWebSocket; if (!ws) { displayMessage('Sorry, but your browser does not support WebSockets.'); return; } // open connection var rootUri = "ws://" + (document.location.hostname === "" ? "localhost" : document.locati...
JavaScript
"use strict"; var connection; (function () { var ws = window.WebSocket || window.MozWebSocket; if (!ws) { displayMessage('Sorry, but your browser does not support WebSockets.'); return; } // open connection var rootUri = "ws://" + (document.location.hostname === "" ? "localhost" : document.locati...
JavaScript
# Joystick # #!/bin/bash PI4J_HOME=/home/pi/pi4j/pi4j-distribution/target/distro-contents CP=./classes CP=$CP:../AdafruitI2C/classes CP=$CP:../ADC/classes #CP=$CP:../SevenSegDisplay/classes CP=$CP:$PI4J_HOME/lib/pi4j-core.jar # sudo java -cp $CP -Dverbose=true raspisamples.PanTiltJoyStick
JavaScript
"use strict"; var connection; (function () { // if user is running mozilla then use it's built-in WebSocket // window.WebSocket = window.WebSocket || window.MozWebSocket; // TODO otherwise, fall back var ws = window.WebSocket || window.MozWebSocket; // TODO otherwise, fall back // if browser doesn't suppor...
JavaScript
/* * @author Olivier Le Diouris */ // TODO This config in CSS // We wait for the var- custom properties to be implemented in CSS... // @see http://www.w3.org/TR/css-variables-1/ /* * For now: * Themes are applied based on a css class: * .display-scheme * { * color: black; * } * * if color is ...
JavaScript
// http://ejohn.org/blog/ecmascript-5-strict-mode-json-and-more/ "use strict"; /** * Warning: there is a first HTTP HandShake going on, that must follow the orasocket.js protocol. * See the request header: * "tyrus-ws-attempt" = "Hand-Shake" * * Response headers will contain: * "tyrus-fallback-transports" ...
JavaScript
"use strict"; var connection; (function () { // if user is running mozilla then use it's built-in WebSocket // window.WebSocket = window.WebSocket || window.MozWebSocket; // TODO otherwise, fall back var ws = window.WebSocket || window.MozWebSocket; // TODO otherwise, fall back // if browser doesn't suppor...
JavaScript
/* * @author Olivier Le Diouris */ // TODO This config in CSS // We wait for the var- custom properties to be implemented in CSS... // @see http://www.w3.org/TR/css-variables-1/ /* * For now: * Themes are applied based on a css class: * .display-scheme * { * color: black; * } * * if color is ...
JavaScript
// http://ejohn.org/blog/ecmascript-5-strict-mode-json-and-more/ "use strict"; /** * Warning: there is a first HTTP HandShake going on, that must follow the orasocket.js protocol. * See the request header: * "tyrus-ws-attempt" = "Hand-Shake" * * Response headers will contain: * "tyrus-fallback-transports" ...
JavaScript
var set = function(device, state) { request(device, state); }; var SERVICE_ROOT = "/relay-access"; var request = function(pin, status) { var restRequest = SERVICE_ROOT + "?dev=" + pin + "&status=" + status; var ajax = new XMLHttpRequest(); ajax.open("GET", restRequest, false); ajax.send(null); };
JavaScript
"use strict"; var connection; (function () { var ws = window.WebSocket || window.MozWebSocket; if (!ws) { displayMessage('Sorry, but your browser does not support WebSockets.'); return; } // open connection var rootUri = "ws://" + (document.location.hostname === "" ? "localhost" : document.locati...
JavaScript
/* * @author Olivier Le Diouris */ // TODO This config in CSS // We wait for the var- custom properties to be implemented in CSS... // @see http://www.w3.org/TR/css-variables-1/ /* * For now: * Themes are applied based on a css class: * .display-scheme * { * color: black; * } * * if color is ...
JavaScript
/** * To debug: * Prompt> set HTTP_PROXY=http://www-proxy.us.oracle.com:80 * Prompt> npm install -g node-inspector * Prompt> node-inspector * * From another console: * Prompt> node --debug server.js */ "use strict"; process.title = 'node-oil-detector'; // Port where we'll run the websocket server...
JavaScript
/* ScriptName: channeltab.js Author: Akai Website: http://nhacuato.com/ */ $(document).ready(function() { function ncttabs(rel) { $channelcontent.hide(); $channeltab.removeClass("selected"); var id = rel.attr("rel"); $("#" + id).show(); rel.addClass("selected"); } $channeltab = $(".conta...
JavaScript
$(document).ready(function() { $channelr = $(".container #channelr"); $channelm = $(".container #channelr #channel"); $channelb = $(".container #channelr #channelb"); $channelg = $(".container #channelg"); $channelv = 0; function channelh() { if ($.browser.msie && $.browser.version.slice(0, 3) == "7.0") $channe...
JavaScript
/************************************************************************/ /* Rainbow Links Version 1.03 (2003.9.20) */ /* Script updated by Dynamicdrive.com for IE6 */ /* Copyright (C) 1999-2001 TAKANASHI Mizuki */ /* takanasi@hamal.fr...
JavaScript
function hm_play(linkxem) { if (linkxem.indexOf('id="embed_tv"')!=-1) { var play = linkxem; } else if (linkxem.indexOf("http://")!=-1) { if (linkxem.indexOf("http://tv-msn.com")!=-1 || linkxem.indexOf("http://www2.k-tv.at")!=-1 || linkxem.indexOf("http://vtc.com.vn")!=-1 || linkxem.indexOf("http://tv24.vn")!=-1 || link...
JavaScript
var titles=new Array();var titlesNum=0;var urls=new Array();var time=new Array();var titleh=new Array(); function related_results_labels(c){ for(var b=0;b<c.feed.entry.length;b++){ var d=c.feed.entry[b]; titles[titlesNum]=d.title.$t; s=d.content.$t; titleh[titlesNum]=s.substring(s.indexOf("[st]")+4,s.indexOf("[/s...
JavaScript
imgr = new Array(); imgr[0] = "https://lh3.googleusercontent.com/-IBkOgk0LW6c/TqulPrgd6RI/AAAAAAAAAmg/VHnAiJCR4jc/s800/no_img.jpg"; showRandomImg = true; aBold = true; summaryPost = 70; summaryTitle = 25; numposts = 100; function removeHtmlTag(strx,chop){ var s = strx.split("<"); for(var i=0;i<s.length;i++){ i...
JavaScript
imgr = new Array(); imgr[0] = "https://lh3.googleusercontent.com/-IBkOgk0LW6c/TqulPrgd6RI/AAAAAAAAAmg/VHnAiJCR4jc/s800/no_img.jpg"; showRandomImg = true; aBold = true; summaryPost = 70; summaryTitle = 25; numposts = 100; function removeHtmlTag(strx,chop){ var s = strx.split("<"); for(var i=0;i<s.length;i++){ i...
JavaScript
function postlabel(json) { 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 < entry.link.length;k++){ if(entry.link[k].rel=='replies'&&entry.link[k].type=='text/html'){ var ...
JavaScript
 function GetListChiNhanh() { strData = "cmd=GetListChiNhanh"; //alert(strData); $.ajax({ url: 'ajaxActions.aspx', type: 'GET', data: strData, timeout: 4000, error: function (msg) { alert('Server quá tải - GetListChiNhanh'); GetList...
JavaScript
/* * Autocomplete - jQuery plugin 1.0.2 * * Copyright (c) 2007 Dylan Verheul, Dan G. Switzer, Anjesh Tuladhar, Jörn Zaefferer * * Dual licensed under the MIT and GPL licenses: * http://www.opensource.org/licenses/mit-license.php * http://www.gnu.org/licenses/gpl.html * * Revision: $Id: jquery.autocomplete....
JavaScript
function formatCurrency(num){ num = num.toString().replace(/\$|\,/g,''); if(isNaN(num)) num = "0"; sign = (num == (num = Math.abs(num))); num = Math.floor(num*100+0.50000000001); num = Math.floor(num/100).toString(); for (var i = 0; i < Math.floor((num.length-(1+i))/3); i++) num ...
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
// JavaScript Document function iShow(divShow, divHide, iType,msg){ // Định nghĩa từng loại show ở đây // 1. FadeIn 2.Show 3... switch(iType){ case 1:{ $('#' + divHide).slideUp("fast"); //$('#' + divShow).html(msg); $('#' + divShow).slideDown("fast"); ...
JavaScript
/** * * MD5 (Message-Digest Algorithm) * http://www.webtoolkit.info/ * **/ var MD5 = function (string) { function RotateLeft(lValue, iShiftBits) { return (lValue<<iShiftBits) | (lValue>>>(32-iShiftBits)); } function AddUnsigned(lX,lY) { var lX4,lY4,lX8,lY8,lResult; ...
JavaScript
$(document).ready(function() { $('.error').hide(); $('#txt_username').change(function(){ check(); }); $('#txt_password2').blur(function(){ if(!compare("txt_password", "txt_password2", "lbl_password2")); ...
JavaScript
function GetListChiNhanh() { strData = "cmd=GetListChiNhanh"; //alert(strData); $.ajax({ url: '../ajaxActions.aspx', type: 'GET', data: strData, timeout: 4000, error: function (msg) { alert('Error GetListDiaChi'); }, success: fu...
JavaScript
function GetListLoaiNhanVien() { strData = "cmd=GetListLoaiNhanVien"; //alert(strData); $.ajax({ url: '../ajaxActions.aspx', type: 'GET', data: strData, timeout: 4000, error: function (msg) { alert('Error GetListLoaiNhanVien'); }, ...
JavaScript
function GetListChiNhanh() { strData = "cmd=GetListChiNhanh_1"; //alert(strData); $.ajax({ url: '../ajaxActions.aspx', type: 'GET', data: strData, timeout: 4000, error: function (msg) { alert('Error GetListChiNhanh_1'); }, succe...
JavaScript
function enableAllMenu(){ // menu quan ly kho $('#TitleQLKho').css('display','block'); $('#mnQLKho').css('display','block'); // menu quan ly cong ty $('#TitleQLCongTy').css('display','block'); $('#mnQLCongTy').css('display','block'); // men ql chi nhanh $('#TitleQLChiNhanh').css('display','blo...
JavaScript
function UpdateTinhTrang(e, MaKhachHang, lbl_status) { isChecked = $(e).is(':checked'); strData = isChecked == true ? "cmd=UpdateTinhTrang&MaKhachHang=" + MaKhachHang : "cmd=UpdateTinhTrang0&MaKhachHang=" + MaKhachHang; //alert(strData); $.ajax({ url: '../ajaxActions.aspx', type: ...
JavaScript
function GetListXe() { strData = "cmd=GetListXe"; //alert(strData); $.ajax({ url: '../ajaxActions.aspx', type: 'GET', data: strData, timeout: 4000, error: function (msg) { alert('Error GetListXe'); }, success: function (msg) { ...
JavaScript
function GetListTuyenDuong() { strData = "cmd=GetListTuyenDuong_1"; //alert(strData); $.ajax({ url: '../ajaxActions.aspx', type: 'GET', data: strData, timeout: 4000, error: function (msg) { alert('Error GetListTuyenDuong'); }, s...
JavaScript
(function($){ $.fn.extend({ valid8: function(options) { return this.each(function(){ $(this).data('valid', false); var defaultOptions = { reguglarExpressions: [], ajaxRequests: [], jsFunctions: [], onValid: defaultOnValid, onError: defaultOnErro...
JavaScript
//http://plugins.jquery.com/files/jquery.rpc.js_1.txt window.jQuery = window.jQuery || {}; jQuery.rpc = function(url, dataType, onLoadCallback, version) { return new (function(url, dataType, onLoadCallback, version) { version = version || "1.0"; dataType = dataType || "json"; if(dataType != "json" && dataType ...
JavaScript
//initiailzie stuff when document is ready $(document).ready(function() { // gets username var username = gup("id"); //alert(username); // testing field // a hash map to return the username $("#data").data("username", username); USER_ID = $("#data").data("username"); //get the buddy list getB...
JavaScript
/** * Creates a new level control. * @constructor * @param {IoMap} iomap the IO map controller. * @param {Array.<string>} levels the levels to create switchers for. */ function LevelControl(iomap, levels) { var that = this; this.iomap_ = iomap; this.el_ = this.initDom_(levels); google.maps.event.addList...
JavaScript
// Copyright 2011 Google /** * 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 wri...
JavaScript