New Entity

Draft 1.0:
Index







Sections: Status -> Approved

Installation - Install a New Entity™

1.) cleanValue - I/O value formatting

2.) createOrigin - Define Origin locations and base environment variables

3.) entityMap - Define Maps to discoverable metaclass objects.

4.) interactionsXY - XY Interaction building blocks

5.) newentity - Optimized Response Code

6.) presentEntity - Define Entity display definitions

7.) tempoCommunicate - Time logic-engine and server communication decider

8.) windowView - Define View logic and add enhanced visual features

9.) index - Default Starting Page

10.) sitemap - Default Base Page

11.) /textpage/plain Default Base Page

Extensions: Extend your New Entity™



Source Code: newentity.js



Purpose: Optimized Response Code

Additional Usage: For increased savings, you may wish to use a mangler of your choice to reduce the size more or to encode variables.

                
// Copyright (C) 2020 New Entity Operations Inc.
// All rights Reserved
// https://NewEntity.io
// newentity.js
// Version 0.6 (12/28/2020)
var COREHOST = "https://CORE.HOST/tempo"
var originPoint = "https://newentity.io";
var favoritePoint = "/static/js/img/newentity.jpg"
var locationMock = "/mock/";
var locationSiteMap = "/sitemap.xml";
var startPresentationPath = "/static/js/img/newentity.jpg";
var sockINOUT = "/AIREP/";
var startingPointPresentation = originPoint+startPresentationPath;
var urlFullPathAIREP = originPoint+sockINOUT;
var urlFullPathMock = originPoint+locationMock;
var newentity = document.getElementById("newentity");
var killRing = 0;
var ON = 1;
var OFF = 0;
var MAINTENANCE = 0;
var OUTLINK = ON;
var screenXtext = "Screen Attributes: Width -> ";
var screenYtext = "Screen Attributes: Height -> ";
var POSel = "pSelected: ";
var descriptiveTitle = 8; // humanReadableTitle
var classifierQueueLookup = 9; // humanReadableClassifier
var metaFeatures = 10; // metaFeatures
var ownerCopyright = 11; // ownerCopyright
var recordCreationDate = 12; // recordCreationDate
var safetyRating = 13; // safetyRating
var levelVisionRenderMax = 1720;
var levelVisionRenderMin = 400;
var levelVisionRenderMin1 = 520;
var levelVisionRenderMin2 = 780;
var levelVisionRenderMin3 = 1040;
var levelVisionRenderMin4 = 1360;
var weightVectorProcessorHDR = 7;
var weightVectorProcessorMinimal = 2;
var weightVectorProcessorMinimal3 = 3;
var weightVectorProcessorMinimal4 = 4;
var weightVectorProcessorMinimal5 = 5;
var weightVectorProcessorMinimal6 = 6;
var eventOperatorKey = ON;
var eventMouse = ON;
var eventMouseOver = ON;
function buildPythonPre() {
    function prePresent() {
        let preCode = document.getElementsByClassName("preCode");
        let codeText = document.getElementsByClassName("textEntity");
        let codePython = document.getElementsByClassName("pythonEntity");
        if (preCode.length == 0) {
        } else {
              curred_bucket = [];
             function lineStandard(value, scalarValue, scalarWeight) {
                let lineStandard = document.createElement("span");
                lineStandard.className = "lineStandard";
                scalarWeightZ=scalarWeight-1
             }
             function textCommentA(value, scalarValue, scalarWeight) {
                let spanTextCommentA = document.createElement("span");
                spanTextCommentA.className = "textCommentA";
             }
             function textCommentB(value, scalarValue, scalarWeight) {
               let spanTextCommentB = document.createElement("span");
               spanTextCommentB.className = "textCommentB";
             }
             function textCommentC(value, scalarValue, scalarWeight) {
                let spanTextCommentC = document.createElement("span");
                spanTextCommentC.className = "textCommentC";
             }
             if (preCode.length>0) {
                if (codeText.length > 0)  {
                    var scalarValue = codeText.length;
                    var scalarWeight = 1;
                    while(scalarWeight<=scalarValue) {
                        var code_list = document.getElementsByClassName("textEntity")[scalarWeight-1];
                        scalarWeight++;
                        var code_list_two = code_list.innerHTML;
                        var code_list_three = code_list_two.split("\n");
                        for (value in code_list_three) {
                            if (value.startsWith("#") == true) {
                                textCommentA(value, scalarValue, scalarWeight);
                            } else if (value.startsWith("//") == true) {
                                textCommentB(value, scalarValue, scalarWeight);
                            } else {
                                lineStandard(value, scalarValue, scalarWeight);
                            }
                        }
                    }
                } else {
                }
                if (codePython.length > 0) {
                    var scalarValue = codePython.length;
                    var scalarWeight = 1;
                    while(scalarWeight<=scalarValue) {
                        var code_list = document.getElementsByClassName("pythonEntity")[scalarWeight-1];
                        scalarWeight++;
                        var code_list_two = code_list.innerHTML;
                        var code_list_three = code_list_two.split("\n");
                        for (value in code_list_three) {
                           if (value.startsWith("#") == true) {
                               textCommentA(value, scalarValue, scalarWeight);
                           } else if (value.startsWith("'''") == true) {
                               textCommentC(value, scalarValue, scalarWeight);
                           } else {
                                lineStandard(value, scalarValue, scalarWeight);
                           }
                       }
                    }
                } else {
                }
             } else {
             }
        }
    }
    prePresent();
};
if (document.addEventListener, legacy=ON) {
  document.addEventListener("DOMContentLoaded", () => {
    buildPythonPre();
  });
} else if (document.attachEvent, legacy=ON) {
  document.attachEvent("DOMContentLoaded", buildPythonPre);
}
var rootDomain = originPoint;
var staticPaththumb = "/static/img/thumb/";
var staticPathimage = "/static/img/site-image/";
let sectionAbout = "/about/";
let sectionContact = "/contact/";
let sectionPhotos = "/photos/";
let priorityAlpha = originPoint+sectionAbout;
let priorityBeta = originPoint+sectionContact;
let priorityGamma = originPoint+sectionPhotos;
var pageCurrent = document.URL;
var indexMapURL = new Map([
    [rootDomain, 1]
]);
var constructorMapBuild = [
new Map([
    [0, "Map: Entity->AAAAAA"],
    [1, staticPaththumb+"newentity.jpg"],
    [8, "Each New Dream"],
    [9,  "2020 Collection, Ryan McKenna"],
    [10, "Not for sale"],
    [11, "Ryan McKenna"],
    [12, "2020"],
    [13, "Safe For Kids"]
])
];
function windowProperties() {
    var currentURL = document.URL;
    var illusionValue = indexMapURL.get(currentURL);
    var unityObject = 0;
    var screenX = screen.width;
    let photoEntity = new Map();
    let listPath = new Map();
    function utilityBuild() {
        document.getElementById("windowModifiers").innerHTML = "The delivered `unityObject` was: "+unityObject;
    }
    function dynamicMapURL() {
        function utilityBuild(unityObject) {
            try {
               document.getElementById("mainImage").src = photoEntity.get(unityObject);
            } catch (err) {
               console.log("Enter the action view to browse media assets.")
            }
        }
        function utilityScore(screenX) {
            if (screenX < levelVisionRenderMin) {
                unityObject = weightVectorProcessorMinimal;
                utilityBuild(unityObject);
            } else if (screenX < levelVisionRenderMin1) {
                unityObject = weightVectorProcessorMinimal;
                utilityBuild(unityObject);
            } else if (screenX < levelVisionRenderMin2) {
                unityObject = weightVectorProcessorMinimal3;
                utilityBuild(unityObject);
            } else if (screenX < levelVisionRenderMin3) {
                unityObject = weightVectorProcessorMinimal4;
                utilityBuild(unityObject);
            } else if (screenX < levelVisionRenderMin4) {
                unityObject = weightVectorProcessorMinimal5;
                utilityBuild(unityObject);
            } else if (screenX < levelVisionRenderMax) {
                unityObject = weightVectorProcessorMinimal6;
                utilityBuild(unityObject);
            } else {
                unityObject = weightVectorProcessorHDR;
                utilityBuild(unityObject);
            }
        }
        utilityScore(screenX);
        function getURLDependsLink(listPath, metaSearch) {
            let photoEntity = new Map(listPath);
            let lookupInformation = new Map(metaSearch);
            document.getElementById("mainImage").src = photoEntity.get(unityObject);
            try {
              document.querySelector("#classifierObjects").innerHTML = lookupInformation.get(classifierQueueLookup);
            } catch(err) {
              console.log("No default classifiers were picked up.");
            }
            try {
              document.querySelector("h2").innerHTML = lookupInformation.get(descriptiveTitle);
              valueDescriptiveTitle = lookupInformation.get(descriptiveTitle);
              valueRecordCreationDate = lookupInformation.get(recordCreationDate);
              valueOwnerCopyright = lookupInformation.get(ownerCopyright);
              valueSafetyRating = lookupInformation.get(safetyRating);
              console.log("Viewing: "+valueDescriptiveTitle+", Copyright (C) "+valueRecordCreationDate+" "+valueOwnerCopyright+". This image has been rated: "+valueSafetyRating);
            } catch(err) {
              console.log("Some of, or all of your defined classifiers weren't found.");
            }
        }
        var illusionValue = indexMapURL.get(currentURL);
        // HNLEHHNLPSHE28
        if (illusionValue > 0) {
            var i = illusionValue;
            fieldIdentifier = constructorMapBuild[i].get(0);
            var theHitValue = fieldIdentifier.split('->')[1];
            let listPath=constructorMapBuild[i-1];
            let metaSearch=constructorMapBuild[i-1];
            getURLDependsLink(listPath, metaSearch);
        } else {
        }
    }
dynamicMapURL();
};
function runWindowRoutine (legacy=0) {
  windowProperties();
}
if (document.addEventListener, legacy=ON) {
  document.addEventListener("DOMContentLoaded", () => {
    runWindowRoutine(legacy);
  });
} else if (document.attachEvent, legacy=ON) {
  document.attachEvent("DOMContentLoaded", runWindowRoutine);
}
let regionX = 0;
let regionY = 0;
function provideXYInformation(event) {
  var xAxis = event.clientX;
  var yAxis = event.clientY;
  var makeVectorObjectXY = "X-Axis: "+xAxis+", and the Y-Axis: "+yAxis;
  regionX = xAxis;
  regionY = yAxis;
}
function responseXYEvent () {
  if (regionX > 50 & regionY > 50) {
    match = 0;
  } else {
    match = 1;
  }
  if (match == 0) {
  } else if (match == 1) {
  } else {
  }
}
let hasProtectedRegionalState = 0;
let stateInputNow = 0;
let stateTextareaNow = 0;
function onActiveKillInputContactHere (event) {
  if (stateInputNow == 0) {
    hasProtectedRegionalState = 1;
  } else {
    hasProtectedRegionalState = 0;
  }
}
function onActiveKillInputName (event) {
  if (stateInputNow == 0) {
    hasProtectedRegionalState = 1;
  } else {
    hasProtectedRegionalState = 0;
  }
}
function onActiveKillTextarea (event) {
  if (stateTextareaNow == 0) {
    hasProtectedRegionalState = 1;
  } else {
    hasProtectedRegionalState = 0;
  }
}
try {
  const inputsName = document.querySelector('input[name="contact_here"]');
  inputsName.addEventListener('focus', (event) => {
    onActiveKillInputContactHere(event);
  });
} catch (e) {
}
try {
  const inputsName = document.querySelector('input[name="name"]');
  inputsName.addEventListener('focus', (event) => {
    onActiveKillInputName(event);
  });
} catch (e) {
}
try {
  const textareaAll = document.querySelector("textarea");
  textareaAll.addEventListener('focus', (event) => {
    onActiveKillTextarea(event);
  });
} catch (e) {
}
function responseOperatorKey (event) {
  protectedPage = "https://newentity.io/protected"
  if (document.URL == protectedPage) {
   let killRing = 1;
  }
  else {
    let killRing = 0;
  }
  if (killRing == 0) {
    var getEventInformation = event.key;
    if (hasProtectedRegionalState==0) {
      if (getEventInformation == "p") {
        window.location = startingPointPresentation;
      } else if (getEventInformation == "h") {
        window.location = originPoint;
      } else if (getEventInformation == "f") {
        window.location = favoritePoint;
      } else {
      }
    } else if (hasProtectedRegionalState==1) {
    } else {
    }
  } else {
  }
}
function providesRegionXY () {
}
providesRegionXY();
if (document.addEventListener, legacy=ON) {
  document.addEventListener("mousemove", (event) => {
    provideXYInformation(event);
    responseXYEvent();
  });
  document.addEventListener("keypress", (event) => {
    responseOperatorKey(event);
  });
} else if (document.attachEvent, legacy=ON) {
  document.attachEvent("mousemove", responseXYEvent);
  document.attachEvent("keypress", responseOperatorKey);
}
let counterTimeNow = 0;
function makeRequestPOST (objectRequestPOST) {
  let oXMLHR = new XMLHttpRequest();
  oXMLHR.open("POST", urlFullPathContact, 1);
  oXMLHR.setRequestHeader('Content-Type', 'application/json');
  oXMLHR.send();
}
function makeMockRequestPOST (objectRequestPOST) {
  let oXMLHR = new XMLHttpRequest();
  oXMLHR.open("POST", urlFullPathMock, 1);
  oXMLHR.setRequestHeader('Content-Type', 'application/json');
  oXMLHR.send();
}
function formatVariableTime (spentTime=counterTimeNow) {
    metricEngagement = spentTime;
    let objectRequestPOST = {
      "Engagement": metricEngagement,
    }
    makeMockRequestPOST(objectRequestPOST);
}
function tallyTime() {
    counterTimeNow++;
}
function stateStart () {
   var trackerInterval = window.setInterval(tallyTime, 1000);
}
function formatTimeEnd () {
  var timeEnd = 0;
}
function alterWindowObject () {
  var alterWindowX = 0;
}
function makeRequestGET (active, objectRequestGET) {
 if (active=0) {
 } else if (active=1) {
 } else {
 }
}
let objectRequestGET = {
  "CURRENTSITEMAP": locationSiteMap,
  "DOMAIN": originPoint,
  "LOCATIONCOMM": sockINOUT
}
function runTempoRoutine (legacy, mode) {
  stateStart();
  if (legacy == 0) {
  } else if (legacy == 1) {
  } else {
  }
  if (mode == 0) {
  } else if (mode == 1) {
    makeRequestGET(objectRequestGET);
  } else {
  }
}
function destroyTempoRoutine() {
  formatVariableTime(counterTimeNow);
}
if (MAINTENANCE==1) {
  location.replace("/about/");
} else {
  if (document.addEventListener, legacy=ON, mode=OUTLINK) {
    document.addEventListener("DOMContentLoaded", () => {
      runTempoRoutine(legacy, mode);
    });
    window.addEventListener("unload", () => {
      destroyTempoRoutine();
    });
  } else if (document.attachEvent, legacy=ON) {
    console.log("Try a newer browser, site function and loading will work better!");
    document.attachEvent("DOMContentLoaded", runTempoRoutine);
    document.attachEvent("unload", destroyTempoRoutine);
  }
}
var urlFullPathContact = originPoint+"/contact/";
const buttonContact = document.getElementById("buttonContact");
const enforceHTTPS = 1;
let listCurred = [];
function inputCleanValue (assembledString, a=0, b=0, c=0) {
  if (a>0) {
    let neededStringA = assembledString;
    console.log(neededStringA);
  }
  if (b>0) {
    let neededStringB = assembledString;
    console.log(neededStringB);
  }
  if (c>0) {
    let neededStringC = assembledString;
    console.log(neededStringC);
  }
}
function moduleContactInstance (fieldValue) {
  let counterCure = 0;
  var valueCleanInplaceList = new Map([
    ["<", "\/<\/"],
    [">", "\/>\/"],
    ["?", "\/?\/"],
    ["/", "\/(/)\/"],
    ["#", "\/#\/"],
    ["&", "\/&\/"]
  ]);
  function processTranslation (a=0, b=0, c=0) {
    var assessValue = fieldValue[counterCure];
    try {
      var cureThisValue = valueCleanInplaceList.get(assessValue);
      listCurred.push(cureThisValue);
    } catch (err) {
      listCurred.push(assessValue);
    }
  }
  while (counterCure < fieldValue.length) {
    processTranslation();
    counterCure++;
  }
  let assembledString = listCurred.toString();
  inputCleanValue(assembledString, a, b, c);
}
try {
buttonContact.addEventListener('click', function () {
  let retrievalDOMFieldValueA = document.getElementById("name").value;
  fieldValueA = [];
  function StringA () {
     fieldValueA = retrievalDOMFieldValueA.split();
  }
  StringA(a=1, b=0, c=0);
  moduleContactInstance(fieldValue=fieldValueA);

  let retrievalDOMFieldValueB = document.getElementById("your_message").value;
  fieldValueB = [];
  function StringB () {
    fieldValueB = retrievalDOMFieldValueB.split();
  }
  StringB(a=0, b=1, c=0);
  moduleContactInstance(fieldValue=fieldValueB);

  let retrievalDOMFieldValueC = document.getElementById("contact_here").value;
  fieldValueC = [];
  function StringC () {
    fieldValueC = retrievalDOMFieldValueC.split();
  }
  StringC(a=0, b=0, c=1);
  moduleContactInstance(fieldValue=fieldValueC);
  listCurred = [];
  const tokenCSRF = document.getElementById("csrf_token").value;
  const fieldType = document.getElementById("type").value;
  const ageRange = document.getElementById("age").value;
  let objectRequestPOST = {
    "csrf_token": tokenCSRF,
    "name": neededStringA,
    "type": fieldType,
    "your_message": neededStringB,
    "contact_here": neededStringC,
    "age": ageRange
  }
  makeRequestPOST(objectRequestPOST);
  console.log("Token: generated");
})
} catch (error) {
  console.log("Token: none");
}
                
              

Copyright © 2020 New Entity Operations Inc. - All Rights Reserved
Terms of Service