code
stringlengths
1
2.08M
language
stringclasses
1 value
jQuery.noConflict(); jQuery(document).ready(function(){ //search box of header jQuery('#keyword').bind('focusin focusout', function(e){ var t = jQuery(this); if(e.type == 'focusin' && t.val() == 'Search here') { t.val(''); } else if(e.type == 'focusout' && t.val() == '') { t.val('Search here'...
JavaScript
jQuery(document).ready(function(){ jQuery('.chatsearch input').bind('focusin focusout',function(e){ if(e.type == 'focusin') { if(jQuery(this).val() == 'Search') jQuery(this).val(''); } else { if(jQuery(this).val() == '') jQuery(this).val('Search'); } }); jQuery('.messagebox button').click(...
JavaScript
jQuery(document).ready(function(){ //image edit jQuery('.ajax').colorbox({ onComplete: function(){ jQuery('.cancel').click(function(){ jQuery.fn.colorbox.close(); return false; //we use return false because we use button and to prevent form submission }); jQuery('#editphoto').submi...
JavaScript
jQuery(document).ready(function(){ //dual box var db = jQuery('#dualselect').find('.ds_arrow .arrow'); //get arrows of dual select var sel1 = jQuery('#dualselect select:first-child'); //get first select element var sel2 = jQuery('#dualselect select:last-child'); //get second select element sel2.empty...
JavaScript
jQuery(document).ready(function() { /* initialize the external events */ jQuery('#external-events div.external-event').each(function() { // create an Event Object (http://arshaw.com/fullcalendar/docs/event_data/Event_Object/) // it doesn't need to have a start or end var eventObject = { title...
JavaScript
jQuery(document).ready(function(){ var flash = [[0, 2], [1, 6], [2,3], [3, 8], [4, 5], [5, 13], [6, 8]]; //for (var i = 0; i < 14; i += 0.5) // flash.push([i, Math.sin(i)]); function showTooltip(x, y, contents) { jQuery('<div id="tooltip" class="tooltipflot">' + contents + '</div>').css...
JavaScript
jQuery(document).ready(function(){ /*****SIMPLE CHART*****/ var flash = [[0, 2], [1, 6], [2,3], [3, 8], [4, 5], [5, 13], [6, 8]]; var html5 = [[0, 5], [1, 4], [2,4], [3, 1], [4, 9], [5, 10], [6, 13]]; function showTooltip(x, y, contents) { jQuery('<div id="tooltip" class="tooltipflot">' +...
JavaScript
jQuery(document).ready(function(){ //datepicker jQuery('#datepicker').datepicker(); //show tabbed widget jQuery('#tabs').tabs(); //////////// CHARTS ///////////////// var flash = [], html5 = []; for (var i = 0; i < 14; i += 0.5) { flash.push([i, Math.sin(i)]); html5.push([i, Math.cos(i)])...
JavaScript
// Copyright 2008 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 ...
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
/** * Ajax Queue Plugin * * Homepage: http://jquery.com/plugins/project/ajaxqueue * Documentation: http://docs.jquery.com/AjaxQueue */ /** <script> $(function(){ jQuery.ajaxQueue({ url: "test.php", success: function(html){ jQuery("ul").append(html); } }); jQuery.ajaxQueue({ url: "test.p...
JavaScript
/** * dat.globe Javascript WebGL Globe Toolkit * http://dataarts.github.com/dat.globe * * Copyright 2011 Data Arts Team, Google Creative Lab * * 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 Licen...
JavaScript
// Copyright 2012 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. function initPlayground(transport) { "use strict"; function text(node) { var s = ""; for (var i = 0; i < node.childNodes.length; i++) { var n = node.c...
JavaScript
/* https://github.com/jzaefferer/jquery-treeview/blob/master/jquery.treeview.edit.js */ /* License: MIT. */ (function($) { var CLASSES = $.treeview.classes; var proxied = $.fn.treeview; $.fn.treeview = function(settings) { settings = $.extend({}, settings); if (settings.add) { return this.trigger("add", [sett...
JavaScript
/* * Treeview 1.4.1 - jQuery plugin to hide and show branches of a tree * * http://bassistance.de/jquery-plugins/jquery-plugin-treeview/ * http://docs.jquery.com/Plugins/Treeview * * Copyright (c) 2007 Jörn Zaefferer * * Dual licensed under the MIT and GPL licenses: * http://www.opensource.org/licenses/mit-...
JavaScript
// Copyright 2012 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. /* In the absence of any formal way to specify interfaces in JavaScript, here's a skeleton implementation of a playground transport. function Transport...
JavaScript
// Copyright 2012 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. /* A little code to ease navigation of these documents. * * On window load we: * + Bind search box hint placeholder show/hide events (bindSearchEvents) * ...
JavaScript
/* * Copyright (c) 2012 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 ...
JavaScript
/* ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0/LGPL 2.1 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (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.mozilla.org/MPL/ * ...
JavaScript
/* ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0/LGPL 2.1 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (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.mozilla.org/MPL/ * ...
JavaScript
/* * Copyright (c) 2012 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 ...
JavaScript
/* ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0/LGPL 2.1 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (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.mozilla.org/MPL/ * ...
JavaScript
/* ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0/LGPL 2.1 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (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.mozilla.org/MPL/ * ...
JavaScript
/* * Copyright (c) 2012 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 ...
JavaScript
/* ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0/LGPL 2.1 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (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.mozilla.org/MPL/ * ...
JavaScript
/* ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0/LGPL 2.1 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (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.mozilla.org/MPL/ * ...
JavaScript
/* * Copyright 2012 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
/* ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0/LGPL 2.1 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (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.mozilla.org/MPL/ * ...
JavaScript
/* ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0/LGPL 2.1 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (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.mozilla.org/MPL/ * ...
JavaScript
/* * Copyright (c) 2012 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 ...
JavaScript
/* ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0/LGPL 2.1 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (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.mozilla.org/MPL/ * ...
JavaScript
/* ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0/LGPL 2.1 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (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.mozilla.org/MPL/ * ...
JavaScript
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) })(window,document,'script','//www.google-analytics.com/analytics.js','ga...
JavaScript
function Game(inputMapping, autoRepeat, threshold) { var thisObject = this, i; this.firstLoop = true; this.blocks = []; this.controlGroup = null; // make the preview blocks this.previewBlocks = []; for (i = 0; i < 4; i += 1) { this.previewBlocks.push(new Block({blockX: -10, block...
JavaScript
/** * The blocks that can be moved nby the user * @param {Array} blocks - an array of [Block] of size 4 that can be operated on * @param {Char} shape - the block type: i, o, j, l, s, z, t * @param {function({Number}x, {Number}y)} isLegalCallback - a function that retursn true if a block can be moved * to the new posit...
JavaScript
function ScoreTracker(scoreOutput, linesOutput, levelOutput, tickerOutput) { this.level = 1; this.score = 0; this.linesRemaining = ScoreTracker.levelLines(this.level); this.scoreOutput = scoreOutput; this.linesOutput = linesOutput; this.levelOutput = levelOutput; this.tickerOutput = tickerO...
JavaScript
var SHAPES = { i: { spin: 'corner', startX: 5, startY: 0, pos: [ { x: -2, y: -1 }, { x: -1, y: -1}, { x: 0, y: -1 }, { x: 1, y: -1 } ], image: 'media/cyanblock.png', kickType: 'i_block' }, o: { spin: 'corner', startX: 5, startY: -1, pos: [ { x: -1, y: 0 }, { x: 0, y:...
JavaScript
// default input assignments var inputAssignments = { shiftLeft: ['left'], shiftRight: ['right'], softDrop: ['down'], rotateLeft: ['z'], rotateRight: ['x', 'up'], swap: ['shift', 'c'], hardDrop: ['space'] }; var autoRepeatConfig = 50; var thresholdConfig = 200; function loadGameControls()...
JavaScript
function TtyBlock (divName, numLines, rollOverLength, rollOverRemove) { var i; this.elem = document.getElementById(divName); // slow scorlling effect variables this.curPos = 0; this.cursorShown = false; // TODO: make these random starting values this.timePassedType = 0; this.timePass...
JavaScript
function PreviewGroup(baseX, baseY) { var i; this.blocks = []; this.shape = null; // create the blocks for (i = 0; i < 4; i += 1) { this.blocks.push(new Block({ boardOriginX: baseX, boardOriginY: baseY, blockX: 0, blockY: 0, shape: 'i' })); } } /** * Sets the s...
JavaScript
/* * * Jaws - a HTML5 canvas/javascript 2D game development framework * * Homepage: http://jawsjs.com/ * Works with: Chrome 6.0+, Firefox 3.6+, 4+, IE 9+ * License: LGPL - http://www.gnu.org/licenses/lgpl.html * * Formating guide: * * jaws.oneFunction() * jaws.one_variable = 1 * new jaws.OneConstr...
JavaScript
function RandomBag(queueSize) { // start off empty this.available = []; this.queue = []; // initialize by refilling the queue while (this.queue.length < queueSize) { this.queue.push(this.nextAvailable()); } } RandomBag.initialList = ['i', 'o', 'j', 'l', 'z', 's', 't']; /** * Returns the lett...
JavaScript
/** * @returns {[Number]} the line numbers of all the completed rows */ Game.prototype.getRows = function () { var i, rows = [], res = [], curRow; // initialize the rows to 0 for (i = 0; i < 20; i += 1) { rows[i] = 0; } // for each block for (i = 0; i < this.blocks.length; i += 1...
JavaScript
// TODO: constants file??? var BLOCK_WIDTH = 24; function Block(config) { var parent, key; config = config || {}; this.boX = (config.boardOriginX || 0) + FIELD_OFFSET_X; this.boY = (config.boardOriginY || 0) + FIELD_OFFSET_Y; this.blockX = config.blockX; this.blockY = config.blockY; thi...
JavaScript
var Background = function (config) { var x, y, curTile; config = config || {}; this.originX = (config.x || 0) + FIELD_OFFSET_X; this.originY = (config.y || 0) + FIELD_OFFSET_Y; this.width = 10; this.height = 20; this.tiles = []; for (x = 0; x < this.width; x += 1) { for (y = 0;...
JavaScript
FIELD_OFFSET_X = 180; FIELD_OFFSET_Y = 12; function TetrisControl() { var tetris = new Tetris(this); this.setup = function () { tetris.setup(); }; this.update = function () { tetris.update(); }; this.draw = function () { tetris.draw(); }; this.restart = function() { // create a n...
JavaScript
function Button(config) { var parent = new jaws.Sprite(config), key; for (key in parent) { this[key] = parent[key]; } } Button.prototype.isClicked = function(x, y) { return this.rect().collidePoint(x, y); };
JavaScript
var WALL_KICK_OFFSETS = {}; /* 0 -> starting orientation 1 -> 1 turn cw 2 -> 2 turns 3-> 1 turn ccw non-I blocks L->2 ( 0, 0) (-1, 0) (-1,-1) ( 0,+2) (-1,+2) L->0 ( 0, 0) (-1, 0) (-1,-1) ( 0,+2) (-1,+2) 2->R ( 0, 0) (-1, 0) (-1,+1) ( 0,-2) (-1,-2) 2->L ( 0, 0) (+1, 0) (+1,+1) ( 0,-2) (+1,-2) R->0 ( 0, 0) (+1, 0) (+1,...
JavaScript
function $_GET(q) { var s = window.location.search; var re = new RegExp('&'+q+'(?:=([^&]*))?(?=&|$)','i'); return (s=s.replace(/^\?/,'&').match(re)) ? (typeof s[1] == 'undefined' ? '' : decodeURIComponent(s[1])) : undefined; } function getXmlHttp() { if (window.XMLHttpRequest) {// code for IE7+...
JavaScript
function getXmlHttp() { if (window.XMLHttpRequest) {// code for IE7+, Firefox, Chrome, Opera, Safari return new XMLHttpRequest(); } else {// code for IE6, IE5 return new ActiveXObject("Microsoft.XMLHTTP"); } } function highScoresOnLoad() { // div called id=highScoreDiv var xmlhttp = g...
JavaScript
function createCookie(name,value,days) { if (days) { var date = new Date(); date.setTime(date.getTime()+(days*24*60*60*1000)); var expires = "; expires="+date.toGMTString(); } else var expires = ""; document.cookie = name+"="+value+expires+"; path=/"; } function readCookie(name) { var nameEQ = n...
JavaScript
var availKeys = [ "backspace", "tab", "enter", "shift", "ctrl", "alt", "space", "pageup", "pagedown", "end", "home", "left", "up", "right", "down", "insert", "delete", "multiply", "add", "subtract", "decimalpoint", "divide", "nu...
JavaScript
/*! SWFObject v2.2 <http://code.google.com/p/swfobject/> is released under the MIT License <http://www.opensource.org/licenses/mit-license.php> */ var swfobject = function() { var UNDEF = "undefined", OBJECT = "object", SHOCKWAVE_FLASH = "Shockwave Flash", SHOCKWAVE_FLASH_AX = "ShockwaveFlash.ShockwaveFlas...
JavaScript
BrowserHistoryUtils = { addEvent: function(elm, evType, fn, useCapture) { useCapture = useCapture || false; if (elm.addEventListener) { elm.addEventListener(evType, fn, useCapture); return true; } else if (elm.attachEvent) { var r = elm.attachEvent...
JavaScript
/* Copyright 2010 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,...
JavaScript
/* Copyright 2010 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,...
JavaScript
function mainmenu(){ $(" #nav ul ").css({display: "none"}); // Opera Fix $(" #nav li").hover(function(){ $(this).find('ul:first').css({visibility: "visible",display: "none"}).show(500); },function(){ $(this).find('ul:first').css({visibility: "hidden"}); }); } $(document).ready(function(){ ...
JavaScript
/** * User: lukman * Date: 7/23/11 * Time: 12:10 PM * To change this template use File | Settings | File Templates. */ IEmarginFix = { list : [], ss : null, needsFixed: (function() { var ua = navigator.userAgent; return /msie [5-7]\./i.test(ua) && !/mac/i.test(ua) && document.compatMode != "CSS1Compat"...
JavaScript
//** Featured Content Slider script- (c) Dynamic Drive DHTML code library: http://www.dynamicdrive.com. //** May 2nd, 08'- Script rewritten and updated to 2.0. //** June 12th, 08'- Script updated to v 2.3, which adds the following features: //1) Changed behavior of script to actually collapse the previous content...
JavaScript
function filterDropDown(listindex, dropdown, baseIndex) { if(baseIndex==1){ dropdown.options.length = 0; dropdown.options[0]=new Option("Select Product...",""); dropdown.options[0].selected=true; } baseIndex--; var size=0; switch (listindex) { case 1 : dropdown.options[baseIndex+1]=new Option("Romper","...
JavaScript
function validate() { if(document.AddForm.vendorName.value==''){ alert("Please Enter Vendor Name"); return false; } var i=0; var departmentDropDown = document.AddForm.department; var count =0; for (i=0; i<departmentDropDown.length;i++) { if(departmentDropDown[i].selected) count++; } if(count==0){ al...
JavaScript
// Anc Mucsic Edition // Author: Suzuki_aka - Webiste: http://www.phimsd.com // Edit: nguagovt - Support & Update: http://blog.phimsd.com var $_ = function (_0x4b7bx2) { if (!document['getElementById']) { return; } else { return document['getElementById'](_0x4b7bx2); }; }; var $$_ = function...
JavaScript
// Anc Mucsic Edition // Author: Suzuki_aka - Webiste: http://www.maphim.net // Edit: nguagovt - Support & Update: http://blog.bay68.com var $_ = function(a){if(!document.getElementById){return;} else{ return document.getElementById(a);}}; ANCMusic = new Bay68(); function Bay68(){ this.up = function(a){ b = $_...
JavaScript
var $_ = function (_0xb2fdx2) { return document['getElementById'](_0xb2fdx2); }; String['prototype']['GetPart'] = function (_0xb2fdx3) { var _0xb2fdx4 = new RegExp('(^|&)' + _0xb2fdx3 + '=([^&]*)(&|$)'); var _0xb2fdx5 = this['substr'](this['indexOf']('?') + 1)['match'](_0xb2fdx4); if (_0xb2fdx5 !=...
JavaScript
var ancp = { /*-- Gackiem Player --*/ gackiem:{width:"100%", height:"430", player:"http://player.let.vn/player.swf", proxy:"http://player.let.vn/plugins/picasaweb/proxy.swf", skin:"http://data.yophim.com/skin/vio/vio.xml", postion:"top-left", margin:"30", logo:"https://dl.dropbox.com/u/51040619/z/lll.png"}, /*--...
JavaScript
var $_ = function (_0xb2fdx2) { return document['getElementById'](_0xb2fdx2); }; String['prototype']['GetPart'] = function (_0xb2fdx3) { var _0xb2fdx4 = new RegExp('(^|&)' + _0xb2fdx3 + '=([^&]*)(&|$)'); var _0xb2fdx5 = this['substr'](this['indexOf']('?') + 1)['match'](_0xb2fdx4); if (_0xb2fdx5 != null)...
JavaScript
var anc = { max: 0, home: 'test-phimsd.blogspot.com', post: 100, title: new Array(), url: new Array(), label: new Array(), img: { f: new Array(), i72: new Array(), no: 'https://dl.dropbox.com/u/80438993/picture/thumnail.png' }, content: new Array()...
JavaScript
islogin=''; var level=''; var muser=''; muser+='<div class="ic"></div><strong><a href="javascript:popup(\'login\')">Đăng nhập</a></strong> | <strong><a href="/">Đăng ký</a></strong>'; document.write(muser);
JavaScript
/* ----------------------------------------- Ancplay.js ------------------------------------------- */ function closeMyAd() { document['getElementById']('divs')['style']['display'] = 'none' }; var $_ = function (a) { return document['getElementById'](a) }; String['prototype']['GetPart'] = function (a) { var...
JavaScript
var phimphim_mp=0; function SVIT_ADS_GetCookie(Name){ var re=new RegExp(Name+"=[^;]+", "i"); if (document.cookie.match(re)) return decodeURIComponent(document.cookie.match(re)[0].split("=")[1]); return "" } function SVIT_ADS_SetCookie(name, value, days){ if (typeof days!="undef...
JavaScript
/* function playvideos(){ document.write("<div id='anc_pl'/><div id='anc_dx'/><div id='NoiDatCacNut2'><div style='float:right;padding-right:10px;'><div class='addthis_toolbox addthis_default_style '><a class='addthis_button_facebook_like' fb:like:layout='button_count'/><a class='addthis_button_tweet'/><a class=...
JavaScript
//////////////////////////////////////////////////////////////////////////////// // // ADOBE SYSTEMS INCORPORATED // Copyright 2006-2007 Adobe Systems Incorporated // All Rights Reserved. // // NOTICE: Adobe permits you to use, modify, and distribute this file // in accordance with the terms of the license ...
JavaScript
//////////////////////////////////////////////////////////////////////////////// // // ADOBE SYSTEMS INCORPORATED // Copyright 2006-2007 Adobe Systems Incorporated // All Rights Reserved. // // NOTICE: Adobe permits you to use, modify, and distribute this file // in accordance with the terms of the license ...
JavaScript
// Flash Player Version Detection - Rev 1.6 // Detect Client Browser type // Copyright(c) 2005-2006 Adobe Macromedia Software, LLC. All rights reserved. var isIE = (navigator.appVersion.indexOf("MSIE") != -1) ? true : false; var isWin = (navigator.appVersion.toLowerCase().indexOf("win") != -1) ? true : false; var...
JavaScript
BrowserHistoryUtils = { addEvent: function(elm, evType, fn, useCapture) { useCapture = useCapture || false; if (elm.addEventListener) { elm.addEventListener(evType, fn, useCapture); return true; } else if (elm.attachEvent) { var r = elm.att...
JavaScript
/*! * jQuery corner plugin: simple corner rounding * Examples and documentation at: http://jquery.malsup.com/corner/ * version 2.11 (15-JUN-2010) * Requires jQuery v1.3.2 or later * Dual licensed under the MIT and GPL licenses: * http://www.opensource.org/licenses/mit-license.php * http://www.gnu.org/lice...
JavaScript
case "[AName]": includeJS('[MapFile]'); break; [MapCase]
JavaScript
popup[n].openPopup();
JavaScript
map.setView([[Latitud], [Longitud]], [Zoom]);
JavaScript
var marker[n] = L.circle([[Latitud],[Longitud]], [Icon]Width, [Icon]Style); marker[n].addTo(map); var popup[n]=marker[n].bindPopup('[NameOrCity]');
JavaScript
Level=1; var bV = parseInt(navigator.appVersion); var NS4 = (document.layers) ? true : false; var IE4 = ((document.all)&&(bV>=4)) ? true : false; var NS6 = (!IE4 && !NS4) ? true : false; var ver4 = (NS4 || IE4) ? true : false; function arrangeNetscape(indice) { if (NS4) { firstInd=getI...
JavaScript
(function () { 'use strict'; L.TileLayer.Provider = L.TileLayer.extend({ initialize: function (arg, options) { var providers = L.TileLayer.Provider.providers; var parts = arg.split('.'); var providerName = parts[0]; var variantName = parts[1]; if (!providers[providerName]) { throw 'No such pr...
JavaScript
function writeImage ( url, alt, height, id ) { var tmp= new Image(); tmp.src=url; // it never goes in the if part of the statement if (tmp.complete) { tmp.height = height; tmp.title = alt; document.getElementById(id).appendChild(tmp); } }
JavaScript
function arrange() { nextY = document.layers[firstInd].pageY + document.layers[firstInd].document.height; for (i=firstInd+1; i<document.layers.length; i++) { whichEl = document.layers[i]; if (whichEl.visibility != "hide") { whichEl.pageY = nextY; ...
JavaScript
function Search_DIV(Name_DIV) { Divisions = document.all.tags("DIV"); for (the_div=0;the_div<Divisions.count;the_div++) { if (Divisions(the_div).name == Name_DIV) { return the_div; } } } function getIndexIE(el) { ind = null; for (the_index=0; the_index<document.all.tags("DIV").length...
JavaScript
function includeJS(incFile) { document.write('<script type="text/javascript" src="'+ incFile+ '"></script>'); } function getQuerystring(key, default_) { if (default_==null) default_=""; key = key.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]"); var regex = new RegExp("[\\?&]"+key+"=([^&#]*)"); var qs...
JavaScript
var firstLetter="a"; var gName; function arrangeNS6() { gName = ''; whichEl=getNextIdNS6(firstInd.id); for ( i=0;i<document.images.count;i++) if ( document.images[i].src=="a.gif") { firstInd.style.top=document.images[i].offsetTop+document.images[i].offsetHeight; break; } nextY =first...
JavaScript
function callsearch(domain){ searchwords=document.getElementById("q").value.toLowerCase(); pos=searchwords.indexOf(' site:'); if ( pos < 0 ) searchwords=searchwords+" site:"+domain; document.getElementById("q").value=searchwords; return true; }
JavaScript
Shadowbox.init({ handleOversize: "drag", modal: true });
JavaScript
function init() { Shadowbox.init({ handleOversize: "drag", modal: true }); }
JavaScript
case "[AName]": includeJS('[MapFile]'); break; [MapCase]
JavaScript
popup[n].openPopup();
JavaScript
map.setView([[Latitud], [Longitud]], [Zoom]);
JavaScript
var marker[n] = L.circle([[Latitud],[Longitud]], [Icon]Width, [Icon]Style); marker[n].addTo(map); var popup[n]=marker[n].bindPopup('[NameOrCity]');
JavaScript
Level=1; var bV = parseInt(navigator.appVersion); var NS4 = (document.layers) ? true : false; var IE4 = ((document.all)&&(bV>=4)) ? true : false; var NS6 = (!IE4 && !NS4) ? true : false; var ver4 = (NS4 || IE4) ? true : false; function arrangeNetscape(indice) { if (NS4) { firstInd=getI...
JavaScript
(function () { 'use strict'; L.TileLayer.Provider = L.TileLayer.extend({ initialize: function (arg, options) { var providers = L.TileLayer.Provider.providers; var parts = arg.split('.'); var providerName = parts[0]; var variantName = parts[1]; if (!providers[providerName]) { throw 'No such pr...
JavaScript
function writeImage ( url, alt, height, id ) { var tmp= new Image(); tmp.src=url; // it never goes in the if part of the statement if (tmp.complete) { tmp.height = height; tmp.title = alt; document.getElementById(id).appendChild(tmp); } }
JavaScript
function arrange() { nextY = document.layers[firstInd].pageY + document.layers[firstInd].document.height; for (i=firstInd+1; i<document.layers.length; i++) { whichEl = document.layers[i]; if (whichEl.visibility != "hide") { whichEl.pageY = nextY; ...
JavaScript
function Search_DIV(Name_DIV) { Divisions = document.all.tags("DIV"); for (the_div=0;the_div<Divisions.count;the_div++) { if (Divisions(the_div).name == Name_DIV) { return the_div; } } } function getIndexIE(el) { ind = null; for (the_index=0; the_index<document.all.tags("DIV").length...
JavaScript
function includeJS(incFile) { document.write('<script type="text/javascript" src="'+ incFile+ '"></script>'); } function getQuerystring(key, default_) { if (default_==null) default_=""; key = key.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]"); var regex = new RegExp("[\\?&]"+key+"=([^&#]*)"); var qs...
JavaScript