From d26a1572a64fb4271f73552a21d6f7de6bbb740c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nils=20Norman=20Hauk=C3=A5s?= Date: Tue, 19 Jan 2016 21:14:38 +0100 Subject: [PATCH] tweaked css. Added a possibility of resetting the tags for a given page. --- .gitignore | 3 ++- src/index-angular-app-web.html | 33 +++++++++++++++++++++++++----- src/index-angular-app.html | 30 +++++++++++++++++++++++++-- src/plugin-specific/manifest.json | 4 ++-- src/services/tagStorage.service.ts | 7 +++++-- src/style.css | 20 ------------------ 6 files changed, 65 insertions(+), 32 deletions(-) diff --git a/.gitignore b/.gitignore index 81ad3d0..ba30c8a 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ node_modules dist -tmp \ No newline at end of file +tmp +*.zip \ No newline at end of file diff --git a/src/index-angular-app-web.html b/src/index-angular-app-web.html index cf79615..931254c 100644 --- a/src/index-angular-app-web.html +++ b/src/index-angular-app-web.html @@ -1,18 +1,40 @@ + This will be an iframe programmatically included into a parent page. - - - - + + + +

Tag you're it

-

Select a word to tag with a semantic tag.

+

+ Mark one or two words on the page to the right. And we'll supply you with possible definitions. Select a definition and the + word will be tagged. +

Currently selected word: {{vm.selectedWord}} @@ -27,4 +49,5 @@

+ \ No newline at end of file diff --git a/src/index-angular-app.html b/src/index-angular-app.html index 3c83195..630dd99 100644 --- a/src/index-angular-app.html +++ b/src/index-angular-app.html @@ -1,15 +1,40 @@ + This will be an iframe programmatically included into a parent page. - + + + +

Tag you're it

-

Select a word to tag with a semantic tag.

+

+ Mark one or two words on the page to the right. And we'll supply you with possible definitions. Select a definition and the + word will be tagged. +

Currently selected word: {{vm.selectedWord}} @@ -24,4 +49,5 @@

+ \ No newline at end of file diff --git a/src/plugin-specific/manifest.json b/src/plugin-specific/manifest.json index 0e743fe..83ce28d 100644 --- a/src/plugin-specific/manifest.json +++ b/src/plugin-specific/manifest.json @@ -1,7 +1,7 @@ { "name": "Tag you're it", - "description": "Make the meaning clear. This plugin enables semantic tagging of web content.", - "version": "0.7", + "description": "A browser tool for tagging words with exact definitions.", + "version": "0.0.1", "manifest_version": 2, "icons": { "16": "icon16.png", diff --git a/src/services/tagStorage.service.ts b/src/services/tagStorage.service.ts index 76ad400..e5489de 100644 --- a/src/services/tagStorage.service.ts +++ b/src/services/tagStorage.service.ts @@ -18,8 +18,11 @@ module tagIt { this.$http = $http; this.$log = $log; this.$localStorage = $localStorage; - - // this.deleteTags(); // reset tag storage + + if (window.location.href.indexOf("tagitreset") !== -1) { + this.deleteTags(); // reset tag storage + this.$log.debug("Resetting tags for this page"); + } if (!this.$localStorage.tagStorage) { this.$localStorage.tagStorage = []; diff --git a/src/style.css b/src/style.css index cb74d71..fbcabca 100644 --- a/src/style.css +++ b/src/style.css @@ -17,26 +17,6 @@ html.tagit-top-wrapper { width: 70%; } -.tagit-iframe, -.tagit-menu { - background-color: #ccc; - height: 100%; -} - -.tagit-menu ul { - padding-left: 0px; - margin-top: 10px; -} - -.tagit-menu li { - padding: 5px; -} - -.tagit-menu li:hover { - background-color: #eee; - cursor: pointer; -} - .tagit-tag { background-color: #EDDE45; padding: 3px;