Skip to content

Commit

Permalink
version 0.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
batista committed Aug 6, 2016
1 parent 5886731 commit ddb8abc
Show file tree
Hide file tree
Showing 11 changed files with 47 additions and 13 deletions.
Binary file modified app/images/icon-128.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 modified app/images/icon-16.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 modified app/images/icon-19.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 modified app/images/icon-38.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 11 additions & 5 deletions app/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,10 @@
]
},
"permissions": [
"tabs",
"http://*/*",
"https://*/*"
"http://127.0.0.1/*",
"https://127.0.0.1/*",
"http://localhost/*",
"https://localhost/*"
],
"options_ui": {
"page": "options.html",
Expand All @@ -26,8 +27,13 @@
"content_scripts": [
{
"matches": [
"http://*/*",
"https://*/*"
"http://127.0.0.1/*",
"https://127.0.0.1/*",
"http://localhost/*",
"https://localhost/*"
],
"css": [
"styles/main.css"
],
"js": [
"scripts/contentscript.js"
Expand Down
2 changes: 1 addition & 1 deletion app/options.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<!-- endbuild -->
</head>
<body>
<h1>'Allo, 'Allo!</h1>
<h1>I'm sure you want to configure stuff, not yet.</h1>

<!-- build:js scripts/options-vendor.js -->
<!-- bower:js -->
Expand Down
2 changes: 1 addition & 1 deletion app/popup.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<!-- endbuild -->
</head>
<body>
<h1>'Allo, 'Allo!</h1>
<h1>We should have some options here</h1>

<!-- build:js scripts/popup-vendor.js -->
<!-- bower:js -->
Expand Down
15 changes: 13 additions & 2 deletions app/scripts.babel/contentscript.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
'use strict';
(function () {

console.log('\'Allo \'Allo! Content script');
'use strict';

if (window.location.host.indexOf('localhost') > -1 ||
window.location.host.indexOf('127.0.0.1') > -1) {
var text = 'localhost';

var ribbon =
'<div id="where-am-i-ribbon">' + text + '</div>';

document.body.insertAdjacentHTML('beforeend', ribbon);
}
})();
2 changes: 1 addition & 1 deletion app/scripts.babel/options.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
'use strict';

console.log('\'Allo \'Allo! Option');
console.log('Options');
2 changes: 1 addition & 1 deletion app/scripts.babel/popup.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
'use strict';

console.log('\'Allo \'Allo! Popup');
console.log('Popup');
21 changes: 19 additions & 2 deletions app/styles/main.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
body {
padding: 20px;
#where-am-i-ribbon {
z-index: 9999999;
width: 350px;
background: #39d;
position: absolute;
text-align: center;
line-height: 40px;
letter-spacing: 1px;
color: #f0f0f0;
transform: rotate(-45deg);
-webkit-transform: rotate(-45deg);
opacity: 0.5;
pointer-events: none;
left: -50px;
width: 200px;
top: 25px;
right: auto;
position: fixed;
box-shadow: 0 0 3px rgba(0,0,0,.3);
}

0 comments on commit ddb8abc

Please sign in to comment.