code stringlengths 1 2.08M | language stringclasses 1
value |
|---|---|
// Copyright(2011) ReportGear co., ltd.
/**
* @fileOverview 业务基础开发平台-核心-HTML5兼容
*/
(function() {
var toString = Object.prototype.toString;
/**
* 判断对象是否为数组
*/
if (!Array.isArray) {
Array.isArray = function(arg) {
return toString.call(arg) === '[object Array]';
}
}
/**
* 数组遍历
*
... | JavaScript |
/**
* JS常量表
*/
/**
* 获取 Web应用地址
*/
/**
* 获取 Web应用地址
*/
function getContextPath() {
var contextPath = document.location.pathname;
var index = contextPath.substr(1).indexOf("/");
contextPath = contextPath.substr(0, index + 1);
return contextPath;
}
SERVER_HOST_ADDRESS = getContextPath();
... | JavaScript |
// Copyright(2011) ReportGear co., ltd.
/**
* @fileOverview 业务基础开发平台-核心-语言扩展
*/
sps.provide('sps.lang');
(function() {
var toString = Object.prototype.toString;
var hasOwn = 'hasOwnProperty';
var push = Array.prototype.push;
var slice = Array.prototype.slice;
var trim = String.prototype.trim;
var... | JavaScript |
/**
* @fileOverview Gear提供JSON支持
* @author <a href="mailto:lexloo@126.com">lexloo</a>
*/
(function() {
"use strict";
if (sps.global.JSON) {
return;
}
sps.global.JSON = {};
/* 格式化整数至少为2位数 */
var f = function(n) {
return n < 10 ? '0' + n : n;
}
if (typeof Date.prototype.toJSON !== 'fu... | JavaScript |
sps.provide('sps.gis.supermap.MapControl');
sps.include(sps.baseJsPath + 'libs/supermap/include.js');
sps.gis.supermap.MapControl = function() {
};
sps.gis.supermap.MapControl.prototype = {
//地图控件初始化,传入地图控件的DIV容器id
initMap: function (containerDiv) {
this.map = $create(SuperMap.Web.Mapping.... | JavaScript |
/**
* @fileOverview GIS地图控件访问接口
* @author <a href='mailto:lifuwei1984@163.com'>lifuwei</a>
*/
abbp.provide('abbp.gis.supermap.Map');
/* 加载SuperMap类库 */
abbp.include(abbp.baseJsPath + 'lib/supermap/scripts/include.js');
/**
* 地图构造函数
*
* @param {object}
* y params 构造参数,类似div容器之类参数,有些初始化信... | JavaScript |
// Copyright(2011) ReportGear co., ltd.
/**
* @fileOverview 业务基础开发平台-DOM操作-Dom操作
*/
sps.provide('sps.dom');
/**
* DOM操作
*
* @constructor
*/
sps.dom = {};
/**
* 获取DOM元素
*
* @param {string/HTMLElement}
* element 要获取的DOM元素
*/
sps.dom.getElement = function(element) {
if (sps.l... | JavaScript |
var BASE_URL = 'http://localhost:8090/iserver/';
var BASE_MAP_URL = BASE_URL + 'services/map-instance/rest/maps/';
SVRCFG = {
MAP_SCALES: [0.0001, 0.0002, 0.0004, 0.0008, 0.0016, 0.0032, 0.0064, 0.0128, 0.0256, 0.0512, 0.1],
MAP_URL: BASE_MAP_URL + 'GIS602',
OVERVIEW_MAP_URL: BASE_MAP_URL + 'GIS602',
... | JavaScript |
/**
* 业务平台基类
*/
var sps = sps || {};
/**
* 全局引用,大部分情况下为'window'
*/
sps.global = this;
/**
* JS基本目录
*/
sps.baseJsPath = BASE_JS_PATH || './';
/**
* CSS基本目录
*/
sps.baseCssPath = BASE_THEME_PATH || 'theme/default/';
/**
* 空函数,什么事都不做,可用于默认回调函数等
*
* @return {void} 空
*/
sps.fGo = f... | JavaScript |
var deps = {};
/**
* 添加依赖
*/
sps.addDependency = function (name, src, dependency) {
var d = deps[name] = { };
d.src = src;
dependency && (d.deps = dependency);
};
/* GIS */
sps.addDependency('sps.gis.supermap.MapControl', 'gis/mapControl.js');
sps.addDependency('sps.gis.supermap.Map',... | JavaScript |
if (!window.sps) {
window.sps = {};
}
;
if (!sps.ui) {
sps.ui = {};
}
;
sps.ui.mapControl = null;
sps.ui.map = null;
sps.ui.scene = null;
function initUI() {
Ext.Loader.setConfig({ enabled: true });
Ext.create("Ext.Viewport", {
layout: 'border',
items: [{
... | JavaScript |
Type.registerNamespace("SuperMap.Web.Mapping");
SuperMap.Web.Mapping.DynamicRESTLayer = function() {
SuperMap.Web.Mapping.DynamicRESTLayer.initializeBase(this);
this._bgColor = "";
this._transparent = false;
this._time;
this._exceptions;
this._dynamicImage = null;
this._width;
this._height;
this._typ... | JavaScript |
Type.registerNamespace("SuperMap.Web.Resources");
SuperMap.Web.Resources.Resource = function() {
};
SuperMap.Web.Resources.Resource.locale = "zh_cn";
SuperMap.Web.Resources.Resource.getMessage = function(bundleName, key, message) {
var res = eval(bundleName + "." + SuperMap.Web.Resources.Resource.locale + "." ... | JavaScript |
//debugger;
function _IncludeScript(inc){
var script = '<' + 'script type="text/javascript" src="../Scripts/Libs/SuperMap/' + inc + '"' + '><' + '/script>';
document.writeln(script);
}
function _GetBrowser(){
var ua=navigator.userAgent.toLowerCase();
if(ua.indexOf('opera')!=-1)return'opera';
else ... | JavaScript |
// Copyright(2011) ReportGear co., ltd.
/**
* @fileOverview 业务基础开发平台-核心-HTML5兼容
*/
(function() {
var toString = Object.prototype.toString;
/**
* 判断对象是否为数组
*/
if (!Array.isArray) {
Array.isArray = function(arg) {
return toString.call(arg) === '[object Array]';
}
}
/**
* 数组遍历
*
... | JavaScript |
/**
* JS常量表
*/
/**
* 获取 Web应用地址
*/
/**
* 获取 Web应用地址
*/
function getContextPath() {
var contextPath = document.location.pathname;
var index = contextPath.substr(1).indexOf("/");
contextPath = contextPath.substr(0, index + 1);
return contextPath;
}
SERVER_HOST_ADDRESS = getContextPath();
... | JavaScript |
// Copyright(2011) ReportGear co., ltd.
/**
* @fileOverview 业务基础开发平台-核心-语言扩展
*/
sps.provide('sps.lang');
(function() {
var toString = Object.prototype.toString;
var hasOwn = 'hasOwnProperty';
var push = Array.prototype.push;
var slice = Array.prototype.slice;
var trim = String.prototype.trim;
var... | JavaScript |
/**
* @fileOverview Gear提供JSON支持
* @author <a href="mailto:lexloo@126.com">lexloo</a>
*/
(function() {
"use strict";
if (sps.global.JSON) {
return;
}
sps.global.JSON = {};
/* 格式化整数至少为2位数 */
var f = function(n) {
return n < 10 ? '0' + n : n;
}
if (typeof Date.prototype.toJSON !== 'fu... | JavaScript |
sps.provide('sps.gis.supermap.Record');
sps.provide('sps.gis.supermap.Recordset');
sps.gis.supermap.Record = function () {
};
sps.gis.supermap.Record.prototype = {
values: {},
setValue: function (field, value) {
this.values[field] = value;
},
fromSuperMapFeature: function (feat... | JavaScript |
sps.provide('sps.gis.supermap.MapControl');
sps.include(sps.baseJsPath + 'libs/supermap/include.js');
sps.gis.supermap.MapControl = function() {
};
sps.gis.supermap.MapControl.prototype = {
//地图控件初始化,传入地图控件的DIV容器id
initMap: function (containerDiv) {
this.map = $create(SuperMap.Web.Mapping.... | JavaScript |
/**
* @fileOverview GIS地图控件访问接口
* @author <a href='mailto:lifuwei1984@163.com'>lifuwei</a>
*/
abbp.provide('abbp.gis.supermap.Map');
/* 加载SuperMap类库 */
abbp.include(abbp.baseJsPath + 'lib/supermap/scripts/include.js');
/**
* 地图构造函数
*
* @param {object}
* y params 构造参数,类似div容器之类参数,有些初始化信... | JavaScript |
// Copyright(2011) ReportGear co., ltd.
/**
* @fileOverview 业务基础开发平台-DOM操作-Dom操作
*/
sps.provide('sps.dom');
/**
* DOM操作
*
* @constructor
*/
sps.dom = {};
/**
* 获取DOM元素
*
* @param {string/HTMLElement}
* element 要获取的DOM元素
*/
sps.dom.getElement = function(element) {
if (sps.l... | JavaScript |
var BASE_URL = 'http://localhost:8090/iserver/';
var BASE_MAP_URL = BASE_URL + 'services/map-instance/rest/maps/';
SVRCFG = {
MAP_SCALES: [0.0001, 0.0002, 0.0004, 0.0008, 0.0016, 0.0032, 0.0064, 0.0128, 0.0256, 0.0512, 0.1],
MAP_URL: BASE_MAP_URL + 'GIS602',
OVERVIEW_MAP_URL: BASE_MAP_URL + 'GIS602',
... | JavaScript |
/**
* Master Slider, Gallery Template v1.0
* @author: Averta Ltd.
*/
;(function(){
window.MSGallery = function(id , slider){
this.id = id;
this.slider = slider;
this.telement = $('#'+id);
this.botcont = $('<div></div>').addClass('ms-gallery-botcont').appendTo(this.telement);
this.t... | JavaScript |
$(window).load(function() {
$('#slider').nivoSlider({
effect:'fade', //Specify sets like: 'random', 'fade', 'fold', 'sliceDown', sliceDownRight, 'sliceDownLeft', 'sliceUpRight', 'sliceUpLeft', 'sliceUpDown','sliceUpDownLeft','boxRandom','boxRain','boxRainReverse'
slices:15, // For slice animation... | JavaScript |
function coolMessage(type, message, callbackYes, callbackNo)
{
if(type != 'temporary')
{
$("#"+type).modal({
close:false,
overlayId:'confirmModalOverlay',
containerId:'confirmModalContainer',
onOpen: modalOpen,
onClose: modalClose,
onShow: function (dialog) {
dialog.data.find('.m... | JavaScript |
$(document).ready(function () {
$('.faqs dd').hide();
$('.faqs dt').hover(function(){$(this).addClass('hover')},function(){$(this).removeClass('hover')}).click(function(){
$(this).next().slideToggle('normal');
});
}); | JavaScript |
(function($) {
var NivoSlider = function(element, options){
//Defaults are below
var settings = $.extend({}, $.fn.nivoSlider.defaults, options);
//Useful variables. Play carefully.
var vars = {
currentSlide: 0,
currentImage: '',
totalSlides: 0,
... | JavaScript |
<script type="text/javascript">
function inicializar() {
if (GBrowserIsCompatible()) {
var map = new GMap2(document.getElementById("map"));
map.setCenter(new GLatLng(-33.43795,-70.603627), 15);
map.addControl(new GMapTypeControl());
map.addControl(new GLargeMapControl());
map.addControl(new GScaleC... | JavaScript |
/*
* jQuery Autocomplete plugin 1.1
*
* Copyright (c) 2009 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.js 14 2009-08-22 10:29:29Z joern.zaeffer... | JavaScript |
// JavaScript Document
(function($) {
$(document).ready(function() {
$( '#s' ).each( function(){
$(this).attr( 'title', $(this).val() )
.focus( function(){
if ( $(this).val() == $(this).attr('title') ) {
$(this).val( '' );
}
} ).blur( function(){
if ( $(this).val() == '' || $(this... | JavaScript |
/*
* Create HTML5 elements for IE's sake
* Reference: http://ejohn.org/blog/html5-shiv/
* Reference: http://remysharp.com/2009/01/07/html5-enabling-script/
*/
$(document).ready(function() {
if(!Modernizr.input.placeholder){
$('[placeholder]').focus(function() {
var input = $(this);
if (input.val... | JavaScript |
// This list may be created by a server logic page PHP/ASP/ASPX/JSP in some backend system.
// There images will be displayed as a dropdown in all image dialogs if the "external_link_image_url"
// option is defined in TinyMCE init.
var tinyMCEImageList = new Array(
// Name, URL
["Logo 1", "media/logo.jpg"],
... | JavaScript |
// This list may be created by a server logic page PHP/ASP/ASPX/JSP in some backend system.
// There templates will be displayed as a dropdown in all media dialog if the "template_external_list_url"
// option is defined in TinyMCE init.
var tinyMCETemplateList = [
// Name, URL, Description
["Simple snippet", "... | JavaScript |
// This list may be created by a server logic page PHP/ASP/ASPX/JSP in some backend system.
// There links will be displayed as a dropdown in all link dialogs if the "external_link_list_url"
// option is defined in TinyMCE init.
var tinyMCELinkList = new Array(
// Name, URL
["Moxiecode", "http://www.moxiecode.... | JavaScript |
// This list may be created by a server logic page PHP/ASP/ASPX/JSP in some backend system.
// There flash movies will be displayed as a dropdown in all media dialog if the "media_external_list_url"
// option is defined in TinyMCE init.
var tinyMCEMediaList = [
// Name, URL
["Some Flash", "media/sample.swf"],
... | JavaScript |
(function () {
/* global window */
/* jslint browser: true, devel: true, undef: true, nomen: true, bitwise: true, regexp: true, newcap: true, immed: true */
/**
* Wrapper for FireBug's console.log
*/
function log(){
if (typeof(console) != 'undefined' && typeof(console.log)... | JavaScript |
(function($){
var initLayout = function() {
var hash = window.location.hash.replace('#', '');
var currentTab = $('ul.navigationTabs a')
.bind('click', showTab)
.filter('a[rel=' + hash + ']');
if (currentTab.size() == 0) {
currentTab = $('ul.navigationTabs a:first');
}
showTab.apply(... | JavaScript |
(function($) {
$.fn.lightbox_me = function(options) {
return this.each(function() {
var
opts = $.extend({}, $.fn.lightbox_me.defaults, options),
$overlay = $(),
$self = $(this),
$iframe = $('<iframe id="foo" style="z-in... | JavaScript |
/**
*
* Zoomimage
* Author: Stefan Petre www.eyecon.ro
*
*/
(function($){
var EYE = window.EYE = function() {
var _registered = {
init: []
};
return {
init: function() {
$.each(_registered.init, function(nr, fn){
fn.call();
});
},
extend: function(prop) {
for ... | JavaScript |
/**
*
* Utilities
* Author: Stefan Petre www.eyecon.ro
*
*/
(function($) {
EYE.extend({
getPosition : function(e, forceIt)
{
var x = 0;
var y = 0;
var es = e.style;
var restoreStyles = false;
if (forceIt && jQuery.curCSS(e,'display') == 'none') {
var oldVisibility = es.visibility;
... | 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) 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 pointers.
* Thanks to: Mathia... | 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
*
* Revisio... | JavaScript |
/*
* FancyBox - jQuery Plugin
* Simple and fancy lightbox alternative
*
* Examples and documentation at: http://fancybox.net
*
* Copyright (c) 2008 - 2010 Janis Skarnelis
*
* Version: 1.3.1 (05/03/2010)
* Requires: jQuery v1.3+
*
* Dual licensed under the MIT and GPL licenses:
* http://www.op... | JavaScript |
/*
* FancyBox - simple jQuery plugin for fancy image zooming
* Examples and documentation at: http://fancy.klade.lv/
* Version: 1.0.0 (29/04/2008)
* Copyright (c) 2008 Janis Skarnelis
* Licensed under the MIT License: http://www.opensource.org/licenses/mit-license.php
* Requires: jQuery v1.2.1 or later
*/
... | JavaScript |
function coolMessage(type, message, callbackYes, callbackNo)
{
if(type != 'temporary')
{
$("#"+type).modal({
close:false,
overlayId:'confirmModalOverlay',
containerId:'confirmModalContainer',
onOpen: modalOpen,
onClose: modalClose,
onShow: function (dialog) {
dialog.data.find('.m... | JavaScript |
/**
*
* Color picker
* Author: Stefan Petre www.eyecon.ro
*
* Dual licensed under the MIT and GPL licenses
*
*/
(function ($) {
var ColorPicker = function () {
var
ids = {},
inAction,
charMin = 65,
visible,
tpl = '<div class="colorpicker"><div class="colorpicker_color"><div><di... | JavaScript |
/**
* jquery.Jcrop.js v0.9.12
* jQuery Image Cropping Plugin - released under MIT License
* Author: Kelly Hallman <khallman@gmail.com>
* http://github.com/tapmodo/Jcrop
* Copyright (c) 2008-2013 Tapmodo Interactive LLC {{{
*
* Permission is hereby granted, free of charge, to any person
* obtaining a co... | JavaScript |
jQuery(function ($) {
// The variable jcrop_api will hold a reference to the
// Jcrop API once Jcrop is instantiated.
var jcrop_api;
// In this example, since Jcrop may be attached or detached
// at the whim of the user, I've wrapped the call into a function
... | JavaScript |
/**
* Image Cropper (v. 1.2.2 - 2011-07-04 )
* Copyright (c) 2006-2011 David Spurr (http://www.defusion.org.uk/)
*
* The image cropper provides a way to draw a crop area on an image and capture
* the coordinates of the drawn crop area.
*
* Features include:
* - Based on Prototype and Scriptaculous
... | JavaScript |
/**
* Copyright (c) 2006-2011, David Spurr (http://www.defusion.org.uk/)
*
* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain the above copyright notice, this l... | JavaScript |
function replaceAll(string, token, newtoken) {
while (string.indexOf(token) != -1) {
string = string.replace(token, newtoken);
}
return string;
}
function repeat(s, n) {
if (!n) return "";
if (n & 1) return repeat(s, n-1) + s;
var t = repeat(s, n>>1);
return t + t;
}
function moneyToFloat(... | JavaScript |
//This file contains methods for cross browser scripting dealing with key events
//(ie. onKeyPress, onKeyUp, onKeyDown, etc)
/**
* This method returns true if the enter key was pressed, false otherwise.
*/
function enterKeyPressed(event)
{
//13 = enter
return keyPressed(event, 13);
}
/**
* This met... | JavaScript |
function draw(){
var canvas=document.getElementById("canvas");
if(!canvas.getContext){
return;
}
var ctx=canvas.getContext("2d");
ctx.fillStyle="rgb(200,0,0)";
ctx.fillRect(10,10,55,50);
ctx.fillStyle="rgba(0,0,200,0.5)";
ctx.fillRect(30,30,55,50);
} | JavaScript |
/*
search(value, searchfield, resultcontainer, callback: result show/hide, callback: valid true/false)
callbacks:
result show/hide: arg1 = display container for results
valid true/false: arg1 = input is valid bandname (do whatever you wanna do)
*/
var search_cb_valid = "", search_cb_resshow = "";
var sea... | JavaScript |
/*
search(value, searchfield, resultcontainer, callback: result show/hide, callback: valid true/false)
callbacks:
result show/hide: arg1 = display container for results
valid true/false: arg1 = input is valid bandname (do whatever you wanna do)
*/
var search_cb_valid = "", search_cb_resshow = "";
var sea... | JavaScript |
function delete_news(id) {
c = confirm("News wirklich loeschen?");
if(c) {
document.location.href="index.php?filter=all&action=del&news_id="+id;
}
}
| JavaScript |
var http_request=false;
var _get, saveget = 1, callback = "";
function _request(url, data) {
http_request=false;
if(window.XMLHttpRequest) { // Firefox, Mozilla, Safari, Konqueror
http_request=new XMLHttpRequest();
/*
if(http_request.overrideMimeType) {
http_request.overrideMimeType('text/xml');
... | JavaScript |
var anylinkmenu1={divclass:'anylinkmenu', inlinestyle:'', linktarget:''} //First menu variable. Make sure "anylinkmenu1" is a unique name!
anylinkmenu1.items=[
["Dynamic Drive", "http://www.dynamicdrive.com/"],
["CSS Drive", "http://www.cssdrive.com/"],
["JavaScript Kit", "http://www.javascriptkit.com/"],
["Co... | JavaScript |
tinyMCE.init({
// General options
mode : "textareas",
theme : "advanced",
plugins : "autolink,lists,spellchecker,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,f... | JavaScript |
/**
* jscolor, JavaScript Color Picker
*
* @version 1.3.8
* @license GNU Lesser General Public License, http://www.gnu.org/copyleft/lesser.html
* @author Jan Odvarko, http://odvarko.cz
* @created 2008-06-15
* @updated 2011-07-10
* @link http://jscolor.com
*/
var jscolor = {
dir : '', // location of js... | JavaScript |
/*
Returns the Ajax Object.
*/
function getXMLHttp() {
var xmlHttp
try {
//Firefox, Opera 8.0+, Safari
xmlHttp = new XMLHttpRequest();
} catch(e) {
//Internet Explorer
try {
xmlHttp = new ActiveXObject("Msxml2.XMLHTTP");
} catch(e) {
try {
xmlHttp = new Activ... | JavaScript |
/*
DezinerFolio.com Simple Accordians.
Author : G.S.Navin Raj Kumar
Website : http://dezinerfolio.com
*/
/*
* The Variable names have been compressed to achive a higher level of compression.
*/
// Prototype Method to get the element based on ID
function $(d){
return document.getElementById(d);
}
... | JavaScript |
//** AnyLink JS Drop Down Menu v2.0- (c) Dynamic Drive DHTML code library: http://www.dynamicdrive.com
//** Script Download/ instructions page: http://www.dynamicdrive.com/dynamicindex1/dropmenuindex.htm
//** January 29th, 2009: Script Creation date
//**May 22nd, 09': v2.1
//1) Automatically adds a "selectedanchor" C... | JavaScript |
/******************************************
Auto-readmore link script, version 2.0 (for blogspot)
(C)2008 by abu iyad
http://abu-iyad.blogspot.com
********************************************/
function removeHtmlTag(strx,chop){
if(strx.indexOf("<")!=-1)
{
var s = strx.split("<");
for(var i=0;i<s.le... | JavaScript |
//////////////////////////////////////////////////////////////////////////////////
// Cloud Zoom V1.0.2
// (c) 2010 by R Cecco. <http://www.professorcloud.com>
// MIT License
//
// Please retain this copyright header in all versions of the software
/////////////////////////////////////////////////////////////////... | JavaScript |
//Script by Aneesh of www.bloggerplugins.org
//Released on August 19th August 2009
// Modified By Bloggerzbible.com
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.e... | JavaScript |
/******************************************
Auto-readmore link script, version 2.0 (for blogspot)
(C)2010 by abu-iyad
http://abu-iyad.blogspot.com
********************************************/
function removeHtmlTag(strx,chop){
if(strx.indexOf("<")!=-1)
{
var s = strx.split("<");
for(var i=0;i<s.le... | JavaScript |
/******************************************
Auto-readmore link script, version 2.0 (for blogspot)
(C)2008 by Anhvo
http://www.abu-iyad.blogspot.com
********************************************/
function removeHtmlTag(strx,chop){
if(strx.indexOf("<")!=-1)
{
var s = strx.split("<");
for(var i=0;i<s.l... | JavaScript |
function removeHtmlTag(strx,chop){var s=strx.split("<");
for(var i=0;i<s.length;i++){if(s[i].indexOf(">")!=-1){s[i]=s[i].substring(s[i].indexOf(">")+1,s[i].length);}}
s=s.join("");s=s.substring(0,chop-1);return s;}
function showrecentposts(json){j=(showRandomImg)?Math.floor((imgr.length+1)*Math.random()):0;img=new Ar... | JavaScript |
function removeHtmlTag(strx,chop){var s=strx.split("<");
for(var i=0;i<s.length;i++){if(s[i].indexOf(">")!=-1){s[i]=s[i].substring(s[i].indexOf(">")+1,s[i].length);}}
s=s.join("");s=s.substring(0,chop-1);return s;}
function showrecentposts(json){j=(showRandomImg)?Math.floor((imgr.length+1)*Math.random()):0;img=new Ar... | JavaScript |
function removeHtmlTag(strx,chop){var s=strx.split("<");
for(var i=0;i<s.length;i++){if(s[i].indexOf(">")!=-1){s[i]=s[i].substring(s[i].indexOf(">")+1,s[i].length);}}
s=s.join("");s=s.substring(0,chop-1);return s;}
function showrecentposts(json){j=(showRandomImg)?Math.floor((imgr.length+1)*Math.random()):0;img=new Ar... | JavaScript |
/*<![CDATA[*/
if (typeof firstText == "undefined") firstText = "First";
if (typeof lastText == "undefined") lastText = "Last";
var noPage;
var currentPage;
var currentPageNo;
var postLabel;
pagecurrentg();
function looppagecurrentg(pageInfo) {
var html = '';
pageNumbe... | JavaScript |
/*
* jQuery FlexSlider v2.1
* http://www.woothemes.com/flexslider/
*
* Copyright 2012 WooThemes
* Free to use under the GPLv2 license.
* http://www.gnu.org/licenses/gpl-2.0.html
*
* Contributing author: Tyler Smith (@mbmufffin)
*/
eval(function(p,a,c,k,e,d){e=function(c){return c.toString(36)};if(!''.replace(/... | JavaScript |
function w2bAdvRecentPostsScrollerv3(json) {
var w2brecentposts;
var w2bpostlink;
var w2bobj;
var w2bmarqueehtml;
var w2bmarqueehtml2;
var byWay2blogging;
var w2blinkgap;
var w2bposttargetlink;
var w2bBullet;
try {
w2bmarqueehtml = "\<marquee behavior=\"scroll\" onmouseover=\"this.stop();\" onmouseout=\"thi... | JavaScript |
function removeHtmlTag(strx,chop){var s=strx.split("<");
for(var i=0;i<s.length;i++){if(s[i].indexOf(">")!=-1){s[i]=s[i].substring(s[i].indexOf(">")+1,s[i].length);}}
s=s.join("");s=s.substring(0,chop-1);return s;}
function showrecentposts(json){j=(showRandomImg)?Math.floor((imgr.length+1)*Math.random()):0;img=new Arr... | JavaScript |
function create_menu(basepath)
{
var base = (basepath == 'null') ? '' : basepath;
document.write(
'<table cellpadding="0" cellspaceing="0" border="0" style="width:98%"><tr>' +
'<td class="td" valign="top">' +
'<ul>' +
'<li><a href="'+base+'index.html">User Guide Home</a></li>' +
'<li><a href="'+base+'toc.... | JavaScript |
/*
moo.fx, simple effects library built with prototype.js (http://prototype.conio.net).
by Valerio Proietti (http://mad4milk.net) MIT-style LICENSE.
for more info (http://moofx.mad4milk.net).
10/24/2005
v(1.0.2)
*/
//base
var fx = new Object();
fx.Base = function(){};
fx.Base.prototype = {
setOptions: function(option... | JavaScript |
window.onload = function() {
myHeight = new fx.Height('nav', {duration: 400});
myHeight.hide();
} | JavaScript |
// NOTICE!! DO NOT USE ANY OF THIS JAVASCRIPT
// IT'S ALL JUST JUNK FOR OUR DOCS!
// ++++++++++++++++++++++++++++++++++++++++++
!function ($) {
$(function(){
var $window = $(window)
// Disable certain links in docs
$('section [href^=#]').click(function (e) {
e.preventDefault()
})
// sid... | JavaScript |
/*
Holder - 1.9 - client side image placeholders
(c) 2012-2013 Ivan Malopinsky / http://imsky.co
Provided under the Apache 2.0 License: http://www.apache.org/licenses/LICENSE-2.0
Commercial use requires attribution.
*/
var Holder = Holder || {};
(function (app, win) {
var preempted = false,
fallback = false,
canva... | JavaScript |
var dayarray=new Array("Minggu","Senin","Selasa","Rabu","Kamis","Jumat","Sabtu")
var montharray=new Array("Januari","Februari","Maret","April","Mei","Juni","Juli","Agustus","September","Oktober","November","Desember")
function getthedate(){
var mydate=new Date()
var year=mydate.getYear()
if (year < 1000)
year+=1900
v... | JavaScript |
/**
* @summary DataTables
* @description Paginate, search and sort HTML tables
* @version 1.9.4
* @file jquery.dataTables.js
* @author Allan Jardine (www.sprymedia.co.uk)
* @contact www.sprymedia.co.uk/contact
*
* @copyright Copyright 2008-2012 Allan Jardine, all rights reserved.
*
* T... | JavaScript |
/**
* Return the settings object for a particular table
* @param {node} nTable table we are using as a dataTable
* @returns {object} Settings object - or null if not found
* @memberof DataTable#oApi
*/
function _fnSettingsFromNode ( nTable )
{
for ( var i=0 ; i<DataTable.settings.length ; i++ )
{
if ( Data... | JavaScript |
/**
* Add a data array to the table, creating DOM node etc. This is the parallel to
* _fnGatherData, but for adding rows from a Javascript source, rather than a
* DOM source.
* @param {object} oSettings dataTables settings object
* @param {array} aData data array to be added
* @returns {int} >=0 if successful... | JavaScript |
/**
* Generate the node required for filtering text
* @returns {node} Filter control element
* @param {object} oSettings dataTables settings object
* @memberof DataTable#oApi
*/
function _fnFeatureHtmlFilter ( oSettings )
{
var oPreviousSearch = oSettings.oPreviousSearch;
var sSearchStr = oSettings.oLangu... | JavaScript |
/**
* Update the table using an Ajax call
* @param {object} oSettings dataTables settings object
* @returns {boolean} Block the table drawing or not
* @memberof DataTable#oApi
*/
function _fnAjaxUpdate( oSettings )
{
if ( oSettings.bAjaxDataGet )
{
oSettings.iDraw++;
_fnProcessingDisplay( oSettings, tru... | JavaScript |
/**
* Add a column to the list used for the table with default values
* @param {object} oSettings dataTables settings object
* @param {node} nTh The th element for this column
* @memberof DataTable#oApi
*/
function _fnAddColumn( oSettings, nTh )
{
var oDefaults = DataTable.defaults.columns;
var iCol = oSett... | JavaScript |
/**
* Generate the node required for user display length changing
* @param {object} oSettings dataTables settings object
* @returns {node} Display length feature node
* @memberof DataTable#oApi
*/
function _fnFeatureHtmlLength ( oSettings )
{
if ( oSettings.oScroll.bInfinite )
{
return null;
}
/* This... | JavaScript |
var i=0, iLen, j, jLen, k, kLen;
var sId = this.getAttribute( 'id' );
var bInitHandedOff = false;
var bUsePassedData = false;
/* Sanity check */
if ( this.nodeName.toLowerCase() != 'table' )
{
_fnLog( null, 0, "Attempted to initialise DataTables on a node which is not a "+
"table: "+this.nodeName );
return;
}
/*... | JavaScript |
/**
* Generate the node required for the info display
* @param {object} oSettings dataTables settings object
* @returns {node} Information element
* @memberof DataTable#oApi
*/
function _fnFeatureHtmlInfo ( oSettings )
{
var nInfo = document.createElement( 'div' );
nInfo.className = oSettings.oClasses.sInfo;... | JavaScript |
/**
* Save the state of a table in a cookie such that the page can be reloaded
* @param {object} oSettings dataTables settings object
* @memberof DataTable#oApi
*/
function _fnSaveState ( oSettings )
{
if ( !oSettings.oFeatures.bStateSave || oSettings.bDestroying )
{
return;
}
/* Store the interesting va... | JavaScript |
/**
* Create a new TR element (and it's TD children) for a row
* @param {object} oSettings dataTables settings object
* @param {int} iRow Row to consider
* @memberof DataTable#oApi
*/
function _fnCreateTr ( oSettings, iRow )
{
var oData = oSettings.aoData[iRow];
var nTd;
if ( oData.nTr === null )
{
oData... | JavaScript |
/**
* Convert a CSS unit width to pixels (e.g. 2em)
* @param {string} sWidth width to be converted
* @param {node} nParent parent to get the with for (required for relative widths) - optional
* @returns {int} iWidth width in pixels
* @memberof DataTable#oApi
*/
function _fnConvertToWidth ( sWidth, nParent )
{... | JavaScript |
/**
* Add any control elements for the table - specifically scrolling
* @param {object} oSettings dataTables settings object
* @returns {node} Node to add to the DOM
* @memberof DataTable#oApi
*/
function _fnFeatureHtmlTable ( oSettings )
{
/* Check if scrolling is enabled or not - if not then leave the DOM un... | JavaScript |
/**
* Draw the table for the first time, adding all required features
* @param {object} oSettings dataTables settings object
* @memberof DataTable#oApi
*/
function _fnInitialise ( oSettings )
{
var i, iLen, iAjaxStart=oSettings.iInitDisplayStart;
/* Ensure that the table data is fully initialised */
if ( o... | JavaScript |
/**
* Generate the node required for the processing node
* @param {object} oSettings dataTables settings object
* @returns {node} Processing element
* @memberof DataTable#oApi
*/
function _fnFeatureHtmlProcessing ( oSettings )
{
var nProcessing = document.createElement( 'div' );
if ( !oSettings.aanFeature... | JavaScript |
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* Note that most of the paging logic is done in
* DataTable.ext.oPagination
*/
/**
* Generate the node required for default pagination
* @param {object} oSettings dataTables settings object
* @returns {node} Paginat... | JavaScript |
/**
* Change the order of the table
* @param {object} oSettings dataTables settings object
* @param {bool} bApplyClasses optional - should we apply classes or not
* @memberof DataTable#oApi
*/
function _fnSort ( oSettings, bApplyClasses )
{
var
i, iLen, j, jLen, k, kLen,
sDataType, nTh,
aaSort = [],
a... | JavaScript |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.