mambax7/smartfaq

View on GitHub
assets/js/overlib/overlib.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) {
    // What the next argument is expected to be.
    var v, mode = -1, par = (pf != 'ol_');
    var fnMark = (par && !ar.length ? 1 : 0);

Severity: Minor
Found in assets/js/overlib/overlib.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.js has 1174 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/overlib.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;
    
        // HORIZONTAL PLACEMENT
        if (eval('o3_frame.' + docRoot) && eval("typeof o3_frame." + docRoot + ".clientWidth=='number'") && eval('o3_frame.' + docRoot + '.clientWidth')) {
    Severity: Minor
    Found in assets/js/overlib/overlib.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) {
        // What the next argument is expected to be.
        var v, mode = -1, par = (pf != 'ol_');
        var fnMark = (par && !ar.length ? 1 : 0);
    
    
    Severity: Major
    Found in assets/js/overlib/overlib.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;
      
      
      Severity: Minor
      Found in assets/js/overlib/overlib.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) {
      Severity: Minor
      Found in assets/js/overlib/overlib.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;
      
      
      Severity: Minor
      Found in assets/js/overlib/overlib.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();
      Severity: Minor
      Found in assets/js/overlib/overlib.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/overlib.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();
      
      
      Severity: Major
      Found in assets/js/overlib/overlib.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;
        
            // HORIZONTAL PLACEMENT
            if (eval('o3_frame.' + docRoot) && eval("typeof o3_frame." + docRoot + ".clientWidth=='number'") && eval('o3_frame.' + docRoot + '.clientWidth')) {
        Severity: Major
        Found in assets/js/overlib/overlib.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 {
          Severity: Minor
          Found in assets/js/overlib/overlib.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;
          
          
          Severity: Major
          Found in assets/js/overlib/overlib.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);
            Severity: Minor
            Found in assets/js/overlib/overlib.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);
            
            
            Severity: Minor
            Found in assets/js/overlib/overlib.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 43 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

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

              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();
              
              
              Severity: Minor
              Found in assets/js/overlib/overlib.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 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) {
              Severity: Minor
              Found in assets/js/overlib/overlib.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+)\(/;
              
              
              Severity: Minor
              Found in assets/js/overlib/overlib.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);
              Severity: Minor
              Found in assets/js/overlib/overlib.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 (typeof ar[i + 1] != 'number') v = ar[++i];
              Severity: Major
              Found in assets/js/overlib/overlib.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/overlib.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 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/overlib.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 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) {
                Severity: Minor
                Found in assets/js/overlib/overlib.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/overlib.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/overlib.js - About 45 mins to fix

                  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/overlib.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/overlib.js - About 45 mins to fix

                      Avoid deeply nested control flow statements.
                      Open

                                          if (/anonymous/.test(fN[i])) continue;
                      Severity: Major
                      Found in assets/js/overlib/overlib.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/overlib.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/overlib.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/overlib.js - About 45 mins to fix

                              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++) {
                              Severity: Minor
                              Found in assets/js/overlib/overlib.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 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);
                              Severity: Minor
                              Found in assets/js/overlib/overlib.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] + ',';
                              Severity: Minor
                              Found in assets/js/overlib/overlib.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/overlib.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('l(' + arS + ')');
                              Severity: Major
                              Found in assets/js/overlib/overlib.js - About 30 mins to fix

                                Avoid too many return statements within this function.
                                Open

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

                                  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/overlib.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/overlib.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/overlib.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 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;
                                  Severity: Minor
                                  Found in assets/js/overlib/overlib.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;  // end now since have an error
                                  Severity: Minor
                                  Found in assets/js/overlib/overlib.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/overlib.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;
                                  
                                  
                                  Severity: Major
                                  Found in assets/js/overlib/overlib.js and 1 other location - About 4 days to fix
                                  assets/js/overlib/mini/overlib_mini.js on lines 1109..1165

                                  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/overlib.js and 1 other location - About 3 days to fix
                                  assets/js/overlib/mini/overlib_mini.js on lines 358..373

                                  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);
                                  Severity: Major
                                  Found in assets/js/overlib/overlib.js and 1 other location - About 1 day to fix
                                  assets/js/overlib/mini/overlib_mini.js on lines 1066..1086

                                  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 {
                                  Severity: Major
                                  Found in assets/js/overlib/overlib.js and 1 other location - About 1 day to fix
                                  assets/js/overlib/mini/overlib_mini.js on lines 952..960

                                  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) {
                                  Severity: Major
                                  Found in assets/js/overlib/overlib.js and 1 other location - About 1 day to fix
                                  assets/js/overlib/mini/overlib_mini.js on lines 848..866

                                  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/overlib.js and 1 other location - About 7 hrs to fix
                                  assets/js/overlib/mini/overlib_mini.js on lines 823..841

                                  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+)\(/;
                                  
                                  
                                  Severity: Major
                                  Found in assets/js/overlib/overlib.js and 1 other location - About 7 hrs to fix
                                  assets/js/overlib/mini/overlib_mini.js on lines 522..538

                                  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/overlib.js and 1 other location - About 7 hrs to fix
                                  assets/js/overlib/mini/overlib_mini.js on lines 937..949

                                  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/overlib.js and 1 other location - About 6 hrs to fix
                                  assets/js/overlib/mini/overlib_mini.js on lines 353..357

                                  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;  // replace normal overlib routine
                                              if (fnHookTo.indexOf('ol_content_') > -1) hookPt.alt[pms[CSSOFF - 1 - pmStart]] = fnRef;
                                  
                                          } else if (hookType == FBEFORE || hookType == FAFTER) {
                                  Severity: Major
                                  Found in assets/js/overlib/overlib.js and 1 other location - About 6 hrs to fix
                                  assets/js/overlib/mini/overlib_mini.js on lines 1019..1032

                                  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/overlib.js and 1 other location - About 6 hrs to fix
                                  assets/js/overlib/mini/overlib_mini.js on lines 374..382

                                  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);
                                  Severity: Major
                                  Found in assets/js/overlib/overlib.js and 1 other location - About 5 hrs to fix
                                  assets/js/overlib/mini/overlib_mini.js on lines 1172..1179

                                  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);
                                  Severity: Major
                                  Found in assets/js/overlib/overlib.js and 1 other location - About 5 hrs to fix
                                  assets/js/overlib/mini/overlib_mini.js on lines 884..905

                                  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/overlib.js and 1 other location - About 5 hrs to fix
                                  assets/js/overlib/mini/overlib_mini.js on lines 961..972

                                  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/overlib.js and 1 other location - About 5 hrs to fix
                                  assets/js/overlib/mini/overlib_mini.js on lines 872..879

                                  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);
                                  
                                  
                                  Severity: Major
                                  Found in assets/js/overlib/overlib.js and 1 other location - About 5 hrs to fix
                                  assets/js/overlib/mini/overlib_mini.js on lines 280..298

                                  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/overlib.js and 1 other location - About 5 hrs to fix
                                  assets/js/overlib/mini/overlib_mini.js on lines 732..745

                                  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

                                  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/overlib.js and 1 other location - About 4 hrs to fix
                                  assets/js/overlib/mini/overlib_mini.js on lines 383..397

                                  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) {
                                  Severity: Major
                                  Found in assets/js/overlib/overlib.js and 1 other location - About 4 hrs to fix
                                  assets/js/overlib/mini/overlib_mini.js on lines 1100..1108

                                  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/overlib.js and 1 other location - About 4 hrs to fix
                                  assets/js/overlib/mini/overlib_mini.js on lines 175..186

                                  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);
                                  Severity: Major
                                  Found in assets/js/overlib/overlib.js and 1 other location - About 3 hrs to fix
                                  assets/js/overlib/mini/overlib_mini.js on lines 399..408

                                  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;
                                  Severity: Major
                                  Found in assets/js/overlib/overlib.js and 1 other location - About 3 hrs to fix
                                  assets/js/overlib/mini/overlib_mini.js on lines 810..817

                                  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);
                                  Severity: Major
                                  Found in assets/js/overlib/overlib.js and 1 other location - About 3 hrs to fix
                                  assets/js/overlib/mini/overlib_mini.js on lines 1004..1011

                                  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++) {
                                  Severity: Major
                                  Found in assets/js/overlib/overlib.js and 1 other location - About 3 hrs to fix
                                  assets/js/overlib/mini/overlib_mini.js on lines 1087..1099

                                  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

                                  Similar blocks of code found in 2 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/overlib.js and 1 other location - About 2 hrs to fix
                                  assets/js/overlib/overlib.js on lines 1353..1362

                                  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 2 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/overlib.js and 1 other location - About 2 hrs to fix
                                  assets/js/overlib/overlib.js on lines 1341..1350

                                  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

                                  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/overlib.js and 1 other location - About 2 hrs to fix
                                  assets/js/overlib/mini/overlib_mini.js on lines 983..994

                                  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

                                  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/overlib.js and 1 other location - About 2 hrs to fix
                                  assets/js/overlib/mini/overlib_mini.js on lines 506..512

                                  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/overlib.js and 1 other location - About 2 hrs to fix
                                  assets/js/overlib/mini/overlib_mini.js on lines 168..174

                                  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/overlib.js and 1 other location - About 1 hr to fix
                                  assets/js/overlib/mini/overlib_mini.js on lines 912..915

                                  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

                                  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/overlib.js and 1 other location - About 1 hr to fix
                                  assets/js/overlib/mini/overlib_mini.js on lines 867..871

                                  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

                                  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/overlib.js and 1 other location - About 1 hr to fix
                                  assets/js/overlib/mini/overlib_mini.js on lines 908..911

                                  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/overlib.js and 1 other location - About 1 hr to fix
                                  assets/js/overlib/mini/overlib_mini.js on lines 411..417

                                  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/overlib.js and 1 other location - About 1 hr to fix
                                  assets/js/overlib/mini/overlib_mini.js on lines 976..982

                                  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/overlib.js and 1 other location - About 1 hr to fix
                                  assets/js/overlib/mini/overlib_mini.js on lines 880..883

                                  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/overlib.js and 1 other location - About 1 hr to fix
                                  assets/js/overlib/mini/overlib_mini.js on lines 586..589

                                  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/overlib.js and 3 other locations - About 1 hr to fix
                                  assets/js/overlib/mini/overlib_mini.js on lines 682..686
                                  assets/js/overlib/mini/overlib_mini.js on lines 687..691
                                  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/overlib.js and 3 other locations - About 1 hr to fix
                                  assets/js/overlib/mini/overlib_mini.js on lines 682..686
                                  assets/js/overlib/mini/overlib_mini.js on lines 687..691
                                  assets/js/overlib/overlib.js on lines 889..893

                                  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/overlib.js and 1 other location - About 1 hr to fix
                                  assets/js/overlib/mini/overlib_mini.js on lines 1166..1171

                                  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/overlib.js and 1 other location - About 1 hr to fix
                                  assets/js/overlib/mini/overlib_mini.js on lines 818..821

                                  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/overlib.js and 1 other location - About 1 hr to fix
                                  assets/js/overlib/mini/overlib_mini.js on lines 922..927

                                  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--;   // backup one so that the next block can parse it
                                              } else {
                                                  switch (pf) {
                                  Severity: Minor
                                  Found in assets/js/overlib/overlib.js and 1 other location - About 50 mins to fix
                                  assets/js/overlib/mini/overlib_mini.js on lines 544..555

                                  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

                                  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';
                                  Severity: Minor
                                  Found in assets/js/overlib/overlib.js and 1 other location - About 40 mins to fix
                                  assets/js/overlib/mini/overlib_mini.js on lines 842..847

                                  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

                                  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/overlib.js and 1 other location - About 40 mins to fix
                                  assets/js/overlib/mini/overlib_mini.js on lines 561..565

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

                                  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] == BELOW || ar[i] == ABOVE) {
                                                  eval(pf + 'vpos=' + ar[i]);
                                                  continue;
                                              }
                                  Severity: Major
                                  Found in assets/js/overlib/overlib.js and 3 other locations - About 35 mins to fix
                                  assets/js/overlib/mini/overlib_mini.js on lines 696..699
                                  assets/js/overlib/mini/overlib_mini.js on lines 778..781
                                  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] == CAPTION) {
                                                  eval(pf + "cap='" + escSglQuote(ar[++i]) + "'");
                                                  continue;
                                              }
                                  Severity: Major
                                  Found in assets/js/overlib/overlib.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/mini/overlib_mini.js on lines 774..777
                                  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/overlib.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/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

                                  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/overlib.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/mini/overlib_mini.js on lines 774..777
                                  assets/js/overlib/overlib.js on lines 789..792
                                  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] == CLOSEFONT) {
                                                  eval(pf + "closefont='" + escSglQuote(ar[++i]) + "'");
                                                  continue;
                                              }
                                  Severity: Major
                                  Found in assets/js/overlib/overlib.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/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 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/overlib.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/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 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/overlib.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/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 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