Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

NOTEPAD++ Meaning of (+) and (-) Icons

Posted on 2016-07-29
6
Medium Priority
?
263 Views
Last Modified: 2016-07-29
Hi,
I downloaded a hunk of Javascript code. When I display it in NOTEPAD++, it can display in two ways.

NOTE: Apologies for the very small font in the screenshots. Please click on a screenshot to display it in a bigger format. :)

1. With a red minus sign at the left, with line numbers 1 and 3 visible.
JS file displayed with Minus Sign
2. If I click the red minus sign, it changes to a red plus sign, and I now see lines 1, 2 and 3.
JS file displayed with Plus sign
I've attached the file (filename scrubbed).

Also (this issue may or may not be related): The JS program code displays with no line breaks. (That's how it came down from the site.) Can this issue be remedied? (If you experts feel this issue should be a separate question, please let me know and I'll be happy to comply.)

Thanks,
Steve
For_EE_Example_JS_File.JS
0
Comment
Question by:Stephen Kairys
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
6 Comments
 
LVL 84

Accepted Solution

by:
Dave Baldwin earned 1000 total points
ID: 41735281
There is nothing wrong with any of that.  The +/- signs are expanding and contracting the text at a line break.  JavaScript does not need line breaks to function properly.  Here is a 'beautified version (from http://jsbeautifier.org/).
/* prebid.js v0.11.0
Updated : 2016-07-29 */
! function(e) {
    function n(r) {
        if (t[r]) return t[r].exports;
        var i = t[r] = {
            exports: {},
            id: r,
            loaded: !1
        };
        return e[r].call(i.exports, i, i.exports, n), i.loaded = !0, i.exports
    }
    var t = {};
    return n.m = e, n.c = t, n.p = "", n(0)
}([function(e, n, t) {
    "use strict";

    function r(e, n, t) {
        return n in e ? Object.defineProperty(e, n, {
            value: t,
            enumerable: !0,
            configurable: !0,
            writable: !0
        }) : e[n] = t, e
    }

    function i() {
        for (var e = 0; e < h.que.length; e++)
            if (v(h.que[e].called) === R) try {
                h.que[e].call(), h.que[e].called = !0
            } catch (n) {
                I.logError("Error processing command :", "prebid.js", n)
            }
    }

    function o() {
        if (!U) {
            U = !0;
            var e = A.getTimedOutBidders();
            w.emit(O, e)
        }
    }

    function a(e) {
        var n = h._bidsRequested.map(function(e) {
            return e.bids.map(function(e) {
                return e.placementCode
            })
        }).reduce(y.flatten).filter(y.uniques);
        return I.contains(n, e) ? !0 : (I.logError('The "' + e + '" placement is not defined.'), void 0)
    }

    function d() {
        y.isGptPubadsDefined() && window.googletag.pubads().getSlots().forEach(function(e) {
            k.forEach(function(n) {
                e.setTargeting(n, null)
            })
        })
    }

    function s(e) {
        window.googletag.pubads().getSlots().forEach(function(n) {
            e.filter(function(e) {
                return Object.keys(e)[0] === n.getAdUnitPath() || Object.keys(e)[0] === n.getSlotElementId()
            }).forEach(function(e) {
                return e[Object.keys(e)[0]].forEach(function(e) {
                    e[Object.keys(e)[0]].map(function(t) {
                        return I.logMessage("Attempting to set key value for slot: " + n.getSlotElementId() + " key: " + Object.keys(e)[0] + " value: " + t), t
                    }).forEach(function(t) {
                        n.setTargeting(Object.keys(e)[0], t)
                    })
                })
            })
        })
    }

    function u(e) {
        return -1 === k.indexOf(e)
    }

    function c() {
        y.isGptPubadsDefined() && (D = function() {
            return window.googletag.pubads().getSlots().map(function(e) {
                return r({}, e.getAdUnitPath(), e.getTargetingKeys().filter(u).map(function(n) {
                    return r({}, n, e.getTargeting(n))
                }))
            })
        }())
    }

    function l() {
        var e = h._bidsReceived.map(function(e) {
            return e.adUnitCode
        }).filter(y.uniques).map(function(e) {
            return h._bidsReceived.filter(function(n) {
                return n.adUnitCode === e ? n : null
            }).reduce(y.getHighestCpm, {
                adUnitCode: e,
                cpm: 0,
                adserverTargeting: {},
                timeToRespond: 0
            })
        });
        return e.filter(function(e) {
            return e.dealId
        }).map(function(e) {
            return e.adserverTargeting.hb_deal = e.dealId
        }), e = e.map(function(e) {
            return r({}, e.adUnitCode, Object.keys(e.adserverTargeting, function(e) {
                return e
            }).map(function(n) {
                return r({}, n.substring(0, 20), [e.adserverTargeting[n]])
            }))
        })
    }

    function f() {
        return h._bidsReceived.filter(function(e) {
            return e.dealId
        }).map(function(e) {
            var n = "hb_deal_" + e.bidderCode;
            return r({}, e.adUnitCode, E.TARGETING_KEYS.map(function(n) {
                return r({}, (n + "_" + e.bidderCode).substring(0, 20), [e.adserverTargeting[n]])
            }).concat(r({}, n, [e.adserverTargeting[n]])))
        })
    }

    function g() {
        return h._bidsReceived.map(function(e) {
            if (e.alwaysUseBid) {
                var n = function() {
                    var n = E.TARGETING_KEYS;
                    return {
                        v: r({}, e.adUnitCode, Object.keys(e.adserverTargeting, function(e) {
                            return e
                        }).map(function(t) {
                            return n.indexOf(t) > -1 ? void 0 : r({}, t.substring(0, 20), [e.adserverTargeting[t]])
                        }).filter(function(e) {
                            return e
                        }))
                    }
                }();
                if ("object" === ("undefined" == typeof n ? "undefined" : v(n))) return n.v
            }
        }).filter(function(e) {
            return e
        })
    }

    function p() {
        var e = E.TARGETING_KEYS;
        return h._bidsReceived.map(function(n) {
            return n.adserverTargeting ? r({}, n.adUnitCode, e.map(function(e) {
                return r({}, (e + "_" + n.bidderCode).substring(0, 20), [n.adserverTargeting[e]])
            })) : void 0
        }).filter(function(e) {
            return e
        })
    }

    function b() {
        var e = f().concat(l()).concat(g()).concat(h._sendAllBids ? p() : []);
        return e.map(function(e) {
            Object.keys(e).map(function(n) {
                e[n].map(function(e) {
                    -1 === k.indexOf(Object.keys(e)[0]) && (k = Object.keys(e).concat(k))
                })
            })
        }), e
    }
    var m = Object.assign || function(e) {
            for (var n = 1; n < arguments.length; n++) {
                var t = arguments[n];
                for (var r in t) Object.prototype.hasOwnProperty.call(t, r) && (e[r] = t[r])
            }
            return e
        },
        v = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) {
            return typeof e
        } : function(e) {
            return e && "function" == typeof Symbol && e.constructor === Symbol ? "symbol" : typeof e
        },
        y = t(1);
    t(3), window.pbjs = window.pbjs || {}, window.pbjs.que = window.pbjs.que || [];
    var h = window.pbjs,
        E = t(2),
        I = t(1),
        A = t(4),
        T = t(6),
        _ = t(9),
        S = t(10),
        w = t(5),
        C = "function",
        R = "undefined",
        j = "object",
        B = E.EVENTS.BID_WON,
        O = E.EVENTS.BID_TIMEOUT,
        U = !1,
        N = !1,
        D = [],
        k = [],
        P = {
            bidWon: a
        };
    h._bidsRequested = [], h._bidsReceived = [], h._adsReceived = [], h._sendAllBids = !1, h.bidderTimeout = h.bidderTimeout || 3e3, h.logging = h.logging || !1, h.libLoaded = !0, I.logInfo("Prebid.js v0.11.0 loaded"), h.adUnits = h.adUnits || [], h.que.push = function(e) {
        if (("undefined" == typeof e ? "undefined" : v(e)) === C) try {
            e.call()
        } catch (n) {
            I.logError("Error processing command :" + n.message)
        } else I.logError("Commands written into pbjs.que.push must wrapped in a function")
    }, h.getAdserverTargetingForAdUnitCodeStr = function(e) {
        if (I.logInfo("Invoking pbjs.getAdserverTargetingForAdUnitCodeStr", arguments), e) {
            var n = h.getAdserverTargetingForAdUnitCode(e);
            return I.transformAdServerTargetingObj(n)
        }
        I.logMessage("Need to call getAdserverTargetingForAdUnitCodeStr with adunitCode")
    }, h.getAdserverTargetingForAdUnitCode = function(e) {
        return I.logInfo("Invoking pbjs.getAdserverTargetingForAdUnitCode", arguments), b().filter(function(n) {
            return y.getKeys(n)[0] === e
        }).map(function(e) {
            return r({}, Object.keys(e)[0], e[Object.keys(e)[0]].map(function(e) {
                return r({}, Object.keys(e)[0], e[Object.keys(e)[0]].join(", "))
            }).reduce(function(e, n) {
                return m(n, e)
            }, {}))
        }).reduce(function(e, n) {
            var t = Object.keys(n)[0];
            return e[t] = m({}, e[t], n[t]), e
        }, {})[e]
    }, h.getAdserverTargeting = function() {
        return I.logInfo("Invoking pbjs.getAdserverTargeting", arguments), b().map(function(e) {
            return r({}, Object.keys(e)[0], e[Object.keys(e)[0]].map(function(e) {
                return r({}, Object.keys(e)[0], e[Object.keys(e)[0]].join(", "))
            }).reduce(function(e, n) {
                return m(n, e)
            }, {}))
        }).reduce(function(e, n) {
            var t = Object.keys(n)[0];
            return e[t] = m({}, e[t], n[t]), e
        }, {})
    }, h.getBidResponses = function() {
        return I.logInfo("Invoking pbjs.getBidResponses", arguments), h._bidsReceived.map(function(e) {
            return e.adUnitCode
        }).filter(y.uniques).map(function(e) {
            return h._bidsReceived.filter(function(n) {
                return n.adUnitCode === e
            })
        }).map(function(e) {
            return r({}, e[0].adUnitCode, {
                bids: e
            })
        }).reduce(function(e, n) {
            return m(e, n)
        }, {})
    }, h.getBidResponsesForAdUnitCode = function(e) {
        var n = h._bidsReceived.filter(function(n) {
            return n.adUnitCode === e
        });
        return {
            bids: n
        }
    }, h.setTargetingForGPTAsync = function() {
        return I.logInfo("Invoking pbjs.setTargetingForGPTAsync", arguments), y.isGptPubadsDefined() ? (c(), d(), s(b()), void 0) : (I.logError("window.googletag is not defined on the page"), void 0)
    }, h.allBidsAvailable = function() {
        return I.logInfo("Invoking pbjs.allBidsAvailable", arguments), A.bidsBackAll()
    }, h.renderAd = function(e, n) {
        if (I.logInfo("Invoking pbjs.renderAd", arguments), I.logMessage("Calling renderAd with adId :" + n), e && n) try {
            var t = h._bidsReceived.find(function(e) {
                return e.adId === n
            });
            if (t) {
                w.emit(B, t);
                var r = t.height,
                    i = t.width,
                    o = t.adUrl,
                    a = t.ad;
                a ? (e.write(a), e.close(), e.defaultView && e.defaultView.frameElement && (e.defaultView.frameElement.width = i, e.defaultView.frameElement.height = r)) : o ? (e.write('<IFRAME SRC="' + o + '" FRAMEBORDER="0" SCROLLING="no" MARGINHEIGHT="0" MARGINWIDTH="0" TOPMARGIN="0" LEFTMARGIN="0" ALLOWTRANSPARENCY="true" WIDTH="' + i + '" HEIGHT="' + r + '"></IFRAME>'), e.close(), e.defaultView && e.defaultView.frameElement && (e.defaultView.frameElement.width = i, e.defaultView.frameElement.height = r)) : I.logError("Error trying to write ad. No ad for bid response id: " + n)
            } else I.logError("Error trying to write ad. Cannot find ad by given id : " + n)
        } catch (d) {
            I.logError("Error trying to write ad Id :" + n + " to the page:" + d.message)
        } else I.logError("Error trying to write ad Id :" + n + " to the page. Missing document or adId")
    }, h.removeAdUnit = function(e) {
        if (I.logInfo("Invoking pbjs.removeAdUnit", arguments), e)
            for (var n = 0; n < h.adUnits.length; n++) h.adUnits[n].code === e && h.adUnits.splice(n, 1)
    }, h.clearAuction = function() {
        N = !1, I.logMessage("Prebid auction cleared")
    }, h.requestBids = function(e) {
        var n = e.bidsBackHandler,
            t = e.timeout,
            r = e.adUnits,
            i = e.adUnitCodes;
        if (N) return I.logError("Prebid Error: `pbjs.requestBids` was called while a previous auction was still running. Resubmit this request."), void 0;
        N = !0, h._bidsRequested = [], h._bidsReceived = [];
        var o = t || h.bidderTimeout;
        return r = r || h.adUnits, i && i.length && (r = r.filter(function(e) {
            return i.includes(e.code)
        })), ("undefined" == typeof n ? "undefined" : v(n)) === C && A.addOneTimeCallback(n), I.logInfo("Invoking pbjs.requestBids", arguments), r && 0 !== r.length ? (setTimeout(A.executeCallback, o), T.callBids({
            adUnits: r,
            adUnitCodes: i,
            cbTimeout: o
        }), void 0) : (I.logMessage("No adUnits configured. No bids requested."), A.executeCallback(), void 0)
    }, h.addAdUnits = function(e) {
        I.logInfo("Invoking pbjs.addAdUnits", arguments), I.isArray(e) ? h.adUnits.push.apply(h.adUnits, e) : ("undefined" == typeof e ? "undefined" : v(e)) === j && h.adUnits.push(e)
    }, h.onEvent = function(e, n, t) {
        return I.logInfo("Invoking pbjs.onEvent", arguments), I.isFn(n) ? t && !P[e].call(null, t) ? (I.logError('The id provided is not valid for event "' + e + '" and no handler was set.'), void 0) : (w.on(e, n, t), void 0) : (I.logError('The event handler provided is not a function and was not set on event "' + e + '".'), void 0)
    }, h.offEvent = function(e, n, t) {
        I.logInfo("Invoking pbjs.offEvent", arguments), (!t || P[e].call(null, t)) && w.off(e, n, t)
    }, h.addCallback = function(e, n) {
        I.logInfo("Invoking pbjs.addCallback", arguments);
        var t = null;
        return e && n && ("undefined" == typeof n ? "undefined" : v(n)) === C ? (t = I.getUniqueIdentifierStr, A.addCallback(t, n, e), t) : (I.logError("error registering callback. Check method signature"), t)
    }, h.removeCallback = function() {
        return null
    }, h.registerBidAdapter = function(e, n) {
        I.logInfo("Invoking pbjs.registerBidAdapter", arguments);
        try {
            T.registerBidAdapter(e(), n)
        } catch (t) {
            I.logError("Error registering bidder adapter : " + t.message)
        }
    }, h.registerAnalyticsAdapter = function(e) {
        I.logInfo("Invoking pbjs.registerAnalyticsAdapter", arguments);
        try {
            T.registerAnalyticsAdapter(e)
        } catch (n) {
            I.logError("Error registering analytics adapter : " + n.message)
        }
    }, h.bidsAvailableForAdapter = function(e) {
        I.logInfo("Invoking pbjs.bidsAvailableForAdapter", arguments), h._bidsRequested.find(function(n) {
            return n.bidderCode === e
        }).bids.map(function(n) {
            return m(n, _.createBid(1), {
                bidderCode: e,
                adUnitCode: n.placementCode
            })
        }).map(function(e) {
            return h._bidsReceived.push(e)
        })
    }, h.createBid = function(e) {
        return I.logInfo("Invoking pbjs.createBid", arguments), _.createBid(e)
    }, h.addBidResponse = function(e, n) {
        I.logInfo("Invoking pbjs.addBidResponse", arguments), A.addBidResponse(e, n)
    }, h.loadScript = function(e, n, t) {
        I.logInfo("Invoking pbjs.loadScript", arguments), S.loadScript(e, n, t)
    }, h.enableAnalytics = function(e) {
        e && !I.isEmpty(e) ? (I.logInfo("Invoking pbjs.enableAnalytics for: ", e), T.enableAnalytics(e)) : I.logError("pbjs.enableAnalytics should be called with option {}")
    }, h.sendTimeoutEvent = function() {
        I.logInfo("Invoking pbjs.sendTimeoutEvent", arguments), o()
    }, h.aliasBidder = function(e, n) {
        I.logInfo("Invoking pbjs.aliasBidder", arguments), e && n ? T.aliasBidAdapter(e, n) : I.logError("bidderCode and alias must be passed as arguments", "pbjs.aliasBidder")
    }, h.setPriceGranularity = function(e) {
        I.logInfo("Invoking pbjs.setPriceGranularity", arguments), e ? A.setPriceGranularity(e) : I.logError("Prebid Error: no value passed to `setPriceGranularity()`")
    }, h.enableSendAllBids = function() {
        h._sendAllBids = !0
    }, i()
}, function(e, n, t) {
    "use strict";

    function r() {
        return S() + Math.random().toString(16).substr(2)
    }

    function i() {
        return window.console && window.console.log
    }

    function o(e, n, t) {
        return t.indexOf(e) === n
    }

    function a(e, n) {
        return e.concat(n)
    }

    function d(e) {
        return pbjs._bidsRequested.map(function(n) {
            return n.bids.find(function(n) {
                return n.bidId === e
            })
        }).find(function(e) {
            return e
        })
    }

    function s(e) {
        return Object.keys(e)
    }

    function u(e, n) {
        return e[n]
    }

    function c() {
        return pbjs.adUnits.map(function(e) {
            return e.bids.map(function(e) {
                return e.bidder
            }).reduce(a, [])
        }).reduce(a).filter(o)
    }

    function l() {
        return window.googletag && n.isFn(window.googletag.pubads) && n.isFn(window.googletag.pubads().getSlots) ? !0 : void 0
    }

    function f(e, n) {
        return e.cpm === n.cpm ? e.timeToRespond > n.timeToRespond ? n : e : e.cpm < n.cpm ? n : e
    }
    Object.defineProperty(n, "__esModule", {
        value: !0
    });
    var g = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) {
        return typeof e
    } : function(e) {
        return e && "function" == typeof Symbol && e.constructor === Symbol ? "symbol" : typeof e
    };
    n.uniques = o, n.flatten = a, n.getBidRequest = d, n.getKeys = s, n.getValue = u, n.getBidderCodes = c, n.isGptPubadsDefined = l, n.getHighestCpm = f;
    var p = t(2),
        b = "object",
        m = "string",
        v = "number",
        y = !1,
        h = "Array",
        E = "String",
        I = "Function",
        A = Object.prototype.toString,
        T = null;
    try {
        T = console.info.bind(window.console)
    } catch (_) {}
    n.replaceTokenInString = function(e, n, t) {
        return this._each(n, function(n, r) {
            n = void 0 === n ? "" : n;
            var i = t + r.toUpperCase() + t,
                o = new RegExp(i, "g");
            e = e.replace(o, n)
        }), e
    };
    var S = function() {
        var e = 0;
        return function() {
            return e++, e
        }
    }();
    n.getUniqueIdentifierStr = r, n.generateUUID = function B(e) {
        return e ? (e ^ 16 * Math.random() >> e / 4).toString(16) : ([1e7] + -1e3 + -4e3 + -8e3 + -1e11).replace(/[018]/g, B)
    }, n.getBidIdParamater = function(e, n) {
        return n && n[e] ? n[e] : ""
    }, n.tryAppendQueryString = function(e, n, t) {
        return t ? e += n + "=" + encodeURIComponent(t) + "&" : e
    }, n.parseQueryStringParameters = function(e) {
        var n = "";
        for (var t in e) e.hasOwnProperty(t) && (n += t + "=" + encodeURIComponent(e[t]) + "&");
        return n
    }, n.transformAdServerTargetingObj = function(e) {
        return e && Object.getOwnPropertyNames(e).length > 0 ? s(e).map(function(n) {
            return n + "=" + encodeURIComponent(u(e, n))
        }).join("&") : ""
    }, n.extend = function(e, n) {
        return e = e || {}, this._each(n, function(t, r) {
            e[r] = g(n[r]) === b ? this.extend(e[r], n[r]) : n[r]
        }), e
    }, n.parseSizesInput = function(e) {
        var n = [];
        if (("undefined" == typeof e ? "undefined" : g(e)) === m) {
            var t = e.split(","),
                r = /^(\d)+x(\d)+$/i;
            if (t)
                for (var i in t) j(t, i) && t[i].match(r) && n.push(t[i])
        } else if (("undefined" == typeof e ? "undefined" : g(e)) === b) {
            var o = e.length;
            if (o > 0)
                if (2 === o && g(e[0]) === v && g(e[1]) === v) n.push(this.parseGPTSingleSizeArray(e));
                else
                    for (var a = 0; o > a; a++) n.push(this.parseGPTSingleSizeArray(e[a]))
        }
        return n
    }, n.parseGPTSingleSizeArray = function(e) {
        return !this.isArray(e) || 2 !== e.length || isNaN(e[0]) || isNaN(e[1]) ? void 0 : e[0] + "x" + e[1]
    }, n.getTopWindowUrl = function() {
        try {
            return window.top.location.href
        } catch (e) {
            return window.location.href
        }
    }, n.logWarn = function(e) {
        C() && console.warn && console.warn("WARNING: " + e)
    }, n.logInfo = function(e, n) {
        C() && i() && T && (n && 0 !== n.length || (n = ""), T("INFO: " + e + ("" === n ? "" : " : params : "), n))
    }, n.logMessage = function(e) {
        C() && i() && console.log("MESSAGE: " + e)
    }, n.hasConsoleLogger = i;
    var w = function(e) {
            return e ? window.console.error ? "error" : "log" : ""
        }(i()),
        C = function() {
            return pbjs.logging === !1 && y === !1 && (pbjs.logging = "TRUE" === R(p.DEBUG_MODE).toUpperCase(), y = !0), !!pbjs.logging
        };
    n.debugTurnedOn = C, n.logError = function(e, n, t) {
        var r = n || "ERROR";
        C() && i() && console[w](console, r + ": " + e, t || "")
    }, n.createInvisibleIframe = function() {
        var e = document.createElement("iframe");
        return e.id = r(), e.height = 0, e.width = 0, e.border = "0px", e.hspace = "0", e.vspace = "0", e.marginWidth = "0", e.marginHeight = "0", e.style.border = "0", e.scrolling = "no", e.frameBorder = "0", e.src = "about:blank", e.style.display = "none", e
    };
    var R = function(e) {
        var n = "[\\?&]" + e + "=([^&#]*)",
            t = new RegExp(n),
            r = t.exec(window.location.search);
        return null === r ? "" : decodeURIComponent(r[1].replace(/\+/g, " "))
    };
    n.hasValidBidRequest = function(e, n, t) {
        function r(e, t) {
            t === n[o] && (i = !0)
        }
        for (var i = !1, o = 0; o < n.length; o++)
            if (i = !1, this._each(e, r), !i) return this.logError("Params are missing for bid request. One of these required paramaters are missing: " + n, t), !1;
        return !0
    }, n.addEventHandler = function(e, n, t) {
        e.addEventListener ? e.addEventListener(n, t, !0) : e.attachEvent && e.attachEvent("on" + n, t)
    }, n.isA = function(e, n) {
        return A.call(e) === "[object " + n + "]"
    }, n.isFn = function(e) {
        return this.isA(e, I)
    }, n.isStr = function(e) {
        return this.isA(e, E)
    }, n.isArray = function(e) {
        return this.isA(e, h)
    }, n.isEmpty = function(e) {
        if (!e) return !0;
        if (this.isArray(e) || this.isStr(e)) return !(e.length > 0);
        for (var n in e)
            if (hasOwnProperty.call(e, n)) return !1;
        return !0
    }, n._each = function(e, n) {
        if (!this.isEmpty(e)) {
            if (this.isFn(e.forEach)) return e.forEach(n, this);
            var t = 0,
                r = e.length;
            if (r > 0)
                for (; r > t; t++) n(e[t], t, e);
            else
                for (t in e) hasOwnProperty.call(e, t) && n.call(this, e[t], t)
        }
    }, n.contains = function(e, n) {
        if (this.isEmpty(e)) return !1;
        if (this.isFn(e.indexOf)) return -1 !== e.indexOf(n);
        for (var t = e.length; t--;)
            if (e[t] === n) return !0;
        return !1
    }, n.indexOf = function() {
        return Array.prototype.indexOf ? Array.prototype.indexOf : void 0
    }(), n._map = function(e, n) {
        if (this.isEmpty(e)) return [];
        if (this.isFn(e.map)) return e.map(n);
        var t = [];
        return this._each(e, function(r, i) {
            t.push(n(r, i, e))
        }), t
    };
    var j = function(e, n) {
        return e.hasOwnProperty ? e.hasOwnProperty(n) : "undefined" != typeof e[n] && e.constructor.prototype[n] !== e[n]
    };
    n.createTrackPixelHtml = function(e) {
        if (!e) return "";
        var n = encodeURI(e),
            t = '<div style="position:absolute;left:0px;top:0px;visibility:hidden;">';
        return t += '<img src="' + n + '"></div>'
    }, n.getIframeDocument = function(e) {
        if (e) {
            var n = void 0;
            try {
                n = e.contentWindow ? e.contentWindow.document : e.contentDocument.document ? e.contentDocument.document : e.contentDocument
            } catch (t) {
                this.logError("Cannot get iframe document", t)
            }
            return n
        }
    }
}, function(e) {
    e.exports = {
        JSON_MAPPING: {
            PL_CODE: "code",
            PL_SIZE: "sizes",
            PL_BIDS: "bids",
            BD_BIDDER: "bidder",
            BD_ID: "paramsd",
            BD_PL_ID: "placementId",
            ADSERVER_TARGETING: "adserverTargeting",
            BD_SETTING_STANDARD: "standard"
        },
        REPO_AND_VERSION: "prebid_prebid_0.11.0",
        DEBUG_MODE: "pbjs_debug",
        STATUS: {
            GOOD: 1,
            NO_BID: 2
        },
        CB: {
            TYPE: {
                ALL_BIDS_BACK: "allRequestedBidsBack",
                AD_UNIT_BIDS_BACK: "adUnitBidsBack",
                BID_WON: "bidWon"
            }
        },
        objectType_function: "function",
        objectType_undefined: "undefined",
        objectType_object: "object",
        objectType_string: "string",
        objectType_number: "number",
        EVENTS: {
            AUCTION_INIT: "auctionInit",
            BID_ADJUSTMENT: "bidAdjustment",
            BID_TIMEOUT: "bidTimeout",
            BID_REQUESTED: "bidRequested",
            BID_RESPONSE: "bidResponse",
            BID_WON: "bidWon"
        },
        EVENT_ID_PATHS: {
            bidWon: "adUnitCode"
        },
        GRANULARITY_OPTIONS: {
            LOW: "low",
            MEDIUM: "medium",
            HIGH: "high",
            AUTO: "auto",
            DENSE: "dense"
        },
        TARGETING_KEYS: ["hb_bidder", "hb_adid", "hb_pb", "hb_size"]
    }
}, function() {
    "use strict";
    Array.prototype.find || (Array.prototype.find = function(e) {
        if (null === this) throw new TypeError("Array.prototype.find called on null or undefined");
        if ("function" != typeof e) throw new TypeError("predicate must be a function");
        for (var n, t = Object(this), r = t.length >>> 0, i = arguments[1], o = 0; r > o; o++)
            if (n = t[o], e.call(i, n, o, t)) return n;
        return void 0
    })
}, function(e, n, t) {
    "use strict";

    function r() {
        return (new Date).getTime()
    }

    function i(e) {
        return e.bidderCode
    }

    function o(e) {
        return e.bidder
    }

    function a(e) {
        var n = pbjs.adUnits.find(function(n) {
                return n.code === e
            }).bids.length,
            t = pbjs._bidsReceived.filter(function(n) {
                return n.adUnitCode === e
            }).length;
        return n === t
    }

    function d(e, n) {
        return e + n
    }

    function s() {
        var e = pbjs._bidsRequested.map(function(e) {
                return e.bids.length
            }).reduce(d),
            n = pbjs._bidsReceived.length;
        return e === n
    }

    function u(e) {
        return pbjs._bidsRequested.find(function(n) {
            return n.bidderCode === e
        }) || {
            start: null,
            requestId: null
        }
    }

    function c(e, n) {
        var t = {},
            r = pbjs.bidderSettings || {};
        return n && r && (r[E.JSON_MAPPING.BD_SETTING_STANDARD] || (r[E.JSON_MAPPING.BD_SETTING_STANDARD] = {
            adserverTargeting: [{
                key: "hb_bidder",
                val: function(e) {
                    return e.bidderCode
                }
            }, {
                key: "hb_adid",
                val: function(e) {
                    return e.adId
                }
            }, {
                key: "hb_pb",
                val: function(e) {
                    return C === E.GRANULARITY_OPTIONS.AUTO ? e.pbAg : C === E.GRANULARITY_OPTIONS.DENSE ? e.pbDg : C === E.GRANULARITY_OPTIONS.LOW ? e.pbLg : C === E.GRANULARITY_OPTIONS.MEDIUM ? e.pbMg : C === E.GRANULARITY_OPTIONS.HIGH ? e.pbHg : void 0
                }
            }, {
                key: "hb_size",
                val: function(e) {
                    return e.size
                }
            }]
        }), l(t, r[E.JSON_MAPPING.BD_SETTING_STANDARD], n)), e && n && r && r[e] && r[e][E.JSON_MAPPING.ADSERVER_TARGETING] ? (l(t, r[e], n), n.alwaysUseBid = r[e].alwaysUseBid) : R[e] && (l(t, R[e], n), n.alwaysUseBid = R[e].alwaysUseBid), t
    }

    function l(e, n, t) {
        var r = n[E.JSON_MAPPING.ADSERVER_TARGETING];
        return t.size = t.getSize(), I._each(r, function(n) {
            var r = n.key,
                i = n.val;
            if (e[r] && I.logWarn("The key: " + r + " is getting ovewritten"), I.isFn(i)) try {
                e[r] = i(t)
            } catch (o) {
                I.logError("bidmanager", "ERROR", o)
            } else e[r] = i
        }), e
    }

    function f(e) {
        var n = [e];
        g(_, n)
    }

    function g(e) {
        var n;
        if (I.isArray(e))
            for (n = 0; n < e.length; n++) {
                var t = e[n];
                t.call(pbjs, pbjs._bidsReceived.reduce(p, {}))
            }
    }

    function p(e, n, t, r) {
        return n.adUnitCode in Object.keys(e) ? e : (e[n.adUnitCode] = {
            bids: r.filter(function(e) {
                return e.adUnitCode === n.adUnitCode
            })
        }, e)
    }

    function b(e) {
        var n = e.bidderCode,
            t = e.cpm;
        if (n && pbjs.bidderSettings && pbjs.bidderSettings[n] && v(pbjs.bidderSettings[n].bidCpmAdjustment) === T) try {
            t = pbjs.bidderSettings[n].bidCpmAdjustment.call(null, e.cpm)
        } catch (r) {
            I.logError("Error during bid adjustment", "bidmanager.js", r)
        }
        0 !== t && (e.cpm = t)
    }

    function m(e) {
        var n = 0,
            t = {
                low: "",
                med: "",
                high: "",
                auto: "",
                dense: ""
            };
        try {
            n = parseFloat(e), n && (t.low = n > j ? j.toFixed(2) : (Math.floor(2 * e) / 2).toFixed(2), t.med = n > B ? B.toFixed(2) : (Math.floor(10 * e) / 10).toFixed(2), t.high = n > O ? O.toFixed(2) : (Math.floor(100 * e) / 100).toFixed(2), t.auto = 5 >= n ? (Math.floor(20 * e) / 20).toFixed(2) : 10 >= n ? (Math.floor(10 * e) / 10).toFixed(2) : 20 >= n ? (Math.floor(2 * e) / 2).toFixed(2) : "20.00", t.dense = 3 >= n ? (Math.floor(100 * e) / 100).toFixed(2) : 8 >= n ? (Math.floor(20 * e) / 20).toFixed(2) : 20 >= n ? (Math.floor(2 * e) / 2).toFixed(2) : "20.00")
        } catch (r) {
            this.logError("Exception parsing CPM :" + r.message)
        }
        return t
    }
    var v = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) {
            return typeof e
        } : function(e) {
            return e && "function" == typeof Symbol && e.constructor === Symbol ? "symbol" : typeof e
        },
        y = Object.assign || function(e) {
            for (var n = 1; n < arguments.length; n++) {
                var t = arguments[n];
                for (var r in t) Object.prototype.hasOwnProperty.call(t, r) && (e[r] = t[r])
            }
            return e
        },
        h = t(1),
        E = t(2),
        I = t(1),
        A = t(5),
        T = "function",
        _ = [],
        S = [],
        w = null,
        C = E.GRANULARITY_OPTIONS.MEDIUM,
        R = {},
        j = 5,
        B = 20,
        O = 20;
    n.getTimedOutBidders = function() {
        return pbjs._bidsRequested.map(i).filter(h.uniques).filter(function(e) {
            return pbjs._bidsReceived.map(o).filter(h.uniques).indexOf(e) < 0
        })
    }, n.bidsBackAll = function() {
        return s()
    }, n.addBidResponse = function(e, n) {
        if (n) {
            var t = u(n.bidderCode).bids.find(function(n) {
                return n.placementCode === e
            });
            t && t.bidId && (n.adId = t.bidId), y(n, {
                requestId: u(n.bidderCode).requestId,
                responseTimestamp: r(),
                requestTimestamp: u(n.bidderCode).start,
                cpm: n.cpm || 0,
                bidder: n.bidderCode,
                adUnitCode: e
            }), n.timeToRespond = n.responseTimestamp - n.requestTimestamp, A.emit(E.EVENTS.BID_ADJUSTMENT, n), A.emit(E.EVENTS.BID_RESPONSE, n);
            var i = m(n.cpm, n.height, n.width);
            n.pbLg = i.low, n.pbMg = i.med, n.pbHg = i.high, n.pbAg = i.auto, n.pbDg = i.dense;
            var o = {};
            n.bidderCode && 0 !== n.cpm && (o = c(n.bidderCode, n), n.dealId && (o["hb_deal_" + n.bidderCode] = n.dealId), n.adserverTargeting = o), pbjs._bidsReceived.push(n)
        }
        a(n.adUnitCode) && f(n.adUnitCode), s() && this.executeCallback(), n.timeToRespond > pbjs.bidderTimeout && (A.emit(E.EVENTS.BID_TIMEOUT, this.getTimedOutBidders()), this.executeCallback())
    }, n.getKeyValueTargetingPairs = function() {
        return c.apply(void 0, arguments)
    }, n.setPriceGranularity = function(e) {
        var n = E.GRANULARITY_OPTIONS;
        Object.keys(n).filter(function(t) {
            return e === n[t]
        }) ? C = e : (I.logWarn("Prebid Warning: setPriceGranularity was called with invalid setting, using `medium` as default."), C = E.GRANULARITY_OPTIONS.MEDIUM)
    }, n.registerDefaultBidderSetting = function(e, n) {
        R[e] = n
    }, n.executeCallback = function() {
        S.called !== !0 && (g(S), S.called = !0), w && (g([w]), w = null), pbjs.clearAuction()
    }, n.addOneTimeCallback = function(e) {
        w = e
    }, n.addCallback = function(e, n, t) {
        n.id = e, E.CB.TYPE.ALL_BIDS_BACK === t ? S.push(n) : E.CB.TYPE.AD_UNIT_BIDS_BACK === t && _.push(n)
    }, A.on(E.EVENTS.BID_ADJUSTMENT, function(e) {
        b(e)
    })
}, function(e, n, t) {
    "use strict";
    var r = t(1),
        i = t(2),
        o = Array.prototype.slice,
        a = Array.prototype.push,
        d = r._map(i.EVENTS, function(e) {
            return e
        }),
        s = i.EVENT_ID_PATHS,
        u = [];
    e.exports = function() {
        function e(e, n) {
            r.logMessage("Emitting event for: " + e);
            var i = n[0],
                o = s[e],
                d = i[o],
                c = t[e] || {
                    que: []
                },
                l = r._map(c, function(e, n) {
                    return n
                }),
                f = [];
            u.push({
                eventType: e,
                args: i,
                id: d
            }), d && r.contains(l, d) && a.apply(f, c[d].que), a.apply(f, c.que), r._each(f, function(e) {
                if (e) try {
                    e.apply(null, n)
                } catch (t) {
                    r.logError("Error executing handler:", "events.js", t)
                }
            })
        }

        function n(e) {
            return r.contains(d, e)
        }
        var t = {},
            i = {};
        return i.on = function(e, i, o) {
            if (n(e)) {
                var a = t[e] || {
                    que: []
                };
                o ? (a[o] = a[o] || {
                    que: []
                }, a[o].que.push(i)) : a.que.push(i), t[e] = a
            } else r.logError("Wrong event name : " + e + " Valid event names :" + d)
        }, i.emit = function(n) {
            var t = o.call(arguments, 1);
            e(n, t)
        }, i.off = function(e, n, i) {
            var o = t[e];
            r.isEmpty(o) || r.isEmpty(o.que) && r.isEmpty(o[i]) || i && (r.isEmpty(o[i]) || r.isEmpty(o[i].que)) || (i ? r._each(o[i].que, function(e) {
                var t = o[i].que;
                e === n && t.splice(r.indexOf.call(t, e), 1)
            }) : r._each(o.que, function(e) {
                var t = o.que;
                e === n && t.splice(r.indexOf.call(t, e), 1)
            }), t[e] = o)
        }, i.get = function() {
            return t
        }, i.getEvents = function() {
            var e = [];
            return r._each(u, function(n) {
                var t = r.extend({}, n);
                e.push(t)
            }), e
        }, i
    }()
}, function(e, n, t) {
    "use strict";

    function r(e) {
        var n = e.bidderCode,
            t = e.requestId,
            r = e.bidderRequestId,
            i = e.adUnits;
        return i.map(function(e) {
            return e.bids.filter(function(e) {
                return e.bidder === n
            }).map(function(n) {
                return o(n, {
                    placementCode: e.code,
                    sizes: e.sizes,
                    bidId: s.getUniqueIdentifierStr(),
                    bidderRequestId: r,
                    requestId: t
                })
            })
        }).reduce(a.flatten, [])
    }
    var i = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) {
            return typeof e
        } : function(e) {
            return e && "function" == typeof Symbol && e.constructor === Symbol ? "symbol" : typeof e
        },
        o = Object.assign || function(e) {
            for (var n = 1; n < arguments.length; n++) {
                var t = arguments[n];
                for (var r in t) Object.prototype.hasOwnProperty.call(t, r) && (e[r] = t[r])
            }
            return e
        },
        a = t(1),
        d = t(7),
        s = t(1),
        u = t(2),
        c = t(5),
        l = {};
    n.bidderRegistry = l;
    var f = {};
    n.callBids = function(e) {
        var n = e.adUnits,
            t = e.cbTimeout,
            i = s.generateUUID(),
            o = {
                timestamp: Date.now(),
                requestId: i
            };
        c.emit(u.EVENTS.AUCTION_INIT, o), a.getBidderCodes(n).forEach(function(e) {
            var o = l[e];
            if (o) {
                var a = s.getUniqueIdentifierStr(),
                    d = {
                        bidderCode: e,
                        requestId: i,
                        bidderRequestId: a,
                        bids: r({
                            bidderCode: e,
                            requestId: i,
                            bidderRequestId: a,
                            adUnits: n
                        }),
                        start: (new Date).getTime(),
                        timeout: t
                    };
                s.logMessage("CALLING BIDDER ======= " + e), pbjs._bidsRequested.push(d), c.emit(u.EVENTS.BID_REQUESTED, d), d.bids && d.bids.length && o.callBids(d)
            } else s.logError("Adapter trying to be called which does not exist: " + e + " adaptermanager.callBids")
        })
    }, n.registerBidAdapter = function(e, n) {
        e && n ? i(e.callBids) === u.objectType_function ? l[n] = e : s.logError("Bidder adaptor error for bidder code: " + n + "bidder must implement a callBids() function") : s.logError("bidAdaptor or bidderCode not specified")
    }, n.aliasBidAdapter = function(e, n) {
        var t = l[n];
        if (("undefined" == typeof t ? "undefined" : i(t)) === u.objectType_undefined) {
            var r = l[e];
            if (("undefined" == typeof r ? "undefined" : i(r)) === u.objectType_undefined) s.logError('bidderCode "' + e + '" is not an existing bidder.', "adaptermanager.aliasBidAdapter");
            else try {
                var o = null;
                r instanceof d.BaseAdapter ? s.logError(e + " bidder does not currently support aliasing.", "adaptermanager.aliasBidAdapter") : (o = r.createNew(), o.setBidderCode(n), this.registerBidAdapter(o, n))
            } catch (a) {
                s.logError(e + " bidder does not currently support aliasing.", "adaptermanager.aliasBidAdapter")
            }
        } else s.logMessage('alias name "' + n + '" has been already specified.')
    }, n.registerAnalyticsAdapter = function(e) {
        var n = e.adapter,
            t = e.code;
        n && t ? i(n.enableAnalytics) === u.objectType_function ? (n.code = t, f[t] = n) : s.logError('Prebid Error: Analytics adaptor error for analytics "' + t + '"\n        analytics adapter must implement an enableAnalytics() function') : s.logError("Prebid Error: analyticsAdapter or analyticsCode not specified")
    }, n.enableAnalytics = function(e) {
        s.isArray(e) || (e = [e]), s._each(e, function(e) {
            var n = f[e.provider];
            n ? n.enableAnalytics(e) : s.logError("Prebid Error: no analytics adapter found in registry for\n        " + e.provider + ".")
        })
    };
    var g = t(8);
    n.registerBidAdapter(new g, "aol")
}, function(e, n) {
    "use strict";

    function t(e, n) {
        if (!(e instanceof n)) throw new TypeError("Cannot call a class as a function")
    }
    Object.defineProperty(n, "__esModule", {
        value: !0
    }); {
        var r = function() {
            function e(e, n) {
                for (var t = 0; t < n.length; t++) {
                    var r = n[t];
                    r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, r.key, r)
                }
            }
            return function(n, t, r) {
                return t && e(n.prototype, t), r && e(n, r), n
            }
        }();
        n.BaseAdapter = function() {
            function e(n) {
                t(this, e), this.code = n
            }
            return r(e, [{
                key: "getCode",
                value: function() {
                    return this.code
                }
            }, {
                key: "setCode",
                value: function(e) {
                    this.code = e
                }
            }, {
                key: "callBids",
                value: function() {
                    throw "adapter implementation must override callBids method"
                }
            }]), e
        }()
    }
}, function(e, n, t) {
    "use strict";
    var r = t(1),
        i = t(9),
        o = t(4),
        a = t(10),
        d = function() {
            function e(e) {
                var n = b.createElement("DIV");
                return e && e.length || (e = "ad-placeholder-" + ++v), n.id = e + "-head-unit", m.appendChild(n), n.id
            }

            function n(e, n) {
                var a, d = p[n.alias];
                if (!d) return r.logError("mismatched bid: " + n.placement, f, n), void 0;
                if (a = e.getCPM(), null === a || isNaN(a)) return t(e, n);
                delete p[n.alias];
                var s = i.createBid(1),
                    u = e.getCreative();
                "undefined" != typeof e.getPixels() && (u += e.getPixels()), s.bidderCode = f, s.ad = u, s.cpm = a, s.width = e.getAdWidth(), s.height = e.getAdHeight(), s.creativeId = e.getCreativeId(), o.addBidResponse(d.placementCode, s)
            }

            function t(e, n) {
                var t = p[n.alias];
                if (!t) return r.logError("mismatched bid: " + n.placement, f, n), void 0;
                delete p[n.alias];
                var a = i.createBid(2);
                a.bidderCode = f, a.reason = e.getNbr(), a.raw = e.getResponse(), o.addBidResponse(t.placementCode, a)
            }

            function d(n) {
                var t = n.params.alias || r.getUniqueIdentifierStr();
                return p[t] = n, {
                    adContainerId: e(n.params.adContainerId),
                    server: n.params.server,
                    sizeid: n.params.sizeId || 0,
                    pageid: n.params.pageId,
                    secure: "https:" === document.location.protocol,
                    serviceType: "pubapi",
                    performScreenDetection: !1,
                    alias: t,
                    network: n.params.network,
                    placement: parseInt(n.params.placement),
                    gpt: {
                        adUnitPath: n.params.adUnitPath || n.placementCode,
                        size: n.params.size || (n.sizes || [])[0]
                    },
                    params: {
                        cors: "yes",
                        cmd: "bid",
                        bidfloor: "undefined" != typeof n.params.bidFloor ? n.params.bidFloor.toString() : ""
                    },
                    pubApiConfig: g,
                    placementCode: n.placementCode
                }
            }

            function s() {
                return window.ADTECH ? (r._each(c, function(e) {
                    var n = d(e);
                    window.ADTECH.loadAd(n)
                }), void 0) : (r.logError("window.ADTECH is not present!", f), void 0)
            }

            function u(e) {
                window.bidRequestConfig = window.bidRequestConfig || {}, window.dacBidRequestConfigs = window.dacBidRequestConfigs || {}, c = e.bids, c && c.length && a.loadScript(l, s)
            }
            var c, l = "https://secure-ads.pictela.net/rm/marketplace/pubtaglib/0_4_0/pubtaglib_0_4_0.js",
                f = "aol",
                g = {
                    pixelsDivId: "pixelsDiv",
                    defaultKey: "aolBid",
                    roundingConfig: [{
                        from: 0,
                        to: 999,
                        roundFunction: "tenCentsRound"
                    }, {
                        from: 1e3,
                        to: -1,
                        roundValue: 1e3
                    }],
                    pubApiOK: n,
                    pubApiER: t
                },
                p = {},
                b = window.document,
                m = b.getElementsByTagName("HEAD")[0],
                v = 0;
            return {
                callBids: u
            }
        };
    e.exports = d
}, function(e, n, t) {
    "use strict";

    function r(e) {
        function n() {
            switch (r) {
                case 0:
                    return "Pending";
                case 1:
                    return "Bid available";
                case 2:
                    return "Bid returned empty or error response";
                case 3:
                    return "Bid timed out"
            }
        }
        var t = i.getUniqueIdentifierStr(),
            r = e || 0;
        this.bidderCode = "", this.width = 0, this.height = 0, this.statusMessage = n(), this.adId = t, this.getStatusCode = function() {
            return r
        }, this.getSize = function() {
            return this.width + "x" + this.height
        }
    }
    var i = t(1);
    n.createBid = function(e) {
        return new r(e)
    }
}, function(e, n, t) {
    "use strict";

    function r(e, n) {
        var t = document.createElement("script");
        t.type = "text/javascript", t.async = !0, n && "function" == typeof n && (t.readyState ? t.onreadystatechange = function() {
            ("loaded" === t.readyState || "complete" === t.readyState) && (t.onreadystatechange = null, n())
        } : t.onload = function() {
            n()
        }), t.src = e;
        var r = document.getElementsByTagName("head");
        r = r.length ? r : document.getElementsByTagName("body"), r.length && (r = r[0], r.insertBefore(t, r.firstChild))
    }
    var i = t(1),
        o = {};
    n.loadScript = function(e, n, t) {
        return e ? (t ? o[e] ? o[e].loaded ? n() : o[e].callbacks.push(n) : (o[e] = {
            loaded: !1,
            callbacks: []
        }, o[e].callbacks.push(n), r(e, function() {
            o[e].loaded = !0;
            try {
                for (var n = 0; n < o[e].callbacks.length; n++) o[e].callbacks[n]()
            } catch (t) {
                i.logError("Error executing callback", "adloader.js:loadScript", t)
            }
        })) : r(e, n), void 0) : (i.logError("Error attempting to request empty URL", "adloader.js:loadScript"), void 0)
    }, n.trackPixel = function(e) {
        var n = void 0,
            t = void 0;
        return e && "string" == typeof e ? (n = e.indexOf("?") > 0 ? "&" : "?", t = e + n + "rnd=" + Math.floor(1e7 * Math.random()), (new Image).src = t, t) : (i.logMessage("Missing or invalid pixelUrl."), void 0)
    }
}]);

Open in new window

0
 
LVL 44

Assisted Solution

by:zephyr_hex (Megan)
zephyr_hex (Megan) earned 1000 total points
ID: 41735285
That's common in code editors  It allows you to collapse / expand sections of code.  Most commonly you'll see it done with named regions, or functions.  Your example is collapsing / expanding a comment, which is usually not how it's used (well, unless you had a particularly huge comment that you don't want in your view while you're working on code).

So the purpose is to give you the ability to collapse sections so you can focus on the expanded sections.  This is particularly helpful when you have a lot of lines of code, and you only need to work with certain functions.

Here's an example from Visual Studio:
Expanded:
expand
Collapsed:
collapsed
0
 
LVL 4

Author Comment

by:Stephen Kairys
ID: 41735288
@Dave,
Thank you for the "beautified" code.  That's very helpful! :)

One question though: What determines the presence of the +/-? I just typed in a two-line JS file (with two linebreaks) and those icons (for lack of a better word) did not appear.

Steve
0
The top UI technologies you need to be aware of

An important part of the job as a front-end developer is to stay up to date and in contact with new tools, trends and workflows. That’s why you cannot miss this upcoming webinar to explore the latest trends in UI technologies!

 
LVL 4

Author Comment

by:Stephen Kairys
ID: 41735291
@Dave,
Cancel that last comment! :) Zephyr_Hex cleared it up for me. :) Points coming shortly....Thanks again.
0
 
LVL 4

Author Closing Comment

by:Stephen Kairys
ID: 41735292
Great teamwork Dave/Zephyr_Hex! EE Rocks! :)

To anyone reading this question: please look at both the best solution and assisted solution. :)

Thanks, everyone! Have a good weekend.
0
 
LVL 84

Expert Comment

by:Dave Baldwin
ID: 41735297
You're welcome, glad to help.
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article discusses how to create an extensible mechanism for linked drop downs.
This article is written by John Gates, CISSP. Gates, the SNUG President-Elect, currently holds the position of Manager of Information Systems at Lake Park High School in Roselle, Illinois.
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
Saved searches can save you time by quickly referencing commonly searched terms on any topic. Whether you are looking for questions you can answer or hoping to learn about a specific issue, a saved search can help you get the most out of your time o…

660 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question