Skip to content

Commit

Permalink
Format documents
Browse files Browse the repository at this point in the history
  • Loading branch information
juaalta committed Feb 1, 2024
1 parent c504121 commit c1156f4
Show file tree
Hide file tree
Showing 4 changed files with 50 additions and 46 deletions.
4 changes: 2 additions & 2 deletions background.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ function onError(error) {
console.log(`Error: ${error}`);
}

openOnNewTab = function(linkUrl) {
openOnNewTab = function (linkUrl) {
console.log(linkUrl);
var creating = chrome.tabs.create({
url: linkUrl,
Expand All @@ -96,7 +96,7 @@ openOnNewTab = function(linkUrl) {
The click event listener, where we perform the appropriate action given the
ID of the menu item that was clicked.
*/
chrome.contextMenus.onClicked.addListener(function(info, tab) {
chrome.contextMenus.onClicked.addListener(function (info, tab) {
switch (info.menuItemId) {
case "blog_pagina_principal":
openOnNewTab("http://blog.juansal.com/");
Expand Down
26 changes: 11 additions & 15 deletions manifest.json
Original file line number Diff line number Diff line change
@@ -1,30 +1,26 @@
{

"manifest_version": 3,
"name": "Icono Blog Cosillas de Juansal",
"description": "Abre un menú para acceder directamente a las secciones del blog.",
"id": "jid0-q3ungvhJZPS76QgOLZ7TLp9qspk@jetpack",
"version": "2.1.0",
"default_locale": "es",

"background": {
"service_worker": "background.js",
"type": "module"
},

"permissions": [
"contextMenus",
"tabs"
],

"icons": { "16": "icons/icon-16.png",
"48": "icons/icon-48.png",
"96": "icons/icon-96.png",
"128": "icons/icon-128.png" },

"browser_action": {
"default_icon": "icons/icon.png",
"default_popup": "menu/menu.html"
}

}
"icons": {
"16": "icons/icon-16.png",
"48": "icons/icon-48.png",
"96": "icons/icon-96.png",
"128": "icons/icon-128.png"
},
"browser_action": {
"default_icon": "icons/icon.png",
"default_popup": "menu/menu.html"
}
}
25 changes: 13 additions & 12 deletions menu/menu.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#menuPanel
{
background-color: #629cd1;
#menuPanel {
background-color: #629cd1;
}

#menuv {
Expand All @@ -11,14 +10,16 @@
font-style: normal;
line-height: normal;
}
#menuv ul, li {
list-style-type: none;

#menuv ul,
li {
list-style-type: none;
}

#menuv ul {
margin: 0;
padding: 0;
width: 185
margin: 0;
padding: 0;
width: 185
}

#menuv li {
Expand All @@ -27,9 +28,9 @@
}

#menuv li ul {
margin: 0 0 0 5;
padding: 0;
width: 180px;
margin: 0 0 0 5;
padding: 0;
width: 180px;
}

#menuv li ul li {
Expand Down Expand Up @@ -57,4 +58,4 @@
#menuv a:hover {
background-color: d8e4ff;
color: #666;
}
}
41 changes: 24 additions & 17 deletions menu/menu.html
Original file line number Diff line number Diff line change
@@ -1,22 +1,29 @@
<html>

<head>
<title>Menu Blog Cosillas de Juansal</title>
<link href="menu.css" rel="stylesheet" type="text/css">
<title>Menu Blog Cosillas de Juansal</title>
<link href="menu.css" rel="stylesheet" type="text/css">
</head>

<body id="menuPanel">
<div id="menuv">
<ul>
<li><a href="http://blog.juansal.com/" target="_blank" class="menu">P&aacute;gina principal</a></li>
<li>
<ul>
<li><a href="http://blog.juansal.com/p/indice.html" target="_blank" class="menu">&Iacute;ndice por etiqueta</a></li>
<li><a href="http://blog.juansal.com/p/links-interesantes.html" target="_blank" class="menu">Links interesantes</a></li>
<li><a href="http://blog.juansal.com/p/documentos-compartidos.html" target="_blank" class="menu">Documentos compartidos</a></li>
<li><a href="http://blog.juansal.com/p/plugins-de-firefox.html" target="_blank" class="menu">Plugins de navegadores</a></li>
<li><a href="http://blog.juansal.com/p/proyectos.html" target="_blank" class="menu">Proyectos</a></li>
</ul>
</li>
</ul>
</div>
<div id="menuv">
<ul>
<li><a href="http://blog.juansal.com/" target="_blank" class="menu">P&aacute;gina principal</a></li>
<li>
<ul>
<li><a href="http://blog.juansal.com/p/indice.html" target="_blank" class="menu">&Iacute;ndice por
etiqueta</a></li>
<li><a href="http://blog.juansal.com/p/links-interesantes.html" target="_blank" class="menu">Links
interesantes</a></li>
<li><a href="http://blog.juansal.com/p/documentos-compartidos.html" target="_blank" class="menu">Documentos
compartidos</a></li>
<li><a href="http://blog.juansal.com/p/plugins-de-firefox.html" target="_blank" class="menu">Plugins de
navegadores</a></li>
<li><a href="http://blog.juansal.com/p/proyectos.html" target="_blank" class="menu">Proyectos</a></li>
</ul>
</li>
</ul>
</div>
</body>
</html>

</html>

0 comments on commit c1156f4

Please sign in to comment.