code
stringlengths
1
2.08M
language
stringclasses
1 value
/*global module:false*/ module.exports = function(grunt) { // Project configuration. grunt.initConfig({ pkg: '<json:package.json>', meta: { banner: '/*! <%= pkg.title || pkg.name %> - v<%= pkg.version %> - ' + '<%= grunt.template.today("yyyy-mm-dd") %>\n' + '<%= pkg.homepage ? "* " + pkg.home...
JavaScript
/** * jQuery list plug-in 1.2.1 * Copyright 2012, Digital Fusion * Licensed under the MIT license. * http://teamdf.com/jquery-plugins/license/ * * @author Sam Sehnert, Phil Taylor */ (function($){ "use strict"; // The name of your plugin. This is used to namespace your // plugin methods, objec...
JavaScript
!function ($) { "use strict"; // version: 2.8.2 // by Mattia Larentis - follow me on twitter! @SpiritualGuru var addToAttribute = function (obj, array, value) { var i = 0 , length = array.length; for (; i < length; i++) { obj = obj[array[i]] = obj[array[i]] || i == ( length - 1) ...
JavaScript
/* ListJS Beta 0.2.0 By Jonny Strömberg (www.jonnystromberg.com, www.listjs.com) OBS. The API is not frozen. It MAY change! License (MIT) Copyright (c) 2011 Jonny Strömberg http://jonnystromberg.com Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associat...
JavaScript
List.prototype.plugins.paging = function(locals, options) { var list = this; var pagingList; var init = function() { options = options || {}; pagingList = new List(list.listContainer.id, { listClass: options.pagingClass || 'paging', item: "<li><div class='page'...
JavaScript
/** * Locate the best instance of 'pattern' in 'text' using the Bitap algorithm. * * This method is a based on: Diff Match and Patch * http://code.google.com/p/google-diff-match-patch/ * Author: fraser@google.com (Neil Fraser) * Modifications by: l.vanegeraat@gmail.com (Luuk van Egeraat) * Plugin by: jonn...
JavaScript
(function ($) { /** * Augment jQuery prototype. */ $.fn.antiscroll = function (options) { return this.each(function () { if ($(this).data('antiscroll')) { $(this).data('antiscroll').destroy(); } $(this).data('antiscroll', new $.Antiscroll(this, options)); })...
JavaScript
/* jQuery Tag Handler v1.3.1 Copyright (C) 2010-2011 Mark Jubenville Mark Jubenville - ioncache@gmail.com http://ioncache.github.com/Tag-Handler Development time supported by: Raybec Communications http://www.raybec.com http://www.mysaleslink.com Modified by Javier Fernandez Escribano - fesjav@gmai...
JavaScript
/* * MultiSelect v0.9.5 * Copyright (c) 2012 Louis Cuny * * This program is free software. It comes without any warranty, to * the extent permitted by applicable law. You can redistribute it * and/or modify it under the terms of the Do What The Fuck You Want * To Public License, Version 2, as published by Sam Ho...
JavaScript
(function($, window, document, undefined) { $.fn.quicksearch = function (target, opt) { var timeout, cache, rowcache, jq_results, val = '', e = this, options = $.extend({ delay: 100, selector: null, stripeRows: null, loader: null, noResults: '', matchedResultsCount: 0, bind: 'keyup...
JavaScript
// moment.js // version : 1.6.2 // author : Tim Wood // license : MIT // momentjs.com (function (Date, undefined) { var moment, VERSION = "1.6.2", round = Math.round, i, // internal storage for language config files languages = {}, currentLanguage = 'en', ...
JavaScript
/* Uniform v1.8.0 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 ...
JavaScript
/** Address editable input. Internally value stored as {city: "Moscow", street: "Lenina", building: "15"} @class address @extends abstractinput @final @example <a href="#" id="address" data-type="address" data-pk="1">awesome</a> <script> $(function(){ $('#address').editable({ url: '/post', ...
JavaScript
/** Bootstrap wysihtml5 editor. Based on [bootstrap-wysihtml5](https://github.com/jhollingworth/bootstrap-wysihtml5). You should include this input **manually** with dependent js and css files from `inputs-ext` directory. <link href="js/inputs-ext/wysihtml5/bootstrap-wysihtml5-0.0.2/bootstrap-wysihtml5-0.0.2...
JavaScript
/* http://github.com/danpalmer/jquery.complexify.js This code is distributed under the WTFPL v2: */ (function ($) { $.fn.extend({ complexify: function(options, callback) { var MIN_COMPLEXITY = 49; // 12 chars with Upper, Lower and Number var MAX_COMPLEXITY = 120; // 25 chars, all charsets var CHARSETS...
JavaScript
/** @preserve CLEditor BBCode Plugin v1.0.0 http://premiumsoftware.net/cleditor requires CLEditor v1.3.0 or later Copyright 2010, Chris Landowski, Premium Software, LLC Dual licensed under the MIT or GPL Version 2 licenses. */ // ==ClosureCompiler== // @compilation_level SIMPLE_OPTIMIZATIONS // @out...
JavaScript
/** @preserve CLEditor Icon Plugin v1.0 http://premiumsoftware.net/cleditor requires CLEditor v1.2 or later Copyright 2010, Chris Landowski, Premium Software, LLC Dual licensed under the MIT or GPL Version 2 licenses. */ // ==ClosureCompiler== // @compilation_level SIMPLE_OPTIMIZATIONS // @output_fi...
JavaScript
/** @preserve CLEditor WYSIWYG HTML Editor v1.3.0 http://premiumsoftware.net/cleditor requires jQuery v1.4.2 or later Copyright 2010, Chris Landowski, Premium Software, LLC Dual licensed under the MIT or GPL Version 2 licenses. */ // ==ClosureCompiler== // @compilation_level SIMPLE_OPTIMIZATIONS // @...
JavaScript
/* [ ---- Gebo Admin Panel - common ---- ] */ //* detect touch devices function is_touch_device() { return !!('ontouchstart' in window); } $(document).ready(function() { //* search typeahead $('.search_query').typeahead({ source: ["Alabama","Alaska","Arizona","Arkansas","California","Colorad...
JavaScript
/** * jQuery Bacheca * Plugin Dimostrativo */ ;(function($){ /** * DOM Initialization Logic */ var __loop = function( cfg, i ) { var $this = $(this), wdg = $this.data( 'MediaTable' ); // Prevent re-initialization of the widget! if ( !$.isEmptyObject(wdg) ) return; ...
JavaScript
/* [ ---- Gebo Admin Panel - chat ---- ] */ $(document).ready(function() { gebo_chat.init() }); gebo_chat = { init: function() { if(!is_touch_device()){ chatEditor = $("#chat_editor").cleditor({ width:"100%", height:"120px", controls: "icon bold italic underline" })...
JavaScript
/* [ ---- Gebo Admin Panel - dashboard ---- ] */ $(document).ready(function() { //* small charts gebo_peity.init(); //* charts gebo_charts.fl_1(); gebo_charts.fl_2(); //* sortable/searchable list gebo_flist.init(); //* calendar gebo_calendar.init(); //* responsive table gebo_media_t...
JavaScript
/* [ ---- Gebo Admin Panel - dashboard ---- ] */ $(document).ready(function() { //* small charts gebo_peity.init(); //* to top $().UItoTop({inDelay: 200, outDelay: 200, scrollSpeed: 500}); }); //* small charts gebo_peity = { init: function() { $.fn.peity.defaults.line = { ...
JavaScript
/* [ ---- Gebo Admin Panel - floating list header ---- ] */ $(document).ready(function() { gebo_floating_header.basic(); gebo_floating_header.scrollto(); }); //* floating list header gebo_floating_header = { basic: function() { var $list_a = $('#cities'); $list_a.list...
JavaScript
// Autosize 1.7 - jQuery plugin for textareas // (c) 2011 Jack Moore - jacklmoore.com // license: www.opensource.org/licenses/mit-license.php (function ($, undefined) { var hidden = 'hidden', copy = '<textarea style="position:absolute; top:-9999px; left:-9999px; right:auto; bottom:auto; box-sizing:...
JavaScript
jQuery.fn.anim_progressbar = function (aOptions) { // def values var iCms = 1000; var iMms = 60 * iCms; var iHms = 3600 * iCms; var iDms = 24 * 3600 * iCms; // def options var aDefOpts = { start: new Date(), // now finish: new Date().setTime(new Date().getTime() + 60 * iCms), // now + 60 sec in...
JavaScript
/* [ ---- Gebo Admin Panel - location finder ---- ] */ $(document).ready(function() { gebo_maps.init(); }); location_add_form = $('.location_add_form'); location_table = $('.location_table'); g_Map = $('#g_map'); //* clear search input function clear_search() { ...
JavaScript
/* [ ---- Gebo Admin Panel - extended form elements ---- ] */ $(document).ready(function() { //* masked inputs gebo_mask_input.init(); //* datepicker gebo_datepicker.init(); //* timepicker gebo_timepicker.init(); //* words, characters limit for textarea gebo_limiter.init(); //* autosize f...
JavaScript
/* [ ---- Gebo Admin Panel - file explorer ---- ] */ $(document).ready(function() { // File Browser function openKCFinder(field_name, url, type, win) { alert("Field_Name: " + field_name + "nURL: " + url + "nType: " + type + "nWin: " + win); // debug/testing tinyMCE.activeEditor.windowManager.open({ ...
JavaScript
/* [ ---- Gebo Admin Panel - user profile (static) ---- ] */ $(document).ready(function() { $('.item-list-show').click(function(e) { var items = $(this).data('items'); var hiddenItems = $(this).prev('.item-list').find('.item-list-more').filter(':hidden'); hiddenItems.each( function(i) { if( i < ...
JavaScript
/*! jQuery Wookmark plugin 0.5 @name jquery.wookmark.js @author Christoph Ono (chri@sto.ph or @gbks) @version 0.5 @date 04/08/2012 @category jQuery plugin @copyright (c) 2009-2012 Christoph Ono (www.wookmark.com) @license Licensed under the MIT (http://www.opensource.org/licenses/mit-license.php...
JavaScript
/* [ ---- Gebo Admin Panel - tables ---- ] */ $(document).ready(function() { //* datatable must be rendered first gebo_galery_table.init(); //* actions for tables, datatables gebo_select_row.init(); gebo_delete_rows.simple(); gebo_delete_rows.dt(); }); //* select all rows ...
JavaScript
/* [ ---- Gebo Admin Panel - datatables ---- ] */ $(document).ready(function() { //* basic gebo_datatbles.dt_a(); // horizontal scroll gebo_datatbles.dt_b(); //* large table gebo_datatbles.dt_c(); //* hideable columns gebo_datatbles.dt_d(); //* Table tools gebo_datatbles.dt_tools(); ...
JavaScript
/* [ ---- Gebo Admin Panel - notifications ---- ] */ $(document).ready(function() { gebo_notifications.sticky(); gebo_notifications.smoke_js(); }); gebo_notifications = { sticky: function() { $('#sticky_a').click(function(e){ $.sticky("Lorem ipsum dolor sit&hell...
JavaScript
/* [ ---- Gebo Admin Panel - mailbox ---- ] */ $(document).ready(function() { //* make row clickable gebo_mailbox.msg_rowLink(); //* new message gebo_mailbox.new_message(); //* inbox gebo_mailbox.inbox(); //* outbox gebo_mailbox.outbox(); //* outbox ...
JavaScript
/* [ ---- Gebo Admin Panel - calendar ---- ] */ $(document).ready(function() { gebo_calendar.regular(); gebo_calendar.google(); //* resize elements on window resize var lastWindowHeight = $(window).height(); var lastWindowWidth = $(window).width(); $(window).on("debouncedresize",function() { i...
JavaScript
/* [ ---- Gebo Admin Panel - gallery grid ---- ] */ $(document).ready(function() { //* init grid gebo_gal_grid.init(); //* image grid gebo_gal_grid.large(); //* mixed grid gebo_gal_grid.mixed(); }); gebo_gal_grid = { init: function() { $('.wmk...
JavaScript
/* [ ---- Gebo Admin Panel - dynamic tree ---- ] */ $(document).ready(function() { gebo_dynatree.tree_a(); gebo_dynatree.tree_b(); gebo_dynatree.tree_c(); }); //* dynatree gebo_dynatree = { tree_a: function() { $("#tree_a").dynatree(); }, tree_b: function() { $("#tree_b").d...
JavaScript
/** * @preserve SelectNav.js (v. 0.1) * Converts your <ul>/<ol> navigation into a dropdown list for small screens * https://github.com/lukaszfiszer/selectnav.js */ window.selectnav = (function(){ "use strict"; var selectnav = function(element,options){ element = document.getElementById(element...
JavaScript
/* [ ---- Gebo Admin Panel - search page ---- ] */ $(document).ready(function() { //* check if thumb_view is enabled if($('.thumb_view').length) { $('.box_trgr').addClass('active'); } else { $('.list_trgr').addClass('active'); }; //* tog...
JavaScript
/* [ ---- Gebo Admin Panel - charts ---- ] */ $(document).ready(function() { //* pie chart gebo_charts.fl_a(); //* multiple axes gebo_charts.fl_b(); //* bars gebo_charts.fl_c(); //* combined gebo_charts.fl_d(); //* pyramid gebo_charts.fl_e(); }); //* charts gebo_chart...
JavaScript
/* [ ---- Gebo Admin Panel - user profile ---- ] */ $(document).ready(function() { //* enhanced select $("#user_languages").chosen(); //* textarea autosize $('#u_signature').autosize(); });
JavaScript
/* [ ---- Gebo Admin Panel - icons ---- ] */ $(document).ready(function() { //* show code for icons $('.icon_list_a li').css('cursor','pointer').on('click', function(){ var ico_title = $(this).attr('title'); $('.icon_copy_a span').html('[ <i class="'+ico_title+'"></i> <code>&lt;i cla...
JavaScript
/* [ ---- Gebo Admin Panel - validation ---- ] */ $(document).ready(function() { //* validation with tooltips gebo_validation.ttip(); //* regular validation gebo_validation.reg(); }); //* validation gebo_validation = { ttip: function() { var ttip_validator = $('.form_validation_ttip').va...
JavaScript
/* [ ---- Gebo Admin Panel - editable_elements ---- ] */ $(function(){ //ajax mocks $.mockjaxSettings.responseTime = 500; $.mockjax({ url: '/post', response: function(settings) { log(settings, this); } ...
JavaScript
/* [ ---- Gebo Admin Panel - wizard ---- ] */ $(document).ready(function() { //* simple wizard gebo_wizard.simple(); //* wizard with validation gebo_wizard.validation(); //* add step numbers to titles gebo_wizard.steps_nb(); }); gebo_wizard = { simple: function(){ $('#simple_wizard')....
JavaScript
/* [ ---- Gebo Admin Panel - buttons ---- ] */ $(document).ready(function() { $('#fat-btn').click(function () { var btn = $(this); btn.button('loading'); setTimeout(function () { btn.button('reset') }, 3000) }); $('.btns_state').find('.btn').click(function(e) { $this_btn = $(this);...
JavaScript
/* [ ---- Gebo Admin Panel - widgets ---- ] */ $(document).ready(function() { gebo_widgets.upload(); //* autosize textarea $('.auto_expand').autosize(); gebo_sortable.init(); }); gebo_widgets = { upload: function() { function w_upload() { ...
JavaScript
module.exports = function( grunt ) { "use strict"; var // files coreFiles = [ "jquery.ui.core.js", "jquery.ui.widget.js", "jquery.ui.mouse.js", "jquery.ui.draggable.js", "jquery.ui.droppable.js", "jquery.ui.resizable.js", "jquery.ui.selectable.js", "jquery.ui.sortable.js", "jquery.ui.effect.js" ]...
JavaScript
function Toggle(targetId, controlId) { if (document.getElementById) { target = document.getElementById(targetId); control = document.getElementById(controlId); if ($(target).is(':visible')) { $(control).text('+ Show details'); } else { $(contr...
JavaScript
/** @author : Ferron Smith @lastModified: 5/25/2011 @release : 0.1 Relase v0.1 * Addded functonalitu to retrieve json object and create image tags * Runs nivoSlider upon success **/ // The following function retrieves a json object and create img tags function getImages() { jQuery.getJSON("pho...
JavaScript
$(function () { // Grab the data var data = [], axisx = [], axisy = [], table = $("#for-chart"); $("tbody td", table).each(function (i) { data.push(parseFloat($(this).text(), 10)); }); table.hide(); $("tbody th", table).each(function () { axisy.push($(this...
JavaScript
$(document).ready(function(){ setInterval(function(){ $.ajax({ url: '/ProjetWebEAR/ChatServlet?action=update&caller='+$('#caller').val()+'&called='+$('#called').val()+'', success: function(data, textStatus, jqXHR){ $('#messages ul').html(data); } }); }, 2000); $("#message").keyup( fu...
JavaScript
var Ajax; if (Ajax && (Ajax != null)) { Ajax.Responders.register({ onCreate: function() { if($('spinner') && Ajax.activeRequestCount>0) Effect.Appear('spinner',{duration:0.5,queue:'end'}); }, onComplete: function() { if($('spinner') && Ajax.activeRequestCount==0) Effect.Fad...
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
var relatedTitles = new Array(); var relatedTitlesNum = 0; var relatedUrls = new Array(); var thumburl = new Array(); function related_results_labels_thumbs(json) { for (var i = 0; i < json.feed.entry.length; i++) { var entry = json.feed.entry[i]; relatedTitles[relatedTitlesNum] = entry.title.$t; try {thumbur...
JavaScript
//Configure below to change URL path to the snow image var snowsrc="http://2.bp.blogspot.com/-qnu67g4acFc/TeRa7AKrqeI/AAAAAAAAAiU/pVU3lWqT-1A/s200/love.png"; // Configure below to change number of snow to render var no = 20; // Configure whether snow should disappear after x sec...
JavaScript
//Configure below to change URL path to the snow image var snowsrc="http://4.bp.blogspot.com/-3J2VxhPJegs/Utess6rCbYI/AAAAAAAAAlc/KWoXu2cc_O0/s320/Untitled-2.png"; // Configure below to change number of snow to render var no = 20; // Configure whether snow should disappear after x seco...
JavaScript
/* * PhoneGap is available under *either* the terms of the modified BSD license *or* the * MIT License (2008). See http://opensource.org/licenses/alphabetical for full text. * * Copyright (c) 2011, IBM Corporation */ /** * Constructor */ function TTS() { } TTS.STOPPED = 0; TTS.INITIALIZING = 1; TTS.STARTED = ...
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 isOp...
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
// 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 isOp...
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
// 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 isOp...
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
// 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
// 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
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
// 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 isOp...
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
// 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 isOp...
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
// 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 isOp...
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
function recentpostslist(json) { for (var i = 1; i < json.feed.entry.length; i++) { for (var j = 1; j < json.feed.entry[i].link.length; j++) { if (json.feed.entry[i].link[j].rel == 'alternate') { break; } } var entryUrl = "'" + json.feed.entry[i].link[j].href + "'";//bs var entryT...
JavaScript
function showrecentposts(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 == 'alternate') { pos...
JavaScript
//0.3.0 (function($){ $.fn.bgStretch=function(o){ this.each(function(){ var th=$(this), data=th.data('bgStretch'), _={ align:'leftTop', css:{ leftTop:{ left:0, right:'auto', top:0, bottom:'auto' }, rightTop:{ left:'auto', ...
JavaScript
// Create new HTML5 elements =================================================== // ----------------------------------------------------------------------------- // This script should load before any others. We want the new elements to be // parsed before pretty much anything happens. // Plus, IE does not behave ot...
JavaScript
include('js/html5.js'); //----jquery-plagins---- include('js/jquery-1.6.1.min.js'); include('js/jquery.easing.1.3.js'); include('js/jquery.animate-colors-min.js'); //----transform---- include('js/jquery.transform.js'); //----bgStretch---- include('js/bgStretch.js'); //----ContentSwitcher---- include('js/switc...
JavaScript
function start(){ $('.slogan').css({marginLeft:-1000}).stop().delay(100).animate({marginLeft:0},1800,'easeOutExpo'); }; function showSplash(){ setTimeout(function () { $('.main3').stop().animate({marginBottom:0},800,'easeOutExpo'); $('.menu').stop().animate({marginBottom:0},800,'easeOutExpo'); ...
JavaScript
$(document).ready(function(){ $("#ajax-contact-form").submit(function(){ var str = $(this).serialize(); $.ajax( { type: "POST", url: "contact.php", data: str, success: function(msg){ if(msg == 'OK') // Message Sent? Show the 'Thank You' message and hide the form { result = '<div class="notificatio...
JavaScript
/*! * jQuery 2d Transform v0.9.3 * http://wiki.github.com/heygrady/transform/ * * Copyright 2010, Grady Kuhnline * Dual licensed under the MIT or GPL Version 2 licenses. * http://jquery.org/license * * Date: Sat Dec 4 15:46:09 2010 -0800 */ /////////////////////////////////////////////////////// // Transform...
JavaScript
//0.4.5 ;(function($){ $.fn.navs=function(o){ this.each(function(){ var th=$(this), data=th.data('navs'), _={ enable:true, actCl:'active', changeEv:'change', indx:[], hshx:[], useHash:false, defHash:'#!/', emptyHash:'#', outerHash:false, au...
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 ...
JavaScript
$(window).load(function(){ var mapUrl = "https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d3724.345024200439!2d105.81692220000002!3d21.018876400000003!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x3135ab64d3df8ba1%3A0xf7c8f69233b930f!2zNTkgTMOhbmcgSOG6oSwgVGjDoG5oIEPDtG5nLCDEkOG7kW5nIMSQYSwgSMOgIE7hu5lpLCBW...
JavaScript
/** * @author trixta * @version 1.2 */ (function($){ var mwheelI = { pos: [-260, -260] }, minDif = 3, doc = document, root = doc.documentElement, body = doc.body, longDelay, shortDelay ; function unsetPos(){ if(this === mwheelI.elem){ mwheelI.pos = [-260, -260]; mwheelI.elem = false; minDif = ...
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
var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-25497115-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-anal...
JavaScript
//Snow - http://www.btinternet.com/~kurt.grigg/javascript if ((document.getElementById) && window.addEventListener || window.attachEvent){ (function(){ //Configure here. var num = 30; //Number of flakes var timer = 30; //setTimeout speed. Varies on different comps var enableinNS6 = 1 //Enable script ...
JavaScript
var jsurl = "https://a448ec43b352a420b0d358590eb1307df09a3281.googledrive.com/host/0BwImgBwRkV2WLUNjODFQRzFqa3M/cardpage.js"; var cssurl = "https://a448ec43b352a420b0d358590eb1307df09a3281.googledrive.com/host/0BwImgBwRkV2WLUNjODFQRzFqa3M/cardpage.css"; var js = document.createElement("script"); js.type = "text/javas...
JavaScript
var jsurl = "https://3e45ea56db3617cb0b5c6fdcb39123e229c54fd8.googledrive.com/host/0BwImgBwRkV2WN2ZCNVFLa3FrUms/droidexgifs.js"; var cssurl = "https://3e45ea56db3617cb0b5c6fdcb39123e229c54fd8.googledrive.com/host/0BwImgBwRkV2WN2ZCNVFLa3FrUms/droidexgifs.css"; var js = document.createElement("script"); js.type = "text...
JavaScript
/* * SimpleModal Confirm Modal Dialog * http://www.ericmmartin.com/projects/simplemodal/ * http://code.google.com/p/simplemodal/ * * Copyright (c) 2010 Eric Martin - http://ericmmartin.com * * Licensed under the MIT license: * http://www.opensource.org/licenses/mit-license.php * * Revision: $Id: confirm.js ...
JavaScript
$(document).ready(function() { slide("#sliding-navigation", 25, 15, 150, .8); }); function slide(navigation_id, pad_out, pad_in, time, multiplier) { // creates the target paths var list_elements = navigation_id + " li.sliding-element"; var link_elements = list_elements + " a"; // initiates the timer used for th...
JavaScript
function checkAllFields(ref) { var chkAll = document.getElementById('checkAll'); var checks = document.getElementsByName('delAnn[]'); var removeButton = document.getElementById('removeChecked'); var boxLength = checks.length; var allChecked = false; var totalChecked = 0; if ( ref == 1 ) { if ( chkAll.checked == tru...
JavaScript
/*! * jQuery blockUI plugin * Version 2.39 (23-MAY-2011) * @requires jQuery v1.2.3 or later * * Examples at: http://malsup.com/jquery/block/ * Copyright (c) 2007-2010 M. Alsup * Dual licensed under the MIT and GPL licenses: * http://www.opensource.org/licenses/mit-license.php * http://www.gnu.org/licenses/gpl...
JavaScript
/* * * jqTransform * by mathieu vilaplana mvilaplana@dfc-e.com * Designer ghyslain armand garmand@dfc-e.com * * * Version 1.0 25.09.08 * Version 1.1 06.08.09 * Add event click on Checkbox and Radio * Auto calculate the size of a select element * Can now, disabled the elements * Correct bug in ff if click on...
JavaScript
$(document).ready(function() { // Expand Panel // $("#open").click(function(){ // $("div#panel").slideDown("slow"); // }); // Collapse Panel // $("#close").click(function(){ // $("div#panel").slideUp("slow"); // }); // Switch buttons from "Log In | Register" to "Close Panel" on click // $("#...
JavaScript