Function FeedbackForm
has a Cognitive Complexity of 16 (exceeds 6 allowed). Consider refactoring.
function FeedbackForm() {
var _instance = this;
var _events = {
Function DefaultPopup
has a Cognitive Complexity of 14 (exceeds 6 allowed). Consider refactoring.
function DefaultPopup() {
var _instance = this;
var _events = {
Function _checkIfFloating
has a Cognitive Complexity of 12 (exceeds 6 allowed). Consider refactoring.
function _checkIfFloating() {
var c;
if (window.scrollY >= _offsetY) {
_header.classList.add('floating');
Function EventObserver
has a Cognitive Complexity of 11 (exceeds 6 allowed). Consider refactoring.
function EventObserver() {
var _events = {};
Function CharacterLimited
has a Cognitive Complexity of 8 (exceeds 6 allowed). Consider refactoring.
function CharacterLimited(elm, defaults) {
var _fulltext;
Function getOffset
has a Cognitive Complexity of 8 (exceeds 6 allowed). Consider refactoring.
function getOffset(element) {
var body = document.body,
win = document.defaultView,
docElem = document.documentElement,
box = document.createElement('div');
Function TextInput
has a Cognitive Complexity of 8 (exceeds 6 allowed). Consider refactoring.
function TextInput(id) {
var _instance = this;
var _events = { CHANGE: 'change' };
Function updateInfoBoxState
has a Cognitive Complexity of 7 (exceeds 6 allowed). Consider refactoring.
function updateInfoBoxState(overMarker, delay) {
if (_infoBoxDelay) clearTimeout(_infoBoxDelay);
Function getWindowRect
has a Cognitive Complexity of 7 (exceeds 6 allowed). Consider refactoring.
function getWindowRect() {
var myWidth = 0, myHeight = 0;
if ( typeof( window.innerWidth ) === 'number' ) {
myWidth = window.innerWidth;