Sha256: 4f578c783e9149064f236c75cc5c8325a3b43b4535fa57ac58b63b769cdd499c

Contents?: true

Size: 232 Bytes

Versions: 2

Compression:

Stored size: 232 Bytes

Contents

function loadDomain() {
  let proto = location.protocol;
  let port = location.port;
  let url = location.hostname;
  var display = document.getElementById('display-domain');
  display.innerHTML = proto + '//' + url + ':' + port;
}

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
casjaysdev-jekyll-theme-0.2.6 assets/js/errorpages/loaddomain.js
casjaysdev-jekyll-theme-0.2.5 assets/js/errorpages/loaddomain.js