Merge branch 'gh-pages' of github.com:breunigs/ingress-intel-total-conversion into gh-pages
This commit is contained in:
commit
931bab043a
@ -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();
|
||||
}
|
||||
}
|
||||
|
@ -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; }' +
|
||||
'</style>');
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user