code
stringlengths
1
2.08M
language
stringclasses
1 value
if(!window.mc){ window.mc = function(){}; } window.mc.panel = function(){}; mc.panel.init = function(target){ this.target = target; mc.template.load("chat_panel",mc.panel.redraw); } mc.panel.redraw = function(){ mc.panel.target.empty(); if(mc.setting.clock){ mc.panel.draw_clock(); } mc.panel.draw_form(); ...
JavaScript
if(!window.mc){ window.mc = function(){}; } mc.types = function(){}; mc.types.i = function(){}; mc.types.v = function(){}; mc.types.draw_value = function(desc,value){ return this.v[desc.type].apply(this,arguments); } mc.types.draw_input = function(desc,name,value,force){ return this.i[desc.type].apply(this,argument...
JavaScript
(function(){ if(!window.mc){ window.mc = function(){}; } if(!mc.smiles){ var smiles = [ 'acute', 'aggressive', 'airkiss', 'angel', 'beee', 'biggrin', 'blum', 'blush', 'bomb', 'bo', 'boredom', 'bye', 'chok', 'clapping', 'cray', 'crazy', 'dance', 'dash', 'diablo', 'dirol', ...
JavaScript
if(!window.mc){ window.mc = function(){}; } mc.check_load = function(){ if(!mc.template){ mc.error = "mc.template no loaded"; return false; } if(!mc.panel){ mc.error = "mc.panel no loaded"; return false; } if(!mc.inputer){ mc.error = "mc.inputer no loaded"; return false; } if(!mc.tape){ mc.error =...
JavaScript
(function(){ if(!window.mc){ window.mc = function(){}; } var tmp = [ ["q","й"], ["w","ц"], ["e","у"], ["r","к"], ["t","е"], ["y","н"], ["u","г"], ["i","ш"], ["o","щ"], ["p","з"], ["[","х"], ["]","ъ"], ["a","ф"], ["s","ы"], ["d","в"], ["f","а"], ["g","п"], ["h","р"], ["j","о"], ["k","л"], ["l","д"], [";","ж"], ["'"...
JavaScript
if(!window.mc){ window.mc = function(){}; } window.mc.transport = function(){}; mc.transport.init = function(url){ this.url = url; this.rid = 0; } mc.transport.send_message = function(msg){ if(!msg.rid){ msg.rid = ++this.rid; } msg.sid = mc.main.sid; if(!msg.chanel && mc.main.chanel){ msg.chanel = mc.main.c...
JavaScript
if(!window.mc){ window.mc = function(){}; } window.mc.inputer = function(){}; mc.inputer.init = function(input){ mc.inputer.txt = input; return function(obj,data){ mc.inputer.process(data); return false; }; } mc.inputer.parse_command = function(msg){ var m; if((m = msg.match(/^\s*[\/\.](\S+)(?:\s+(\S+))?(?:\...
JavaScript
if(!window.mc){ window.mc = function(){}; } mc.cmd = function(){}; mc.cmd.init = function(target){ this.main = target; this.cache = {}; this.re = /\/?([^\?]+)(?:\?(.+))?/; target.delegate("a.mc","click",function(event){ mc.cmd.run($(this).attr("href")); return false; }); } mc.cmd.run = function(str){ try { ...
JavaScript
if(!window.mc){ window.mc = function(){}; } window.mc.tape = function(){}; mc.tape.init = function(target){ this.target = target; this.re_fm = /\[([\w\s,а-яА-Я]+)\]/g; this.click_delegate(target); this.lock = $("<img src=\"/i/lock.png\"/>").css({ display: "none", position: "absolute", cursor: "pointer" ...
JavaScript
$(function(){ var re = /item-(\d+)/; $('td.si > img').each(function(i,e){ var o = $(e); var r = re.exec(o.attr('src')); var tmp = r[1]; o.before("<div>" + tmp + "</div>"); o.click(function(){ on_img_click($(this),tmp); }); o.hover( function(){ on_img_hover($(this),tmp); }, ...
JavaScript
if(!window.mc){ window.mc = function(){}; } mc.init = function(url,chanel){ mc.url = url; mc.rid = 1000; mc.sid = ""; mc.def_chanel = chanel; mc.cbs = {}; mc.last_check = false; } mc.start = function(login,pass){ mc.login = login; mc.SendMessage("login",{pass:pass},mc.login_handler); } mc.SendMe...
JavaScript
if(!window.mc){ window.mc = function(){}; } mc.init = function(url,m,f,t){ mc.delay = 5; mc.timeout = 60; mc.reconnect_progress = false; mc.reconnect_try = 0; mc.url = url; mc.rid = 1000; mc.sid = ""; mc.cbs = {}; mc.last_check = false; mc.target = $("#"+m); mc.topic = $("#"+t); mc.source = ...
JavaScript
(function(){ if(!window.mc){ window.mc = function(){}; } var tmp = [ ["q","й"], ["w","ц"], ["e","у"], ["r","к"], ["t","е"], ["y","н"], ["u","г"], ["i","ш"], ["o","щ"], ["p","з"], ["[","х"], ["]","ъ"], ["a","ф"], ["s","ы"], ["d","в"], ["f","а"], ["g","п"], ["h","р"], ["j","о"], ["k","л"], ["l","д"], [";","ж"], ["'"...
JavaScript
(function(){ if(!window.mc){ window.mc = function(){}; } if(!mc.smiles){ var smiles = [ 'acute', 'aggressive', 'airkiss', 'angel', 'beee', 'biggrin', 'blum', 'blush', 'bomb', 'bo', 'boredom', 'bye', 'chok', 'clapping', 'cray', 'crazy', 'dance', 'dash', 'diablo', 'dirol', ...
JavaScript
/* * jQuery JSON Plugin * version: 2.1 (2009-08-14) * * This document is licensed as free software under the terms of the * MIT License: http://www.opensource.org/licenses/mit-license.php * * Brantley Harris wrote this plugin. It is based somewhat on the JSON.org * website's http://www.json.org/json2.js, which...
JavaScript
/*jslint browser: true */ /*global jQuery: true */ /** * jQuery Cookie plugin * * Copyright (c) 2010 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 * */ // TODO JsDoc /** * Create a cookie...
JavaScript
/* * Binary Ajax 0.1.10 * Copyright (c) 2008 Jacob Seidelin, cupboy@gmail.com, http://blog.nihilogic.dk/ * Licensed under the MPL License [http://www.nihilogic.dk/licenses/mpl-license.txt] */ var BinaryFile = function(strData, iDataOffset, iDataLength) { var data = strData; var dataOffset = iDataOffs...
JavaScript
/* * A JavaScript implementation of the Secure Hash Algorithm, SHA-1, as defined * in FIPS 180-1 * Version 2.2 Copyright Paul Johnston 2000 - 2009. * Other contributors: Greg Holt, Andrew Kepert, Ydnar, Lostinet * Distributed under the BSD License * See http://pajhome.org.uk/crypt/md5 for details. */ /...
JavaScript
/* * A JavaScript implementation of the Secure Hash Algorithm, SHA-256, as defined * in FIPS 180-2 * Version 2.2 Copyright Angel Marin, Paul Johnston 2000 - 2009. * Other contributors: Greg Holt, Andrew Kepert, Ydnar, Lostinet * Distributed under the BSD License * See http://pajhome.org.uk/crypt/md5 for det...
JavaScript
//ZeroClipboard.setMoviePath( '../flash/ZeroClipboard.swf' ); //pads zeroes to output that needs it var pad = function(number, base) { base = parseInt(base); switch(base){ case 2: base = 8; break; case 10: base = 3; break; case 16: base = 2; break; default: base = 0; break; } ...
JavaScript
var oldVal= ""; var sendVal= ""; var typeVal =""; var sendMessageP = true; var selectNotify = function(inString,badgeType){ if(sendMessageP){ var notification = webkitNotifications.createNotification( 'icons/icon-48.png', // icon url - can be relative 'you have selected', // notification title ...
JavaScript
/** * * Javascript crc32 * http://www.webtoolkit.info/ * **/ function crc32 (str) { function Utf8Encode(string) { string = string.replace(/\r\n/g,"\n"); var utftext = ""; for (var n = 0; n < string.length; n++) { var c = string.charCodeAt(n); if (c < 128) { utftext += Stri...
JavaScript
/* * A JavaScript implementation of the RSA Data Security, Inc. MD5 Message * Digest Algorithm, as defined in RFC 1321. * Version 2.2 Copyright (C) Paul Johnston 1999 - 2009 * Other contributors: Greg Holt, Andrew Kepert, Ydnar, Lostinet * Distributed under the BSD License * See http://pajhome.org.uk/crypt/...
JavaScript
/* * A JavaScript implementation of the RIPEMD-160 Algorithm * Version 2.2 Copyright Jeremy Lin, Paul Johnston 2000 - 2009. * Other contributors: Greg Holt, Andrew Kepert, Ydnar, Lostinet * Distributed under the BSD License * See http://pajhome.org.uk/crypt/md5 for details. * Also http://www.ocf.berkeley.ed...
JavaScript
var getSText = function(){ var t = ''; if(window.getSelection){ t = window.getSelection().toString(); } return t; } var selectedText = '' $(function() { $('body').mouseup(function(){ selectedText = getSText(); port = chrome.extension.connect({name: "selectedText"}); port.postMessage({value: se...
JavaScript
// Simple Set Clipboard System // Author: Joseph Huckaby var ZeroClipboard = { version: "1.0.7", clients: {}, // registered upload clients on page, indexed by id moviePath: 'ZeroClipboard.swf', // URL to movie nextId: 1, // ID of next movie $: function(thingy) { // simple DOM lookup utility function if (t...
JavaScript
/* * A JavaScript implementation of the Secure Hash Algorithm, SHA-512, as defined * in FIPS 180-2 * Version 2.2 Copyright Anonymous Contributor, Paul Johnston 2000 - 2009. * Other contributors: Greg Holt, Andrew Kepert, Ydnar, Lostinet * Distributed under the BSD License * See http://pajhome.org.uk/crypt/m...
JavaScript
/// <reference path="Jssor.Core.js" /> /* * Jssor.Utils 17.0 * http://www.jssor.com/ * * TERMS OF USE - Jssor.Utils * * Copyright 2014 Jssor * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to deal in the Softw...
JavaScript
/// <reference path="Jssor.Core.js" /> /// <reference path="Jssor.Utils.js" /> /** * Jssor.Player.ytiframe 1.0 * Author: Jssor * * Copyright 2013 Jssor. All rights reserved. http://www.jssor.com **/ //make $JssorPlayer$ unique static instance var $JssorPlayer$ = window.$JssorPlayer$ = window.$JssorPlayer$ || new $Js...
JavaScript
/// <reference path="Jssor.Core.js" /> /// <reference path="Jssor.Utils.js" /> /* * Jssor.Slider 17.0 * http://www.jssor.com/ * * TERMS OF USE - Jssor.Slider * * Copyright 2014 Jssor * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation file...
JavaScript
/// <reference path="Jssor.Core.js" /> /// <reference path="Jssor.Utils.js" /> /* * Jssor.Slider 17.0 * http://www.jssor.com/ * * TERMS OF USE - Jssor.Slider * * Copyright 2014 Jssor * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation file...
JavaScript
/* * Jssor.Core 16.0 * http://www.jssor.com/ * * TERMS OF USE - Jssor.Core * * Copyright 2014 Jssor * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including * witho...
JavaScript
var delaytime = 300; // GO TO DIRECTLY AN URL function goToPage(link) { window.location.href = "login-home.php?module=" + link; } // DATE FIELD ALLOW CHOICE MONTH, YEAR IN THE DROPDOWN LIST $(function() { $(".datefield").datepicker( { dateFormat : "yy-mm-dd", changeMonth : true, changeYear : true })...
JavaScript
/** * @preserve jQuery DateTimePicker plugin v2.4.3 * @homepage http://xdsoft.net/jqplugins/datetimepicker/ * (c) 2014, Chupurnov Valeriy. */ /*global document,window,jQuery,setTimeout,clearTimeout,HighlightedDate,getCurrentValue*/ (function ($) { 'use strict'; var default_options = { i18n: { ar: { // Arabi...
JavaScript
$(document) .ready( function() { $('#example') .dataTable( { "order" : [ [ 0, "asc" ] ], "footerCallback" : function(row, data, start, end, display) { var api = this.api(), data; // Remove the formatting to get // i...
JavaScript
/* * * Password Widget 1.0 * * This script is distributed under the GNU Lesser General Public License. * Read the entire license text here: http://www.gnu.org/licenses/lgpl.html * * Copyright (C) 2009 HTML Form Guide * http://www.html-form-guide.com/ */ function PasswordWidget(divid,pwdname) { this.mai...
JavaScript
//Validate input only the float number function validateFloat(evt) { var theEvent = evt || window.event; var key = theEvent.keyCode || theEvent.which; key = String.fromCharCode(key); var regex = /\-|[0-9,\b]|\.|\t/; if (!regex.test(key)) { theEvent.returnValue = false; if (theEvent.preventDefault) ...
JavaScript
/* COMMON MODULE */ /* IMPORT MODULE */ function calculateImportFacture() { var total = 0; var totalRow = parseInt($("#totalRow").val()); for (var i = 1; i < totalRow; i++) { var qty = ($("#qty_1").val() == "") ? 0 : parseInt($("#qty_" + i).val()); var impr = ($("#impr_1").val() == "") ? 0 : parseF...
JavaScript
/* ------------------------------------------------------------------------- JavaScript Form Validator (gen_validatorv31.js) Version 3.1 Copyright (C) 2003-2008 JavaScript-Coder.com. All rights reserved. You can freely use this script in your Web pages. You may adapt this scri...
JavaScript
/* COMMON MODULE */ var defaultItemAfterAjax = 100; function processUrlString(str) { var key = new Array(); var value = new Array(); key = str.split("&"); var inputUrl = ""; for (i in key) { value[i] = key[i].split("=")[1]; key[i] = key[i].split("=")[0]; } for (i in key) { inputUrl = inputUrl +...
JavaScript
(function($){ $.confirm = function(params){ if($('#confirmOverlay').length){ // A confirm is already shown on the page: return false; } var buttonHTML = ''; $.each(params.buttons,function(name,obj){ // Generating the markup for the buttons: buttonHTML += '<a href="#" c...
JavaScript
/* COMMON FUNCTION */ // VERIFY IF A FIELD IS BLANK BY INPUT OF IT'S ID function validateBlankField(fieldid) { if ($("#" + fieldid).val() == "" || $("#" + fieldid).val() == null) { $("#" + fieldid).addClass("errorField"); if (fieldid == "provider_id") $("#provider_name").addClass("errorField"); return ...
JavaScript
var delaytime = 300; // GO TO DIRECTLY AN URL function goToPage(link) { window.location.href = "login-home.php?module=" + link; } // DATE FIELD ALLOW CHOICE MONTH, YEAR IN THE DROPDOWN LIST $(function() { $(".datefield").datepicker( { dateFormat : "yy-mm-dd", changeMonth : true, changeYear : true })...
JavaScript
/** * @preserve jQuery DateTimePicker plugin v2.4.3 * @homepage http://xdsoft.net/jqplugins/datetimepicker/ * (c) 2014, Chupurnov Valeriy. */ /*global document,window,jQuery,setTimeout,clearTimeout,HighlightedDate,getCurrentValue*/ (function ($) { 'use strict'; var default_options = { i18n: { ar: { // Arabi...
JavaScript
$(document) .ready( function() { $('#example') .dataTable( { "order" : [ [ 0, "asc" ] ], "footerCallback" : function(row, data, start, end, display) { var api = this.api(), data; // Remove the formatting to get // i...
JavaScript
/* * * Password Widget 1.0 * * This script is distributed under the GNU Lesser General Public License. * Read the entire license text here: http://www.gnu.org/licenses/lgpl.html * * Copyright (C) 2009 HTML Form Guide * http://www.html-form-guide.com/ */ function PasswordWidget(divid,pwdname) { this.mai...
JavaScript
//Validate input only the float number function validateFloat(evt) { var theEvent = evt || window.event; var key = theEvent.keyCode || theEvent.which; key = String.fromCharCode(key); var regex = /\-|[0-9,\b]|\.|\t/; if (!regex.test(key)) { theEvent.returnValue = false; if (theEvent.preventDefault) ...
JavaScript
/* COMMON MODULE */ /* IMPORT MODULE */ function calculateImportFacture() { var total = 0; var totalRow = parseInt($("#totalRow").val()); for (var i = 1; i < totalRow; i++) { var qty = ($("#qty_1").val() == "") ? 0 : parseInt($("#qty_" + i).val()); var impr = ($("#impr_1").val() == "") ? 0 : parseF...
JavaScript
/* ------------------------------------------------------------------------- JavaScript Form Validator (gen_validatorv31.js) Version 3.1 Copyright (C) 2003-2008 JavaScript-Coder.com. All rights reserved. You can freely use this script in your Web pages. You may adapt this scri...
JavaScript
/* COMMON MODULE */ var defaultItemAfterAjax = 100; function processUrlString(str) { var key = new Array(); var value = new Array(); key = str.split("&"); var inputUrl = ""; for (i in key) { value[i] = key[i].split("=")[1]; key[i] = key[i].split("=")[0]; } for (i in key) { inputUrl = inputUrl +...
JavaScript
(function($){ $.confirm = function(params){ if($('#confirmOverlay').length){ // A confirm is already shown on the page: return false; } var buttonHTML = ''; $.each(params.buttons,function(name,obj){ // Generating the markup for the buttons: buttonHTML += '<a href="#" c...
JavaScript
/* COMMON FUNCTION */ // VERIFY IF A FIELD IS BLANK BY INPUT OF IT'S ID function validateBlankField(fieldid) { if ($("#" + fieldid).val() == "" || $("#" + fieldid).val() == null) { $("#" + fieldid).addClass("errorField"); if (fieldid == "provider_id") $("#provider_name").addClass("errorField"); return ...
JavaScript
$(document).ready(function(){ var validator = $("#registerFrm").validate({ success: function(label) { label.addClass('success'); }, rules: { username: { required: true }, email: { required: true, email: true }, password: { required: true, minlength: 6, maxlength: 20 }...
JavaScript
$(document).ready(function(){ var validator = $("#registerFrm").validate({ success: function(label) { label.addClass('success'); }, rules: { username: { required: true }, email: { required: true, email: true }, password: { required: true, minlength: 6, maxlength: 20 }...
JavaScript
$(document).ready(function(){ var validator = $("#registerFrm").validate({ success: function(label) { label.addClass('success'); }, rules: { username: { required: true }, email: { required: true, email: true }, password: { required: true, minlength: 6, maxlength: 20 }...
JavaScript
function getCitiesOptions(countyInput, cityInput) { var countyID = parseInt($('#' + countyInput).val()); if (countyID > 0) { var responseLoc = $.ajax({ type: "POST", url: "/ajax/index/get-cities", data: "county_id="+countyID, async: false }).responseText; try { var arrResponseLoc = eval('('+res...
JavaScript
$(document).ready(function(){ var validator = $("#registerFrm").validate({ success: function(label) { label.addClass('success'); }, rules: { username: { required: true }, email: { required: true, email: true }, password: { required: true, minlength: 6, maxlength: 20 }...
JavaScript
/* Simple JQuery menu. HTML structure to use: Notes: 1: each menu MUST have an ID set. It doesn't matter what this ID is as long as it's there. 2: each menu MUST have a class 'menu' set. If the menu doesn't have this, the JS won't make it dynamic Optional extra classnames: noaccordion : no accordion fu...
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. ...
JavaScript
/* * Translated default messages for the jQuery validation plugin. * Language: RO * Author: Elzo Valugi - http://www.valugi.ro */ jQuery.extend(jQuery.validator.messages, { required: "Acest camp este obligatoriu.", remote: "Te rugam sa completezi acest camp.", email: "Te rugam sa introduci o adresa de...
JavaScript
// jQuery Alert Dialogs Plugin // // Version 1.1 // // Cory S.N. LaViska // A Beautiful Site (http://abeautifulsite.net/) // 14 May 2009 // // Visit http://abeautifulsite.net/notebook/87 for more information // // Usage: // jAlert( message, [title, callback] ) // jConfirm( message, [title, callback] ) //...
JavaScript
(function($){ $.fn.validationEngineLanguage = function(){ }; $.validationEngineLanguage = { newLang: function(){ $.validationEngineLanguage.allRules = { "required": { // Add your regex rules here, you can take telephone as an example "regex": "n...
JavaScript
/** * jQuery BASE64 functions * * <code> * Encodes the given data with base64. * String $.base64Encode ( String str ) * <br /> * Decodes a base64 encoded data. * String $.base64Decode ( String str ) * </code> * * Encodes and Decodes the given data in base64. * This ...
JavaScript
/* * jQuery Nivo Slider v3.0.1 * http://nivo.dev7studios.com * * Copyright 2012, Dev7studios * Free to use and abuse under the MIT license. * http://www.opensource.org/licenses/mit-license.php */ (function($) { var NivoSlider = function(element, options){ // Defaults are below va...
JavaScript
//popup search friends function selectFriend(o){ var id = $(o).attr('id'); var user = $('#'+id).html(); var temp = id.split('mem_list_'); $('#ms_userid').val(temp[1]); $('#ms_to').val(user); $('#findFriend').hide().html(''); $('.img-loading').hide(); return false; } //Find my friend ...
JavaScript
/* * MultiSelect v0.8 * 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 Hoce...
JavaScript
/* * Inline Form Validation Engine 2.5.5.1, jQuery plugin * * Copyright(c) 2010, Cedric Dugas * http://www.position-absolute.com * * 2.0 Rewrite by Olivier Refalo * http://www.crionics.com * * Form validation engine allowing custom regex rules to be added. * Licensed under the MIT License */ (fu...
JavaScript
/* http://keith-wood.name/countdown.html Countdown for jQuery v1.6.2. Written by Keith Wood (kbwood{at}iinet.com.au) January 2008. Available under the MIT (https://github.com/jquery/jquery/blob/master/MIT-LICENSE.txt) license. Please attribute the author if you use it. */ /* Display a countdown timer. ...
JavaScript
/** * BxSlider v4.1.2 - Fully loaded, responsive content slider * http://bxslider.com * * Copyright 2014, Steven Wanderski - http://stevenwanderski.com - http://bxcreative.com * Written while drinking Belgian ales and listening to jazz * * Released under the MIT license - http://opensource.org/licenses/MIT */ ...
JavaScript
//on page load call tb_init jQuery(document).ready(function(){ var prefix = jQuery('#prefix').html(); var tb_pathToImage = prefix+"images/ajaxLoading.gif"; tb_init('a.thickbox, area.thickbox, input.thickbox');//pass where to apply thickbox imgLoader = new Image();// preload image imgLoader.s...
JavaScript
/* * Price Format jQuery Plugin * Created By Eduardo Cuducos * Currently maintained by Flavio Silveira flavio [at] gmail [dot] com * Version: 2.0 * Release: 2014-01-26 */ (function($) { /**************** * Main Function * *****************/ $.fn.priceFormat = function(options) { var defaults = { prefix...
JavaScript
/** ---------------- READY FUNCTION -------------------- **/ $(document).ready(function() { /** ----------- PRICE FORMAT --------- **/ $('.price_format').priceFormat({ prefix: '', centsSeparator: '.', centsLimit: 0, thousandsSeparator: '.' }); $('#form_l...
JavaScript
// Load the SDK asynchronously /* (function(d){ var js, id = 'facebook-jssdk', ref = d.getElementsByTagName('script')[0]; if (d.getElementById(id)) {return;} js = d.createElement('script'); js.id = id; js.async = true; js.src = "//connect.facebook.net/vi_VN/all.js"; ref.parentNode.insertBefore(js, ref); }(docum...
JavaScript
// I need to move this into a JS folder for the plugin /* <!-- Dynamic Version by: Nannette Thacker --> <!-- http://www.shiningstar.net --> <!-- Original by : Ronnie T. Moore --> <!-- Web Site: The JavaScript Source --> <!-- Limit the number of characters per textarea --> */ function textCounter(field,cntfield,maxl...
JavaScript
/* * imgAreaSelect jQuery plugin * version 0.8 * * Copyright (c) 2008-2009 Michal Wojciechowski (odyniec.net) * * Dual licensed under the MIT (MIT-LICENSE.txt) * and GPL (GPL-LICENSE.txt) licenses. * * http://odyniec.net/projects/imgareaselect/ * */ (function($) { $.imgAreaSelect = { onKeyPress: null }; ...
JavaScript
/* * Treeview 1.4 - 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-li...
JavaScript
/* * Async Treeview 0.1 - Lazy-loading extension for Treeview * * http://bassistance.de/jquery-plugins/jquery-plugin-treeview/ * * Copyright (c) 2007 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...
JavaScript
//Style Sheet Switcher version 1.1 Oct 10th, 2006 //Author: Dynamic Drive: http://www.dynamicdrive.com //Usage terms: http://www.dynamicdrive.com/notice.htm var manual_or_random="manual" //"manual" or "random" var randomsetting="3 days" //"eachtime", "sessiononly", or "x days (replace x with desired integer)". Only ap...
JavaScript
/** * Babel JavaScript Support * * Copyright (C) 2008-2011 Edgewall Software * All rights reserved. * * This software is licensed as described in the file COPYING, which * you should have received as part of this distribution. The terms * are also available at http://babel.edgewall.org/wiki/License. * * This ...
JavaScript
/** * */ var myApp = angular.module('myApp', []); myApp.directive('uiDate', function() { return { require: '?ngModel', link: function($scope, element, attrs, controller) { element.mask("99/99/9999",{completed: function() { alert(this.val()); controller.$set...
JavaScript
/** * */ function Carrinho($scope,$http){ $scope.carrinhoBoloes = []; $scope.getTotal = function(){ var total = 0; for(var i = 0; i < $scope.carrinhoBoloes.length; i++){ var product = $scope.carrinhoBoloes[i]; total += (product.valorCota * product.qtdCota); } ...
JavaScript
/** * */ var myApp = angular.module('myApp', []); myApp.directive('uiDate', function() { return { require: '?ngModel', link: function($scope, element, attrs, controller) { element.mask("99/99/9999",{completed: function() { controller.$setViewValue(this.val()); ...
JavaScript
/** * */ function control($scope){ $scope.load = function(){ var app = angular.module('ngdemo.controllers', []); alert(app); app.controller('MyCtrl1', [ '$scope', 'UserFactory', function($scope, UserFactory) { alert("Ddan"); UserFactory.get({}, function(userFactory) { $scope...
JavaScript
/** * */ var services = angular.module('ngdemo.services', [ 'ngResource' ]); services.factory('UserFactory', function($resource) { return $resource('http://localhost:8080/restservice/rest/usuarios', {}, { query : { method : 'GET', params : {}, isArray : false } }); });
JavaScript
/** * */ function Usuario($scope){ $scope.usuarios = []; // { // firstName:"Daniel", // secondName:"Souza", // email:"soudaniel@gmail.com", // phoneNumber:"(34) 9282-5565", // sexo:"M" ...
JavaScript
/** * */ function control($scope,$http){ $scope.load = function(){ $http.get("http://localhost:8080/restservice/rest/usuarios").success(function(data){ $scope.firstName = data.firstName; $scope.secondName = data.secondName; $scope.email = data.email; $scope.phoneNumber = data.phoneNumber; ...
JavaScript
alert("app"); angular.module('phonecatApp', ['ngRoute', 'phonecatControllers','userService']);
JavaScript
var phonecatServices = angular.module('userService', ['ngResource']); alert("service"); phonecatServices.factory('User', ['$resource', function($resource){ return $resource('http://localhost:8080/restservice/rest/usuarios', {}, { query: {method:'GET', params:{}, isArray:false} }); }]);
JavaScript
// needs Markdown.Converter.js at the moment (function () { var util = {}, position = {}, ui = {}, doc = window.document, re = window.RegExp, nav = window.navigator, SETTINGS = { lineLength: 72 }, // Used to work around some browser bugs where we ca...
JavaScript
(function () { var output, Converter; if (typeof exports === "object" && typeof require === "function") { // we're in a CommonJS (e.g. Node.js) module output = exports; Converter = require("./Markdown.Converter").Converter; } else { output = window.Markdown; Converter = outpu...
JavaScript
exports.Converter = require("./Markdown.Converter").Converter; exports.getSanitizingConverter = require("./Markdown.Sanitizer").getSanitizingConverter;
JavaScript
var Markdown; if (typeof exports === "object" && typeof require === "function") // we're in a CommonJS (e.g. Node.js) module Markdown = exports; else Markdown = {}; // The following text is included for historical reasons, but should // be taken with a pinch of salt; it's not all true anymore. ...
JavaScript
// Usage: // // var myConverter = new Markdown.Editor(myConverter, null, { strings: Markdown.local.fr }); (function () { Markdown.local = Markdown.local || {}; Markdown.local.fr = { bold: "Gras <strong> Ctrl+B", boldexample: "texte en gras", italic: "Italique <em> Ctrl+I", ...
JavaScript
// NOTE: This is just a demo -- in a production environment, // be sure to spend a few more thoughts on sanitizing user input. // (also, you probably wouldn't use a get request) var http = require("http"), url = require("url"), querystring = require("querystring"), Converter = require("../../Markdown.Conve...
JavaScript
/* Copyright (C) 2011 Google Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, softwa...
JavaScript
/** jquery.color.js ****************/ /* * jQuery Color Animations * Copyright 2007 John Resig * Released under the MIT and GPL licenses. */ (function(jQuery){ // We override the animation for all of these color styles jQuery.each(['backgroundColor', 'borderBottomColor', 'borderLeftColor', 'borderRightColor', '...
JavaScript
/*! * jQuery Cycle Plugin (with Transition Definitions) * Examples and documentation at: http://jquery.malsup.com/cycle/ * Copyright (c) 2007-2010 M. Alsup * Version: 2.9999.5 (10-APR-2012) * Dual licensed under the MIT and GPL licenses. * http://jquery.malsup.com/license.html * Requires: jQuery v1.3.2 or later ...
JavaScript
/* Script for the Meteor Slides 1.5.1 slideshow Copy "slideshow.js" from "../../meteor-slides/js/default.htm" to your theme's directory to replace the plugin's default slideshow script. Learn more about customizing the slideshow script for Meteor Slides: http://www.jleuze.com/plugins/meteor-slides/customizing...
JavaScript
/** * jQuery Plugin to obtain touch gestures from iPhone, iPod Touch and iPad, should also work with Android mobile phones (not tested yet!) * Common usage: wipe images (left and right to show the previous or next image) * * @author Andreas Waltl, netCU Internetagentur (http://www.netcu.de) * @version 1.1.1 (9th ...
JavaScript
/* * Metadata - jQuery plugin for parsing metadata from elements * * Copyright (c) 2006 John Resig, Yehuda Katz, J�örn Zaefferer, Paul McLanahan * * 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: j...
JavaScript