From e1bd8185385821522368729747c57505aca98451 Mon Sep 17 00:00:00 2001 From: Wolfram Schneider Date: Wed, 10 Jul 2013 12:57:31 +0000 Subject: [PATCH] indent --- tools/htdocs/mkws.js | 156 +++++++++++++++++++++++++------------------------- 1 file changed, 77 insertions(+), 79 deletions(-) diff --git a/tools/htdocs/mkws.js b/tools/htdocs/mkws.js index 2f4d2cb..bac4ccb 100644 --- a/tools/htdocs/mkws.js +++ b/tools/htdocs/mkws.js @@ -822,91 +822,89 @@ function M(word) { * implement jQuery plugins */ jQuery.extend({ - // implement jQuery.parseQuerystring() for parsing URL parameters - parseQuerystring: function() { - var nvpair = {}; - var qs = window.location.search.replace('?', ''); - var pairs = qs.split('&'); - $.each(pairs, function(i, v){ - var pair = v.split('='); - nvpair[pair[0]] = pair[1]; - }); - return nvpair; - }, + // implement jQuery.parseQuerystring() for parsing URL parameters + parseQuerystring: function() { + var nvpair = {}; + var qs = window.location.search.replace('?', ''); + var pairs = qs.split('&'); + $.each(pairs, function(i, v){ + var pair = v.split('='); + nvpair[pair[0]] = pair[1]; + }); + return nvpair; + }, debug2: function(string) { // delayed debug, internal variables are set after dom ready setTimeout(function() { debug(string); }, 500); }, - // service-proxy or pazpar2 - pazpar2: function(config) { - - // simple layout - var div = '
\ -
\ -
\ -
\ -
\ -
\ -
\ - Powered by MKWS © 2013 Index Data\ -
'; - - // new table layout - var table = '\ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ - \ -
\ -
\ -
\ -
\ -
\ -
\ -
\ -
\ -
\ -
\ -
\ -
\ -
\ -
\ -
\ -
\ -
\ -
\ -
'; - - if (config && config.layout == 'div') { - this.debug2("jquery plugin layout: div"); - document.write(div); - } else { - this.debug2("jquery plugin layout: table"); - document.write(table); + // service-proxy or pazpar2 + pazpar2: function(config) { + // simple layout + var div = '
\ +
\ +
\ +
\ +
\ +
\ +
\ + Powered by MKWS © 2013 Index Data\ +
'; + + // new table layout + var table = '\ + \ + \ + \ + \ + \ + \ + \ + \ + \ + \ + \ + \ + \ + \ + \ +
\ +
\ +
\ +
\ +
\ +
\ +
\ +
\ +
\ +
\ +
\ +
\ +
\ +
\ +
\ +
\ +
\ +
\ +
'; + + if (config && config.layout == 'div') { + this.debug2("jquery plugin layout: div"); + document.write(div); + } else { + this.debug2("jquery plugin layout: table"); + document.write(table); + } } - - } }); function debug(string) { -- 1.7.10.4