From ce6e7561e5b0f1eefb6c05e63c56549a73972d33 Mon Sep 17 00:00:00 2001 From: leCradle Date: Tue, 12 Mar 2013 00:41:20 +0100 Subject: [PATCH 1/3] added copy text to JSInterface --- .../src/com/cradle/iitc_mobile/IITC_JSInterface.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/mobile/src/com/cradle/iitc_mobile/IITC_JSInterface.java b/mobile/src/com/cradle/iitc_mobile/IITC_JSInterface.java index 50e33229..6cf5b0a8 100644 --- a/mobile/src/com/cradle/iitc_mobile/IITC_JSInterface.java +++ b/mobile/src/com/cradle/iitc_mobile/IITC_JSInterface.java @@ -1,9 +1,12 @@ package com.cradle.iitc_mobile; +import android.content.ClipData; +import android.content.ClipboardManager; import android.content.Context; import android.content.Intent; import android.net.Uri; import android.webkit.JavascriptInterface; +import android.widget.Toast; // provide communication between IITC script and android app public class IITC_JSInterface { @@ -22,4 +25,13 @@ public class IITC_JSInterface { Uri.parse(s)); context.startActivity(intent); } + + // copy link to specific portal to android clipboard + @JavascriptInterface + public void copy(String s) { + ClipboardManager clipboard = (ClipboardManager) context.getSystemService(Context.CLIPBOARD_SERVICE); + ClipData clip = ClipData.newPlainText("Copied Text ", s); + clipboard.setPrimaryClip(clip); + Toast.makeText(context, "copied to clipboard", Toast.LENGTH_SHORT).show(); + } } From cd0cf5aebeff9878dfcc41284f6da689a6a20e3b Mon Sep 17 00:00:00 2001 From: vita10gy Date: Mon, 11 Mar 2013 23:58:29 -0500 Subject: [PATCH 2/3] Mu Bar Kicked onto 2 lines when ratio was 1/99 --- plugins/scoreboard.user.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/scoreboard.user.js b/plugins/scoreboard.user.js index c797c515..a4bcf516 100644 --- a/plugins/scoreboard.user.js +++ b/plugins/scoreboard.user.js @@ -1,7 +1,7 @@ // ==UserScript== // @id iitc-plugin-scoreboard@vita10gy // @name iitc: show a localized scoreboard. -// @version 0.1.2 +// @version 0.1.3 // @namespace https://github.com/breunigs/ingress-intel-total-conversion // @updateURL https://raw.github.com/breunigs/ingress-intel-total-conversion/gh-pages/plugins/scoreboard.user.js // @downloadURL https://raw.github.com/breunigs/ingress-intel-total-conversion/gh-pages/plugins/scoreboard.user.js @@ -304,8 +304,8 @@ var setup = function() { '#scoreboard .disclaimer { margin-top:10px; font-size:10px; }' + '.mu_score { margin-bottom: 10px; }' + '.mu_score span { overflow: hidden; padding-top:2px; padding-bottom: 2px; display: block; font-weight: bold; float: left; box-sizing: border-box; -moz-box-sizing:border-box; -webkit-box-sizing:border-box; }' + - '.mu_score span.res { background-color: #005684; text-align: right; padding-right:5px; }' + - '.mu_score span.enl { background-color: #017f01; padding-left: 5px; }' + + '.mu_score span.res { background-color: #005684; text-align: right; padding-right:4px; }' + + '.mu_score span.enl { background-color: #017f01; padding-left: 4px; }' + ''); } From 14db5fd6ab7ad3ba762689da18eccbd16f5e21bb Mon Sep 17 00:00:00 2001 From: Fragger Date: Tue, 12 Mar 2013 01:10:36 -0700 Subject: [PATCH 3/3] Fix MU count's blocking clicking on other things. --- style.css | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/style.css b/style.css index 872dcca5..f0bbd536 100644 --- a/style.css +++ b/style.css @@ -99,10 +99,11 @@ a:hover { /* field mu count */ .fieldmu { color: #FFCE00; - font-size:13px; + font-size: 13px; font-family: "coda",arial,helvetica,sans-serif; /*override leaflet-container */ text-align: center; text-shadow: 0 0 0.2em black, 0 0 0.2em black, 0 0 0.2em black; + pointer-events: none; }