diff --git a/README.md b/README.md index 8880c15..7ec556f 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ Install from [Google Chrome Web Store](https://chrome.google.com/webstore/detail License ================= -Copyright (C) 2014 Ivan Gualandri and Davide Fiorentino +Copyright (C) 2015 Ivan Gualandri and Davide Fiorentino This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff --git a/images/fb_button.png b/images/fb_button.png new file mode 100644 index 0000000..d32acc8 Binary files /dev/null and b/images/fb_button.png differ diff --git a/images/flattr-badge-large.png b/images/flattr-badge-large.png new file mode 100644 index 0000000..1105305 Binary files /dev/null and b/images/flattr-badge-large.png differ diff --git a/images/gplus.png b/images/gplus.png new file mode 100644 index 0000000..7a863a1 Binary files /dev/null and b/images/gplus.png differ diff --git a/images/twitter.png b/images/twitter.png new file mode 100644 index 0000000..a23f48d Binary files /dev/null and b/images/twitter.png differ diff --git a/manifest.json b/manifest.json index 20654eb..954413b 100755 --- a/manifest.json +++ b/manifest.json @@ -1,7 +1,7 @@ { "manifest_version": 2, "name": "Parameters Editor", - "version": "1.1", + "version": "1.2", "description": "Shows parameters used in the URL and allows to update, export and import them ", diff --git a/src/background.js b/src/background.js index 331982b..f01f425 100755 --- a/src/background.js +++ b/src/background.js @@ -47,6 +47,12 @@ function onInstall(){ }); } +function onUpdate(){ + console.log("Extension Updated"); + chrome.tabs.create({'url': chrome.extension.getURL('src/post_update.html')}, function(tab){ + }); +} + chrome.runtime.onInstalled.addListener(function(details){ var current_version = getVersion(); var old_version = localStorage['version'] @@ -56,7 +62,10 @@ chrome.runtime.onInstalled.addListener(function(details){ console.log("OnInstall Call"); localStorage['version'] = current_version; onInstall(); + } else { + localStorage['version'] = current_version; + onUpdate(); } } console.log("Reason: " + details.reason); -}); \ No newline at end of file +}); diff --git a/src/popup.html b/src/popup.html index cb6f0fd..654e0fb 100755 --- a/src/popup.html +++ b/src/popup.html @@ -25,9 +25,14 @@ div#report_bug { text-align: right; } + div#social_bar { + display: none; + } #report_bug a:link { color: #006699; font-weight: bold; text-decoration: none; font-size: smaller} #report_bug a:visited { color: #006699; font-weight: bold; text-decoration: none; font-size: smaller} + #social_link a:link { color: #006699; font-weight: bold; text-decoration: none; font-size: smaller} + #social_link a:visited { color: #006699; font-weight: bold; text-decoration: none; font-size: smaller} @@ -48,13 +53,26 @@
- +
-
+
+ + +
+
+
+ Flattr this + + + +
\ No newline at end of file diff --git a/src/popup.js b/src/popup.js index 15418ed..adfebcd 100755 --- a/src/popup.js +++ b/src/popup.js @@ -28,6 +28,10 @@ function click(e) { }); }); + } else if(e.target.id=="social_button"){ + console.log("Show social bar"); + var element = document.getElementById("social_bar") + element.style.display = "block"; } } @@ -49,6 +53,7 @@ function add_new_parameter(){ var div_element = document.createElement("div"); parameter_value_container.setAttribute("id", "new_parameter"); parameter_name_container.setAttribute("type", "text"); + parameter_value_container.addEventListener("keypress", input_keypress); parameter_name_container.onblur = function(){ if(this.value!=""){ var element = this.nextElementSibling; @@ -258,4 +263,4 @@ function create_csv(parameters_array){ csv_file += key + "," + "\"" + parameters_array[key]+ "\"\n"; } return csv_file; -} \ No newline at end of file +} diff --git a/src/post_update.html b/src/post_update.html new file mode 100644 index 0000000..bdb1f31 --- /dev/null +++ b/src/post_update.html @@ -0,0 +1,32 @@ + + + Parameter Editor + + + +
+

Parameters Editor has been updated.

+

Changelog

+ New in version 1.2 + +

Source code

+ This extension is Open Source, released under GPLv3. You can download sources from GitHub +
+
Flattr this + + + +
+ + +