mambax7/smartfaq

View on GitHub
assets/js/overlib/mini/overlib_mini.js

Summary

Maintainability
F
1 mo
Test Coverage

Function parseTokens has a Cognitive Complexity of 247 (exceeds 5 allowed). Consider refactoring.
Open

function parseTokens(pf, ar) {
    var v, mode = -1, par = (pf != 'ol_');
    var fnMark = (par && !ar.length ? 1 : 0);
    for (i = 0; i < ar.length; i++) {
        if (mode < 0) {
Severity: Minor
Found in assets/js/overlib/mini/overlib_mini.js - About 5 days to fix

Cognitive Complexity

Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

A method's cognitive complexity is based on a few simple rules:

  • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
  • Code is considered more complex for each "break in the linear flow of the code"
  • Code is considered more complex when "flow breaking structures are nested"

Further reading

File overlib_mini.js has 1168 lines of code (exceeds 250 allowed). Consider refactoring.
Open

//\/////
//\  overLIB 4.05 - You may not remove or change this notice.
//\  Copyright Erik Bosrup 1998-2004. All rights reserved.
//\
//\  Contributors are listed on the homepage.
Severity: Major
Found in assets/js/overlib/mini/overlib_mini.js - About 3 days to fix

    Function placeLayer has a Cognitive Complexity of 85 (exceeds 5 allowed). Consider refactoring.
    Open

    function placeLayer() {
        var placeX, placeY, widthFix = 0;
        if (eval('o3_frame.' + docRoot) && eval("typeof o3_frame." + docRoot + ".clientWidth=='number'") && eval('o3_frame.' + docRoot + '.clientWidth')) {
            iwidth = eval('o3_frame.' + docRoot + '.clientWidth');
        } else if (typeof(o3_frame.innerWidth) == 'number') {
    Severity: Minor
    Found in assets/js/overlib/mini/overlib_mini.js - About 1 day to fix

    Cognitive Complexity

    Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

    A method's cognitive complexity is based on a few simple rules:

    • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
    • Code is considered more complex for each "break in the linear flow of the code"
    • Code is considered more complex when "flow breaking structures are nested"

    Further reading

    Function parseTokens has 282 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    function parseTokens(pf, ar) {
        var v, mode = -1, par = (pf != 'ol_');
        var fnMark = (par && !ar.length ? 1 : 0);
        for (i = 0; i < ar.length; i++) {
            if (mode < 0) {
    Severity: Major
    Found in assets/js/overlib/mini/overlib_mini.js - About 1 day to fix

      Function reOrder has a Cognitive Complexity of 61 (exceeds 5 allowed). Consider refactoring.
      Open

      function reOrder(hookPt, fnRef, order) {
          if (!order || typeof order == 'undefined' || typeof order == 'number') return;
          var newPt = new Array(), match;
          if (typeof order == 'function') {
              if (typeof fnRef == 'object') {
      Severity: Minor
      Found in assets/js/overlib/mini/overlib_mini.js - About 1 day to fix

      Cognitive Complexity

      Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

      A method's cognitive complexity is based on a few simple rules:

      • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
      • Code is considered more complex for each "break in the linear flow of the code"
      • Code is considered more complex when "flow breaking structures are nested"

      Further reading

      Function olMain has a Cognitive Complexity of 44 (exceeds 5 allowed). Consider refactoring.
      Open

      function olMain() {
          var layerhtml, styleType;
          runHook("olMain", FBEFORE);
          if (o3_background != "" || o3_fullhtml) {
              layerhtml = runHook('ol_content_background', FALTERNATE, o3_css, o3_text, o3_background, o3_fullhtml);
      Severity: Minor
      Found in assets/js/overlib/mini/overlib_mini.js - About 6 hrs to fix

      Cognitive Complexity

      Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

      A method's cognitive complexity is based on a few simple rules:

      • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
      • Code is considered more complex for each "break in the linear flow of the code"
      • Code is considered more complex when "flow breaking structures are nested"

      Further reading

      Function OLonLoad_handler has a Cognitive Complexity of 28 (exceeds 5 allowed). Consider refactoring.
      Open

      function OLonLoad_handler(e) {
          var re = /\w+\(.*\)[;\s]+/g, olre = /overlib\(|nd\(|cClick\(/, fn, l, i;
          if (!olLoaded) olLoaded = 1;
          if (window.removeEventListener && e.eventPhase == 3) window.removeEventListener("load", OLonLoad_handler, false); else if (window.detachEvent) {
              window.detachEvent("onload", OLonLoad_handler);
      Severity: Minor
      Found in assets/js/overlib/mini/overlib_mini.js - About 4 hrs to fix

      Cognitive Complexity

      Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

      A method's cognitive complexity is based on a few simple rules:

      • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
      • Code is considered more complex for each "break in the linear flow of the code"
      • Code is considered more complex when "flow breaking structures are nested"

      Further reading

      Function registerHook has a Cognitive Complexity of 25 (exceeds 5 allowed). Consider refactoring.
      Open

      function registerHook(fnHookTo, fnRef, hookType, optPm) {
          var hookPt, last = typeof optPm;
          if (fnHookTo == 'plgIn' || fnHookTo == 'postParse') return;
          if (typeof hookPts == 'undefined') hookPts = new Array();
          if (typeof hookPts[fnHookTo] == 'undefined') hookPts[fnHookTo] = new FunctionReference();
      Severity: Minor
      Found in assets/js/overlib/mini/overlib_mini.js - About 3 hrs to fix

      Cognitive Complexity

      Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

      A method's cognitive complexity is based on a few simple rules:

      • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
      • Code is considered more complex for each "break in the linear flow of the code"
      • Code is considered more complex when "flow breaking structures are nested"

      Further reading

      Function ol_content_caption has a Cognitive Complexity of 23 (exceeds 5 allowed). Consider refactoring.
      Open

      function ol_content_caption(text, title, close) {
          var nameId;
          closing = "";
          closeevent = "onmouseover";
          if (o3_closeclick == 1) closeevent = (o3_closetitle ? "title='" + o3_closetitle + "'" : "") + " onclick";
      Severity: Minor
      Found in assets/js/overlib/mini/overlib_mini.js - About 3 hrs to fix

      Cognitive Complexity

      Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

      A method's cognitive complexity is based on a few simple rules:

      • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
      • Code is considered more complex for each "break in the linear flow of the code"
      • Code is considered more complex when "flow breaking structures are nested"

      Further reading

      Function overlib has 79 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      function overlib() {
          if (!olLoaded || isExclusive(overlib.arguments)) return true;
          if (olCheckMouseCapture) olMouseCapture();
          if (over) cClick();
          o3_text = ol_text;
      Severity: Major
      Found in assets/js/overlib/mini/overlib_mini.js - About 3 hrs to fix

        Function placeLayer has 79 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        function placeLayer() {
            var placeX, placeY, widthFix = 0;
            if (eval('o3_frame.' + docRoot) && eval("typeof o3_frame." + docRoot + ".clientWidth=='number'") && eval('o3_frame.' + docRoot + '.clientWidth')) {
                iwidth = eval('o3_frame.' + docRoot + '.clientWidth');
            } else if (typeof(o3_frame.innerWidth) == 'number') {
        Severity: Major
        Found in assets/js/overlib/mini/overlib_mini.js - About 3 hrs to fix

          Function wrapStr has a Cognitive Complexity of 21 (exceeds 5 allowed). Consider refactoring.
          Open

          function wrapStr(endWrap, fontSizeStr, whichString) {
              var fontStr, fontColor, isClose = ((whichString == 'close') ? 1 : 0), hasDims = /[%\-a-z]+$/.test(fontSizeStr);
              fontSizeStr = (olNs4) ? (!hasDims ? fontSizeStr : '1') : fontSizeStr;
              if (endWrap) return (hasDims && !olNs4) ? (isClose ? '</span>' : '</div>') : '</font>'; else {
                  fontStr = 'o3_' + whichString + 'font';
          Severity: Minor
          Found in assets/js/overlib/mini/overlib_mini.js - About 2 hrs to fix

          Cognitive Complexity

          Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

          A method's cognitive complexity is based on a few simple rules:

          • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
          • Code is considered more complex for each "break in the linear flow of the code"
          • Code is considered more complex when "flow breaking structures are nested"

          Further reading

          Function reOrder has 55 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

          function reOrder(hookPt, fnRef, order) {
              if (!order || typeof order == 'undefined' || typeof order == 'number') return;
              var newPt = new Array(), match;
              if (typeof order == 'function') {
                  if (typeof fnRef == 'object') {
          Severity: Major
          Found in assets/js/overlib/mini/overlib_mini.js - About 2 hrs to fix

            Function runHook has a Cognitive Complexity of 16 (exceeds 5 allowed). Consider refactoring.
            Open

            function runHook(fnHookTo, hookType) {
                var l = hookPts[fnHookTo], optPm, arS, ar = runHook.arguments;
                if (hookType == FREPLACE) {
                    arS = argToString(ar, 2);
                    if (typeof l == 'undefined' || !(l = l.ovload)) return eval(fnHookTo + '(' + arS + ')'); else return eval('l(' + arS + ')');
            Severity: Minor
            Found in assets/js/overlib/mini/overlib_mini.js - About 2 hrs to fix

            Cognitive Complexity

            Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

            A method's cognitive complexity is based on a few simple rules:

            • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
            • Code is considered more complex for each "break in the linear flow of the code"
            • Code is considered more complex when "flow breaking structures are nested"

            Further reading

            Function nd has a Cognitive Complexity of 15 (exceeds 5 allowed). Consider refactoring.
            Open

            function nd(time) {
                if (olLoaded && !isExclusive()) {
                    if (time && !o3_delay) {
                        if (o3_timerid > 0) clearTimeout(o3_timerid);
                        o3_timerid = setTimeout("cClick()", (o3_timeout = time));
            Severity: Minor
            Found in assets/js/overlib/mini/overlib_mini.js - About 1 hr to fix

            Cognitive Complexity

            Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

            A method's cognitive complexity is based on a few simple rules:

            • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
            • Code is considered more complex for each "break in the linear flow of the code"
            • Code is considered more complex when "flow breaking structures are nested"

            Further reading

            Function olMain has 42 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

            function olMain() {
                var layerhtml, styleType;
                runHook("olMain", FBEFORE);
                if (o3_background != "" || o3_fullhtml) {
                    layerhtml = runHook('ol_content_background', FALTERNATE, o3_css, o3_text, o3_background, o3_fullhtml);
            Severity: Minor
            Found in assets/js/overlib/mini/overlib_mini.js - About 1 hr to fix

              Function createPopup has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring.
              Open

              function createPopup(lyrContent) {
                  runHook("createPopup", FBEFORE);
                  if (o3_wrap && !(olNs4 || olOp)) {
                      if (olIe4) {
                          over.style.pixelWidth = 0;
              Severity: Minor
              Found in assets/js/overlib/mini/overlib_mini.js - About 55 mins to fix

              Cognitive Complexity

              Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

              A method's cognitive complexity is based on a few simple rules:

              • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
              • Code is considered more complex for each "break in the linear flow of the code"
              • Code is considered more complex when "flow breaking structures are nested"

              Further reading

              Function olMouseCapture has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring.
              Open

              function olMouseCapture() {
                  capExtent = document;
                  var fN, mseHandler = olMouseMove;
                  var re = /function[ ]+(\w+)\(/;
                  if (document.onmousemove || (!olIe4 && window.onmousemove)) {
              Severity: Minor
              Found in assets/js/overlib/mini/overlib_mini.js - About 55 mins to fix

              Cognitive Complexity

              Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

              A method's cognitive complexity is based on a few simple rules:

              • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
              • Code is considered more complex for each "break in the linear flow of the code"
              • Code is considered more complex when "flow breaking structures are nested"

              Further reading

              Function overlib has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring.
              Open

              function overlib() {
                  if (!olLoaded || isExclusive(overlib.arguments)) return true;
                  if (olCheckMouseCapture) olMouseCapture();
                  if (over) cClick();
                  o3_text = ol_text;
              Severity: Minor
              Found in assets/js/overlib/mini/overlib_mini.js - About 55 mins to fix

              Cognitive Complexity

              Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

              A method's cognitive complexity is based on a few simple rules:

              • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
              • Code is considered more complex for each "break in the linear flow of the code"
              • Code is considered more complex when "flow breaking structures are nested"

              Further reading

              Function opt_NOCLOSE has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring.
              Open

              function opt_NOCLOSE(unused) {
                  if (!unused) o3_close = "";
                  if (olNs4) {
                      over.captureEvents(Event.MOUSEOUT || Event.MOUSEOVER);
                      over.onmouseover = function () {
              Severity: Minor
              Found in assets/js/overlib/mini/overlib_mini.js - About 55 mins to fix

              Cognitive Complexity

              Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

              A method's cognitive complexity is based on a few simple rules:

              • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
              • Code is considered more complex for each "break in the linear flow of the code"
              • Code is considered more complex when "flow breaking structures are nested"

              Further reading

              Avoid deeply nested control flow statements.
              Open

                                  if (/anonymous/.test(fN[i])) continue;
              Severity: Major
              Found in assets/js/overlib/mini/overlib_mini.js - About 45 mins to fix

                Avoid deeply nested control flow statements.
                Open

                            if (last == 'number') hookPt.alt[pms[optPm - 1 - pmStart]] = fnRef;
                Severity: Major
                Found in assets/js/overlib/mini/overlib_mini.js - About 45 mins to fix

                  Function set_background has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.
                  Open

                  function set_background(pic) {
                      if (pic == "") {
                          if (olNs4) {
                              over.background.src = null;
                          } else if (over.style) {
                  Severity: Minor
                  Found in assets/js/overlib/mini/overlib_mini.js - About 45 mins to fix

                  Cognitive Complexity

                  Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                  A method's cognitive complexity is based on a few simple rules:

                  • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                  • Code is considered more complex for each "break in the linear flow of the code"
                  • Code is considered more complex when "flow breaking structures are nested"

                  Further reading

                  Function ol_content_background has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.
                  Open

                  function ol_content_background(text, picture, hasfullhtml) {
                      if (hasfullhtml) {
                          txt = text;
                      } else {
                          txt = '<table width="' + o3_width + '" border="0" cellpadding="0" cellspacing="0" height="' + o3_height + '"><tr><td colspan="3" height="' + o3_padyt + '"></td></tr><tr><td width="' + o3_padxl + '"></td><td valign="TOP" width="' + (o3_width - o3_padxl - o3_padxr) + (o3_textfontclass ? '" class="' + o3_textfontclass : '') + '">' + (o3_textfontclass ? '' : wrapStr(0, o3_textsize, 'text')) + text + (o3_textfontclass ? '' : wrapStr(1, o3_textsize)) + '</td><td width="' + o3_padxr + '"></td></tr><tr><td colspan="3" height="' + o3_padyb + '"></td></tr></table>';
                  Severity: Minor
                  Found in assets/js/overlib/mini/overlib_mini.js - About 45 mins to fix

                  Cognitive Complexity

                  Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                  A method's cognitive complexity is based on a few simple rules:

                  • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                  • Code is considered more complex for each "break in the linear flow of the code"
                  • Code is considered more complex when "flow breaking structures are nested"

                  Further reading

                  Avoid deeply nested control flow statements.
                  Open

                                      if (typeof ar[i + 1] != 'number') {
                                          v = ar[++i];
                                          ol_function = (typeof v == 'function' ? v : null);
                                      }
                  Severity: Major
                  Found in assets/js/overlib/mini/overlib_mini.js - About 45 mins to fix

                    Function hideObject has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.
                    Open

                    function hideObject(obj) {
                        runHook("hideObject", FBEFORE);
                        var theObj = (olNs4 ? obj : obj.style);
                        if (olNs6 && olShowId > 0) {
                            clearTimeout(olShowId);
                    Severity: Minor
                    Found in assets/js/overlib/mini/overlib_mini.js - About 45 mins to fix

                    Cognitive Complexity

                    Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                    A method's cognitive complexity is based on a few simple rules:

                    • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                    • Code is considered more complex for each "break in the linear flow of the code"
                    • Code is considered more complex when "flow breaking structures are nested"

                    Further reading

                    Avoid deeply nested control flow statements.
                    Open

                                        if (typeof ar[i + 1] != 'number') v = ar[++i];
                    Severity: Major
                    Found in assets/js/overlib/mini/overlib_mini.js - About 45 mins to fix

                      Avoid deeply nested control flow statements.
                      Open

                                          while ((l = fN[i].search(/\)[;\s]+/)) != -1) {
                                              fn = fN[i].substring(0, l + 1);
                                              fN[i] = fN[i].substring(l + 2);
                                              if (olre.test(fn)) eval(fn);
                                          }
                      Severity: Major
                      Found in assets/js/overlib/mini/overlib_mini.js - About 45 mins to fix

                        Function opt_FUNCTION has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.
                        Open

                        function opt_FUNCTION(callme) {
                            o3_text = (callme ? (typeof callme == 'string' ? (/.+\(.*\)/.test(callme) ? eval(callme) : callme) : callme()) : (o3_function ? o3_function() : 'No Function'));
                            return 0;
                        }
                        Severity: Minor
                        Found in assets/js/overlib/mini/overlib_mini.js - About 45 mins to fix

                        Cognitive Complexity

                        Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                        A method's cognitive complexity is based on a few simple rules:

                        • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                        • Code is considered more complex for each "break in the linear flow of the code"
                        • Code is considered more complex when "flow breaking structures are nested"

                        Further reading

                        Avoid deeply nested control flow statements.
                        Open

                                        for (var j = 0; j < fnRef.length; j++) if (hookPt[i] == fnRef[j]) {
                                            match = true;
                                            break;
                                        }
                        Severity: Major
                        Found in assets/js/overlib/mini/overlib_mini.js - About 45 mins to fix

                          Avoid deeply nested control flow statements.
                          Open

                                          for (var i = 0; i < fnRef.length; i++) if (hookPt[j] == fnRef[i]) {
                                              match = true;
                                              break;
                                          }
                          Severity: Major
                          Found in assets/js/overlib/mini/overlib_mini.js - About 45 mins to fix

                            Avoid deeply nested control flow statements.
                            Open

                                            if (hookPt[j] == order[i]) {
                                                match = true;
                                                break;
                                            }
                            Severity: Major
                            Found in assets/js/overlib/mini/overlib_mini.js - About 45 mins to fix

                              Function disp has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                              Open

                              function disp(statustext) {
                                  runHook("disp", FBEFORE);
                                  if (o3_allowmove == 0) {
                                      runHook("placeLayer", FREPLACE);
                                      (olNs6 && olShowId < 0) ? olShowId = setTimeout("runHook('showObject', FREPLACE, over)", 1) : runHook("showObject", FREPLACE, over);
                              Severity: Minor
                              Found in assets/js/overlib/mini/overlib_mini.js - About 35 mins to fix

                              Cognitive Complexity

                              Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                              A method's cognitive complexity is based on a few simple rules:

                              • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                              • Code is considered more complex for each "break in the linear flow of the code"
                              • Code is considered more complex when "flow breaking structures are nested"

                              Further reading

                              Function opt_MULTIPLEARGS has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                              Open

                              function opt_MULTIPLEARGS(i, args, parameter) {
                                  var k = i, l, re, pV, str = '';
                                  for (k = i; k < args.length; k++) {
                                      str += args[k] + ',';
                                      if (typeof args[k] == 'number' && args[k] > pmStart) break;
                              Severity: Minor
                              Found in assets/js/overlib/mini/overlib_mini.js - About 35 mins to fix

                              Cognitive Complexity

                              Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                              A method's cognitive complexity is based on a few simple rules:

                              • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                              • Code is considered more complex for each "break in the linear flow of the code"
                              • Code is considered more complex when "flow breaking structures are nested"

                              Further reading

                              Function layerWrite has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                              Open

                              function layerWrite(txt) {
                                  txt += "\n";
                                  if (olNs4) {
                                      var lyr = o3_frame.document.overDiv.document
                                      lyr.write(txt)
                              Severity: Minor
                              Found in assets/js/overlib/mini/overlib_mini.js - About 35 mins to fix

                              Cognitive Complexity

                              Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                              A method's cognitive complexity is based on a few simple rules:

                              • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                              • Code is considered more complex for each "break in the linear flow of the code"
                              • Code is considered more complex when "flow breaking structures are nested"

                              Further reading

                              Function isFunction has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                              Open

                              function isFunction(fnRef) {
                                  var rtn = true;
                                  if (typeof fnRef == 'object') {
                                      for (var i = 0; i < fnRef.length; i++) {
                                          if (typeof fnRef[i] == 'function') continue;
                              Severity: Minor
                              Found in assets/js/overlib/mini/overlib_mini.js - About 35 mins to fix

                              Cognitive Complexity

                              Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                              A method's cognitive complexity is based on a few simple rules:

                              • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                              • Code is considered more complex for each "break in the linear flow of the code"
                              • Code is considered more complex when "flow breaking structures are nested"

                              Further reading

                              Avoid too many return statements within this function.
                              Open

                                          return eval(fnHookTo + '(' + arS + ')');
                              Severity: Major
                              Found in assets/js/overlib/mini/overlib_mini.js - About 30 mins to fix

                                Avoid too many return statements within this function.
                                Open

                                            return eval('l(' + arS + ')');
                                Severity: Major
                                Found in assets/js/overlib/mini/overlib_mini.js - About 30 mins to fix

                                  Function olMouseMove has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
                                  Open

                                  function olMouseMove(e) {
                                      var e = (e) ? e : event;
                                      if (e.pageX) {
                                          o3_x = e.pageX;
                                          o3_y = e.pageY;
                                  Severity: Minor
                                  Found in assets/js/overlib/mini/overlib_mini.js - About 25 mins to fix

                                  Cognitive Complexity

                                  Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                                  A method's cognitive complexity is based on a few simple rules:

                                  • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                                  • Code is considered more complex for each "break in the linear flow of the code"
                                  • Code is considered more complex when "flow breaking structures are nested"

                                  Further reading

                                  Function registerCmdLineFunction has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
                                  Open

                                  function registerCmdLineFunction(fn) {
                                      if (isFunction(fn)) {
                                          if (typeof cmdLine == 'undefined') cmdLine = new Array();
                                          if (typeof fn == 'object') {
                                              cmdLine = cmdLine.concat(fn);
                                  Severity: Minor
                                  Found in assets/js/overlib/mini/overlib_mini.js - About 25 mins to fix

                                  Cognitive Complexity

                                  Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                                  A method's cognitive complexity is based on a few simple rules:

                                  • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                                  • Code is considered more complex for each "break in the linear flow of the code"
                                  • Code is considered more complex when "flow breaking structures are nested"

                                  Further reading

                                  Function parseCmdLine has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
                                  Open

                                  function parseCmdLine(pf, i, args) {
                                      if (typeof cmdLine != 'undefined' && cmdLine.length) {
                                          for (var k = 0; k < cmdLine.length; k++) {
                                              var j = cmdLine[k](pf, i, args);
                                              if (j > -1) {
                                  Severity: Minor
                                  Found in assets/js/overlib/mini/overlib_mini.js - About 25 mins to fix

                                  Cognitive Complexity

                                  Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                                  A method's cognitive complexity is based on a few simple rules:

                                  • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                                  • Code is considered more complex for each "break in the linear flow of the code"
                                  • Code is considered more complex when "flow breaking structures are nested"

                                  Further reading

                                  Function registerRunTimeFunction has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
                                  Open

                                  function registerRunTimeFunction(fn) {
                                      if (isFunction(fn)) {
                                          if (typeof runTime == 'undefined') runTime = new Array();
                                          if (typeof fn == 'object') {
                                              runTime = runTime.concat(fn);
                                  Severity: Minor
                                  Found in assets/js/overlib/mini/overlib_mini.js - About 25 mins to fix

                                  Cognitive Complexity

                                  Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                                  A method's cognitive complexity is based on a few simple rules:

                                  • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                                  • Code is considered more complex for each "break in the linear flow of the code"
                                  • Code is considered more complex when "flow breaking structures are nested"

                                  Further reading

                                  Function registerPostParseFunction has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
                                  Open

                                  function registerPostParseFunction(fn) {
                                      if (isFunction(fn)) {
                                          if (typeof postParse == 'undefined') postParse = new Array();
                                          if (typeof fn == 'object') {
                                              postParse = postParse.concat(fn);
                                  Severity: Minor
                                  Found in assets/js/overlib/mini/overlib_mini.js - About 25 mins to fix

                                  Cognitive Complexity

                                  Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                                  A method's cognitive complexity is based on a few simple rules:

                                  • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                                  • Code is considered more complex for each "break in the linear flow of the code"
                                  • Code is considered more complex when "flow breaking structures are nested"

                                  Further reading

                                  Function postParseChecks has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
                                  Open

                                  function postParseChecks() {
                                      if (typeof postParse != 'undefined' && postParse.length) {
                                          for (var k = 0; k < postParse.length; k++) {
                                              if (postParse[k]()) continue;
                                              return false;
                                  Severity: Minor
                                  Found in assets/js/overlib/mini/overlib_mini.js - About 25 mins to fix

                                  Cognitive Complexity

                                  Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                                  A method's cognitive complexity is based on a few simple rules:

                                  • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                                  • Code is considered more complex for each "break in the linear flow of the code"
                                  • Code is considered more complex when "flow breaking structures are nested"

                                  Further reading

                                  Identical blocks of code found in 2 locations. Consider refactoring.
                                  Open

                                  function reOrder(hookPt, fnRef, order) {
                                      if (!order || typeof order == 'undefined' || typeof order == 'number') return;
                                      var newPt = new Array(), match;
                                      if (typeof order == 'function') {
                                          if (typeof fnRef == 'object') {
                                  Severity: Major
                                  Found in assets/js/overlib/mini/overlib_mini.js and 1 other location - About 4 days to fix
                                  assets/js/overlib/overlib.js on lines 1446..1512

                                  Duplicated Code

                                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                  Tuning

                                  This issue has a mass of 688.

                                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                  Refactorings

                                  Further Reading

                                  Similar blocks of code found in 2 locations. Consider refactoring.
                                  Open

                                  function ol_content_caption(text, title, close) {
                                      var nameId;
                                      closing = "";
                                      closeevent = "onmouseover";
                                      if (o3_closeclick == 1) closeevent = (o3_closetitle ? "title='" + o3_closetitle + "'" : "") + " onclick";
                                  Severity: Major
                                  Found in assets/js/overlib/mini/overlib_mini.js and 1 other location - About 3 days to fix
                                  assets/js/overlib/overlib.js on lines 480..497

                                  Duplicated Code

                                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                  Tuning

                                  This issue has a mass of 518.

                                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                  Refactorings

                                  Further Reading

                                  Similar blocks of code found in 2 locations. Consider refactoring.
                                  Open

                                  function runHook(fnHookTo, hookType) {
                                      var l = hookPts[fnHookTo], optPm, arS, ar = runHook.arguments;
                                      if (hookType == FREPLACE) {
                                          arS = argToString(ar, 2);
                                          if (typeof l == 'undefined' || !(l = l.ovload)) return eval(fnHookTo + '(' + arS + ')'); else return eval('l(' + arS + ')');
                                  Severity: Major
                                  Found in assets/js/overlib/mini/overlib_mini.js and 1 other location - About 1 day to fix
                                  assets/js/overlib/overlib.js on lines 1381..1409

                                  Duplicated Code

                                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                  Tuning

                                  This issue has a mass of 348.

                                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                  Refactorings

                                  Further Reading

                                  Similar blocks of code found in 2 locations. Consider refactoring.
                                  Open

                                  function wrapStr(endWrap, fontSizeStr, whichString) {
                                      var fontStr, fontColor, isClose = ((whichString == 'close') ? 1 : 0), hasDims = /[%\-a-z]+$/.test(fontSizeStr);
                                      fontSizeStr = (olNs4) ? (!hasDims ? fontSizeStr : '1') : fontSizeStr;
                                      if (endWrap) return (hasDims && !olNs4) ? (isClose ? '</span>' : '</div>') : '</font>'; else {
                                          fontStr = 'o3_' + whichString + 'font';
                                  Severity: Major
                                  Found in assets/js/overlib/mini/overlib_mini.js and 1 other location - About 1 day to fix
                                  assets/js/overlib/overlib.js on lines 1221..1230

                                  Duplicated Code

                                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                  Tuning

                                  This issue has a mass of 269.

                                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                  Refactorings

                                  Further Reading

                                  Similar blocks of code found in 2 locations. Consider refactoring.
                                  Open

                                  function hideObject(obj) {
                                      runHook("hideObject", FBEFORE);
                                      var theObj = (olNs4 ? obj : obj.style);
                                      if (olNs6 && olShowId > 0) {
                                          clearTimeout(olShowId);
                                  Severity: Major
                                  Found in assets/js/overlib/mini/overlib_mini.js and 1 other location - About 1 day to fix
                                  assets/js/overlib/overlib.js on lines 1073..1096

                                  Duplicated Code

                                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                  Tuning

                                  This issue has a mass of 197.

                                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                  Refactorings

                                  Further Reading

                                  Identical blocks of code found in 2 locations. Consider refactoring.
                                  Open

                                  function layerWrite(txt) {
                                      txt += "\n";
                                      if (olNs4) {
                                          var lyr = o3_frame.document.overDiv.document
                                          lyr.write(txt)
                                  Severity: Major
                                  Found in assets/js/overlib/mini/overlib_mini.js and 1 other location - About 7 hrs to fix
                                  assets/js/overlib/overlib.js on lines 1040..1060

                                  Duplicated Code

                                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                  Tuning

                                  This issue has a mass of 194.

                                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                  Refactorings

                                  Further Reading

                                  Similar blocks of code found in 2 locations. Consider refactoring.
                                  Open

                                  function olMouseCapture() {
                                      capExtent = document;
                                      var fN, mseHandler = olMouseMove;
                                      var re = /function[ ]+(\w+)\(/;
                                      if (document.onmousemove || (!olIe4 && window.onmousemove)) {
                                  Severity: Major
                                  Found in assets/js/overlib/mini/overlib_mini.js and 1 other location - About 7 hrs to fix
                                  assets/js/overlib/overlib.js on lines 714..733

                                  Duplicated Code

                                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                  Tuning

                                  This issue has a mass of 194.

                                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                  Refactorings

                                  Further Reading

                                  Similar blocks of code found in 2 locations. Consider refactoring.
                                  Open

                                          if (fN) {
                                              fN = fN.toString().match(re);
                                              if (fN && fN.length) {
                                                  for (i = 0; i < fN.length; i++) {
                                                      if (/anonymous/.test(fN[i])) continue;
                                  Severity: Major
                                  Found in assets/js/overlib/mini/overlib_mini.js and 1 other location - About 7 hrs to fix
                                  assets/js/overlib/overlib.js on lines 1201..1213

                                  Duplicated Code

                                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                  Tuning

                                  This issue has a mass of 185.

                                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                  Refactorings

                                  Further Reading

                                  Similar blocks of code found in 2 locations. Consider refactoring.
                                  Open

                                  function ol_content_simple(text) {
                                      txt = '<table width="' + o3_width + '" border="0" cellpadding="' + o3_border + '" cellspacing="0" ' + (o3_bgclass ? 'class="' + o3_bgclass + '"' : o3_bgcolor + ' ' + o3_height) + '><tr><td><table width="100%" border="0" cellpadding="' + o3_cellpad + '" cellspacing="0" ' + (o3_fgclass ? 'class="' + o3_fgclass + '"' : o3_fgcolor + ' ' + o3_fgbackground + ' ' + o3_height) + '><tr><td valign="TOP"' + (o3_textfontclass ? ' class="' + o3_textfontclass + '">' : '>') + (o3_textfontclass ? '' : wrapStr(0, o3_textsize, 'text')) + text + (o3_textfontclass ? '' : wrapStr(1, o3_textsize)) + '</td></tr></table></td></tr></table>';
                                      set_background("");
                                      return txt;
                                  }
                                  Severity: Major
                                  Found in assets/js/overlib/mini/overlib_mini.js and 1 other location - About 6 hrs to fix
                                  assets/js/overlib/overlib.js on lines 472..477

                                  Duplicated Code

                                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                  Tuning

                                  This issue has a mass of 170.

                                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                  Refactorings

                                  Further Reading

                                  Similar blocks of code found in 2 locations. Consider refactoring.
                                  Open

                                          if (hookType == FREPLACE) {
                                              hookPt.ovload = fnRef;
                                              if (fnHookTo.indexOf('ol_content_') > -1) hookPt.alt[pms[CSSOFF - 1 - pmStart]] = fnRef;
                                          } else if (hookType == FBEFORE || hookType == FAFTER) {
                                              var hookPt = (hookType == 1 ? hookPt.before : hookPt.after);
                                  Severity: Major
                                  Found in assets/js/overlib/mini/overlib_mini.js and 1 other location - About 6 hrs to fix
                                  assets/js/overlib/overlib.js on lines 1317..1334

                                  Duplicated Code

                                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                  Tuning

                                  This issue has a mass of 158.

                                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                  Refactorings

                                  Further Reading

                                  Similar blocks of code found in 2 locations. Consider refactoring.
                                  Open

                                  function ol_content_background(text, picture, hasfullhtml) {
                                      if (hasfullhtml) {
                                          txt = text;
                                      } else {
                                          txt = '<table width="' + o3_width + '" border="0" cellpadding="0" cellspacing="0" height="' + o3_height + '"><tr><td colspan="3" height="' + o3_padyt + '"></td></tr><tr><td width="' + o3_padxl + '"></td><td valign="TOP" width="' + (o3_width - o3_padxl - o3_padxr) + (o3_textfontclass ? '" class="' + o3_textfontclass : '') + '">' + (o3_textfontclass ? '' : wrapStr(0, o3_textsize, 'text')) + text + (o3_textfontclass ? '' : wrapStr(1, o3_textsize)) + '</td><td width="' + o3_padxr + '"></td></tr><tr><td colspan="3" height="' + o3_padyb + '"></td></tr></table>';
                                  Severity: Major
                                  Found in assets/js/overlib/mini/overlib_mini.js and 1 other location - About 6 hrs to fix
                                  assets/js/overlib/overlib.js on lines 500..509

                                  Duplicated Code

                                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                  Tuning

                                  This issue has a mass of 156.

                                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                  Refactorings

                                  Further Reading

                                  Identical blocks of code found in 2 locations. Consider refactoring.
                                  Open

                                  function Info(version, prerelease) {
                                      this.version = version;
                                      this.prerelease = prerelease;
                                      this.simpleversion = Math.round(this.version * 100);
                                      this.major = parseInt(this.simpleversion / 100);
                                  Severity: Major
                                  Found in assets/js/overlib/mini/overlib_mini.js and 1 other location - About 5 hrs to fix
                                  assets/js/overlib/overlib.js on lines 1528..1536

                                  Duplicated Code

                                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                  Tuning

                                  This issue has a mass of 154.

                                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                  Refactorings

                                  Further Reading

                                  Identical blocks of code found in 2 locations. Consider refactoring.
                                  Open

                                  function opt_NOCLOSE(unused) {
                                      if (!unused) o3_close = "";
                                      if (olNs4) {
                                          over.captureEvents(Event.MOUSEOUT || Event.MOUSEOVER);
                                          over.onmouseover = function () {
                                  Severity: Major
                                  Found in assets/js/overlib/mini/overlib_mini.js and 1 other location - About 5 hrs to fix
                                  assets/js/overlib/overlib.js on lines 1130..1153

                                  Duplicated Code

                                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                  Tuning

                                  This issue has a mass of 154.

                                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                  Refactorings

                                  Further Reading

                                  Identical blocks of code found in 2 locations. Consider refactoring.
                                  Open

                                  function quoteMultiNameFonts(theFont) {
                                      var v, pM = theFont.split(',');
                                      for (var i = 0; i < pM.length; i++) {
                                          v = pM[i];
                                          v = v.replace(/^\s+/, '').replace(/\s+$/, '');
                                  Severity: Major
                                  Found in assets/js/overlib/mini/overlib_mini.js and 1 other location - About 5 hrs to fix
                                  assets/js/overlib/overlib.js on lines 1233..1244

                                  Duplicated Code

                                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                  Tuning

                                  This issue has a mass of 150.

                                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                  Refactorings

                                  Further Reading

                                  Similar blocks of code found in 2 locations. Consider refactoring.
                                  Open

                                  function cursorOff() {
                                      var left = parseInt(over.style.left);
                                      var top = parseInt(over.style.top);
                                      var right = left + (over.offsetWidth >= parseInt(o3_width) ? over.offsetWidth : parseInt(o3_width));
                                      var bottom = top + (over.offsetHeight >= o3_aboveheight ? over.offsetHeight : o3_aboveheight);
                                  Severity: Major
                                  Found in assets/js/overlib/mini/overlib_mini.js and 1 other location - About 5 hrs to fix
                                  assets/js/overlib/overlib.js on lines 1106..1115

                                  Duplicated Code

                                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                  Tuning

                                  This issue has a mass of 146.

                                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                  Refactorings

                                  Further Reading

                                  Similar blocks of code found in 2 locations. Consider refactoring.
                                  Open

                                  function nd(time) {
                                      if (olLoaded && !isExclusive()) {
                                          if (time && !o3_delay) {
                                              if (o3_timerid > 0) clearTimeout(o3_timerid);
                                              o3_timerid = setTimeout("cClick()", (o3_timeout = time));
                                  Severity: Major
                                  Found in assets/js/overlib/mini/overlib_mini.js and 1 other location - About 5 hrs to fix
                                  assets/js/overlib/overlib.js on lines 348..369

                                  Duplicated Code

                                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                  Tuning

                                  This issue has a mass of 138.

                                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                  Refactorings

                                  Further Reading

                                  Similar blocks of code found in 2 locations. Consider refactoring.
                                  Open

                                              if (ar[i] == FUNCTION) {
                                                  if (pf == 'ol_') {
                                                      if (typeof ar[i + 1] != 'number') {
                                                          v = ar[++i];
                                                          ol_function = (typeof v == 'function' ? v : null);
                                  Severity: Major
                                  Found in assets/js/overlib/mini/overlib_mini.js and 1 other location - About 5 hrs to fix
                                  assets/js/overlib/overlib.js on lines 939..952

                                  Duplicated Code

                                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                  Tuning

                                  This issue has a mass of 136.

                                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                  Refactorings

                                  Further Reading

                                  Similar blocks of code found in 3 locations. Consider refactoring.
                                  Open

                                      if (eval('o3_frame.' + docRoot) && eval("typeof o3_frame." + docRoot + ".clientWidth=='number'") && eval('o3_frame.' + docRoot + '.clientWidth')) {
                                          iwidth = eval('o3_frame.' + docRoot + '.clientWidth');
                                      } else if (typeof(o3_frame.innerWidth) == 'number') {
                                          widthFix = Math.ceil(1.2 * (o3_frame.outerWidth - o3_frame.innerWidth));
                                          iwidth = o3_frame.innerWidth;
                                  Severity: Major
                                  Found in assets/js/overlib/mini/overlib_mini.js and 2 other locations - About 4 hrs to fix
                                  assets/js/overlib/mini/overlib_anchor_mini.js on lines 71..76
                                  assets/js/overlib/mini/overlib_followscroll_mini.js on lines 37..42

                                  Duplicated Code

                                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                  Tuning

                                  This issue has a mass of 126.

                                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                  Refactorings

                                  Further Reading

                                  Identical blocks of code found in 2 locations. Consider refactoring.
                                  Open

                                  function set_background(pic) {
                                      if (pic == "") {
                                          if (olNs4) {
                                              over.background.src = null;
                                          } else if (over.style) {
                                  Severity: Major
                                  Found in assets/js/overlib/mini/overlib_mini.js and 1 other location - About 4 hrs to fix
                                  assets/js/overlib/overlib.js on lines 512..526

                                  Duplicated Code

                                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                  Tuning

                                  This issue has a mass of 125.

                                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                  Refactorings

                                  Further Reading

                                  Similar blocks of code found in 2 locations. Consider refactoring.
                                  Open

                                  function argToString(array, strtInd, argName) {
                                      var jS = strtInd, aS = '', ar = array;
                                      argName = (argName ? argName : 'ar');
                                      if (ar.length > jS) {
                                          for (var k = jS; k < ar.length; k++) aS += argName + '[' + k + '], ';
                                  Severity: Major
                                  Found in assets/js/overlib/mini/overlib_mini.js and 1 other location - About 4 hrs to fix
                                  assets/js/overlib/overlib.js on lines 1433..1443

                                  Duplicated Code

                                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                  Tuning

                                  This issue has a mass of 119.

                                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                  Refactorings

                                  Further Reading

                                  Similar blocks of code found in 2 locations. Consider refactoring.
                                  Open

                                  if (olIe4) {
                                      var agent = navigator.userAgent;
                                      if (/MSIE/.test(agent)) {
                                          var versNum = parseFloat(agent.match(/MSIE (\d\.\d+)\.*/)[1]);
                                          if (versNum >= 5) {
                                  Severity: Major
                                  Found in assets/js/overlib/mini/overlib_mini.js and 1 other location - About 4 hrs to fix
                                  assets/js/overlib/overlib.js on lines 214..225

                                  Duplicated Code

                                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                  Tuning

                                  This issue has a mass of 116.

                                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                  Refactorings

                                  Further Reading

                                  Similar blocks of code found in 2 locations. Consider refactoring.
                                  Open

                                  function disp(statustext) {
                                      runHook("disp", FBEFORE);
                                      if (o3_allowmove == 0) {
                                          runHook("placeLayer", FREPLACE);
                                          (olNs6 && olShowId < 0) ? olShowId = setTimeout("runHook('showObject', FREPLACE, over)", 1) : runHook("showObject", FREPLACE, over);
                                  Severity: Major
                                  Found in assets/js/overlib/mini/overlib_mini.js and 1 other location - About 3 hrs to fix
                                  assets/js/overlib/overlib.js on lines 534..546

                                  Duplicated Code

                                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                  Tuning

                                  This issue has a mass of 111.

                                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                  Refactorings

                                  Further Reading

                                  Similar blocks of code found in 2 locations. Consider refactoring.
                                  Open

                                      if ((pf == 'o3_') && o3_wrap) {
                                          o3_width = 0;
                                          if (olOp || (olIe4 && isMac)) {
                                              var tReg = /<.*\n*>/ig;
                                              if (!tReg.test(o3_text)) o3_text = o3_text.replace(/[ ]+/g, '&nbsp;');
                                  Severity: Major
                                  Found in assets/js/overlib/mini/overlib_mini.js and 1 other location - About 3 hrs to fix
                                  assets/js/overlib/overlib.js on lines 1019..1027

                                  Duplicated Code

                                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                  Tuning

                                  This issue has a mass of 104.

                                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                  Refactorings

                                  Further Reading

                                  Identical blocks of code found in 2 locations. Consider refactoring.
                                  Open

                                  function registerCommands(cmdStr) {
                                      if (typeof cmdStr != 'string') return;
                                      var pM = cmdStr.split(',');
                                      pms = pms.concat(pM);
                                      for (var i = 0; i < pM.length; i++) {
                                  Severity: Major
                                  Found in assets/js/overlib/mini/overlib_mini.js and 1 other location - About 3 hrs to fix
                                  assets/js/overlib/overlib.js on lines 1295..1304

                                  Duplicated Code

                                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                  Tuning

                                  This issue has a mass of 100.

                                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                  Refactorings

                                  Further Reading

                                  Identical blocks of code found in 2 locations. Consider refactoring.
                                  Open

                                  function isFunction(fnRef) {
                                      var rtn = true;
                                      if (typeof fnRef == 'object') {
                                          for (var i = 0; i < fnRef.length; i++) {
                                              if (typeof fnRef[i] == 'function') continue;
                                  Severity: Major
                                  Found in assets/js/overlib/mini/overlib_mini.js and 1 other location - About 3 hrs to fix
                                  assets/js/overlib/overlib.js on lines 1416..1430

                                  Duplicated Code

                                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                  Tuning

                                  This issue has a mass of 98.

                                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                  Refactorings

                                  Further Reading

                                  Identical blocks of code found in 2 locations. Consider refactoring.
                                  Open

                                  function parseCmdLine(pf, i, args) {
                                      if (typeof cmdLine != 'undefined' && cmdLine.length) {
                                          for (var k = 0; k < cmdLine.length; k++) {
                                              var j = cmdLine[k](pf, i, args);
                                              if (j > -1) {
                                  Severity: Major
                                  Found in assets/js/overlib/mini/overlib_mini.js and 1 other location - About 2 hrs to fix
                                  assets/js/overlib/overlib.js on lines 1264..1276

                                  Duplicated Code

                                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                  Tuning

                                  This issue has a mass of 93.

                                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                  Refactorings

                                  Further Reading

                                  Similar blocks of code found in 3 locations. Consider refactoring.
                                  Open

                                  function registerCmdLineFunction(fn) {
                                      if (isFunction(fn)) {
                                          if (typeof cmdLine == 'undefined') cmdLine = new Array();
                                          if (typeof fn == 'object') {
                                              cmdLine = cmdLine.concat(fn);
                                  Severity: Major
                                  Found in assets/js/overlib/mini/overlib_mini.js and 2 other locations - About 2 hrs to fix
                                  assets/js/overlib/mini/overlib_mini.js on lines 1036..1045
                                  assets/js/overlib/mini/overlib_mini.js on lines 1056..1065

                                  Duplicated Code

                                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                  Tuning

                                  This issue has a mass of 89.

                                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                  Refactorings

                                  Further Reading

                                  Similar blocks of code found in 3 locations. Consider refactoring.
                                  Open

                                  function registerRunTimeFunction(fn) {
                                      if (isFunction(fn)) {
                                          if (typeof runTime == 'undefined') runTime = new Array();
                                          if (typeof fn == 'object') {
                                              runTime = runTime.concat(fn);
                                  Severity: Major
                                  Found in assets/js/overlib/mini/overlib_mini.js and 2 other locations - About 2 hrs to fix
                                  assets/js/overlib/mini/overlib_mini.js on lines 1046..1055
                                  assets/js/overlib/mini/overlib_mini.js on lines 1056..1065

                                  Duplicated Code

                                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                  Tuning

                                  This issue has a mass of 89.

                                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                  Refactorings

                                  Further Reading

                                  Similar blocks of code found in 3 locations. Consider refactoring.
                                  Open

                                  function registerPostParseFunction(fn) {
                                      if (isFunction(fn)) {
                                          if (typeof postParse == 'undefined') postParse = new Array();
                                          if (typeof fn == 'object') {
                                              postParse = postParse.concat(fn);
                                  Severity: Major
                                  Found in assets/js/overlib/mini/overlib_mini.js and 2 other locations - About 2 hrs to fix
                                  assets/js/overlib/mini/overlib_mini.js on lines 1036..1045
                                  assets/js/overlib/mini/overlib_mini.js on lines 1046..1055

                                  Duplicated Code

                                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                  Tuning

                                  This issue has a mass of 89.

                                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                  Refactorings

                                  Further Reading

                                  Identical blocks of code found in 2 locations. Consider refactoring.
                                  Open

                                      if (e.pageX) {
                                          o3_x = e.pageX;
                                          o3_y = e.pageY;
                                      } else if (e.clientX) {
                                          o3_x = eval('e.clientX+o3_frame.' + docRoot + '.scrollLeft');
                                  Severity: Major
                                  Found in assets/js/overlib/mini/overlib_mini.js and 1 other location - About 2 hrs to fix
                                  assets/js/overlib/overlib.js on lines 691..697

                                  Duplicated Code

                                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                  Tuning

                                  This issue has a mass of 83.

                                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                  Refactorings

                                  Further Reading

                                  Identical blocks of code found in 2 locations. Consider refactoring.
                                  Open

                                  if (olNs4) {
                                      var oW = window.innerWidth;
                                      var oH = window.innerHeight;
                                      window.onresize = function () {
                                          if (oW != window.innerWidth || oH != window.innerHeight) location.reload();
                                  Severity: Major
                                  Found in assets/js/overlib/mini/overlib_mini.js and 1 other location - About 2 hrs to fix
                                  assets/js/overlib/overlib.js on lines 205..211

                                  Duplicated Code

                                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                  Tuning

                                  This issue has a mass of 76.

                                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                  Refactorings

                                  Further Reading

                                  Identical blocks of code found in 2 locations. Consider refactoring.
                                  Open

                                      if (k >= args.length) l = str.length - 1; else {
                                          re = eval('/,' + args[k] + '/');
                                          l = str.search(re);
                                      }
                                  Severity: Major
                                  Found in assets/js/overlib/mini/overlib_mini.js and 1 other location - About 1 hr to fix
                                  assets/js/overlib/overlib.js on lines 1163..1167

                                  Duplicated Code

                                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                  Tuning

                                  This issue has a mass of 69.

                                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                  Refactorings

                                  Further Reading

                                  Identical blocks of code found in 2 locations. Consider refactoring.
                                  Open

                                      for (k = i; k < args.length; k++) {
                                          str += args[k] + ',';
                                          if (typeof args[k] == 'number' && args[k] > pmStart) break;
                                      }
                                  Severity: Major
                                  Found in assets/js/overlib/mini/overlib_mini.js and 1 other location - About 1 hr to fix
                                  assets/js/overlib/overlib.js on lines 1159..1162

                                  Duplicated Code

                                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                  Tuning

                                  This issue has a mass of 67.

                                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                  Refactorings

                                  Further Reading

                                  Similar blocks of code found in 2 locations. Consider refactoring.
                                  Open

                                  function repositionTo(obj, xL, yL) {
                                      var theObj = (olNs4 ? obj : obj.style);
                                      theObj.left = xL + (!olNs4 ? 'px' : 0);
                                      theObj.top = yL + (!olNs4 ? 'px' : 0);
                                  }
                                  Severity: Major
                                  Found in assets/js/overlib/mini/overlib_mini.js and 1 other location - About 1 hr to fix
                                  assets/js/overlib/overlib.js on lines 1099..1103

                                  Duplicated Code

                                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                  Tuning

                                  This issue has a mass of 67.

                                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                  Refactorings

                                  Further Reading

                                  Similar blocks of code found in 2 locations. Consider refactoring.
                                  Open

                                      if (o3_wrap && !(olNs4 || olOp)) {
                                          if (olIe4) {
                                              over.style.pixelWidth = 0;
                                          } else if (olNs6) {
                                              repositionTo(over, 0, -over.offsetHeight);
                                  Severity: Major
                                  Found in assets/js/overlib/mini/overlib_mini.js and 1 other location - About 1 hr to fix
                                  assets/js/overlib/overlib.js on lines 552..558

                                  Duplicated Code

                                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                  Tuning

                                  This issue has a mass of 62.

                                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                  Refactorings

                                  Further Reading

                                  Similar blocks of code found in 2 locations. Consider refactoring.
                                  Open

                                  function opt_FUNCTION(callme) {
                                      o3_text = (callme ? (typeof callme == 'string' ? (/.+\(.*\)/.test(callme) ? eval(callme) : callme) : callme()) : (o3_function ? o3_function() : 'No Function'));
                                      return 0;
                                  }
                                  Severity: Major
                                  Found in assets/js/overlib/mini/overlib_mini.js and 1 other location - About 1 hr to fix
                                  assets/js/overlib/overlib.js on lines 1123..1127

                                  Duplicated Code

                                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                  Tuning

                                  This issue has a mass of 62.

                                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                  Refactorings

                                  Further Reading

                                  Identical blocks of code found in 2 locations. Consider refactoring.
                                  Open

                                  function setRunTimeVariables() {
                                      if (typeof runTime != 'undefined' && runTime.length) {
                                          for (var k = 0; k < runTime.length; k++) {
                                              runTime[k]();
                                          }
                                  Severity: Major
                                  Found in assets/js/overlib/mini/overlib_mini.js and 1 other location - About 1 hr to fix
                                  assets/js/overlib/overlib.js on lines 1255..1261

                                  Duplicated Code

                                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                  Tuning

                                  This issue has a mass of 62.

                                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                  Refactorings

                                  Further Reading

                                  Identical blocks of code found in 2 locations. Consider refactoring.
                                  Open

                                              if (ar[i] == CENTER || ar[i] == LEFT || ar[i] == RIGHT) {
                                                  eval(pf + 'hpos=' + ar[i]);
                                                  continue;
                                              }
                                  Severity: Major
                                  Found in assets/js/overlib/mini/overlib_mini.js and 1 other location - About 1 hr to fix
                                  assets/js/overlib/overlib.js on lines 793..796

                                  Duplicated Code

                                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                  Tuning

                                  This issue has a mass of 59.

                                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                  Refactorings

                                  Further Reading

                                  Similar blocks of code found in 4 locations. Consider refactoring.
                                  Open

                                              if (ar[i] == PADX) {
                                                  eval(pf + 'padxl=' + ar[++i]);
                                                  eval(pf + 'padxr=' + ar[++i]);
                                                  continue;
                                              }
                                  Severity: Major
                                  Found in assets/js/overlib/mini/overlib_mini.js and 3 other locations - About 1 hr to fix
                                  assets/js/overlib/mini/overlib_mini.js on lines 687..691
                                  assets/js/overlib/overlib.js on lines 889..893
                                  assets/js/overlib/overlib.js on lines 894..898

                                  Duplicated Code

                                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                  Tuning

                                  This issue has a mass of 58.

                                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                  Refactorings

                                  Further Reading

                                  Similar blocks of code found in 4 locations. Consider refactoring.
                                  Open

                                              if (ar[i] == PADY) {
                                                  eval(pf + 'padyt=' + ar[++i]);
                                                  eval(pf + 'padyb=' + ar[++i]);
                                                  continue;
                                              }
                                  Severity: Major
                                  Found in assets/js/overlib/mini/overlib_mini.js and 3 other locations - About 1 hr to fix
                                  assets/js/overlib/mini/overlib_mini.js on lines 682..686
                                  assets/js/overlib/overlib.js on lines 889..893
                                  assets/js/overlib/overlib.js on lines 894..898

                                  Duplicated Code

                                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                  Tuning

                                  This issue has a mass of 58.

                                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                  Refactorings

                                  Further Reading

                                  Identical blocks of code found in 2 locations. Consider refactoring.
                                  Open

                                  function FunctionReference() {
                                      this.ovload = null;
                                      this.before = new Array();
                                      this.after = new Array();
                                      this.alt = new Array();
                                  Severity: Major
                                  Found in assets/js/overlib/mini/overlib_mini.js and 1 other location - About 1 hr to fix
                                  assets/js/overlib/overlib.js on lines 1519..1524

                                  Duplicated Code

                                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                  Tuning

                                  This issue has a mass of 57.

                                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                  Refactorings

                                  Further Reading

                                  Similar blocks of code found in 2 locations. Consider refactoring.
                                  Open

                                      if ((pf == 'o3_') && o3_sticky) {
                                          if (!o3_close && (o3_frame != ol_frame)) o3_close = ol_close;
                                          if (o3_mouseoff && (o3_frame == ol_frame)) opt_NOCLOSE(' ');
                                      }
                                  Severity: Major
                                  Found in assets/js/overlib/mini/overlib_mini.js and 1 other location - About 1 hr to fix
                                  assets/js/overlib/overlib.js on lines 1028..1031

                                  Duplicated Code

                                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                  Tuning

                                  This issue has a mass of 55.

                                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                  Refactorings

                                  Further Reading

                                  Similar blocks of code found in 2 locations. Consider refactoring.
                                  Open

                                  function nbspCleanup() {
                                      if (o3_wrap && (olOp || (olIe4 && isMac))) {
                                          o3_text = o3_text.replace(/\&nbsp;/g, ' ');
                                          o3_cap = o3_cap.replace(/\&nbsp;/g, ' ');
                                      }
                                  Severity: Major
                                  Found in assets/js/overlib/mini/overlib_mini.js and 1 other location - About 1 hr to fix
                                  assets/js/overlib/overlib.js on lines 1178..1183

                                  Duplicated Code

                                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                  Tuning

                                  This issue has a mass of 55.

                                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                  Refactorings

                                  Further Reading

                                  Identical blocks of code found in 2 locations. Consider refactoring.
                                  Open

                                              if (typeof ar[i] == 'number' && ar[i] > pmStart && ar[i] < pmUpper) {
                                                  fnMark = (par ? 1 : 0);
                                                  i--;
                                              } else {
                                                  switch (pf) {
                                  Severity: Minor
                                  Found in assets/js/overlib/mini/overlib_mini.js and 1 other location - About 50 mins to fix
                                  assets/js/overlib/overlib.js on lines 750..761

                                  Duplicated Code

                                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                  Tuning

                                  This issue has a mass of 51.

                                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                  Refactorings

                                  Further Reading

                                  Identical blocks of code found in 2 locations. Consider refactoring.
                                  Open

                                              if (ar[i] == INARRAY) {
                                                  fnMark = 0;
                                                  eval(pf + 'text=ol_texts[' + ar[++i] + '].toString()');
                                                  continue;
                                              }
                                  Severity: Minor
                                  Found in assets/js/overlib/mini/overlib_mini.js and 1 other location - About 40 mins to fix
                                  assets/js/overlib/overlib.js on lines 768..772

                                  Duplicated Code

                                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                  Tuning

                                  This issue has a mass of 48.

                                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                  Refactorings

                                  Further Reading

                                  Similar blocks of code found in 2 locations. Consider refactoring.
                                  Open

                                  function showObject(obj) {
                                      runHook("showObject", FBEFORE);
                                      var theObj = (olNs4 ? obj : obj.style);
                                      theObj.visibility = 'visible';
                                      runHook("showObject", FAFTER);
                                  Severity: Minor
                                  Found in assets/js/overlib/mini/overlib_mini.js and 1 other location - About 40 mins to fix
                                  assets/js/overlib/overlib.js on lines 1063..1070

                                  Duplicated Code

                                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                  Tuning

                                  This issue has a mass of 48.

                                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                  Refactorings

                                  Further Reading

                                  Similar blocks of code found in 4 locations. Consider refactoring.
                                  Open

                                              if (ar[i] == BELOW || ar[i] == ABOVE) {
                                                  eval(pf + 'vpos=' + ar[i]);
                                                  continue;
                                              }
                                  Severity: Major
                                  Found in assets/js/overlib/mini/overlib_mini.js and 3 other locations - About 35 mins to fix
                                  assets/js/overlib/mini/overlib_mini.js on lines 778..781
                                  assets/js/overlib/overlib.js on lines 903..906
                                  assets/js/overlib/overlib.js on lines 985..988

                                  Duplicated Code

                                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                  Tuning

                                  This issue has a mass of 47.

                                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                  Refactorings

                                  Further Reading

                                  Similar blocks of code found in 4 locations. Consider refactoring.
                                  Open

                                              if (ar[i] == CSSOFF || ar[i] == CSSCLASS) {
                                                  eval(pf + 'css=' + ar[i]);
                                                  continue;
                                              }
                                  Severity: Major
                                  Found in assets/js/overlib/mini/overlib_mini.js and 3 other locations - About 35 mins to fix
                                  assets/js/overlib/mini/overlib_mini.js on lines 696..699
                                  assets/js/overlib/overlib.js on lines 903..906
                                  assets/js/overlib/overlib.js on lines 985..988

                                  Duplicated Code

                                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                  Tuning

                                  This issue has a mass of 47.

                                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                  Refactorings

                                  Further Reading

                                  Similar blocks of code found in 13 locations. Consider refactoring.
                                  Open

                                              if (ar[i] == CLOSEFONT) {
                                                  eval(pf + "closefont='" + escSglQuote(ar[++i]) + "'");
                                                  continue;
                                              }
                                  Severity: Major
                                  Found in assets/js/overlib/mini/overlib_mini.js and 12 other locations - About 30 mins to fix
                                  assets/js/overlib/mini/overlib_mini.js on lines 582..585
                                  assets/js/overlib/mini/overlib_mini.js on lines 630..633
                                  assets/js/overlib/mini/overlib_mini.js on lines 646..649
                                  assets/js/overlib/mini/overlib_mini.js on lines 704..707
                                  assets/js/overlib/mini/overlib_mini.js on lines 708..711
                                  assets/js/overlib/mini/overlib_mini.js on lines 774..777
                                  assets/js/overlib/overlib.js on lines 789..792
                                  assets/js/overlib/overlib.js on lines 837..840
                                  assets/js/overlib/overlib.js on lines 911..914
                                  assets/js/overlib/overlib.js on lines 915..918
                                  assets/js/overlib/overlib.js on lines 919..922
                                  assets/js/overlib/overlib.js on lines 981..984

                                  Duplicated Code

                                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                  Tuning

                                  This issue has a mass of 45.

                                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                  Refactorings

                                  Further Reading

                                  Similar blocks of code found in 13 locations. Consider refactoring.
                                  Open

                                              if (ar[i] == TEXTFONT) {
                                                  eval(pf + "textfont='" + escSglQuote(ar[++i]) + "'");
                                                  continue;
                                              }
                                  Severity: Major
                                  Found in assets/js/overlib/mini/overlib_mini.js and 12 other locations - About 30 mins to fix
                                  assets/js/overlib/mini/overlib_mini.js on lines 582..585
                                  assets/js/overlib/mini/overlib_mini.js on lines 630..633
                                  assets/js/overlib/mini/overlib_mini.js on lines 646..649
                                  assets/js/overlib/mini/overlib_mini.js on lines 708..711
                                  assets/js/overlib/mini/overlib_mini.js on lines 712..715
                                  assets/js/overlib/mini/overlib_mini.js on lines 774..777
                                  assets/js/overlib/overlib.js on lines 789..792
                                  assets/js/overlib/overlib.js on lines 837..840
                                  assets/js/overlib/overlib.js on lines 911..914
                                  assets/js/overlib/overlib.js on lines 915..918
                                  assets/js/overlib/overlib.js on lines 919..922
                                  assets/js/overlib/overlib.js on lines 981..984

                                  Duplicated Code

                                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                  Tuning

                                  This issue has a mass of 45.

                                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                  Refactorings

                                  Further Reading

                                  Similar blocks of code found in 13 locations. Consider refactoring.
                                  Open

                                              if (ar[i] == CAPTION) {
                                                  eval(pf + "cap='" + escSglQuote(ar[++i]) + "'");
                                                  continue;
                                              }
                                  Severity: Major
                                  Found in assets/js/overlib/mini/overlib_mini.js and 12 other locations - About 30 mins to fix
                                  assets/js/overlib/mini/overlib_mini.js on lines 630..633
                                  assets/js/overlib/mini/overlib_mini.js on lines 646..649
                                  assets/js/overlib/mini/overlib_mini.js on lines 704..707
                                  assets/js/overlib/mini/overlib_mini.js on lines 708..711
                                  assets/js/overlib/mini/overlib_mini.js on lines 712..715
                                  assets/js/overlib/mini/overlib_mini.js on lines 774..777
                                  assets/js/overlib/overlib.js on lines 789..792
                                  assets/js/overlib/overlib.js on lines 837..840
                                  assets/js/overlib/overlib.js on lines 911..914
                                  assets/js/overlib/overlib.js on lines 915..918
                                  assets/js/overlib/overlib.js on lines 919..922
                                  assets/js/overlib/overlib.js on lines 981..984

                                  Duplicated Code

                                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                  Tuning

                                  This issue has a mass of 45.

                                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                  Refactorings

                                  Further Reading

                                  Similar blocks of code found in 13 locations. Consider refactoring.
                                  Open

                                              if (ar[i] == CLOSETITLE) {
                                                  eval(pf + "closetitle='" + escSglQuote(ar[++i]) + "'");
                                                  continue;
                                              }
                                  Severity: Major
                                  Found in assets/js/overlib/mini/overlib_mini.js and 12 other locations - About 30 mins to fix
                                  assets/js/overlib/mini/overlib_mini.js on lines 582..585
                                  assets/js/overlib/mini/overlib_mini.js on lines 630..633
                                  assets/js/overlib/mini/overlib_mini.js on lines 646..649
                                  assets/js/overlib/mini/overlib_mini.js on lines 704..707
                                  assets/js/overlib/mini/overlib_mini.js on lines 708..711
                                  assets/js/overlib/mini/overlib_mini.js on lines 712..715
                                  assets/js/overlib/overlib.js on lines 789..792
                                  assets/js/overlib/overlib.js on lines 837..840
                                  assets/js/overlib/overlib.js on lines 911..914
                                  assets/js/overlib/overlib.js on lines 915..918
                                  assets/js/overlib/overlib.js on lines 919..922
                                  assets/js/overlib/overlib.js on lines 981..984

                                  Duplicated Code

                                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                  Tuning

                                  This issue has a mass of 45.

                                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                  Refactorings

                                  Further Reading

                                  Similar blocks of code found in 13 locations. Consider refactoring.
                                  Open

                                              if (ar[i] == CLOSETEXT) {
                                                  eval(pf + "close='" + escSglQuote(ar[++i]) + "'");
                                                  continue;
                                              }
                                  Severity: Major
                                  Found in assets/js/overlib/mini/overlib_mini.js and 12 other locations - About 30 mins to fix
                                  assets/js/overlib/mini/overlib_mini.js on lines 582..585
                                  assets/js/overlib/mini/overlib_mini.js on lines 630..633
                                  assets/js/overlib/mini/overlib_mini.js on lines 704..707
                                  assets/js/overlib/mini/overlib_mini.js on lines 708..711
                                  assets/js/overlib/mini/overlib_mini.js on lines 712..715
                                  assets/js/overlib/mini/overlib_mini.js on lines 774..777
                                  assets/js/overlib/overlib.js on lines 789..792
                                  assets/js/overlib/overlib.js on lines 837..840
                                  assets/js/overlib/overlib.js on lines 911..914
                                  assets/js/overlib/overlib.js on lines 915..918
                                  assets/js/overlib/overlib.js on lines 919..922
                                  assets/js/overlib/overlib.js on lines 981..984

                                  Duplicated Code

                                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                  Tuning

                                  This issue has a mass of 45.

                                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                  Refactorings

                                  Further Reading

                                  Similar blocks of code found in 13 locations. Consider refactoring.
                                  Open

                                              if (ar[i] == STATUS) {
                                                  eval(pf + "status='" + escSglQuote(ar[++i]) + "'");
                                                  continue;
                                              }
                                  Severity: Major
                                  Found in assets/js/overlib/mini/overlib_mini.js and 12 other locations - About 30 mins to fix
                                  assets/js/overlib/mini/overlib_mini.js on lines 582..585
                                  assets/js/overlib/mini/overlib_mini.js on lines 646..649
                                  assets/js/overlib/mini/overlib_mini.js on lines 704..707
                                  assets/js/overlib/mini/overlib_mini.js on lines 708..711
                                  assets/js/overlib/mini/overlib_mini.js on lines 712..715
                                  assets/js/overlib/mini/overlib_mini.js on lines 774..777
                                  assets/js/overlib/overlib.js on lines 789..792
                                  assets/js/overlib/overlib.js on lines 837..840
                                  assets/js/overlib/overlib.js on lines 911..914
                                  assets/js/overlib/overlib.js on lines 915..918
                                  assets/js/overlib/overlib.js on lines 919..922
                                  assets/js/overlib/overlib.js on lines 981..984

                                  Duplicated Code

                                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                  Tuning

                                  This issue has a mass of 45.

                                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                  Refactorings

                                  Further Reading

                                  Similar blocks of code found in 13 locations. Consider refactoring.
                                  Open

                                              if (ar[i] == CAPTIONFONT) {
                                                  eval(pf + "captionfont='" + escSglQuote(ar[++i]) + "'");
                                                  continue;
                                              }
                                  Severity: Major
                                  Found in assets/js/overlib/mini/overlib_mini.js and 12 other locations - About 30 mins to fix
                                  assets/js/overlib/mini/overlib_mini.js on lines 582..585
                                  assets/js/overlib/mini/overlib_mini.js on lines 630..633
                                  assets/js/overlib/mini/overlib_mini.js on lines 646..649
                                  assets/js/overlib/mini/overlib_mini.js on lines 704..707
                                  assets/js/overlib/mini/overlib_mini.js on lines 712..715
                                  assets/js/overlib/mini/overlib_mini.js on lines 774..777
                                  assets/js/overlib/overlib.js on lines 789..792
                                  assets/js/overlib/overlib.js on lines 837..840
                                  assets/js/overlib/overlib.js on lines 911..914
                                  assets/js/overlib/overlib.js on lines 915..918
                                  assets/js/overlib/overlib.js on lines 919..922
                                  assets/js/overlib/overlib.js on lines 981..984

                                  Duplicated Code

                                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                  Tuning

                                  This issue has a mass of 45.

                                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                  Refactorings

                                  Further Reading

                                  There are no issues that match your filters.

                                  Category
                                  Status