Skip to content

Commit

Permalink
pre live
Browse files Browse the repository at this point in the history
  • Loading branch information
daanvaningen committed May 23, 2018
1 parent 0676201 commit f4bbc13
Show file tree
Hide file tree
Showing 10 changed files with 146 additions and 91 deletions.
5 changes: 5 additions & 0 deletions css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,11 @@ body {
margin-top: 10px;
}

.succes-message {
background-color: #d6fed6;
padding: 3px;
}

.experiments .experiments-wrapper {
max-height: 250px;
overflow-y: auto;
Expand Down
11 changes: 6 additions & 5 deletions js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,16 @@ function queryContentScript(callback){
});
}

function openTab(){
chrome.tabs.create({url:"http://www.clickvalue.nl"});
function openCVTab(){
chrome.tabs.create({url:"http://www.clickvalue.nl"});
}

function openDevTokenTab(){
chrome.tabs.create({url:"http://app.vwo.com/#/developers/tokens"});
}

function prevDefault(){
chrome.tabs.query({active: true, currentWindow: true}, function(tabs) {
chrome.tabs.sendMessage(tabs[0].id, {message: "prevDefault"});
});
}
// chrome.tabs.onUpdated.addListener(function(tabId, changeInfo, tab) {
// queryContentScript(initVWO);
// });
10 changes: 7 additions & 3 deletions main.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,19 @@ <h3>API key</h3>
</p>
<ul>
<li>
Visit <a href="http://app.vwo.com/#/developers/tokens">
Visit <a class="dev-token" href="http://app.vwo.com/#/developers/tokens">
http://app.vwo.com/#/developers/tokens</a>.
</li>
<li>Login to the account for which you want to create a token</li>
<li>Press "Add another API token"</li>
<li>Insert a token name and as a permission select browse</li>
<li>Press "Generate"</li>
<li>Copy the token text and add it to the extension</li>
<li>Add a descriptive name to the token</li>
</ul>
<p>You should now be able to see active experiments on pages that belong to
your account.
</p>
</div>
<div id=main-content>
<div class="API-key">
Expand All @@ -56,8 +60,8 @@ <h3>API key</h3>
</div>
<div class="add-new-key" style="display:none">
<form>
<label>Add API key: </label>
<input class="add-api-key" type="text">
<input class="add-api-key" type="text" placeholder="token"><br>
<input class="api-key-name" type="text" placeholder="name"><br>
<button class="add-api-key-btn">Add</button>
</form>
</div>
Expand Down
8 changes: 4 additions & 4 deletions manifest.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"manifest_version": 2,
"name": "ClickValue's VWO Chrome extension",
"version": "4.0.0",
"name": "ClickValue's VWO Chrome extension V2",
"version": "4.0.1",
"description": "A Visual Web Optimizer extension to see active experiments and change variations",
"author": "Richard Bieringa & Daan van Ingen",
"author": "Daan van Ingen",

"icons": { "16": "./img/vwo.png",
"48": "./img/vwo.png",
Expand All @@ -15,7 +15,7 @@
"24": "./img/vwo.png",
"32": "./img/vwo.png"
},
"default_title": "ClickValue's VWO Chrome Extension",
"default_title": "ClickValue's VWO Chrome Extension V2",
"default_popup": "main.html"
},
"permissions": [
Expand Down
Binary file added promotion/prom1280x800.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added promotion/prom440x280.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added promotion/vwo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added promotion/vwo128.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit f4bbc13

Please sign in to comment.