code
stringlengths
1
2.08M
language
stringclasses
1 value
var curr_page = 1; var per_page = 16; var num_pages = Math.ceil(searchresults.length / per_page); if(num_pages == 0){ num_pages = 1; } function makePaginator(){ $("#paginator").paginate({ count: num_pages, start: curr_page, display: 5, border: true, border_color: '#CD9F33', text_color: ...
JavaScript
// areas is a variable containing all the areas available in the database //var areas_preference = new Array (); // area object function area (area_id, area_name) { this.area_id = area_id; this.area_name = area_name; } // area sorting function function sort_area(a,b) { return a.area_name > b.area_name...
JavaScript
function slider(){ var currentPosition = 0; var slideWidth = 800; var slides = $('.slide'); var numberOfSlides = slides.length; // Wrap all .slides with #slideInner div slides.wrapAll('<div id="slideInner"></div>') // Float left to display horizontally, readjust .slides width .css({ 'float' : 'left', ...
JavaScript
var offer_curr_page = 1; var offers_per_page = 5; var offers_num_pages = Math.ceil(offers.length / offers_per_page); if(offers_num_pages == 0){ offers_num_pages = 1; } var request_curr_page = 1; var requests_per_page = 5; var requests_num_pages = Math.ceil(requests.length / requests_per_page); if(requests_n...
JavaScript
// onselect year function change_age_month_box() { var age_year = document.getElementById('age_year'); var age_year_label = document.getElementById('age_year_label'); var age_month = document.getElementById('age_month'); // remove the month_box when year is > 3. if (age_year.value > 3) { $('label[for="age...
JavaScript
/*! * jQuery Form Plugin * version: 2.84 (12-AUG-2011) * @requires jQuery v1.3.2 or later * * Examples and documentation at: http://malsup.com/jquery/form/ * Dual licensed under the MIT and GPL licenses: * http://www.opensource.org/licenses/mit-license.php * http://www.gnu.org/licenses/gpl.html */ ;(functi...
JavaScript
function search() { var temp = document.getElementById('choose_category'); var category = temp.value; var temp = document.getElementById('choose_location'); var location = temp.value; $.ajax({ url : base_url + "alternatives/sort/"+category + "/" + location, type : 'post', dataType : 'json', suc...
JavaScript
function submitwant() { cat = document.getElementById('input_category_id'); desc = document.getElementById('textfield'); $.ajax({ url : base_url + "wants/submitwant", type : 'post', data : { category : cat.value, desc : desc.value, }, dataType : 'json', success : function (res...
JavaScript
var curr_page = 1; var per_page = 10; var num_pages = Math.ceil(searchresults.length / per_page); if(num_pages == 0){ num_pages = 1; } function makePaginator(){ $("#paginator").paginate({ count: num_pages, start: curr_page, display: 5, border: true, border_color: '#CD9F33', text_color: ...
JavaScript
(function($) { $.fn.paginate = function(options) { var opts = $.extend({}, $.fn.paginate.defaults, options); return this.each(function() { $this = $(this); var o = $.meta ? $.extend({}, opts, $this.data()) : opts; var selectedpage = o.start; $.fn.draw(o,$this,selectedpage); }); }; var ou...
JavaScript
function cancel_offer(id, status) { switch(status) { case "Available": var $dialog = $('<div></div>') .html('There may be people interested in your item. Are you sure you want to remove this offer?') .dialog({ modal: 'true', title : 'Remove Offer', buttons : { 'Yes'...
JavaScript
$(function() { $( "#tabs" ).tabs(); });
JavaScript
function submitsearch() { c = document.getElementById('category_id'); s = document.getElementById('searchfield'); sb = document.getElementById('sort_by'); p = document.getElementById('price'); show = document.getElementById('show'); prefer = document.getElementById('preference'); $.ajax({ url : b...
JavaScript
$(document).ready(function() { $('#userfile').live('change', function() { $("#image_preview").html(''); $("#image_preview").html('<img src="../resources/loader.gif" alt="Uploading...."/>'); $("#offer-form").ajaxForm({ target: '#image_preview' }).submit(); }); });
JavaScript
function give_offer(offer, fb_id) { var $dialog = $('<div></div>') .html('Are you sure you want to give this offer to this person?') .dialog({ modal: 'true', title : 'Give Offer', buttons : { 'Yes' : function() { $.ajax({ url : "giveoffer/", type : 'post...
JavaScript
function replaceIdByName() { $(".get-fb-name").each(function(index, domEle) { var link = "/" + $(this).html(); FB.api(link, function(response) { // Update the names $(domEle).html(response.name); $(domEle).show(); }); }); } function replaceIdByPic() { $(".get-fb-pic").each(function(index,...
JavaScript
var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-26642138-1']); _gaq.push(['_trackPageview']); (function() { var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google...
JavaScript
// categories is a variable containing all the category available in the database //var category_preference = new Array (); // category object function category (category_id, category_name) { this.category_id = category_id; this.category_name = category_name; } // category sorting function function sort_c...
JavaScript
// Set star image when mouse hovers $('.ratings_stars').hover( // Handles the mouseover function() { $(this).prevAll().andSelf().addClass('ratings_over'); $(this).nextAll().removeClass('ratings_vote'); }, // Handles the mouseout function() { $(this).prevAll().andSelf().removeClass('ratings_over'); ...
JavaScript
//Display the star using the condition function set_votes() { var condition = document.getElementById('item_condition').value; $('.rate_widget').find('.star_' + condition).prevAll().andSelf().addClass('ratings_vote'); $('.rate_widget').find('.star_' + condition).nextAll().removeClass('ratings_vote'); } $...
JavaScript
var notifications_per_page = 12; var num_pages = Math.ceil(notifications.length / notifications_per_page); var default_page = 1; if(num_pages == 0){ num_pages = 1; } function date_format(date){ return date.substr(8, 2) + "/" + date.substr(5, 2) + "/" + date.substr(0, 4); } function displayPage(page){ ...
JavaScript
var offer_curr_page = 1; var offers_per_page = 3; var offers_num_pages = Math.ceil(offers.length / offers_per_page); if(offers_num_pages == 0){ offers_num_pages = 1; } var request_curr_page = 1; var requests_per_page = 3; var requests_num_pages = Math.ceil(requests.length / requests_per_page); if(requests_n...
JavaScript
<script> alert('123'); </script>
JavaScript
/******************************************************************** * openWYSIWYG v1.47 Copyright (c) 2006 openWebWare.com * Contact us at [email protected] * This copyright notice MUST stay intact for use. * * $Id: wysiwyg.js,v 1.22 2007/09/08 21:45:57 xhaggi Exp $ * $Revision: 1.22 $ * * An open...
JavaScript
/******************************************************************** * openWYSIWYG settings file Copyright (c) 2006 openWebWare.com * Contact us at [email protected] * This copyright notice MUST stay intact for use. * * $Id: wysiwyg-settings.js,v 1.4 2007/01/22 23:05:57 xhaggi Exp $ ********************...
JavaScript
/******************************************************************** * openWYSIWYG popup functions Copyright (c) 2006 openWebWare.com * Contact us at [email protected] * This copyright notice MUST stay intact for use. * * $Id: wysiwyg-popup.js,v 1.2 2007/01/22 23:45:30 xhaggi Exp $ *********************...
JavaScript
/******************************************************************** * openWYSIWYG color chooser Copyright (c) 2006 openWebWare.com * Contact us at [email protected] * This copyright notice MUST stay intact for use. * * $Id: wysiwyg-color.js,v 1.1 2007/01/29 19:19:49 xhaggi Exp $ ***********************...
JavaScript
<script> function abc() { alert('123'); } </script>
JavaScript
/* Copyright (c) 2007 Paul Bakaus ([email protected]) and Brandon Aaron ([email protected] || http://brandonaaron.net) * Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php) * and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses. * * $LastChangedDate: 2007...
JavaScript
// JavaScript Document /*! Copyright (c) 2009 Brandon Aaron (http://brandonaaron.net) * Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php) * and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses. * Thanks to: http://adomas.org/javascript-mouse-wheel/ for some pointer...
JavaScript
/* * jQuery Easing v1.3 - http://gsgd.co.uk/sandbox/jquery/easing/ * * Uses the built in easing capabilities added In jQuery 1.1 * to offer multiple easing options * * TERMS OF USE - jQuery Easing * * Open source under the BSD License. * * Copyright © 2008 George McGinley Smith * All rights res...
JavaScript
/***************************************************************************** Copyright (C) 2006 Nick Baicoianu This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License...
JavaScript
/* * jQuery-lazyload-any v0.1.6 * https://github.com/emn178/jquery-lazyload-any * * Copyright 2014, [email protected] * * Licensed under the MIT license: * http://www.opensource.org/licenses/MIT */ ;(function($, window, document, undefined) { var KEY = 'jquery-lazyload-any'; var EVENT = 'appear'; var SELEC...
JavaScript
/* * Treeview 1.5pre - 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
(function(root, factory) { if(typeof exports === 'object') { module.exports = factory(); } else if(typeof define === 'function' && define.amd) { define('salvattore', [], factory); } else { root.salvattore = factory(); } }(this, function() { /*! matchMedia() pol...
JavaScript
(function(){ //get the background-color for each tile and apply it as background color for the cooresponding screen $('.tile').each(function(){ var $this= $(this), page = $this.data('page-name'), bgcolor = $this.css('background-color'), textColor = $this.css('color');...
JavaScript
/* StreamWave Flash Title Widget _ Javascript for Embedding 2008. 10. 29. scripted by MinsangK (http://minsangk.com) */ // main function function showTitle(srcUrl, srcFilename, width, height, titleStr, linkStr, hAlign, tColor) { var str = "<embed id=\"viewTitle\" name=\"viewTitle\" type=\"appli...
JavaScript
/** * Cookie plugin * * Copyright (c) 2006 Klaus Hartl (stilbuero.de) * Dual licensed under the MIT and GPL licenses: * http://www.opensource.org/licenses/mit-license.php * http://www.gnu.org/licenses/gpl.html * */ /** * Create a cookie with the given name and value and other optional parameters. * * @examp...
JavaScript
$(document).ready(function(){ // first example $("#browser").treeview(); // second example $("#navigation").treeview({ persist: "location", collapsed: true, unique: true }); // third example $("#red").treeview({ animated: "fast", collapsed: true, unique: true, persist: "cookie", toggle: fun...
JavaScript
/* Set the defaults for DataTables initialisation */ $.extend( true, $.fn.dataTable.defaults, { "sDom": "<'row-fluid'<'span6'l><'span6'f>r>t<'row-fluid'<'span6'i><'span6'p>>", "sPaginationType": "bootstrap", "oLanguage": { "sLengthMenu": "_MENU_ records per page" } } ); /* Default class modification */ $.extend...
JavaScript
var FormValidation = function () { var handleValidation1 = function() { // for more info visit the official plugin documentation: // http://docs.jquery.com/Plugins/Validation var form1 = $('#form_sample_1'); var error1 = $('.alert-error', form1); var succes...
JavaScript
$(function() { // Side Bar Toggle $('.hide-sidebar').click(function() { $('#sidebar').hide('fast', function() { $('#content').removeClass('span9'); $('#content').addClass('span12'); $('.hide-sidebar').hide(); $('.show-sidebar').show(); }); }); $('.show-sidebar').click(function() { $('...
JavaScript
/** * Galleria v 1.3.6 2014-06-23 * http://galleria.io * * Licensed under the MIT license * https://raw.github.com/aino/galleria/master/LICENSE * */ (function( $, window, Galleria, undef ) { /*global jQuery, navigator, Image, module, define */ // some references var doc = window.document, $doc = $( d...
JavaScript
/** * Galleria Classic Theme 2012-08-08 * http://galleria.io * * Licensed under the MIT license * https://raw.github.com/aino/galleria/master/LICENSE * */ (function($) { /*global window, jQuery, Galleria */ Galleria.addTheme({ name: 'classic', author: 'Galleria', css: 'galleria.classic.css', d...
JavaScript
AmCharts.themes.dark = { themeName: "dark", AmChart: { color: "#e7e7e7" }, AmCoordinateChart: { colors: ["#ae85c9", "#aab9f7", "#b6d2ff", "#c9e6f2", "#c9f0e1", "#e8d685", "#e0ad63", "#d48652", "#d27362", "#495fba", "#7a629b", "#8881cc"] }, AmStockChart: { colors: ["#639dbd", "#e8d685", "#ae...
JavaScript
AmCharts.themes.light = { themeName:"light", AmChart: { color: "#000000" }, AmCoordinateChart: { colors: ["#67b7dc", "#fdd400", "#84b761", "#cc4748", "#cd82ad", "#2f4074", "#448e4d", "#b7b83f", "#b9783f", "#b93e3d", "#913167"] }, AmStockChart: { colors: ["#67b7dc", "#fdd400", "#84b761", "#c...
JavaScript
AmCharts.themes.chalk = { themeName: "chalk", AmChart: { color: "#e7e7e7", fontFamily: "Covered By Your Grace", fontSize: 18, handDrawn: true }, AmCoordinateChart: { colors: ["#FFFFFF", "#e384a6", "#f4d499", "#4d90d6", "#c7e38c", "#9986c8", "#edf28c", "#ffd1d4", "#5ee1dc", "#b0eead", "#fef8...
JavaScript
AmCharts.themes.black = { themeName: "black", AmChart: { color: "#e7e7e7" }, AmCoordinateChart: { colors: ["#de4c4f", "#d8854f", "#eea638", "#a7a737", "#86a965", "#8aabb0", "#69c8ff", "#cfd27e", "#9d9888", "#916b8a", "#724887", "#7256bc"] }, AmStockChart: { colors: ["#de4c4f", "#d8854f", "#...
JavaScript
// (c) ammap.com | SVG (in JSON format) map of Belgium // areas: {id:"BE-VAN"},{id:"BE-BWR"},{id:"BE-BRU"},{id:"BE-WHT"},{id:"BE-WLG"},{id:"BE-VLI"},{id:"BEW-LX"},{id:"BE-WNA"},{id:"BE-VOV"},{id:"BE-VBR"},{id:"BE-VWV"} AmCharts.maps.belgiumLow={ "svg": { "defs": { "amcharts:ammap": { "projection":"mercator",...
JavaScript
AmCharts.mapTranslations.gv = {"United Kingdom":"Rywvaneth Unys"}
JavaScript
AmCharts.mapTranslations.ky = {"Kyrgyzstan":"Кыргызстан"}
JavaScript
AmCharts.mapTranslations.rw = {"Tonga":"Igitonga"}
JavaScript
AmCharts.mapTranslations.si = {"Sri Lanka":"ශ්‍රී ලංකාව"}
JavaScript
AmCharts.mapTranslations.dv = {"Maldives":"ދިވެހި ރާއްޖެ"}
JavaScript
AmCharts.mapTranslations.yo = {"Botswana":"BW","Nigeria":"NG","Tonga":"Tonga"}
JavaScript
AmCharts.mapTranslations.tg = {"Afghanistan":"Афғонистан","Tonga":"Тонга"}
JavaScript
AmCharts.mapTranslations.tt = {"Russia":"Россия"}
JavaScript
AmCharts.mapTranslations.sa = {"India":"भारतम्"}
JavaScript
AmCharts.mapTranslations.ku = {"Africa":"Cîhan","Turkey":"Tirkiye"}
JavaScript
AmCharts.mapTranslations.kw = {"United Kingdom":"Rywvaneth Unys"}
JavaScript
AmCharts.mapTranslations.ha = {"Ghana":"Gaana","Niger":"Nijer","Nigeria":"Nijeriya"}
JavaScript
AmCharts.mapTranslations.kk = {"Kazakhstan":"Қазақстан","Tonga":"Тонга"}
JavaScript
AmCharts.mapTranslations.kl = {"Greenland":"Kalaallit Nunaat"}
JavaScript
AmCharts.mapTranslations.kok = {"India":"भारत"}
JavaScript
AmCharts.mapTranslations.syr = {"Syria":"ܣܘܪܝܝܐ"}
JavaScript
AmCharts.mapTranslations.zu = {"South Africa":"iNingizimu Afrika"}
JavaScript
(function($) { var aux = { // navigates left / right navigate : function( dir, $el, $wrapper, opts, cache ) { var scroll = opts.scroll, factor = 1, idxClicked = 0; if( cache.expanded ) { scroll = 1; // scroll is always 1 in full mode factor = 3; // the width...
JavaScript
/* Plugin: 3D Tag Sphere Version: 0.1 Author: Ian George Website: http://www.iangeorge.net Tools: Emacs, js2-mode Tested on: IE6, IE7, IE8, Firefox 3.6 Linux, Firefox 3.5 Windows, Chrome Linux / Windows Requirements: Optional jquery.mousewheel for zooming Description: 3d tag cloud, rotates with the mouse and zooms in ...
JavaScript
/** * SWFObject v1.4: Flash Player detection and embed - http://blog.deconcept.com/swfobject/ * * SWFObject is (c) 2006 Geoff Stearns and is released under the MIT License: * http://www.opensource.org/licenses/mit-license.php * * **SWFObject is the SWF embed script formarly known as FlashObject. The name wa...
JavaScript
// Copyright 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 to in wr...
JavaScript
/*! Copyright (c) 2010 Brandon Aaron (http://brandonaaron.net) * Licensed under the MIT License (LICENSE.txt). * * Thanks to: http://adomas.org/javascript-mouse-wheel/ for some pointers. * Thanks to: Mathias Bank(http://www.mathias-bank.de) for a scope bug fix. * Thanks to: Seamus Leahy for adding deltaX and delta...
JavaScript
/** * Copyright (C) 2010-2013 Graham Breach * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This pr...
JavaScript
/** * LavaLamp - A menu plugin for jQuery with cool hover effects. * @requires jQuery v1.1.3.1 or above * * http://gmarwaha.com/blog/?p=7 * * Copyright (c) 2007 Ganeshji Marwaha (gmarwaha.com) * Dual licensed under the MIT and GPL licenses: * http://www.opensource.org/licenses/mit-license.php * http:/...
JavaScript
jvm.VMLGroupElement = function(){ jvm.VMLGroupElement.parentClass.call(this, 'group'); this.node.style.left = '0px'; this.node.style.top = '0px'; this.node.coordorigin = "0 0"; }; jvm.inherits(jvm.VMLGroupElement, jvm.VMLElement); jvm.VMLGroupElement.prototype.add = function(element){ this.node.appendChild...
JavaScript
/** * Wrapper for VML element. * @constructor * @extends jvm.AbstractElement * @param {String} name Tag name of the element * @param {Object} config Set of parameters to initialize element with */ jvm.VMLElement = function(name, config){ if (!jvm.VMLElement.VMLInitialized) { jvm.VMLElement.initializeVML();...
JavaScript
jvm.VMLCircleElement = function(config, style){ jvm.VMLCircleElement.parentClass.call(this, 'oval', config, style); }; jvm.inherits(jvm.VMLCircleElement, jvm.VMLShapeElement); jvm.VMLCircleElement.prototype.applyAttr = function(attr, value){ switch (attr) { case 'r': this.node.style.width = value*2+'px'...
JavaScript
/** * Implements abstract vector canvas. * @constructor * @param {HTMLElement} container Container to put element to. * @param {Number} width Width of canvas. * @param {Number} height Height of canvas. */ jvm.AbstractCanvasElement = function(container, width, height){ this.container = container; this.setSize(...
JavaScript
/** * Wrapper for SVG element. * @constructor * @extends jvm.AbstractElement * @param {String} name Tag name of the element * @param {Object} config Set of parameters to initialize element with */ jvm.SVGElement = function(name, config){ jvm.SVGElement.parentClass.apply(this, arguments); } jvm.inherits(jvm.SV...
JavaScript
jvm.SVGGroupElement = function(){ jvm.SVGGroupElement.parentClass.call(this, 'g'); } jvm.inherits(jvm.SVGGroupElement, jvm.SVGElement); jvm.SVGGroupElement.prototype.add = function(element){ this.node.appendChild( element.node ); };
JavaScript
/** * Creates data series. * @constructor * @param {Object} params Parameters to initialize series with. * @param {Array} params.values The data set to visualize. * @param {String} params.attribute Numberic or color attribute to use for data visualization. This could be: <code>fill</code>, <code>stroke</code>, <co...
JavaScript
jvm.VMLPathElement = function(config, style){ var scale = new jvm.VMLElement('skew'); jvm.VMLPathElement.parentClass.call(this, 'shape', config, style); this.node.coordorigin = "0 0"; scale.node.on = true; scale.node.matrix = '0.01,0,0,0.01,0,0'; scale.node.offset = '0,0'; this.node.appendChild(scale....
JavaScript
/** * Basic wrapper for DOM element. * @constructor * @param {String} name Tag name of the element * @param {Object} config Set of parameters to initialize element with */ jvm.AbstractElement = function(name, config){ /** * Underlying DOM element * @type {DOMElement} * @private */ this.node = this....
JavaScript
jvm.OrdinalScale = function(scale){ this.scale = scale; }; jvm.OrdinalScale.prototype.getValue = function(value){ return this.scale[value]; };
JavaScript
/** * Abstract shape element. Shape element represents some visual vector or raster object. * @constructor * @param {String} name Tag name of the element. * @param {Object} config Set of parameters to initialize element with. * @param {Object} style Object with styles to set on element initialization. */ jvm.Abst...
JavaScript
jvm.SVGShapeElement = function(name, config, style){ jvm.SVGShapeElement.parentClass.call(this, name, config); jvm.AbstractShapeElement.apply(this, arguments); }; jvm.inherits(jvm.SVGShapeElement, jvm.SVGElement); jvm.mixin(jvm.SVGShapeElement, jvm.AbstractShapeElement);
JavaScript
/** * @namespace jvm Holds core methods and classes used by jVectorMap. */ var jvm = { /** * Inherits child's prototype from the parent's one. * @param {Function} child * @param {Function} parent */ inherits: function(child, parent) { function temp() {} temp.prototype = parent.prototype; ...
JavaScript
jvm.SVGCircleElement = function(config, style){ jvm.SVGCircleElement.parentClass.call(this, 'circle', config, style); }; jvm.inherits(jvm.SVGCircleElement, jvm.SVGShapeElement);
JavaScript
/** * Class for vector images manipulations. * @constructor * @param {DOMElement} container to place canvas to * @param {Number} width * @param {Number} height */ jvm.VectorCanvas = function(container, width, height) { this.mode = window.SVGAngle ? 'svg' : 'vml'; if (this.mode == 'svg') { this.impl = new ...
JavaScript
jvm.SVGPathElement = function(config, style){ jvm.SVGPathElement.parentClass.call(this, 'path', config, style); this.node.setAttribute('fill-rule', 'evenodd'); } jvm.inherits(jvm.SVGPathElement, jvm.SVGShapeElement);
JavaScript
jvm.ColorScale = function(colors, normalizeFunction, minValue, maxValue) { jvm.ColorScale.parentClass.apply(this, arguments); } jvm.inherits(jvm.ColorScale, jvm.NumericScale); jvm.ColorScale.prototype.setScale = function(scale) { var i; for (i = 0; i < scale.length; i++) { this.scale[i] = jvm.ColorScale.rg...
JavaScript
jvm.SimpleScale = function(scale){ this.scale = scale; }; jvm.SimpleScale.prototype.getValue = function(value){ return value; };
JavaScript
jvm.NumericScale = function(scale, normalizeFunction, minValue, maxValue) { this.scale = []; normalizeFunction = normalizeFunction || 'linear'; if (scale) this.setScale(scale); if (normalizeFunction) this.setNormalizeFunction(normalizeFunction); if (minValue) this.setMin(minValue); if (maxValue) this.setM...
JavaScript
/** * Contains methods for transforming point on sphere to * Cartesian coordinates using various projections. * @class */ jvm.Proj = { degRad: 180 / Math.PI, radDeg: Math.PI / 180, radius: 6381372, sgn: function(n){ if (n > 0) { return 1; } else if (n < 0) { return -1; } else { ...
JavaScript
jvm.VMLShapeElement = function(name, config){ jvm.VMLShapeElement.parentClass.call(this, name, config); this.fillElement = new jvm.VMLElement('fill'); this.strokeElement = new jvm.VMLElement('stroke'); this.node.appendChild(this.fillElement.node); this.node.appendChild(this.strokeElement.node); this.node.s...
JavaScript
jvm.VMLCanvasElement = function(container, width, height){ this.classPrefix = 'VML'; jvm.VMLCanvasElement.parentClass.call(this, 'group'); jvm.AbstractCanvasElement.apply(this, arguments); this.node.style.position = 'absolute'; }; jvm.inherits(jvm.VMLCanvasElement, jvm.VMLElement); jvm.mixin(jvm.VMLCanvasEleme...
JavaScript
/** * Creates map, draws paths, binds events. * @constructor * @param {Object} params Parameters to initialize map with. * @param {String} params.map Name of the map in the format <code>territory_proj_lang</code> where <code>territory</code> is a unique code or name of the territory which the map represents (ISO 31...
JavaScript
jvm.SVGCanvasElement = function(container, width, height){ this.classPrefix = 'SVG'; jvm.SVGCanvasElement.parentClass.call(this, 'svg'); jvm.AbstractCanvasElement.apply(this, arguments); } jvm.inherits(jvm.SVGCanvasElement, jvm.SVGElement); jvm.mixin(jvm.SVGCanvasElement, jvm.AbstractCanvasElement); jvm.SVGCanv...
JavaScript
/* * jQuery Easing v1.3 - http://gsgd.co.uk/sandbox/jquery/easing/ * * Uses the built in easing capabilities added In jQuery 1.1 * to offer multiple easing options * * TERMS OF USE - jQuery Easing * * Open source under the BSD License. * * Copyright © 2008 George McGinley Smith * All rights reserved. * ...
JavaScript
$(document).ready(function() { $('.single-item').slick({ dots: true, infinite: true, speed: 300, slidesToShow: 1, slidesToScroll: 1 }); $('.multiple-items').slick({ dots: true, infinite: true, speed: 300, slidesToShow: 3, slides...
JavaScript
/** * Creates a new Floor. * @constructor * @param {google.maps.Map=} opt_map */ function Floor(opt_map) { /** * @type Array.<google.maps.MVCObject> */ this.overlays_ = []; /** * @type boolean */ this.shown_ = true; if (opt_map) { this.setMap(opt_map); } } /** * @param {google.maps.M...
JavaScript