Skip to content

Commit

Permalink
Add Public Portal Link (#30)
Browse files Browse the repository at this point in the history
* add link to popout

* adjust location of link
  • Loading branch information
clarkio authored Jan 28, 2018
1 parent 493e263 commit 2612334
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/popout/popout.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
<body>
<div id="main">
<section class="section">
<a id="index_link" class="is-pulled-left" href="https://aka.ms/publicportal">Public Portal</a>
<a class="is-pulled-right has-text-weight-bold" id="settingsLink">Settings</a>
</section>
<section class="section">
Expand Down
9 changes: 9 additions & 0 deletions src/popout/popout.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,12 @@ function injectDisableAllMasks() {
allFrames: true
});
}

document.addEventListener('DOMContentLoaded', function () {
var y = document.getElementById("index_link");
y.addEventListener("click", openIndex);
});

function openIndex() {
chrome.tabs.create({ active: true, url: "https://aka.ms/publicportal" });
}

0 comments on commit 2612334

Please sign in to comment.