{"size": 1669, "ext": "js", "max_stars_repo_path": "js/polyrise.js", "max_stars_repo_name": "hubsadda/Website-Builder", "max_stars_repo_stars_event_min_datetime": "2018-06-08T05:14:48.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-17T15:06:51.000Z", "max_issues_repo_path": "js/polyrise.js", "max_issues_repo_name": "hubsadda/Website-Builder", "max_issues_repo_issues_event_min_datetime": "2019-07-19T18:00:20.000Z", "max_issues_repo_issues_event_max_datetime": "2021-11-13T04:32:52.000Z", "max_forks_repo_path": "js/polyrise.js", "max_forks_repo_name": "hubsadda/Website-Builder", "max_forks_repo_forks_event_min_datetime": "2018-03-24T22:08:23.000Z", "max_forks_repo_forks_event_max_datetime": "2022-03-05T18:06:35.000Z"}
{"max_stars_count": 43, "max_issues_count": 2, "max_forks_count": 27, "avg_line_length": 35.5106382979, "max_line_length": 109, "alphanum_fraction": 0.6464949071}
// Version: 0.0.1
// Polyrise, copyright (c) by Michael Schwartz and others
// Distributed under an MIT license: https://github.com/michaelsboost/Polyrise/blob/gh-pages/LICENSE
// 
// This is Polyrise (https://michaelsboost.github.io/Polyrise/), Free Mobile Website Builder Software

// Define variables
var site         = window.location;
    openInNewTab = function(url) {
      var a = document.createElement("a");
      a.target = "_blank";
      a.href = url;
      a.click();
    };

// Detect if domain is HTTP
site = site.toString();
if (site.substring(0, 7) === "http://") {
  // domain is http
  site = "http%3A//" + site.substring(7, site.length);
} else if (site.substring(0, 8) === "https://") {
  // domain is https
  site = "https%3A//" + site.substring(8, site.length);
} else {
  // cannot detect http encoding revert to Polyrise domain as default
  site = "https%3A//michaelsboost.github.io/Polyrise/";
}

// fadeIn background-overlay
$(".bg-overlay, .bg-overlay2").fadeIn();

// Share This Page
$("[data-shareTo]").on("click", function() {
  var thisAttr = $(this).attr("data-shareTo").toLowerCase();
  
  if (thisAttr === "facebook") {
    openInNewTab("https://www.facebook.com/sharer/sharer.php?u=" + site);
  } else if (thisAttr === "twitter") {
    openInNewTab("https://twitter.com/home?status=" + site);
  } else if (thisAttr === "googleplus") {
    openInNewTab("https://plus.google.com/share?url=" + site);
  } else if (thisAttr === "linkedin") {
    openInNewTab("https://www.linkedin.com/shareArticle?mini=true&url=" + site + "&title=&summary=&source=");
  } else {
    alertify.error("Unable to share, undetected social network");
  }
});