HEX
Server: Apache
System: Linux pdx1-shared-a1-38 6.6.104-grsec-jammy+ #3 SMP Tue Sep 16 00:28:11 UTC 2025 x86_64
User: mmickelson (3396398)
PHP: 8.1.31
Disabled: NONE
Upload Files
File: /home/mmickelson/theflexguy.com/apps/silicondesigner/sg/js/app/Utils.js
// SILICON PUBLISHING HELPER FUNCTIONS ---------------------------
// Returns the given keys value from the url or returns the default ... if it doesn't find the key in the url.
getQuerystring = function(key, default_) {
    key = key.toLowerCase();
    if (default_==null) default_="";
    key = key.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");
    var regex = new RegExp("[\\?&]"+key+"=([^&#]*)");
    var qs = regex.exec(window.location.href.toLowerCase());
    if(qs == null){
        return default_;
    }else{
        return qs[1];
    }
}	

checkLocal = function(key1) {
  key1 = key1.toLowerCase();
  key1 = key1.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");
  var regex = new RegExp(key1);
  var qs = regex.exec(window.location.href.toLowerCase());
  if(qs == null)
    return false;
  else
    return true;
}	

mergeObj = function(obj1,obj2){
    var obj3 = {};
    for (var attrname in obj1) { obj3[attrname] = obj1[attrname]; }
    for (var attrname in obj2) { obj3[attrname] = obj2[attrname]; }
    return obj3;
}