chore: rm the old, in with the new
@ -1,17 +0,0 @@
|
||||
# EditorConfig helps developers define and maintain consistent coding styles between different editors and IDEs
|
||||
# editorconfig.org
|
||||
|
||||
root = true
|
||||
|
||||
[*]
|
||||
indent_style = space
|
||||
indent_size = 2
|
||||
|
||||
# We recommend you to keep these unchanged
|
||||
end_of_line = lf
|
||||
charset = utf-8
|
||||
trim_trailing_whitespace = true
|
||||
insert_final_newline = true
|
||||
|
||||
[*.md]
|
||||
trim_trailing_whitespace = false
|
||||
51
.gitignore
vendored
@ -1,52 +1,3 @@
|
||||
# from https://github.com/github/gitignore/blob/master/Node.gitignore
|
||||
lib-cov
|
||||
*.seed
|
||||
*.log
|
||||
*.csv
|
||||
*.dat
|
||||
*.out
|
||||
*.pid
|
||||
*.gz
|
||||
*.swp
|
||||
tags
|
||||
pids
|
||||
logs
|
||||
results
|
||||
build
|
||||
|
||||
node_modules
|
||||
package-lock.json
|
||||
|
||||
# extras
|
||||
*.swp
|
||||
*.swo
|
||||
*~
|
||||
.project
|
||||
peerdb.json
|
||||
|
||||
npm-debug.log
|
||||
.nodemonignore
|
||||
|
||||
.DS_Store
|
||||
public/lib/*
|
||||
!public/lib/zeroclipboard/ZeroClipboard.swf
|
||||
db/txs/*
|
||||
db/txs
|
||||
db/testnet/txs/*
|
||||
db/testnet/txs
|
||||
db/blocks/*
|
||||
db/blocks
|
||||
db/testnet/blocks/*
|
||||
db/testnet/blocks
|
||||
|
||||
public/js/angularjs-all.js
|
||||
public/js/main.js
|
||||
public/js/vendors.js
|
||||
|
||||
public/css/main.css
|
||||
|
||||
README.html
|
||||
po/*
|
||||
!po/*.po
|
||||
|
||||
mynode/
|
||||
*.log
|
||||
43
.jshintrc
@ -1,43 +0,0 @@
|
||||
{
|
||||
"node": true, // Enable globals available when code is running inside of the NodeJS runtime environment.
|
||||
"browser": true, // Standard browser globals e.g. `window`, `document`.
|
||||
"esnext": true, // Allow ES.next specific features such as `const` and `let`.
|
||||
"bitwise": false, // Prohibit bitwise operators (&, |, ^, etc.).
|
||||
"camelcase": false, // Permit only camelcase for `var` and `object indexes`.
|
||||
"curly": false, // Require {} for every new block or scope.
|
||||
"eqeqeq": true, // Require triple equals i.e. `===`.
|
||||
"immed": true, // Require immediate invocations to be wrapped in parens e.g. `( function(){}() );`
|
||||
"latedef": true, // Prohibit variable use before definition.
|
||||
"newcap": true, // Require capitalization of all constructor functions e.g. `new F()`.
|
||||
"noarg": true, // Prohibit use of `arguments.caller` and `arguments.callee`.
|
||||
"quotmark": "single", // Define quotes to string values.
|
||||
"regexp": true, // Prohibit `.` and `[^...]` in regular expressions.
|
||||
"undef": true, // Require all non-global variables be declared before they are used.
|
||||
"unused": true, // Warn unused variables.
|
||||
"strict": true, // Require `use strict` pragma in every file.
|
||||
"trailing": true, // Prohibit trailing whitespaces.
|
||||
"smarttabs": false, // Suppresses warnings about mixed tabs and spaces
|
||||
"globals": { // Globals variables.
|
||||
"angular": true
|
||||
},
|
||||
"predef": [ // Extra globals.
|
||||
"define",
|
||||
"require",
|
||||
"exports",
|
||||
"module",
|
||||
"describe",
|
||||
"before",
|
||||
"beforeEach",
|
||||
"after",
|
||||
"afterEach",
|
||||
"it",
|
||||
"inject",
|
||||
"$",
|
||||
"io",
|
||||
"app",
|
||||
"moment"
|
||||
],
|
||||
"indent": false, // Specify indentation spacing
|
||||
"devel": true, // Allow development statements e.g. `console.log();`.
|
||||
"noempty": true // Prohibit use of empty blocks.
|
||||
}
|
||||
39
.npmignore
@ -1,39 +0,0 @@
|
||||
lib-cov
|
||||
*.seed
|
||||
*.log
|
||||
*.csv
|
||||
*.dat
|
||||
*.out
|
||||
*.pid
|
||||
*.gz
|
||||
*.swp
|
||||
tags
|
||||
pids
|
||||
logs
|
||||
results
|
||||
build
|
||||
|
||||
node_modules
|
||||
|
||||
# extras
|
||||
*.swp
|
||||
*.swo
|
||||
*~
|
||||
.project
|
||||
peerdb.json
|
||||
|
||||
npm-debug.log
|
||||
.nodemonignore
|
||||
|
||||
.DS_Store
|
||||
db/txs/*
|
||||
db/txs
|
||||
db/testnet/txs/*
|
||||
db/testnet/txs
|
||||
db/blocks/*
|
||||
db/blocks
|
||||
db/testnet/blocks/*
|
||||
db/testnet/blocks
|
||||
|
||||
README.html
|
||||
k*
|
||||
24
.travis.yml
@ -1,24 +1,6 @@
|
||||
dist: trusty
|
||||
sudo: false
|
||||
language: node_js
|
||||
node_js:
|
||||
- '6'
|
||||
|
||||
env: # a separate build will start for each env
|
||||
- TEST_DIR=app
|
||||
|
||||
addons:
|
||||
chrome: stable
|
||||
|
||||
before_install:
|
||||
- cd $TEST_DIR # switch to the directory we're testing
|
||||
# npm install happens here
|
||||
|
||||
before_script:
|
||||
- export DISPLAY=:99.0
|
||||
- sh -e /etc/init.d/xvfb start
|
||||
|
||||
script:
|
||||
- npm run test-ci
|
||||
|
||||
- 8
|
||||
after_success:
|
||||
- ./node_modules/.bin/codecov # Send coverage
|
||||
- yarn send-coverage
|
||||
|
||||
148
Gruntfile.js
@ -1,148 +0,0 @@
|
||||
'use strict';
|
||||
|
||||
// var config = require('insight-config.json');
|
||||
|
||||
module.exports = function(grunt) {
|
||||
|
||||
//Load NPM tasks
|
||||
grunt.loadNpmTasks('grunt-contrib-uglify');
|
||||
grunt.loadNpmTasks('grunt-contrib-concat');
|
||||
grunt.loadNpmTasks('grunt-contrib-watch');
|
||||
grunt.loadNpmTasks('grunt-css');
|
||||
grunt.loadNpmTasks('grunt-markdown');
|
||||
grunt.loadNpmTasks('grunt-macreload');
|
||||
grunt.loadNpmTasks('grunt-angular-gettext');
|
||||
grunt.loadNpmTasks('grunt-replace');
|
||||
|
||||
// Project Configuration
|
||||
grunt.initConfig({
|
||||
pkg: grunt.file.readJSON('package.json'),
|
||||
replace: {
|
||||
dist: {
|
||||
options: {
|
||||
patterns: [
|
||||
{
|
||||
match: 'INSIGHT_API_PREFIX',
|
||||
replacement: '<%= pkg.insightConfig.apiPrefix %>'
|
||||
}
|
||||
],
|
||||
usePrefix: false
|
||||
},
|
||||
files: [
|
||||
{src: ['public/src/templates/api.js'], dest: 'public/src/js/services/api.js'}
|
||||
]
|
||||
}
|
||||
},
|
||||
concat: {
|
||||
options: {
|
||||
process: function(src, filepath) {
|
||||
if (filepath.substr(filepath.length - 2) === 'js') {
|
||||
return '// Source: ' + filepath + '\n' +
|
||||
src.replace(/(^|\n)[ \t]*('use strict'|"use strict");?\s*/g, '$1');
|
||||
} else {
|
||||
return src;
|
||||
}
|
||||
}
|
||||
},
|
||||
vendors: {
|
||||
src: ['public/src/js/ios-imagefile-megapixel/megapix-image.js', 'public/lib/qrcode-generator/js/qrcode.js', 'public/src/js/jsqrcode/grid.js', 'public/src/js/jsqrcode/version.js', 'public/src/js/jsqrcode/detector.js', 'public/src/js/jsqrcode/formatinf.js', 'public/src/js/jsqrcode/errorlevel.js', 'public/src/js/jsqrcode/bitmat.js', 'public/src/js/jsqrcode/datablock.js', 'public/src/js/jsqrcode/bmparser.js', 'public/src/js/jsqrcode/datamask.js', 'public/src/js/jsqrcode/rsdecoder.js', 'public/src/js/jsqrcode/gf256poly.js', 'public/src/js/jsqrcode/gf256.js', 'public/src/js/jsqrcode/decoder.js', 'public/src/js/jsqrcode/qrcode.js', 'public/src/js/jsqrcode/findpat.js', 'public/src/js/jsqrcode/alignpat.js', 'public/src/js/jsqrcode/databr.js', 'public/lib/momentjs/min/moment.min.js', 'public/lib/moment/lang/es.js', 'public/lib/zeroclipboard/ZeroClipboard.min.js'],
|
||||
dest: 'public/js/vendors.js'
|
||||
},
|
||||
angular: {
|
||||
src: ['public/lib/angular/angular.min.js', 'public/lib/angular-resource/angular-resource.min.js', 'public/lib/angular-route/angular-route.min.js', 'public/lib/angular-qrcode/qrcode.js', 'public/lib/angular-animate/angular-animate.min.js', 'public/lib/angular-bootstrap/ui-bootstrap.js', 'public/lib/angular-bootstrap/ui-bootstrap-tpls.js', 'public/lib/angular-ui-utils/ui-utils.min.js', 'public/lib/ngprogress/build/ngProgress.min.js', 'public/lib/angular-gettext/dist/angular-gettext.min.js', 'public/lib/angular-moment/angular-moment.min.js'],
|
||||
dest: 'public/js/angularjs-all.js'
|
||||
},
|
||||
main: {
|
||||
src: ['public/src/js/app.js', 'public/src/js/controllers/*.js', 'public/src/js/services/*.js', 'public/src/js/directives.js', 'public/src/js/filters.js', 'public/src/js/config.js', 'public/src/js/init.js', 'public/src/js/translations.js'],
|
||||
dest: 'public/js/main.js'
|
||||
},
|
||||
css: {
|
||||
src: ['public/lib/bootstrap/dist/css/bootstrap.min.css', 'public/src/css/**/*.css'],
|
||||
dest: 'public/css/main.css'
|
||||
}
|
||||
},
|
||||
uglify: {
|
||||
options: {
|
||||
banner: '/*! <%= pkg.name %> <%= pkg.version %> */\n',
|
||||
mangle: false
|
||||
},
|
||||
vendors: {
|
||||
src: 'public/js/vendors.js',
|
||||
dest: 'public/js/vendors.min.js'
|
||||
},
|
||||
angular: {
|
||||
src: 'public/js/angularjs-all.js',
|
||||
dest: 'public/js/angularjs-all.min.js'
|
||||
},
|
||||
main: {
|
||||
src: 'public/js/main.js',
|
||||
dest: 'public/js/main.min.js'
|
||||
}
|
||||
},
|
||||
cssmin: {
|
||||
css: {
|
||||
src: 'public/css/main.css',
|
||||
dest: 'public/css/main.min.css'
|
||||
}
|
||||
},
|
||||
markdown: {
|
||||
all: {
|
||||
files: [
|
||||
{
|
||||
expand: true,
|
||||
src: 'README.md',
|
||||
dest: '.',
|
||||
ext: '.html'
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
macreload: {
|
||||
chrome: {
|
||||
browser: 'chrome',
|
||||
editor: 'macvim'
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
main: {
|
||||
files: ['public/src/js/**/*.js'],
|
||||
tasks: ['concat:main', 'uglify:main'],
|
||||
},
|
||||
css: {
|
||||
files: ['public/src/css/**/*.css'],
|
||||
tasks: ['concat:css', 'cssmin'],
|
||||
},
|
||||
},
|
||||
nggettext_extract: {
|
||||
pot: {
|
||||
files: {
|
||||
'po/template.pot': ['public/views/*.html', 'public/views/**/*.html']
|
||||
}
|
||||
},
|
||||
},
|
||||
nggettext_compile: {
|
||||
all: {
|
||||
options: {
|
||||
module: 'insight'
|
||||
},
|
||||
files: {
|
||||
'public/src/js/translations.js': ['po/*.po']
|
||||
}
|
||||
},
|
||||
}
|
||||
});
|
||||
|
||||
//Making grunt default to force in order not to break the project.
|
||||
grunt.option('force', true);
|
||||
|
||||
//Default task(s).
|
||||
grunt.registerTask('default', ['replace', 'watch']);
|
||||
|
||||
//Update .pot file
|
||||
grunt.registerTask('translate', ['nggettext_extract']);
|
||||
|
||||
//Compile task (concat + minify)
|
||||
grunt.registerTask('compile', ['replace', 'nggettext_compile', 'concat', 'uglify', 'cssmin']);
|
||||
|
||||
|
||||
};
|
||||
121
README.md
@ -1,118 +1,17 @@
|
||||
# Insight UI
|
||||
# Insight
|
||||
|
||||
A Bitcoin blockchain explorer web application service for [Bitcore Node](https://github.com/bitpay/bitcore-node) using the [Insight API](https://github.com/bitpay/insight-api).
|
||||
**A bitcoin blockchain explorer and API.**
|
||||
|
||||
## Requirements
|
||||
|
||||
Insight requires [Node.js](https://nodejs.org) and [MongoDB](https://www.mongodb.com/). Consider using [n](https://github.com/tj/n) and [m](https://github.com/aheckmann/m) to install the latest versions.
|
||||
|
||||
## Quick Start
|
||||
|
||||
Please see the guide at [https://bitcore.io/guides/full-node](https://bitcore.io/guides/full-node) for information about getting a block explorer running. This is only the front-end component of the block explorer, and is packaged together with all of the necessary components in [Bitcore](https://github.com/bitpay/bitcore).
|
||||
|
||||
## Getting Started
|
||||
|
||||
To manually install all of the necessary components, you can run these commands:
|
||||
To get started, clone this repository, then – with `mongod` running – install and run insight:
|
||||
|
||||
```bash
|
||||
npm install -g bitcore-node
|
||||
bitcore-node create mynode
|
||||
cd mynode
|
||||
bitcore-node install insight-api
|
||||
bitcore-node install insight-ui
|
||||
bitcore-node start
|
||||
git clone -b next https://github.com/bitpay/insight.git && cd insight
|
||||
npm install
|
||||
npm start
|
||||
```
|
||||
|
||||
Open a web browser to `http://localhost:3001/insight/`
|
||||
|
||||
## Development
|
||||
|
||||
To build Insight UI locally:
|
||||
|
||||
```
|
||||
$ npm run build
|
||||
```
|
||||
|
||||
A watch task is also available:
|
||||
|
||||
```
|
||||
$ npm run watch
|
||||
```
|
||||
|
||||
## Changing routePrefix and apiPrefix
|
||||
|
||||
By default, the `insightConfig` in `package.json` is:
|
||||
|
||||
```json
|
||||
"insightConfig": {
|
||||
"apiPrefix": "insight-api",
|
||||
"routePrefix": "insight"
|
||||
}
|
||||
```
|
||||
|
||||
To change these routes, first make your changes to `package.json`, for example:
|
||||
|
||||
```json
|
||||
"insightConfig": {
|
||||
"apiPrefix": "api",
|
||||
"routePrefix": ""
|
||||
}
|
||||
```
|
||||
|
||||
Then rebuild the `insight-ui` service:
|
||||
|
||||
```
|
||||
$ npm run build
|
||||
```
|
||||
|
||||
## Multilanguage support
|
||||
|
||||
Insight UI uses [angular-gettext](http://angular-gettext.rocketeer.be) for multilanguage support.
|
||||
|
||||
To enable a text to be translated, add the ***translate*** directive to html tags. See more details [here](http://angular-gettext.rocketeer.be/dev-guide/annotate/). Then, run:
|
||||
|
||||
```
|
||||
grunt compile
|
||||
```
|
||||
|
||||
This action will create a template.pot file in ***po/*** folder. You can open it with some PO editor ([Poedit](http://poedit.net)). Read this [guide](http://angular-gettext.rocketeer.be/dev-guide/translate/) to learn how to edit/update/import PO files from a generated POT file. PO file will be generated inside po/ folder.
|
||||
|
||||
If you make new changes, simply run **grunt compile** again to generate a new .pot template and the angular javascript ***js/translations.js***. Then (if use Poedit), open .po file and choose ***update from POT File*** from **Catalog** menu.
|
||||
|
||||
Finally changes your default language from ***public/src/js/config***
|
||||
|
||||
```
|
||||
gettextCatalog.currentLanguage = 'es';
|
||||
```
|
||||
|
||||
This line will take a look at any *.po files inside ***po/*** folder, e.g.
|
||||
**po/es.po**, **po/nl.po**. After any change do not forget to run ***grunt
|
||||
compile***.
|
||||
|
||||
|
||||
## Note
|
||||
|
||||
For more details about the [Insight API](https://github.com/bitpay/insight-api) configuration and end-points, go to [Insight API GitHub repository](https://github.com/bitpay/insight-api).
|
||||
|
||||
## Contribute
|
||||
|
||||
Contributions and suggestions are welcomed at the [Insight UI GitHub repository](https://github.com/bitpay/insight-ui).
|
||||
|
||||
|
||||
## License
|
||||
(The MIT License)
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining
|
||||
a copy of this software and associated documentation files (the
|
||||
'Software'), to deal in the Software without restriction, including
|
||||
without limitation the rights to use, copy, modify, merge, publish,
|
||||
distribute, sublicense, and/or sell copies of the Software, and to
|
||||
permit persons to whom the Software is furnished to do so, subject to
|
||||
the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be
|
||||
included in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
|
||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
||||
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
||||
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
||||
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
||||
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
|
||||
@ -1,6 +1,5 @@
|
||||
{
|
||||
"name": "insight-ui",
|
||||
"version": "0.5.0",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"clean": "ionic-app-scripts clean",
|
||||
|
||||
@ -1,48 +0,0 @@
|
||||
'use strict';
|
||||
|
||||
var BaseService = require('./service');
|
||||
var inherits = require('util').inherits;
|
||||
var fs = require('fs');
|
||||
var pkg = require('../package');
|
||||
|
||||
var InsightUI = function(options) {
|
||||
BaseService.call(this, options);
|
||||
// we don't use the options object for routePrefix and apiPrefix, since the
|
||||
// client must be rebuilt with the proper options. A future version of
|
||||
// Bitcore should allow for a service "build" step to make this better.
|
||||
this.apiPrefix = pkg.insightConfig.apiPrefix;
|
||||
this.routePrefix = pkg.insightConfig.routePrefix;
|
||||
};
|
||||
|
||||
InsightUI.dependencies = ['insight-api'];
|
||||
|
||||
inherits(InsightUI, BaseService);
|
||||
|
||||
InsightUI.prototype.start = function(callback) {
|
||||
this.indexFile = this.filterIndexHTML(fs.readFileSync(__dirname + '/../public/index-template.html', {encoding: 'utf8'}));
|
||||
setImmediate(callback);
|
||||
};
|
||||
|
||||
InsightUI.prototype.getRoutePrefix = function() {
|
||||
return this.routePrefix;
|
||||
};
|
||||
|
||||
InsightUI.prototype.setupRoutes = function(app, express) {
|
||||
var self = this;
|
||||
app.use(express.static(__dirname + '/../public'));
|
||||
// if not in found, fall back to indexFile (404 is handled client-side)
|
||||
app.use(function(req, res, next) {
|
||||
res.setHeader('Content-Type', 'text/html');
|
||||
res.send(self.indexFile);
|
||||
});
|
||||
};
|
||||
|
||||
InsightUI.prototype.filterIndexHTML = function(data) {
|
||||
var transformed = data;
|
||||
if (this.routePrefix !== '') {
|
||||
transformed = transformed.replace('<base href="/"', '<base href="/' + this.routePrefix + '/"');
|
||||
}
|
||||
return transformed;
|
||||
};
|
||||
|
||||
module.exports = InsightUI;
|
||||
@ -1,91 +0,0 @@
|
||||
'use strict';
|
||||
|
||||
var util = require('util');
|
||||
var EventEmitter = require('events').EventEmitter;
|
||||
|
||||
var Service = function(options) {
|
||||
EventEmitter.call(this);
|
||||
|
||||
this.node = options.node;
|
||||
this.name = options.name;
|
||||
};
|
||||
|
||||
util.inherits(Service, EventEmitter);
|
||||
|
||||
/**
|
||||
* Describes the dependencies that should be loaded before this service.
|
||||
*/
|
||||
Service.dependencies = [];
|
||||
|
||||
/**
|
||||
* blockHandler
|
||||
* @param {Block} block - the block being added or removed from the chain
|
||||
* @param {Boolean} add - whether the block is being added or removed
|
||||
* @param {Function} callback - call with the leveldb database operations to perform
|
||||
*/
|
||||
Service.prototype.blockHandler = function(block, add, callback) {
|
||||
// implement in the child class
|
||||
setImmediate(function() {
|
||||
callback(null, []);
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* the bus events available for subscription
|
||||
* @return {Array} an array of event info
|
||||
*/
|
||||
Service.prototype.getPublishEvents = function() {
|
||||
// Example:
|
||||
// return [
|
||||
// ['eventname', this, this.subscribeEvent, this.unsubscribeEvent],
|
||||
// ];
|
||||
return [];
|
||||
};
|
||||
|
||||
/**
|
||||
* the API methods to expose
|
||||
* @return {Array} return array of methods
|
||||
*/
|
||||
Service.prototype.getAPIMethods = function() {
|
||||
// Example:
|
||||
// return [
|
||||
// ['getData', this, this.getData, 1]
|
||||
// ];
|
||||
|
||||
return [];
|
||||
};
|
||||
|
||||
// Example:
|
||||
// Service.prototype.getData = function(arg1, callback) {
|
||||
//
|
||||
// };
|
||||
|
||||
/**
|
||||
* Function which is called when module is first initialized
|
||||
*/
|
||||
Service.prototype.start = function(done) {
|
||||
setImmediate(done);
|
||||
};
|
||||
|
||||
/**
|
||||
* Function to be called when bitcore-node is stopped
|
||||
*/
|
||||
Service.prototype.stop = function(done) {
|
||||
setImmediate(done);
|
||||
};
|
||||
|
||||
/**
|
||||
* Setup express routes
|
||||
* @param {Express} app
|
||||
*/
|
||||
Service.prototype.setupRoutes = function(app) {
|
||||
// Setup express routes here
|
||||
};
|
||||
|
||||
Service.prototype.getRoutePrefix = function() {
|
||||
return this.name;
|
||||
};
|
||||
|
||||
|
||||
|
||||
module.exports = Service;
|
||||
19
bower.json
@ -1,19 +0,0 @@
|
||||
{
|
||||
"name": "Insight",
|
||||
"version": "0.0.1",
|
||||
"dependencies": {
|
||||
"angular": "~1.2.13",
|
||||
"angular-resource": "~1.2.13",
|
||||
"angular-route": "~1.2.13",
|
||||
"bootstrap": "~3.1.1",
|
||||
"angular-bootstrap": "~0.10.0",
|
||||
"angular-qrcode": "~3.1.0",
|
||||
"angular-animate": "~1.2.13",
|
||||
"momentjs": "~2.5.1",
|
||||
"zeroclipboard": "~1.3.2",
|
||||
"ngprogress": "~1.0.4",
|
||||
"angular-ui-utils": "~0.1.1",
|
||||
"angular-gettext": "~1.1.0",
|
||||
"angular-moment": "~0.8.0"
|
||||
}
|
||||
}
|
||||
64
package.json
@ -1,65 +1,31 @@
|
||||
{
|
||||
"name": "insight-ui",
|
||||
"description": "An open-source frontend for the Insight API. The Insight API provides you with a convenient, powerful and simple way to query and broadcast data on the bitcoin network and build your own services with it.",
|
||||
"version": "0.4.0",
|
||||
"repository": "git://github.com/bitpay/insight-ui.git",
|
||||
"contributors": [
|
||||
{
|
||||
"name": "Matias Alejo Garcia",
|
||||
"email": "ematiu@gmail.com"
|
||||
},
|
||||
{
|
||||
"name": "Manuel Araoz",
|
||||
"email": "manuelaraoz@gmail.com"
|
||||
},
|
||||
{
|
||||
"name": "Mario Colque",
|
||||
"email": "colquemario@gmail.com"
|
||||
},
|
||||
{
|
||||
"name": "Gustavo Cortez",
|
||||
"email": "cmgustavo83@gmail.com"
|
||||
},
|
||||
{
|
||||
"name": "Juan Ignacio Sosa Lopez",
|
||||
"email": "bechilandia@gmail.com"
|
||||
}
|
||||
],
|
||||
"name": "insight",
|
||||
"description": "A bitcoin block explorer and API.",
|
||||
"version": "1.0.0",
|
||||
"repository": "git://github.com/bitpay/insight.git",
|
||||
"bugs": {
|
||||
"url": "https://github.com/bitpay/insight-ui/issues"
|
||||
"url": "https://github.com/bitpay/insight/issues"
|
||||
},
|
||||
"homepage": "https://github.com/bitpay/insight-ui",
|
||||
"homepage": "https://github.com/bitpay/insight",
|
||||
"license": "MIT",
|
||||
"keywords": [
|
||||
"insight",
|
||||
"blockchain",
|
||||
"blockexplorer",
|
||||
"block explorer",
|
||||
"bitcoin",
|
||||
"bitcore",
|
||||
"front-end"
|
||||
"API"
|
||||
],
|
||||
"bitcoreNode": "bitcore-node",
|
||||
"insightConfig": {
|
||||
"apiPrefix": "insight-api",
|
||||
"routePrefix": "insight"
|
||||
},
|
||||
"scripts": {
|
||||
"build": "bower install && grunt compile",
|
||||
"watch": "grunt"
|
||||
"postinstall": "run-p install-server install-app",
|
||||
"install-server": "cd server && npm install",
|
||||
"install-app": "cd app && npm install",
|
||||
"start": "run-p start-server watch-app",
|
||||
"start-server": "cd server && npm start",
|
||||
"watch-app": "cd app && npm start"
|
||||
},
|
||||
"dependencies": {},
|
||||
"devDependencies": {
|
||||
"bower": "~1.8.0",
|
||||
"grunt": "~0.4.2",
|
||||
"grunt-angular-gettext": "^0.2.15",
|
||||
"grunt-cli": "~0.1.11",
|
||||
"grunt-contrib-concat": "~0.3.0",
|
||||
"grunt-contrib-jshint": "~0.8.0",
|
||||
"grunt-contrib-uglify": "~0.3.2",
|
||||
"grunt-contrib-watch": "*",
|
||||
"grunt-css": "~0.5.4",
|
||||
"grunt-macreload": "*",
|
||||
"grunt-markdown": "~0.5.0",
|
||||
"grunt-replace": "^1.0.1"
|
||||
"npm-run-all": "^4.0.2"
|
||||
}
|
||||
}
|
||||
|
||||
474
po/de_DE.po
@ -1,474 +0,0 @@
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Insight\n"
|
||||
"POT-Creation-Date: \n"
|
||||
"PO-Revision-Date: \n"
|
||||
"Last-Translator: Sascha Dückers <s.dueckers@gmail.com>\n"
|
||||
"Language-Team: \n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"X-Generator: Poedit 1.8.1\n"
|
||||
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
||||
"Language: de_DE\n"
|
||||
|
||||
#: public/views/transaction/tx.html
|
||||
msgid "(Input unconfirmed)"
|
||||
msgstr "(Eingabe unbestätigt)"
|
||||
|
||||
#: public/views/404.html
|
||||
msgid "404 Page not found :("
|
||||
msgstr "404 Seite nicht gefunden :("
|
||||
|
||||
#: public/views/index.html
|
||||
msgid ""
|
||||
"<strong>insight</strong> is an <a href=\"http://live.insight.is/\" target="
|
||||
"\"_blank\">open-source Bitcoin blockchain explorer</a> with complete REST "
|
||||
"and websocket APIs that can be used for writing web wallets and other apps "
|
||||
"that need more advanced blockchain queries than provided by bitcoind RPC. "
|
||||
"Check out the <a href=\"https://github.com/bitpay/insight-ui\" target=\"_blank"
|
||||
"\">source code</a>."
|
||||
msgstr ""
|
||||
"<strong>insight</strong> ist ein <a href=\"http://live.insight.is/\" target="
|
||||
"\"_blank\">Open Source Bitcoin Blockchain Explorer</a> mit vollständigen "
|
||||
"REST und Websocket APIs um eigene Wallets oder Applikationen zu "
|
||||
"implementieren. Hierbei werden fortschrittlichere Abfragen der Blockchain "
|
||||
"ermöglicht, bei denen die RPC des Bitcoind nicht mehr ausreichen. Der "
|
||||
"aktuelle <a href=\"https://github.com/bitpay/insight-ui\" target=\"_blank"
|
||||
"\">Quellcode</a> ist auf Github zu finden."
|
||||
|
||||
#: public/views/index.html
|
||||
msgid ""
|
||||
"<strong>insight</strong> is still in development, so be sure to report any "
|
||||
"bugs and provide feedback for improvement at our <a href=\"https://github."
|
||||
"com/bitpay/insight/issues\" target=\"_blank\">github issue tracker</a>."
|
||||
msgstr ""
|
||||
"<strong>insight</strong> befindet sich aktuell noch in der Entwicklung. "
|
||||
"Bitte sende alle gefundenen Fehler (Bugs) und Feedback zur weiteren "
|
||||
"Verbesserung an unseren <a href=\"https://github.com/bitpay/insight-ui/issues"
|
||||
"\" target=\"_blank\">Github Issue Tracker</a>."
|
||||
|
||||
#: public/views/index.html
|
||||
msgid "About"
|
||||
msgstr "Über insight"
|
||||
|
||||
#: public/views/address.html
|
||||
msgid "Address"
|
||||
msgstr "Adresse"
|
||||
|
||||
#: public/views/index.html
|
||||
msgid "Age"
|
||||
msgstr "Alter"
|
||||
|
||||
#: public/views/status.html
|
||||
msgid "Application Status"
|
||||
msgstr "Programmstatus"
|
||||
|
||||
#: public/views/status.html
|
||||
msgid "Best Block"
|
||||
msgstr "Bester Block"
|
||||
|
||||
#: public/views/status.html
|
||||
msgid "Bitcoin node information"
|
||||
msgstr "Bitcoin-Node Info"
|
||||
|
||||
#: public/views/block.html
|
||||
msgid "Block"
|
||||
msgstr "Block"
|
||||
|
||||
#: public/views/block.html
|
||||
msgid "Block Reward"
|
||||
msgstr "Belohnung"
|
||||
|
||||
#: public/views/block_list.html public/views/dummy-translations.html
|
||||
#: public/views/status.html
|
||||
msgid "Blocks"
|
||||
msgstr "Blöcke"
|
||||
|
||||
#: public/views/status.html
|
||||
msgid "Bytes Serialized"
|
||||
msgstr "Serialisierte Bytes"
|
||||
|
||||
#: public/views/includes/connection.html
|
||||
msgid ""
|
||||
"Can't connect to bitcoind to get live updates from the p2p network. (Tried "
|
||||
"connecting to bitcoind at {{host}}:{{port}} and failed.)"
|
||||
msgstr ""
|
||||
"Es ist nicht möglich mit Bitcoind zu verbinden um live Aktualisierungen vom "
|
||||
"P2P Netzwerk zu erhalten. (Verbindungsversuch zu bitcoind an {{host}}:"
|
||||
"{{port}} ist fehlgeschlagen.)"
|
||||
|
||||
#: public/views/includes/connection.html
|
||||
msgid "Can't connect to insight server. Attempting to reconnect..."
|
||||
msgstr ""
|
||||
"Keine Verbindung zum insight-Server möglich. Es wird versucht die "
|
||||
"Verbindung neu aufzubauen..."
|
||||
|
||||
#: public/views/includes/connection.html
|
||||
msgid "Can't connect to internet. Please, check your connection."
|
||||
msgstr "Keine Verbindung zum Internet möglich, bitte Zugangsdaten prüfen."
|
||||
|
||||
#: public/views/status.html
|
||||
msgid "Complete"
|
||||
msgstr "Vollständig"
|
||||
|
||||
#: public/views/transaction.html public/views/transaction/tx.html
|
||||
msgid "Confirmations"
|
||||
msgstr "Bestätigungen"
|
||||
|
||||
#: public/views/includes/header.html
|
||||
msgid "Conn"
|
||||
msgstr "Verbindungen"
|
||||
|
||||
#: public/views/status.html
|
||||
msgid "Connections to other nodes"
|
||||
msgstr "Verbindungen zu Nodes"
|
||||
|
||||
#: public/views/status.html
|
||||
msgid "Current Blockchain Tip (insight)"
|
||||
msgstr "Aktueller Blockchain Tip (insight)"
|
||||
|
||||
#: public/views/status.html
|
||||
msgid "Current Sync Status"
|
||||
msgstr "Aktueller Status"
|
||||
|
||||
#: public/views/transaction.html
|
||||
msgid "Details"
|
||||
msgstr "Details"
|
||||
|
||||
#: public/views/block.html
|
||||
msgid "Difficulty"
|
||||
msgstr "Schwierigkeit"
|
||||
|
||||
#: public/views/transaction/tx.html
|
||||
msgid "Double spent attempt detected. From tx:"
|
||||
msgstr "Es wurde ein \"double Spend\" Versuch erkannt.Von tx:"
|
||||
|
||||
#: public/views/includes/connection.html
|
||||
msgid "Error!"
|
||||
msgstr "Fehler!"
|
||||
|
||||
#: public/views/transaction/tx.html
|
||||
msgid "Fee"
|
||||
msgstr "Gebühr"
|
||||
|
||||
#: public/views/address.html
|
||||
msgid "Final Balance"
|
||||
msgstr "Schlussbilanz"
|
||||
|
||||
#: public/views/status.html
|
||||
msgid "Finish Date"
|
||||
msgstr "Fertigstellung"
|
||||
|
||||
#: public/views/404.html
|
||||
msgid "Go to home"
|
||||
msgstr "Zur Startseite"
|
||||
|
||||
#: public/views/status.html
|
||||
msgid "Hash Serialized"
|
||||
msgstr "Hash Serialisiert"
|
||||
|
||||
#: public/views/block.html public/views/block_list.html
|
||||
#: public/views/index.html public/views/status.html
|
||||
#: public/views/includes/header.html
|
||||
msgid "Height"
|
||||
msgstr "Höhe"
|
||||
|
||||
#: public/views/transaction.html public/views/transaction/tx.html
|
||||
msgid "Included in Block"
|
||||
msgstr "Eingefügt in Block"
|
||||
|
||||
#: public/views/transaction/tx.html
|
||||
msgid "Incoherence in levelDB detected:"
|
||||
msgstr "Es wurde eine Zusammenhangslosigkeit in der LevelDB festgestellt:"
|
||||
|
||||
#: public/views/status.html
|
||||
msgid "Info Errors"
|
||||
msgstr "Fehlerbeschreibung"
|
||||
|
||||
#: public/views/status.html
|
||||
msgid "Initial Block Chain Height"
|
||||
msgstr "Ursprüngliche Blockchain Höhe"
|
||||
|
||||
#: public/views/transaction.html
|
||||
msgid "Input"
|
||||
msgstr "Eingänge"
|
||||
|
||||
#: public/views/status.html
|
||||
msgid "Last Block"
|
||||
msgstr "Letzter Block"
|
||||
|
||||
#: public/views/status.html
|
||||
msgid "Last Block Hash (Bitcoind)"
|
||||
msgstr "Letzter Hash (Bitcoind)"
|
||||
|
||||
#: public/views/index.html
|
||||
msgid "Latest Blocks"
|
||||
msgstr "Letzte Blöcke"
|
||||
|
||||
#: public/views/index.html
|
||||
msgid "Latest Transactions"
|
||||
msgstr "Letzte Transaktionen"
|
||||
|
||||
#: public/views/address.html
|
||||
msgid "Loading Address Information"
|
||||
msgstr "Lade Adressinformationen"
|
||||
|
||||
#: public/views/block.html
|
||||
msgid "Loading Block Information"
|
||||
msgstr "Lade Blockinformation"
|
||||
|
||||
#: public/views/block_list.html
|
||||
msgid "Loading Selected Date..."
|
||||
msgstr "Lade gewähltes Datum..."
|
||||
|
||||
#: public/views/transaction.html
|
||||
msgid "Loading Transaction Details"
|
||||
msgstr "Lade Transaktionsdetails"
|
||||
|
||||
#: public/views/transaction/list.html
|
||||
msgid "Loading Transactions..."
|
||||
msgstr "Lade Transaktionen..."
|
||||
|
||||
#: public/views/includes/infoStatus.html
|
||||
msgid "Loading..."
|
||||
msgstr "Lade..."
|
||||
|
||||
#: public/views/transaction.html
|
||||
msgid "Mined Time"
|
||||
msgstr "Block gefunden (Mining)"
|
||||
|
||||
#: public/views/block.html public/views/block_list.html
|
||||
#: public/views/index.html
|
||||
msgid "Mined by"
|
||||
msgstr "Gefunden von"
|
||||
|
||||
#: public/views/status.html
|
||||
msgid "Mining Difficulty"
|
||||
msgstr "Schwierigkeitgrad"
|
||||
|
||||
#: public/views/block.html
|
||||
msgid "Next Block"
|
||||
msgstr "Nächster Block"
|
||||
|
||||
#: public/views/transaction/tx.html
|
||||
msgid "No Inputs (Newly Generated Coins)"
|
||||
msgstr "Keine Eingänge (Neu generierte Coins)"
|
||||
|
||||
#: public/views/block_list.html
|
||||
msgid "No blocks yet."
|
||||
msgstr "Keine Blöcke bisher."
|
||||
|
||||
#: public/views/includes/header.html public/views/includes/search.html
|
||||
msgid "No matching records found!"
|
||||
msgstr "Keine passenden Einträge gefunden!"
|
||||
|
||||
#: public/views/address.html
|
||||
msgid "No. Transactions"
|
||||
msgstr "Anzahl Transaktionen"
|
||||
|
||||
#: public/views/block.html
|
||||
msgid "Number Of Transactions"
|
||||
msgstr "Anzahl der Transaktionen"
|
||||
|
||||
#: public/views/transaction.html
|
||||
msgid "Output"
|
||||
msgstr "Ausgänge"
|
||||
|
||||
#: public/views/index.html
|
||||
msgid "Powered by"
|
||||
msgstr "Powered by"
|
||||
|
||||
#: public/views/block.html
|
||||
msgid "Previous Block"
|
||||
msgstr "Letzter Block"
|
||||
|
||||
#: public/views/status.html
|
||||
msgid "Protocol version"
|
||||
msgstr "Protokollversion"
|
||||
|
||||
#: public/views/status.html
|
||||
msgid "Proxy setting"
|
||||
msgstr "Proxyeinstellung"
|
||||
|
||||
#: public/views/transaction.html
|
||||
msgid "Received Time"
|
||||
msgstr "Eingangszeitpunkt"
|
||||
|
||||
#: public/views/redirect.html
|
||||
msgid "Redirecting..."
|
||||
msgstr "Umleitung..."
|
||||
|
||||
#: public/views/includes/header.html
|
||||
msgid "Search for block, transaction or address"
|
||||
msgstr "Suche Block, Transaktion oder Adresse"
|
||||
|
||||
#: public/views/index.html
|
||||
msgid "See all blocks"
|
||||
msgstr "Alle Blöcke anzeigen"
|
||||
|
||||
#: public/views/status.html
|
||||
msgid "Show Transaction Output data"
|
||||
msgstr "Zeige Abgänge"
|
||||
|
||||
#: public/views/transaction/tx.html
|
||||
msgid "Show all"
|
||||
msgstr "Zeige Alles"
|
||||
|
||||
#: public/views/transaction/tx.html
|
||||
msgid "Show input"
|
||||
msgstr "Zeige Eingänge"
|
||||
|
||||
#: public/views/transaction/tx.html
|
||||
msgid "Show less"
|
||||
msgstr "Weniger anzeigen"
|
||||
|
||||
#: public/views/transaction/tx.html
|
||||
msgid "Show more"
|
||||
msgstr "Mehr anzeigen"
|
||||
|
||||
#: public/views/block_list.html public/views/index.html
|
||||
#: public/views/transaction.html
|
||||
msgid "Size"
|
||||
msgstr "Größe"
|
||||
|
||||
#: public/views/block.html
|
||||
msgid "Size (bytes)"
|
||||
msgstr "Größe (bytes)"
|
||||
|
||||
#: public/views/status.html
|
||||
msgid "Skipped Blocks (previously synced)"
|
||||
msgstr "Verworfene Blöcke (bereits syncronisiert)"
|
||||
|
||||
#: public/views/status.html
|
||||
msgid "Start Date"
|
||||
msgstr "Startdatum"
|
||||
|
||||
#: public/views/dummy-translations.html
|
||||
msgid "Status"
|
||||
msgstr "Status"
|
||||
|
||||
#: public/views/block.html public/views/transaction.html
|
||||
msgid "Summary"
|
||||
msgstr "Zusammenfassung"
|
||||
|
||||
#: public/views/address.html
|
||||
msgid "Summary <small>confirmed</small>"
|
||||
msgstr "Zusammenfassung <small>bestätigt</small>"
|
||||
|
||||
#: public/views/status.html
|
||||
msgid "Sync Progress"
|
||||
msgstr "Fortschritt"
|
||||
|
||||
#: public/views/status.html
|
||||
msgid "Sync Status"
|
||||
msgstr "Syncronisation"
|
||||
|
||||
#: public/views/status.html
|
||||
msgid "Sync Type"
|
||||
msgstr "Art der Syncronisation"
|
||||
|
||||
#: public/views/status.html
|
||||
msgid "Synced Blocks"
|
||||
msgstr "Syncronisierte Blöcke"
|
||||
|
||||
#: public/views/status.html
|
||||
msgid "Testnet"
|
||||
msgstr "Testnet aktiv"
|
||||
|
||||
#: public/views/transaction/list.html
|
||||
msgid "There are no transactions involving this address."
|
||||
msgstr "Es gibt keine Transaktionen zu dieser Adressse"
|
||||
|
||||
#: public/views/status.html
|
||||
msgid "Time Offset"
|
||||
msgstr "Zeitoffset zu UTC"
|
||||
|
||||
#: public/views/block.html
|
||||
msgid "Timestamp"
|
||||
msgstr "Zeitstempel"
|
||||
|
||||
#: public/views/block_list.html
|
||||
msgid "Today"
|
||||
msgstr "Heute"
|
||||
|
||||
#: public/views/status.html
|
||||
msgid "Total Amount"
|
||||
msgstr "Gesamtsumme"
|
||||
|
||||
#: public/views/address.html
|
||||
msgid "Total Received"
|
||||
msgstr "Insgesamt empfangen"
|
||||
|
||||
#: public/views/address.html
|
||||
msgid "Total Sent"
|
||||
msgstr "Insgesamt gesendet"
|
||||
|
||||
#: public/views/transaction.html
|
||||
msgid "Transaction"
|
||||
msgstr "Transaktion"
|
||||
|
||||
#: public/views/status.html
|
||||
msgid "Transaction Output Set Information"
|
||||
msgstr "Transaktions Abgänge"
|
||||
|
||||
#: public/views/status.html
|
||||
msgid "Transaction Outputs"
|
||||
msgstr "Abgänge"
|
||||
|
||||
#: public/views/address.html public/views/block.html
|
||||
#: public/views/block_list.html public/views/index.html
|
||||
#: public/views/status.html
|
||||
msgid "Transactions"
|
||||
msgstr "Transaktionen"
|
||||
|
||||
#: public/views/transaction/tx.html
|
||||
msgid "Type"
|
||||
msgstr "Typ"
|
||||
|
||||
#: public/views/address.html
|
||||
msgid "Unconfirmed"
|
||||
msgstr "Unbestätigt"
|
||||
|
||||
#: public/views/transaction.html public/views/transaction/tx.html
|
||||
msgid "Unconfirmed Transaction!"
|
||||
msgstr "Unbestätigte Transaktion!"
|
||||
|
||||
#: public/views/address.html
|
||||
msgid "Unconfirmed Txs Balance"
|
||||
msgstr "Unbestätigtes Guthaben"
|
||||
|
||||
#: public/views/index.html
|
||||
msgid "Value Out"
|
||||
msgstr "Wert"
|
||||
|
||||
#: public/views/block.html public/views/status.html
|
||||
msgid "Version"
|
||||
msgstr "Version"
|
||||
|
||||
#: public/views/block_list.html public/views/index.html
|
||||
msgid "Waiting for blocks..."
|
||||
msgstr "Warte auf Blöcke..."
|
||||
|
||||
#: public/views/index.html
|
||||
msgid "Waiting for transactions..."
|
||||
msgstr "Warte auf Transaktionen..."
|
||||
|
||||
#: public/views/block_list.html
|
||||
msgid "by date."
|
||||
msgstr "nach Datum."
|
||||
|
||||
#: public/views/transaction/tx.html
|
||||
msgid "first seen at"
|
||||
msgstr "zuerst gesehen am"
|
||||
|
||||
#: public/views/transaction/tx.html
|
||||
msgid "mined"
|
||||
msgstr "gefunden"
|
||||
|
||||
#: public/views/block_list.html
|
||||
msgid "mined on:"
|
||||
msgstr "vom:"
|
||||
|
||||
msgid "Waiting for blocks"
|
||||
msgstr "Warte auf Blöcke"
|
||||
470
po/es.po
@ -1,470 +0,0 @@
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Insight\n"
|
||||
"POT-Creation-Date: \n"
|
||||
"PO-Revision-Date: \n"
|
||||
"Last-Translator: \n"
|
||||
"Language-Team: \n"
|
||||
"Language: es\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"X-Generator: Poedit 1.6.8\n"
|
||||
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
||||
|
||||
#: public/views/transaction/tx.html
|
||||
msgid "(Input unconfirmed)"
|
||||
msgstr "(Entrada sin confirmar)"
|
||||
|
||||
#: public/views/404.html
|
||||
msgid "404 Page not found :("
|
||||
msgstr "404 Página no encontrada :("
|
||||
|
||||
#: public/views/index.html
|
||||
msgid ""
|
||||
"<strong>insight</strong> is an <a href=\"http://live.insight.is/\" target="
|
||||
"\"_blank\">open-source Bitcoin blockchain explorer</a> with complete REST "
|
||||
"and websocket APIs that can be used for writing web wallets and other apps "
|
||||
"that need more advanced blockchain queries than provided by bitcoind RPC. "
|
||||
"Check out the <a href=\"https://github.com/bitpay/insight-ui\" target=\"_blank"
|
||||
"\">source code</a>."
|
||||
msgstr ""
|
||||
"<strong>insight</strong> es un <a href=\"http://live.insight.is/\" target="
|
||||
"\"_blank\">explorador de bloques de Bitcoin open-source</a> con un completo "
|
||||
"conjunto de REST y APIs de websockets que pueden ser usadas para escribir "
|
||||
"monederos de Bitcoins y otras aplicaciones que requieran consultar un "
|
||||
"explorador de bloques. Obtén el código en <a href=\"http://github.com/"
|
||||
"bitpay/insight\" target=\"_blank\">el repositorio abierto de Github</a>."
|
||||
|
||||
#: public/views/index.html
|
||||
msgid ""
|
||||
"<strong>insight</strong> is still in development, so be sure to report any "
|
||||
"bugs and provide feedback for improvement at our <a href=\"https://github."
|
||||
"com/bitpay/insight/issues\" target=\"_blank\">github issue tracker</a>."
|
||||
msgstr ""
|
||||
"<strong>insight</strong> esta en desarrollo aún, por ello agradecemos que "
|
||||
"nos reporten errores o sugerencias para mejorar el software. <a href="
|
||||
"\"https://github.com/bitpay/insight-ui/issues\" target=\"_blank\">Github issue "
|
||||
"tracker</a>."
|
||||
|
||||
#: public/views/index.html
|
||||
msgid "About"
|
||||
msgstr "Acerca de"
|
||||
|
||||
#: public/views/address.html
|
||||
msgid "Address"
|
||||
msgstr "Dirección"
|
||||
|
||||
#: public/views/index.html
|
||||
msgid "Age"
|
||||
msgstr "Edad"
|
||||
|
||||
#: public/views/status.html
|
||||
msgid "Application Status"
|
||||
msgstr "Estado de la Aplicación"
|
||||
|
||||
#: public/views/status.html
|
||||
msgid "Best Block"
|
||||
msgstr "Mejor Bloque"
|
||||
|
||||
#: public/views/status.html
|
||||
msgid "Bitcoin node information"
|
||||
msgstr "Información del nodo Bitcoin"
|
||||
|
||||
#: public/views/block.html
|
||||
msgid "Block"
|
||||
msgstr "Bloque"
|
||||
|
||||
#: public/views/block.html
|
||||
msgid "Block Reward"
|
||||
msgstr "Bloque Recompensa"
|
||||
|
||||
#: public/views/block_list.html public/views/dummy-translations.html
|
||||
#: public/views/status.html
|
||||
msgid "Blocks"
|
||||
msgstr "Bloques"
|
||||
|
||||
#: public/views/status.html
|
||||
msgid "Bytes Serialized"
|
||||
msgstr "Bytes Serializados"
|
||||
|
||||
#: public/views/includes/connection.html
|
||||
msgid ""
|
||||
"Can't connect to bitcoind to get live updates from the p2p network. (Tried "
|
||||
"connecting to bitcoind at {{host}}:{{port}} and failed.)"
|
||||
msgstr ""
|
||||
"No se pudo conectar a bitcoind para obtener actualizaciones en vivo de la "
|
||||
"red p2p. (Se intentó conectar a bitcoind de {{host}}:{{port}} y falló.)"
|
||||
|
||||
#: public/views/includes/connection.html
|
||||
msgid "Can't connect to insight server. Attempting to reconnect..."
|
||||
msgstr "No se pudo conectar al servidor insight. Intentando re-conectar..."
|
||||
|
||||
#: public/views/includes/connection.html
|
||||
msgid "Can't connect to internet. Please, check your connection."
|
||||
msgstr "No se pudo conectar a Internet. Por favor, verifique su conexión."
|
||||
|
||||
#: public/views/status.html
|
||||
msgid "Complete"
|
||||
msgstr "Completado"
|
||||
|
||||
#: public/views/transaction.html public/views/transaction/tx.html
|
||||
msgid "Confirmations"
|
||||
msgstr "Confirmaciones"
|
||||
|
||||
#: public/views/includes/header.html
|
||||
msgid "Conn"
|
||||
msgstr "Con"
|
||||
|
||||
#: public/views/status.html
|
||||
msgid "Connections to other nodes"
|
||||
msgstr "Conexiones a otros nodos"
|
||||
|
||||
#: public/views/status.html
|
||||
msgid "Current Blockchain Tip (insight)"
|
||||
msgstr "Actual Blockchain Tip (insight)"
|
||||
|
||||
#: public/views/status.html
|
||||
msgid "Current Sync Status"
|
||||
msgstr "Actual Estado de Sincronización"
|
||||
|
||||
#: public/views/transaction.html
|
||||
msgid "Details"
|
||||
msgstr "Detalles"
|
||||
|
||||
#: public/views/block.html
|
||||
msgid "Difficulty"
|
||||
msgstr "Dificultad"
|
||||
|
||||
#: public/views/transaction/tx.html
|
||||
msgid "Double spent attempt detected. From tx:"
|
||||
msgstr "Intento de doble gasto detectado. De la transacción:"
|
||||
|
||||
#: public/views/includes/connection.html
|
||||
msgid "Error!"
|
||||
msgstr "¡Error!"
|
||||
|
||||
#: public/views/transaction/tx.html
|
||||
msgid "Fee"
|
||||
msgstr "Tasa"
|
||||
|
||||
#: public/views/address.html
|
||||
msgid "Final Balance"
|
||||
msgstr "Balance Final"
|
||||
|
||||
#: public/views/status.html
|
||||
msgid "Finish Date"
|
||||
msgstr "Fecha Final"
|
||||
|
||||
#: public/views/404.html
|
||||
msgid "Go to home"
|
||||
msgstr "Volver al Inicio"
|
||||
|
||||
#: public/views/status.html
|
||||
msgid "Hash Serialized"
|
||||
msgstr "Hash Serializado"
|
||||
|
||||
#: public/views/block.html public/views/block_list.html
|
||||
#: public/views/index.html public/views/status.html
|
||||
#: public/views/includes/header.html
|
||||
msgid "Height"
|
||||
msgstr "Altura"
|
||||
|
||||
#: public/views/transaction.html public/views/transaction/tx.html
|
||||
msgid "Included in Block"
|
||||
msgstr "Incluido en el Bloque"
|
||||
|
||||
#: public/views/transaction/tx.html
|
||||
msgid "Incoherence in levelDB detected:"
|
||||
msgstr "Detectada una incoherencia en levelDB:"
|
||||
|
||||
#: public/views/status.html
|
||||
msgid "Info Errors"
|
||||
msgstr "Errores de Información"
|
||||
|
||||
#: public/views/status.html
|
||||
msgid "Initial Block Chain Height"
|
||||
msgstr "Altura de la Cadena en Bloque Inicial"
|
||||
|
||||
#: public/views/transaction.html
|
||||
msgid "Input"
|
||||
msgstr "Entrada"
|
||||
|
||||
#: public/views/status.html
|
||||
msgid "Last Block"
|
||||
msgstr "Último Bloque"
|
||||
|
||||
#: public/views/status.html
|
||||
msgid "Last Block Hash (Bitcoind)"
|
||||
msgstr "Último Bloque Hash (Bitcoind)"
|
||||
|
||||
#: public/views/index.html
|
||||
msgid "Latest Blocks"
|
||||
msgstr "Últimos Bloques"
|
||||
|
||||
#: public/views/index.html
|
||||
msgid "Latest Transactions"
|
||||
msgstr "Últimas Transacciones"
|
||||
|
||||
#: public/views/address.html
|
||||
msgid "Loading Address Information"
|
||||
msgstr "Cargando Información de la Dirección"
|
||||
|
||||
#: public/views/block.html
|
||||
msgid "Loading Block Information"
|
||||
msgstr "Cargando Información del Bloque"
|
||||
|
||||
#: public/views/block_list.html
|
||||
msgid "Loading Selected Date..."
|
||||
msgstr "Cargando Fecha Seleccionada..."
|
||||
|
||||
#: public/views/transaction.html
|
||||
msgid "Loading Transaction Details"
|
||||
msgstr "Cargando Detalles de la Transacción"
|
||||
|
||||
#: public/views/transaction/list.html
|
||||
msgid "Loading Transactions..."
|
||||
msgstr "Cargando Transacciones..."
|
||||
|
||||
#: public/views/includes/infoStatus.html
|
||||
msgid "Loading..."
|
||||
msgstr "Cargando..."
|
||||
|
||||
#: public/views/transaction.html
|
||||
msgid "Mined Time"
|
||||
msgstr "Hora de Minado"
|
||||
|
||||
#: public/views/block.html public/views/block_list.html
|
||||
#: public/views/index.html
|
||||
msgid "Mined by"
|
||||
msgstr "Minado por"
|
||||
|
||||
#: public/views/status.html
|
||||
msgid "Mining Difficulty"
|
||||
msgstr "Dificultad de Minado"
|
||||
|
||||
#: public/views/block.html
|
||||
msgid "Next Block"
|
||||
msgstr "Próximo Bloque"
|
||||
|
||||
#: public/views/transaction/tx.html
|
||||
msgid "No Inputs (Newly Generated Coins)"
|
||||
msgstr "Sin Entradas (Monedas Recién Generadas)"
|
||||
|
||||
#: public/views/block_list.html
|
||||
msgid "No blocks yet."
|
||||
msgstr "No hay bloques aún."
|
||||
|
||||
#: public/views/includes/header.html public/views/includes/search.html
|
||||
msgid "No matching records found!"
|
||||
msgstr "¡No se encontraron registros coincidentes!"
|
||||
|
||||
#: public/views/address.html
|
||||
msgid "No. Transactions"
|
||||
msgstr "Nro. de Transacciones"
|
||||
|
||||
#: public/views/block.html
|
||||
msgid "Number Of Transactions"
|
||||
msgstr "Número de Transacciones"
|
||||
|
||||
#: public/views/transaction.html
|
||||
msgid "Output"
|
||||
msgstr "Salida"
|
||||
|
||||
#: public/views/index.html
|
||||
msgid "Powered by"
|
||||
msgstr "Funciona con"
|
||||
|
||||
#: public/views/block.html
|
||||
msgid "Previous Block"
|
||||
msgstr "Bloque Anterior"
|
||||
|
||||
#: public/views/status.html
|
||||
msgid "Protocol version"
|
||||
msgstr "Versión del protocolo"
|
||||
|
||||
#: public/views/status.html
|
||||
msgid "Proxy setting"
|
||||
msgstr "Opción de proxy"
|
||||
|
||||
#: public/views/transaction.html
|
||||
msgid "Received Time"
|
||||
msgstr "Hora de Recibido"
|
||||
|
||||
#: public/views/redirect.html
|
||||
msgid "Redirecting..."
|
||||
msgstr "Redireccionando..."
|
||||
|
||||
#: public/views/includes/header.html
|
||||
msgid "Search for block, transaction or address"
|
||||
msgstr "Buscar bloques, transacciones o direcciones"
|
||||
|
||||
#: public/views/index.html
|
||||
msgid "See all blocks"
|
||||
msgstr "Ver todos los bloques"
|
||||
|
||||
#: public/views/status.html
|
||||
msgid "Show Transaction Output data"
|
||||
msgstr "Mostrar dato de Salida de la Transacción"
|
||||
|
||||
#: public/views/transaction/tx.html
|
||||
msgid "Show all"
|
||||
msgstr "Mostrar todos"
|
||||
|
||||
#: public/views/transaction/tx.html
|
||||
msgid "Show input"
|
||||
msgstr "Mostrar entrada"
|
||||
|
||||
#: public/views/transaction/tx.html
|
||||
msgid "Show less"
|
||||
msgstr "Ver menos"
|
||||
|
||||
#: public/views/transaction/tx.html
|
||||
msgid "Show more"
|
||||
msgstr "Ver más"
|
||||
|
||||
#: public/views/block_list.html public/views/index.html
|
||||
#: public/views/transaction.html
|
||||
msgid "Size"
|
||||
msgstr "Tamaño"
|
||||
|
||||
#: public/views/block.html
|
||||
msgid "Size (bytes)"
|
||||
msgstr "Tamaño (bytes)"
|
||||
|
||||
#: public/views/status.html
|
||||
msgid "Skipped Blocks (previously synced)"
|
||||
msgstr "Bloques Saltados (previamente sincronizado)"
|
||||
|
||||
#: public/views/status.html
|
||||
msgid "Start Date"
|
||||
msgstr "Fecha de Inicio"
|
||||
|
||||
#: public/views/dummy-translations.html
|
||||
msgid "Status"
|
||||
msgstr "Estado"
|
||||
|
||||
#: public/views/block.html public/views/transaction.html
|
||||
msgid "Summary"
|
||||
msgstr "Resumen"
|
||||
|
||||
#: public/views/address.html
|
||||
msgid "Summary <small>confirmed</small>"
|
||||
msgstr "Resumen <small>confirmados</small>"
|
||||
|
||||
#: public/views/status.html
|
||||
msgid "Sync Progress"
|
||||
msgstr "Proceso de Sincronización"
|
||||
|
||||
#: public/views/status.html
|
||||
msgid "Sync Status"
|
||||
msgstr "Estado de Sincronización"
|
||||
|
||||
#: public/views/status.html
|
||||
msgid "Sync Type"
|
||||
msgstr "Tipo de Sincronización"
|
||||
|
||||
#: public/views/status.html
|
||||
msgid "Synced Blocks"
|
||||
msgstr "Bloques Sincornizados"
|
||||
|
||||
#: public/views/status.html
|
||||
msgid "Testnet"
|
||||
msgstr "Red de prueba"
|
||||
|
||||
#: public/views/transaction/list.html
|
||||
msgid "There are no transactions involving this address."
|
||||
msgstr "No hay transacciones para esta dirección"
|
||||
|
||||
#: public/views/status.html
|
||||
msgid "Time Offset"
|
||||
msgstr "Desplazamiento de hora"
|
||||
|
||||
#: public/views/block.html
|
||||
msgid "Timestamp"
|
||||
msgstr "Fecha y hora"
|
||||
|
||||
#: public/views/block_list.html
|
||||
msgid "Today"
|
||||
msgstr "Hoy"
|
||||
|
||||
#: public/views/status.html
|
||||
msgid "Total Amount"
|
||||
msgstr "Cantidad Total"
|
||||
|
||||
#: public/views/address.html
|
||||
msgid "Total Received"
|
||||
msgstr "Total Recibido"
|
||||
|
||||
#: public/views/address.html
|
||||
msgid "Total Sent"
|
||||
msgstr "Total Enviado"
|
||||
|
||||
#: public/views/transaction.html
|
||||
msgid "Transaction"
|
||||
msgstr "Transacción"
|
||||
|
||||
#: public/views/status.html
|
||||
msgid "Transaction Output Set Information"
|
||||
msgstr "Información del Conjunto de Salida de la Transacción"
|
||||
|
||||
#: public/views/status.html
|
||||
msgid "Transaction Outputs"
|
||||
msgstr "Salidas de la Transacción"
|
||||
|
||||
#: public/views/address.html public/views/block.html
|
||||
#: public/views/block_list.html public/views/index.html
|
||||
#: public/views/status.html
|
||||
msgid "Transactions"
|
||||
msgstr "Transacciones"
|
||||
|
||||
#: public/views/transaction/tx.html
|
||||
msgid "Type"
|
||||
msgstr "Tipo"
|
||||
|
||||
#: public/views/address.html
|
||||
msgid "Unconfirmed"
|
||||
msgstr "Sin confirmar"
|
||||
|
||||
#: public/views/transaction.html public/views/transaction/tx.html
|
||||
msgid "Unconfirmed Transaction!"
|
||||
msgstr "¡Transacción sin confirmar!"
|
||||
|
||||
#: public/views/address.html
|
||||
msgid "Unconfirmed Txs Balance"
|
||||
msgstr "Balance sin confirmar"
|
||||
|
||||
#: public/views/index.html
|
||||
msgid "Value Out"
|
||||
msgstr "Valor de Salida"
|
||||
|
||||
#: public/views/block.html public/views/status.html
|
||||
msgid "Version"
|
||||
msgstr "Versión"
|
||||
|
||||
#: public/views/block_list.html public/views/index.html
|
||||
msgid "Waiting for blocks..."
|
||||
msgstr "Esperando bloques..."
|
||||
|
||||
#: public/views/index.html
|
||||
msgid "Waiting for transactions..."
|
||||
msgstr "Esperando transacciones..."
|
||||
|
||||
#: public/views/block_list.html
|
||||
msgid "by date."
|
||||
msgstr "por fecha."
|
||||
|
||||
#: public/views/transaction/tx.html
|
||||
msgid "first seen at"
|
||||
msgstr "Visto a"
|
||||
|
||||
#: public/views/transaction/tx.html
|
||||
msgid "mined"
|
||||
msgstr "minado"
|
||||
|
||||
#: public/views/block_list.html
|
||||
msgid "mined on:"
|
||||
msgstr "minado el:"
|
||||
|
||||
#~ msgid "Waiting for blocks"
|
||||
#~ msgstr "Esperando bloques"
|
||||
617
po/ja.po
@ -1,617 +0,0 @@
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: \n"
|
||||
"POT-Creation-Date: \n"
|
||||
"PO-Revision-Date: \n"
|
||||
"Last-Translator: Vis Virial <visvirial@gmail.com>\n"
|
||||
"Language-Team: \n"
|
||||
"Language: ja\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"X-Generator: Poedit 1.5.4\n"
|
||||
|
||||
#: public/views/transaction/tx.html
|
||||
msgid "(Input unconfirmed)"
|
||||
msgstr "(入力は未検証です)"
|
||||
|
||||
#: public/views/404.html
|
||||
msgid "404 Page not found :("
|
||||
msgstr "404 ページがみつかりません (´・ω・`)"
|
||||
|
||||
#: public/views/index.html
|
||||
msgid ""
|
||||
"<strong>insight</strong> is an <a href=\"http://live.insight.is/\" target="
|
||||
"\"_blank\">open-source Bitcoin blockchain explorer</a> with complete REST "
|
||||
"and websocket APIs that can be used for writing web wallets and other apps "
|
||||
"that need more advanced blockchain queries than provided by bitcoind RPC. "
|
||||
"Check out the <a href=\"https://github.com/bitpay/insight-ui\" target=\"_blank"
|
||||
"\">source code</a>."
|
||||
msgstr ""
|
||||
"<strong>insight</strong>は、bitcoind RPCの提供するものよりも詳細なブロック"
|
||||
"チェインへの問い合わせを必要とするウェブウォレットやその他のアプリを書くのに"
|
||||
"使える、完全なRESTおよびwebsocket APIを備えた<a href=\"http://live.insight."
|
||||
"is/\" target=\"_blank\">オープンソースのビットコインブロックエクスプローラ</"
|
||||
"a>です。<a href=\"https://github.com/bitpay/insight-ui\" target=\"_blank\">ソース"
|
||||
"コード</a>を確認"
|
||||
|
||||
#: public/views/index.html
|
||||
msgid ""
|
||||
"<strong>insight</strong> is still in development, so be sure to report any "
|
||||
"bugs and provide feedback for improvement at our <a href=\"https://github."
|
||||
"com/bitpay/insight/issues\" target=\"_blank\">github issue tracker</a>."
|
||||
msgstr ""
|
||||
"<strong>insight</strong>は現在開発中です。<a href=\"https://github.com/"
|
||||
"bitpay/insight/issues\" target=\"_blank\">githubのissueトラッカ</a>にてバグの"
|
||||
"報告や改善案の提案をお願いします。"
|
||||
|
||||
#: public/views/index.html
|
||||
msgid "About"
|
||||
msgstr "はじめに"
|
||||
|
||||
#: public/views/address.html public/views/messages_verify.html
|
||||
msgid "Address"
|
||||
msgstr "アドレス"
|
||||
|
||||
#: public/views/index.html
|
||||
msgid "Age"
|
||||
msgstr "生成後経過時間"
|
||||
|
||||
#: public/views/messages_verify.html
|
||||
msgid "An error occured in the verification process."
|
||||
msgstr "検証過程でエラーが発生しました。"
|
||||
|
||||
#: public/views/transaction_sendraw.html
|
||||
msgid "An error occured:<br>{{error}}"
|
||||
msgstr "エラーが発生しました:<br>{{error}}"
|
||||
|
||||
#: public/views/status.html
|
||||
msgid "Application Status"
|
||||
msgstr "アプリケーションの状態"
|
||||
|
||||
#: public/views/status.html
|
||||
msgid "Best Block"
|
||||
msgstr "最良ブロック"
|
||||
|
||||
#: public/views/messages_verify.html
|
||||
msgid "Bitcoin comes with a way of signing arbitrary messages."
|
||||
msgstr "Bitcoinには任意のメッセージを署名する昨日が備わっています。"
|
||||
|
||||
#: public/views/status.html
|
||||
msgid "Bitcoin node information"
|
||||
msgstr "Bitcoinノード情報"
|
||||
|
||||
#: public/views/block.html
|
||||
msgid "Block"
|
||||
msgstr "ブロック"
|
||||
|
||||
#: public/views/block.html
|
||||
msgid "Block Reward"
|
||||
msgstr "ブロック報酬"
|
||||
|
||||
#: public/views/block_list.html public/views/dummy-translations.html
|
||||
#: public/views/status.html
|
||||
msgid "Blocks"
|
||||
msgstr "ブロック"
|
||||
|
||||
#: public/views/transaction_sendraw.html
|
||||
msgid "Broadcast Raw Transaction"
|
||||
msgstr "生のトランザクションを配信"
|
||||
|
||||
#: public/views/status.html
|
||||
msgid "Bytes Serialized"
|
||||
msgstr "シリアライズ後の容量 (バイト)"
|
||||
|
||||
#: public/views/includes/connection.html
|
||||
msgid ""
|
||||
"Can't connect to bitcoind to get live updates from the p2p network. (Tried "
|
||||
"connecting to bitcoind at {{host}}:{{port}} and failed.)"
|
||||
msgstr ""
|
||||
"P2Pネットワークからライブ情報を取得するためにbitcoindへ接続することができませ"
|
||||
"んでした。({{host}}:{{port}} への接続を試みましたが、失敗しました。)"
|
||||
|
||||
#: public/views/includes/connection.html
|
||||
msgid "Can't connect to insight server. Attempting to reconnect..."
|
||||
msgstr "insight サーバに接続できません。再接続しています..."
|
||||
|
||||
#: public/views/includes/connection.html
|
||||
msgid "Can't connect to internet. Please, check your connection."
|
||||
msgstr "インターネットに接続できません。コネクションを確認してください。"
|
||||
|
||||
#: public/views/status.html
|
||||
msgid "Complete"
|
||||
msgstr "完了"
|
||||
|
||||
#: public/views/transaction.html public/views/transaction/tx.html
|
||||
msgid "Confirmations"
|
||||
msgstr "検証数"
|
||||
|
||||
#: public/views/includes/header.html
|
||||
msgid "Conn"
|
||||
msgstr "接続数"
|
||||
|
||||
#: public/views/status.html
|
||||
msgid "Connections to other nodes"
|
||||
msgstr "他ノードへの接続"
|
||||
|
||||
#: public/views/status.html
|
||||
msgid "Current Blockchain Tip (insight)"
|
||||
msgstr "現在のブロックチェインのTip (insight)"
|
||||
|
||||
#: public/views/status.html
|
||||
msgid "Current Sync Status"
|
||||
msgstr "現在の同期状況"
|
||||
|
||||
#: public/views/transaction.html
|
||||
msgid "Details"
|
||||
msgstr "詳細"
|
||||
|
||||
#: public/views/block.html
|
||||
msgid "Difficulty"
|
||||
msgstr "難易度"
|
||||
|
||||
#: public/views/transaction/tx.html
|
||||
msgid "Double spent attempt detected. From tx:"
|
||||
msgstr "二重支払い攻撃をこのトランザクションから検知しました:"
|
||||
|
||||
#: public/views/messages_verify.html
|
||||
msgid "Error message:"
|
||||
msgstr "エラーメッセージ:"
|
||||
|
||||
#: public/views/includes/connection.html
|
||||
msgid "Error!"
|
||||
msgstr "エラー!"
|
||||
|
||||
#: public/views/transaction/tx.html
|
||||
msgid "Fee"
|
||||
msgstr "手数料"
|
||||
|
||||
#: public/views/address.html
|
||||
msgid "Final Balance"
|
||||
msgstr "最終残高"
|
||||
|
||||
#: public/views/status.html
|
||||
msgid "Finish Date"
|
||||
msgstr "終了日時"
|
||||
|
||||
#: public/views/404.html
|
||||
msgid "Go to home"
|
||||
msgstr "ホームへ"
|
||||
|
||||
#: public/views/status.html
|
||||
msgid "Hash Serialized"
|
||||
msgstr "シリアライズデータのハッシュ値"
|
||||
|
||||
#: public/views/block.html public/views/block_list.html
|
||||
#: public/views/index.html public/views/status.html
|
||||
#: public/views/includes/header.html
|
||||
msgid "Height"
|
||||
msgstr "ブロック高"
|
||||
|
||||
#: public/views/transaction.html public/views/transaction/tx.html
|
||||
msgid "Included in Block"
|
||||
msgstr "取り込まれたブロック"
|
||||
|
||||
#: public/views/transaction/tx.html
|
||||
msgid "Incoherence in levelDB detected:"
|
||||
msgstr "levelDBの破損を検知しました:"
|
||||
|
||||
#: public/views/status.html
|
||||
msgid "Info Errors"
|
||||
msgstr "エラー情報"
|
||||
|
||||
#: public/views/status.html
|
||||
msgid "Initial Block Chain Height"
|
||||
msgstr "起動時のブロック高"
|
||||
|
||||
#: public/views/transaction.html
|
||||
msgid "Input"
|
||||
msgstr "入力"
|
||||
|
||||
#: public/views/status.html
|
||||
msgid "Last Block"
|
||||
msgstr "直前のブロック"
|
||||
|
||||
#: public/views/status.html
|
||||
msgid "Last Block Hash (Bitcoind)"
|
||||
msgstr "直前のブロックのハッシュ値 (Bitcoind)"
|
||||
|
||||
#: public/views/index.html
|
||||
msgid "Latest Blocks"
|
||||
msgstr "最新のブロック"
|
||||
|
||||
#: public/views/index.html
|
||||
msgid "Latest Transactions"
|
||||
msgstr "最新のトランザクション"
|
||||
|
||||
#: public/views/address.html
|
||||
msgid "Loading Address Information"
|
||||
msgstr "アドレス情報を読み込んでいます"
|
||||
|
||||
#: public/views/block.html
|
||||
msgid "Loading Block Information"
|
||||
msgstr "ブロック情報を読み込んでいます"
|
||||
|
||||
#: public/views/block_list.html
|
||||
msgid "Loading Selected Date..."
|
||||
msgstr "選択されたデータを読み込んでいます..."
|
||||
|
||||
#: public/views/transaction.html
|
||||
msgid "Loading Transaction Details"
|
||||
msgstr "トランザクションの詳細を読み込んでいます"
|
||||
|
||||
#: public/views/transaction/list.html
|
||||
msgid "Loading Transactions..."
|
||||
msgstr "トランザクションを読み込んでいます..."
|
||||
|
||||
#: public/views/messages_verify.html public/views/transaction_sendraw.html
|
||||
#: public/views/includes/infoStatus.html
|
||||
msgid "Loading..."
|
||||
msgstr "ロード中..."
|
||||
|
||||
#: public/views/messages_verify.html
|
||||
msgid "Message"
|
||||
msgstr "メッセージ"
|
||||
|
||||
#: public/views/transaction.html
|
||||
msgid "Mined Time"
|
||||
msgstr "採掘時刻"
|
||||
|
||||
#: public/views/block.html public/views/block_list.html
|
||||
#: public/views/index.html
|
||||
msgid "Mined by"
|
||||
msgstr "採掘者"
|
||||
|
||||
#: public/views/status.html
|
||||
msgid "Mining Difficulty"
|
||||
msgstr "採掘難易度"
|
||||
|
||||
#: public/views/block.html
|
||||
msgid "Next Block"
|
||||
msgstr "次のブロック"
|
||||
|
||||
#: public/views/transaction/tx.html
|
||||
msgid "No Inputs (Newly Generated Coins)"
|
||||
msgstr "入力なし (新しく生成されたコイン)"
|
||||
|
||||
#: public/views/block_list.html
|
||||
msgid "No blocks yet."
|
||||
msgstr "ブロックはありません。"
|
||||
|
||||
#: public/views/includes/search.html
|
||||
msgid "No matching records found!"
|
||||
msgstr "一致するレコードはありません!"
|
||||
|
||||
#: public/views/address.html
|
||||
msgid "No. Transactions"
|
||||
msgstr "トランザクション数"
|
||||
|
||||
#: public/views/block.html
|
||||
msgid "Number Of Transactions"
|
||||
msgstr "トランザクション数"
|
||||
|
||||
#: public/views/transaction.html
|
||||
msgid "Output"
|
||||
msgstr "出力"
|
||||
|
||||
#: public/views/index.html
|
||||
msgid "Powered by"
|
||||
msgstr "Powered by"
|
||||
|
||||
#: public/views/block.html
|
||||
msgid "Previous Block"
|
||||
msgstr "前のブロック"
|
||||
|
||||
#: public/views/status.html
|
||||
msgid "Protocol version"
|
||||
msgstr "プロトコルバージョン"
|
||||
|
||||
#: public/views/status.html
|
||||
msgid "Proxy setting"
|
||||
msgstr "プロキシ設定"
|
||||
|
||||
#: public/views/transaction_sendraw.html
|
||||
msgid "Raw transaction data"
|
||||
msgstr "トランザクションの生データ"
|
||||
|
||||
#: public/views/transaction_sendraw.html
|
||||
msgid "Raw transaction data must be a valid hexadecimal string."
|
||||
msgstr "生のトランザクションデータは有効な16進数でなければいけません。"
|
||||
|
||||
#: public/views/transaction.html
|
||||
msgid "Received Time"
|
||||
msgstr "受信時刻"
|
||||
|
||||
#: public/views/redirect.html
|
||||
msgid "Redirecting..."
|
||||
msgstr "リダイレクトしています..."
|
||||
|
||||
#: public/views/includes/search.html
|
||||
msgid "Search for block, transaction or address"
|
||||
msgstr "ブロック、トランザクション、アドレスを検索"
|
||||
|
||||
#: public/views/index.html
|
||||
msgid "See all blocks"
|
||||
msgstr "すべてのブロックをみる"
|
||||
|
||||
#: public/views/transaction_sendraw.html
|
||||
msgid "Send transaction"
|
||||
msgstr "トランザクションを送信"
|
||||
|
||||
#: public/views/status.html
|
||||
msgid "Show Transaction Output data"
|
||||
msgstr "トランザクションの出力データをみる"
|
||||
|
||||
#: public/views/transaction/tx.html
|
||||
msgid "Show all"
|
||||
msgstr "すべて表示"
|
||||
|
||||
#: public/views/transaction/tx.html
|
||||
msgid "Show input"
|
||||
msgstr "入力を表示"
|
||||
|
||||
#: public/views/transaction/tx.html
|
||||
msgid "Show less"
|
||||
msgstr "隠す"
|
||||
|
||||
#: public/views/transaction/tx.html
|
||||
msgid "Show more"
|
||||
msgstr "表示する"
|
||||
|
||||
#: public/views/messages_verify.html
|
||||
msgid "Signature"
|
||||
msgstr "署名"
|
||||
|
||||
#: public/views/block_list.html public/views/index.html
|
||||
#: public/views/transaction.html
|
||||
msgid "Size"
|
||||
msgstr "サイズ"
|
||||
|
||||
#: public/views/block.html
|
||||
msgid "Size (bytes)"
|
||||
msgstr "サイズ (バイト)"
|
||||
|
||||
#: public/views/status.html
|
||||
msgid "Skipped Blocks (previously synced)"
|
||||
msgstr "スキップされたブロック (同期済み)"
|
||||
|
||||
#: public/views/status.html
|
||||
msgid "Start Date"
|
||||
msgstr "開始日時"
|
||||
|
||||
#: public/views/dummy-translations.html
|
||||
msgid "Status"
|
||||
msgstr "ステータス"
|
||||
|
||||
#: public/views/block.html public/views/transaction.html
|
||||
msgid "Summary"
|
||||
msgstr "概要"
|
||||
|
||||
#: public/views/address.html
|
||||
msgid "Summary <small>confirmed</small>"
|
||||
msgstr "サマリ <small>検証済み</small>"
|
||||
|
||||
#: public/views/status.html
|
||||
msgid "Sync Progress"
|
||||
msgstr "同期の進捗状況"
|
||||
|
||||
#: public/views/status.html
|
||||
msgid "Sync Status"
|
||||
msgstr "同期ステータス"
|
||||
|
||||
#: public/views/status.html
|
||||
msgid "Sync Type"
|
||||
msgstr "同期タイプ"
|
||||
|
||||
#: public/views/status.html
|
||||
msgid "Synced Blocks"
|
||||
msgstr "同期されたブロック数"
|
||||
|
||||
#: public/views/status.html
|
||||
msgid "Testnet"
|
||||
msgstr "テストネット"
|
||||
|
||||
#: public/views/messages_verify.html
|
||||
msgid "The message failed to verify."
|
||||
msgstr "メッセージの検証に失敗しました。"
|
||||
|
||||
#: public/views/messages_verify.html
|
||||
msgid "The message is verifiably from {{verification.address}}."
|
||||
msgstr "メッセージは{{verification.address}}により検証されました。"
|
||||
|
||||
#: public/views/transaction/list.html
|
||||
msgid "There are no transactions involving this address."
|
||||
msgstr "このアドレスに対するトランザクションはありません。"
|
||||
|
||||
#: public/views/transaction_sendraw.html
|
||||
msgid ""
|
||||
"This form can be used to broadcast a raw transaction in hex format over\n"
|
||||
" the Bitcoin network."
|
||||
msgstr ""
|
||||
"このフォームでは、16進数フォーマットの生のトランザクションをBitcoinネットワー"
|
||||
"ク上に配信することができます。"
|
||||
|
||||
#: public/views/messages_verify.html
|
||||
msgid ""
|
||||
"This form can be used to verify that a message comes from\n"
|
||||
" a specific Bitcoin address."
|
||||
msgstr ""
|
||||
"このフォームでは、メッセージが特定のBitcoinアドレスから来たかどうかを検証する"
|
||||
"ことができます。"
|
||||
|
||||
#: public/views/status.html
|
||||
msgid "Time Offset"
|
||||
msgstr "時間オフセット"
|
||||
|
||||
#: public/views/block.html public/views/block_list.html
|
||||
msgid "Timestamp"
|
||||
msgstr "タイムスタンプ"
|
||||
|
||||
#: public/views/block_list.html
|
||||
msgid "Today"
|
||||
msgstr "今日"
|
||||
|
||||
#: public/views/status.html
|
||||
msgid "Total Amount"
|
||||
msgstr "Bitcoin総量"
|
||||
|
||||
#: public/views/address.html
|
||||
msgid "Total Received"
|
||||
msgstr "総入金額"
|
||||
|
||||
#: public/views/address.html
|
||||
msgid "Total Sent"
|
||||
msgstr "総送金額"
|
||||
|
||||
#: public/views/transaction.html
|
||||
msgid "Transaction"
|
||||
msgstr "トランザクション"
|
||||
|
||||
#: public/views/status.html
|
||||
msgid "Transaction Output Set Information"
|
||||
msgstr "トランザクションの出力セット情報"
|
||||
|
||||
#: public/views/status.html
|
||||
msgid "Transaction Outputs"
|
||||
msgstr "トランザクションの出力"
|
||||
|
||||
#: public/views/transaction_sendraw.html
|
||||
msgid "Transaction succesfully broadcast.<br>Transaction id: {{txid}}"
|
||||
msgstr "トランザクションの配信に成功しました。<br>トランザクションID: {{txid}}"
|
||||
|
||||
#: public/views/address.html public/views/block.html
|
||||
#: public/views/block_list.html public/views/index.html
|
||||
#: public/views/status.html
|
||||
msgid "Transactions"
|
||||
msgstr "トランザクション"
|
||||
|
||||
#: public/views/transaction/tx.html
|
||||
msgid "Type"
|
||||
msgstr "タイプ"
|
||||
|
||||
#: public/views/address.html
|
||||
msgid "Unconfirmed"
|
||||
msgstr "未検証"
|
||||
|
||||
#: public/views/transaction.html public/views/transaction/tx.html
|
||||
msgid "Unconfirmed Transaction!"
|
||||
msgstr "未検証のトランザクションです!"
|
||||
|
||||
#: public/views/address.html
|
||||
msgid "Unconfirmed Txs Balance"
|
||||
msgstr "未検証トランザクションの残高"
|
||||
|
||||
#: public/views/index.html
|
||||
msgid "Value Out"
|
||||
msgstr "出力値"
|
||||
|
||||
#: public/views/messages_verify.html
|
||||
msgid "Verify"
|
||||
msgstr "検証"
|
||||
|
||||
#: public/views/messages_verify.html
|
||||
msgid "Verify signed message"
|
||||
msgstr "署名済みメッセージを検証"
|
||||
|
||||
#: public/views/block.html public/views/status.html
|
||||
msgid "Version"
|
||||
msgstr "バージョン"
|
||||
|
||||
#: public/views/block_list.html public/views/index.html
|
||||
msgid "Waiting for blocks..."
|
||||
msgstr "ブロックを待っています..."
|
||||
|
||||
#: public/views/index.html
|
||||
msgid "Waiting for transactions..."
|
||||
msgstr "トランザクションを待っています..."
|
||||
|
||||
#: public/views/block_list.html
|
||||
msgid "by date."
|
||||
msgstr "日毎。"
|
||||
|
||||
#: public/views/transaction/tx.html
|
||||
msgid "first seen at"
|
||||
msgstr "最初に発見された日時"
|
||||
|
||||
#: public/views/transaction/tx.html
|
||||
msgid "mined"
|
||||
msgstr "採掘された"
|
||||
|
||||
#: public/views/block_list.html
|
||||
msgid "mined on:"
|
||||
msgstr "採掘日時:"
|
||||
|
||||
#~ msgid "(Mainchain)"
|
||||
#~ msgstr "(メインチェーン)"
|
||||
|
||||
#~ msgid "(Orphaned)"
|
||||
#~ msgstr "(孤立したブロック)"
|
||||
|
||||
#~ msgid "Bits"
|
||||
#~ msgstr "Bits"
|
||||
|
||||
#~ msgid "Block #{{block.height}}"
|
||||
#~ msgstr "ブロック #{{block.height}}"
|
||||
|
||||
#~ msgid "BlockHash"
|
||||
#~ msgstr "ブロックのハッシュ値"
|
||||
|
||||
#~ msgid "Blocks <br> mined on:"
|
||||
#~ msgstr "ブロック <br> 採掘日"
|
||||
|
||||
#~ msgid "Coinbase"
|
||||
#~ msgstr "コインベース"
|
||||
|
||||
#~ msgid "Hash"
|
||||
#~ msgstr "ハッシュ値"
|
||||
|
||||
#~ msgid "LockTime"
|
||||
#~ msgstr "ロック時間"
|
||||
|
||||
#~ msgid "Merkle Root"
|
||||
#~ msgstr "Merkleルート"
|
||||
|
||||
#~ msgid "Nonce"
|
||||
#~ msgstr "Nonce"
|
||||
|
||||
#~ msgid "Ooops!"
|
||||
#~ msgstr "おぉっと!"
|
||||
|
||||
#~ msgid "Output is spent"
|
||||
#~ msgstr "出力は使用済みです"
|
||||
|
||||
#~ msgid "Output is unspent"
|
||||
#~ msgstr "出力は未使用です"
|
||||
|
||||
#~ msgid "Scan"
|
||||
#~ msgstr "スキャン"
|
||||
|
||||
#~ msgid "Show/Hide items details"
|
||||
#~ msgstr "アイテムの詳細を表示または隠す"
|
||||
|
||||
#~ msgid "Waiting for blocks"
|
||||
#~ msgstr "ブロックを待っています"
|
||||
|
||||
#~ msgid "by date. {{detail}} {{before}}"
|
||||
#~ msgstr "日時順 {{detail}} {{before}}"
|
||||
|
||||
#~ msgid "scriptSig"
|
||||
#~ msgstr "scriptSig"
|
||||
|
||||
#~ msgid "{{tx.confirmations}} Confirmations"
|
||||
#~ msgstr "{{tx.confirmations}} 検証"
|
||||
|
||||
#~ msgid "<span class=\"glyphicon glyphicon-warning-sign\"></span> (Orphaned)"
|
||||
#~ msgstr ""
|
||||
#~ "<span class=\"glyphicon glyphicon-warning-sign\"></span> (孤立したブロッ"
|
||||
#~ "ク)"
|
||||
|
||||
#~ msgid ""
|
||||
#~ "<span class=\"glyphicon glyphicon-warning-sign\"></span> Incoherence in "
|
||||
#~ "levelDB detected: {{vin.dbError}}"
|
||||
#~ msgstr ""
|
||||
#~ "<span class=\"glyphicon glyphicon-warning-sign\"></span> Incoherence in "
|
||||
#~ "levelDB detected: {{vin.dbError}}"
|
||||
|
||||
#~ msgid "Waiting for blocks <span class=\"loader-gif\"></span>"
|
||||
#~ msgstr "ブロックを待っています <span class=\"loader-gif\"></span>"
|
||||
5
public/css/main.min.css
vendored
@ -1,229 +0,0 @@
|
||||
<?xml version="1.0" standalone="no"?>
|
||||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" >
|
||||
<svg xmlns="http://www.w3.org/2000/svg">
|
||||
<metadata></metadata>
|
||||
<defs>
|
||||
<font id="glyphicons_halflingsregular" horiz-adv-x="1200" >
|
||||
<font-face units-per-em="1200" ascent="960" descent="-240" />
|
||||
<missing-glyph horiz-adv-x="500" />
|
||||
<glyph />
|
||||
<glyph />
|
||||
<glyph unicode="
" />
|
||||
<glyph unicode=" " />
|
||||
<glyph unicode="*" d="M100 500v200h259l-183 183l141 141l183 -183v259h200v-259l183 183l141 -141l-183 -183h259v-200h-259l183 -183l-141 -141l-183 183v-259h-200v259l-183 -183l-141 141l183 183h-259z" />
|
||||
<glyph unicode="+" d="M0 400v300h400v400h300v-400h400v-300h-400v-400h-300v400h-400z" />
|
||||
<glyph unicode=" " />
|
||||
<glyph unicode=" " horiz-adv-x="652" />
|
||||
<glyph unicode=" " horiz-adv-x="1304" />
|
||||
<glyph unicode=" " horiz-adv-x="652" />
|
||||
<glyph unicode=" " horiz-adv-x="1304" />
|
||||
<glyph unicode=" " horiz-adv-x="434" />
|
||||
<glyph unicode=" " horiz-adv-x="326" />
|
||||
<glyph unicode=" " horiz-adv-x="217" />
|
||||
<glyph unicode=" " horiz-adv-x="217" />
|
||||
<glyph unicode=" " horiz-adv-x="163" />
|
||||
<glyph unicode=" " horiz-adv-x="260" />
|
||||
<glyph unicode=" " horiz-adv-x="72" />
|
||||
<glyph unicode=" " horiz-adv-x="260" />
|
||||
<glyph unicode=" " horiz-adv-x="326" />
|
||||
<glyph unicode="€" d="M100 500l100 100h113q0 47 5 100h-218l100 100h135q37 167 112 257q117 141 297 141q242 0 354 -189q60 -103 66 -209h-181q0 55 -25.5 99t-63.5 68t-75 36.5t-67 12.5q-24 0 -52.5 -10t-62.5 -32t-65.5 -67t-50.5 -107h379l-100 -100h-300q-6 -46 -6 -100h406l-100 -100 h-300q9 -74 33 -132t52.5 -91t62 -54.5t59 -29t46.5 -7.5q29 0 66 13t75 37t63.5 67.5t25.5 96.5h174q-31 -172 -128 -278q-107 -117 -274 -117q-205 0 -324 158q-36 46 -69 131.5t-45 205.5h-217z" />
|
||||
<glyph unicode="−" d="M200 400h900v300h-900v-300z" />
|
||||
<glyph unicode="◼" horiz-adv-x="500" d="M0 0z" />
|
||||
<glyph unicode="☁" d="M-14 494q0 -80 56.5 -137t135.5 -57h750q120 0 205 86.5t85 207.5t-85 207t-205 86q-46 0 -90 -14q-44 97 -134.5 156.5t-200.5 59.5q-152 0 -260 -107.5t-108 -260.5q0 -25 2 -37q-66 -14 -108.5 -67.5t-42.5 -122.5z" />
|
||||
<glyph unicode="✉" d="M0 100l400 400l200 -200l200 200l400 -400h-1200zM0 300v600l300 -300zM0 1100l600 -603l600 603h-1200zM900 600l300 300v-600z" />
|
||||
<glyph unicode="✏" d="M-13 -13l333 112l-223 223zM187 403l214 -214l614 614l-214 214zM887 1103l214 -214l99 92q13 13 13 32.5t-13 33.5l-153 153q-15 13 -33 13t-33 -13z" />
|
||||
<glyph unicode="" d="M0 1200h1200l-500 -550v-550h300v-100h-800v100h300v550z" />
|
||||
<glyph unicode="" d="M14 84q18 -55 86 -75.5t147 5.5q65 21 109 69t44 90v606l600 155v-521q-64 16 -138 -7q-79 -26 -122.5 -83t-25.5 -111q18 -55 86 -75.5t147 4.5q70 23 111.5 63.5t41.5 95.5v881q0 10 -7 15.5t-17 2.5l-752 -193q-10 -3 -17 -12.5t-7 -19.5v-689q-64 17 -138 -7 q-79 -25 -122.5 -82t-25.5 -112z" />
|
||||
<glyph unicode="" d="M23 693q0 200 142 342t342 142t342 -142t142 -342q0 -142 -78 -261l300 -300q7 -8 7 -18t-7 -18l-109 -109q-8 -7 -18 -7t-18 7l-300 300q-119 -78 -261 -78q-200 0 -342 142t-142 342zM176 693q0 -136 97 -233t234 -97t233.5 96.5t96.5 233.5t-96.5 233.5t-233.5 96.5 t-234 -97t-97 -233z" />
|
||||
<glyph unicode="" d="M100 784q0 64 28 123t73 100.5t104.5 64t119 20.5t120 -38.5t104.5 -104.5q48 69 109.5 105t121.5 38t118.5 -20.5t102.5 -64t71 -100.5t27 -123q0 -57 -33.5 -117.5t-94 -124.5t-126.5 -127.5t-150 -152.5t-146 -174q-62 85 -145.5 174t-149.5 152.5t-126.5 127.5 t-94 124.5t-33.5 117.5z" />
|
||||
<glyph unicode="" d="M-72 800h479l146 400h2l146 -400h472l-382 -278l145 -449l-384 275l-382 -275l146 447zM168 71l2 1z" />
|
||||
<glyph unicode="" d="M-72 800h479l146 400h2l146 -400h472l-382 -278l145 -449l-384 275l-382 -275l146 447zM168 71l2 1zM237 700l196 -142l-73 -226l192 140l195 -141l-74 229l193 140h-235l-77 211l-78 -211h-239z" />
|
||||
<glyph unicode="" d="M0 0v143l400 257v100q-37 0 -68.5 74.5t-31.5 125.5v200q0 124 88 212t212 88t212 -88t88 -212v-200q0 -51 -31.5 -125.5t-68.5 -74.5v-100l400 -257v-143h-1200z" />
|
||||
<glyph unicode="" d="M0 0v1100h1200v-1100h-1200zM100 100h100v100h-100v-100zM100 300h100v100h-100v-100zM100 500h100v100h-100v-100zM100 700h100v100h-100v-100zM100 900h100v100h-100v-100zM300 100h600v400h-600v-400zM300 600h600v400h-600v-400zM1000 100h100v100h-100v-100z M1000 300h100v100h-100v-100zM1000 500h100v100h-100v-100zM1000 700h100v100h-100v-100zM1000 900h100v100h-100v-100z" />
|
||||
<glyph unicode="" d="M0 50v400q0 21 14.5 35.5t35.5 14.5h400q21 0 35.5 -14.5t14.5 -35.5v-400q0 -21 -14.5 -35.5t-35.5 -14.5h-400q-21 0 -35.5 14.5t-14.5 35.5zM0 650v400q0 21 14.5 35.5t35.5 14.5h400q21 0 35.5 -14.5t14.5 -35.5v-400q0 -21 -14.5 -35.5t-35.5 -14.5h-400 q-21 0 -35.5 14.5t-14.5 35.5zM600 50v400q0 21 14.5 35.5t35.5 14.5h400q21 0 35.5 -14.5t14.5 -35.5v-400q0 -21 -14.5 -35.5t-35.5 -14.5h-400q-21 0 -35.5 14.5t-14.5 35.5zM600 650v400q0 21 14.5 35.5t35.5 14.5h400q21 0 35.5 -14.5t14.5 -35.5v-400 q0 -21 -14.5 -35.5t-35.5 -14.5h-400q-21 0 -35.5 14.5t-14.5 35.5z" />
|
||||
<glyph unicode="" d="M0 50v200q0 21 14.5 35.5t35.5 14.5h200q21 0 35.5 -14.5t14.5 -35.5v-200q0 -21 -14.5 -35.5t-35.5 -14.5h-200q-21 0 -35.5 14.5t-14.5 35.5zM0 450v200q0 21 14.5 35.5t35.5 14.5h200q21 0 35.5 -14.5t14.5 -35.5v-200q0 -21 -14.5 -35.5t-35.5 -14.5h-200 q-21 0 -35.5 14.5t-14.5 35.5zM0 850v200q0 21 14.5 35.5t35.5 14.5h200q21 0 35.5 -14.5t14.5 -35.5v-200q0 -21 -14.5 -35.5t-35.5 -14.5h-200q-21 0 -35.5 14.5t-14.5 35.5zM400 50v200q0 21 14.5 35.5t35.5 14.5h200q21 0 35.5 -14.5t14.5 -35.5v-200q0 -21 -14.5 -35.5 t-35.5 -14.5h-200q-21 0 -35.5 14.5t-14.5 35.5zM400 450v200q0 21 14.5 35.5t35.5 14.5h200q21 0 35.5 -14.5t14.5 -35.5v-200q0 -21 -14.5 -35.5t-35.5 -14.5h-200q-21 0 -35.5 14.5t-14.5 35.5zM400 850v200q0 21 14.5 35.5t35.5 14.5h200q21 0 35.5 -14.5t14.5 -35.5 v-200q0 -21 -14.5 -35.5t-35.5 -14.5h-200q-21 0 -35.5 14.5t-14.5 35.5zM800 50v200q0 21 14.5 35.5t35.5 14.5h200q21 0 35.5 -14.5t14.5 -35.5v-200q0 -21 -14.5 -35.5t-35.5 -14.5h-200q-21 0 -35.5 14.5t-14.5 35.5zM800 450v200q0 21 14.5 35.5t35.5 14.5h200 q21 0 35.5 -14.5t14.5 -35.5v-200q0 -21 -14.5 -35.5t-35.5 -14.5h-200q-21 0 -35.5 14.5t-14.5 35.5zM800 850v200q0 21 14.5 35.5t35.5 14.5h200q21 0 35.5 -14.5t14.5 -35.5v-200q0 -21 -14.5 -35.5t-35.5 -14.5h-200q-21 0 -35.5 14.5t-14.5 35.5z" />
|
||||
<glyph unicode="" d="M0 50v200q0 21 14.5 35.5t35.5 14.5h200q21 0 35.5 -14.5t14.5 -35.5v-200q0 -21 -14.5 -35.5t-35.5 -14.5h-200q-21 0 -35.5 14.5t-14.5 35.5zM0 450q0 -21 14.5 -35.5t35.5 -14.5h200q21 0 35.5 14.5t14.5 35.5v200q0 21 -14.5 35.5t-35.5 14.5h-200q-21 0 -35.5 -14.5 t-14.5 -35.5v-200zM0 850v200q0 21 14.5 35.5t35.5 14.5h200q21 0 35.5 -14.5t14.5 -35.5v-200q0 -21 -14.5 -35.5t-35.5 -14.5h-200q-21 0 -35.5 14.5t-14.5 35.5zM400 50v200q0 21 14.5 35.5t35.5 14.5h700q21 0 35.5 -14.5t14.5 -35.5v-200q0 -21 -14.5 -35.5 t-35.5 -14.5h-700q-21 0 -35.5 14.5t-14.5 35.5zM400 450v200q0 21 14.5 35.5t35.5 14.5h700q21 0 35.5 -14.5t14.5 -35.5v-200q0 -21 -14.5 -35.5t-35.5 -14.5h-700q-21 0 -35.5 14.5t-14.5 35.5zM400 850v200q0 21 14.5 35.5t35.5 14.5h700q21 0 35.5 -14.5t14.5 -35.5 v-200q0 -21 -14.5 -35.5t-35.5 -14.5h-700q-21 0 -35.5 14.5t-14.5 35.5z" />
|
||||
<glyph unicode="" d="M29 454l419 -420l818 820l-212 212l-607 -607l-206 207z" />
|
||||
<glyph unicode="" d="M106 318l282 282l-282 282l212 212l282 -282l282 282l212 -212l-282 -282l282 -282l-212 -212l-282 282l-282 -282z" />
|
||||
<glyph unicode="" d="M23 693q0 200 142 342t342 142t342 -142t142 -342q0 -142 -78 -261l300 -300q7 -8 7 -18t-7 -18l-109 -109q-8 -7 -18 -7t-18 7l-300 300q-119 -78 -261 -78q-200 0 -342 142t-142 342zM176 693q0 -136 97 -233t234 -97t233.5 96.5t96.5 233.5t-96.5 233.5t-233.5 96.5 t-234 -97t-97 -233zM300 600v200h100v100h200v-100h100v-200h-100v-100h-200v100h-100z" />
|
||||
<glyph unicode="" d="M23 694q0 200 142 342t342 142t342 -142t142 -342q0 -141 -78 -262l300 -299q7 -7 7 -18t-7 -18l-109 -109q-8 -8 -18 -8t-18 8l-300 300q-119 -78 -261 -78q-200 0 -342 142t-142 342zM176 694q0 -136 97 -233t234 -97t233.5 97t96.5 233t-96.5 233t-233.5 97t-234 -97 t-97 -233zM300 601h400v200h-400v-200z" />
|
||||
<glyph unicode="" d="M23 600q0 183 105 331t272 210v-166q-103 -55 -165 -155t-62 -220q0 -177 125 -302t302 -125t302 125t125 302q0 120 -62 220t-165 155v166q167 -62 272 -210t105 -331q0 -118 -45.5 -224.5t-123 -184t-184 -123t-224.5 -45.5t-224.5 45.5t-184 123t-123 184t-45.5 224.5 zM500 750q0 -21 14.5 -35.5t35.5 -14.5h100q21 0 35.5 14.5t14.5 35.5v400q0 21 -14.5 35.5t-35.5 14.5h-100q-21 0 -35.5 -14.5t-14.5 -35.5v-400z" />
|
||||
<glyph unicode="" d="M100 1h200v300h-200v-300zM400 1v500h200v-500h-200zM700 1v800h200v-800h-200zM1000 1v1200h200v-1200h-200z" />
|
||||
<glyph unicode="" d="M26 601q0 -33 6 -74l151 -38l2 -6q14 -49 38 -93l3 -5l-80 -134q45 -59 105 -105l133 81l5 -3q45 -26 94 -39l5 -2l38 -151q40 -5 74 -5q27 0 74 5l38 151l6 2q46 13 93 39l5 3l134 -81q56 44 104 105l-80 134l3 5q24 44 39 93l1 6l152 38q5 40 5 74q0 28 -5 73l-152 38 l-1 6q-16 51 -39 93l-3 5l80 134q-44 58 -104 105l-134 -81l-5 3q-45 25 -93 39l-6 1l-38 152q-40 5 -74 5q-27 0 -74 -5l-38 -152l-5 -1q-50 -14 -94 -39l-5 -3l-133 81q-59 -47 -105 -105l80 -134l-3 -5q-25 -47 -38 -93l-2 -6l-151 -38q-6 -48 -6 -73zM385 601 q0 88 63 151t152 63t152 -63t63 -151q0 -89 -63 -152t-152 -63t-152 63t-63 152z" />
|
||||
<glyph unicode="" d="M100 1025v50q0 10 7.5 17.5t17.5 7.5h275v100q0 41 29.5 70.5t70.5 29.5h300q41 0 70.5 -29.5t29.5 -70.5v-100h275q10 0 17.5 -7.5t7.5 -17.5v-50q0 -11 -7 -18t-18 -7h-1050q-11 0 -18 7t-7 18zM200 100v800h900v-800q0 -41 -29.5 -71t-70.5 -30h-700q-41 0 -70.5 30 t-29.5 71zM300 100h100v700h-100v-700zM500 100h100v700h-100v-700zM500 1100h300v100h-300v-100zM700 100h100v700h-100v-700zM900 100h100v700h-100v-700z" />
|
||||
<glyph unicode="" d="M1 601l656 644l644 -644h-200v-600h-300v400h-300v-400h-300v600h-200z" />
|
||||
<glyph unicode="" d="M100 25v1150q0 11 7 18t18 7h475v-500h400v-675q0 -11 -7 -18t-18 -7h-850q-11 0 -18 7t-7 18zM700 800v300l300 -300h-300z" />
|
||||
<glyph unicode="" d="M4 600q0 162 80 299t217 217t299 80t299 -80t217 -217t80 -299t-80 -299t-217 -217t-299 -80t-299 80t-217 217t-80 299zM186 600q0 -171 121.5 -292.5t292.5 -121.5t292.5 121.5t121.5 292.5t-121.5 292.5t-292.5 121.5t-292.5 -121.5t-121.5 -292.5zM500 500v400h100 v-300h200v-100h-300z" />
|
||||
<glyph unicode="" d="M-100 0l431 1200h209l-21 -300h162l-20 300h208l431 -1200h-538l-41 400h-242l-40 -400h-539zM488 500h224l-27 300h-170z" />
|
||||
<glyph unicode="" d="M0 0v400h490l-290 300h200v500h300v-500h200l-290 -300h490v-400h-1100zM813 200h175v100h-175v-100z" />
|
||||
<glyph unicode="" d="M1 600q0 122 47.5 233t127.5 191t191 127.5t233 47.5t233 -47.5t191 -127.5t127.5 -191t47.5 -233t-47.5 -233t-127.5 -191t-191 -127.5t-233 -47.5t-233 47.5t-191 127.5t-127.5 191t-47.5 233zM188 600q0 -170 121 -291t291 -121t291 121t121 291t-121 291t-291 121 t-291 -121t-121 -291zM350 600h150v300h200v-300h150l-250 -300z" />
|
||||
<glyph unicode="" d="M4 600q0 162 80 299t217 217t299 80t299 -80t217 -217t80 -299t-80 -299t-217 -217t-299 -80t-299 80t-217 217t-80 299zM186 600q0 -171 121.5 -292.5t292.5 -121.5t292.5 121.5t121.5 292.5t-121.5 292.5t-292.5 121.5t-292.5 -121.5t-121.5 -292.5zM350 600l250 300 l250 -300h-150v-300h-200v300h-150z" />
|
||||
<glyph unicode="" d="M0 25v475l200 700h800l199 -700l1 -475q0 -11 -7 -18t-18 -7h-1150q-11 0 -18 7t-7 18zM200 500h200l50 -200h300l50 200h200l-97 500h-606z" />
|
||||
<glyph unicode="" d="M4 600q0 162 80 299t217 217t299 80t299 -80t217 -217t80 -299t-80 -299t-217 -217t-299 -80t-299 80t-217 217t-80 299zM186 600q0 -172 121.5 -293t292.5 -121t292.5 121t121.5 293q0 171 -121.5 292.5t-292.5 121.5t-292.5 -121.5t-121.5 -292.5zM500 397v401 l297 -200z" />
|
||||
<glyph unicode="" d="M23 600q0 -118 45.5 -224.5t123 -184t184 -123t224.5 -45.5t224.5 45.5t184 123t123 184t45.5 224.5h-150q0 -177 -125 -302t-302 -125t-302 125t-125 302t125 302t302 125q136 0 246 -81l-146 -146h400v400l-145 -145q-157 122 -355 122q-118 0 -224.5 -45.5t-184 -123 t-123 -184t-45.5 -224.5z" />
|
||||
<glyph unicode="" d="M23 600q0 118 45.5 224.5t123 184t184 123t224.5 45.5q198 0 355 -122l145 145v-400h-400l147 147q-112 80 -247 80q-177 0 -302 -125t-125 -302h-150zM100 0v400h400l-147 -147q112 -80 247 -80q177 0 302 125t125 302h150q0 -118 -45.5 -224.5t-123 -184t-184 -123 t-224.5 -45.5q-198 0 -355 122z" />
|
||||
<glyph unicode="" d="M100 0h1100v1200h-1100v-1200zM200 100v900h900v-900h-900zM300 200v100h100v-100h-100zM300 400v100h100v-100h-100zM300 600v100h100v-100h-100zM300 800v100h100v-100h-100zM500 200h500v100h-500v-100zM500 400v100h500v-100h-500zM500 600v100h500v-100h-500z M500 800v100h500v-100h-500z" />
|
||||
<glyph unicode="" d="M0 100v600q0 41 29.5 70.5t70.5 29.5h100v200q0 82 59 141t141 59h300q82 0 141 -59t59 -141v-200h100q41 0 70.5 -29.5t29.5 -70.5v-600q0 -41 -29.5 -70.5t-70.5 -29.5h-900q-41 0 -70.5 29.5t-29.5 70.5zM400 800h300v150q0 21 -14.5 35.5t-35.5 14.5h-200 q-21 0 -35.5 -14.5t-14.5 -35.5v-150z" />
|
||||
<glyph unicode="" d="M100 0v1100h100v-1100h-100zM300 400q60 60 127.5 84t127.5 17.5t122 -23t119 -30t110 -11t103 42t91 120.5v500q-40 -81 -101.5 -115.5t-127.5 -29.5t-138 25t-139.5 40t-125.5 25t-103 -29.5t-65 -115.5v-500z" />
|
||||
<glyph unicode="" d="M0 275q0 -11 7 -18t18 -7h50q11 0 18 7t7 18v300q0 127 70.5 231.5t184.5 161.5t245 57t245 -57t184.5 -161.5t70.5 -231.5v-300q0 -11 7 -18t18 -7h50q11 0 18 7t7 18v300q0 116 -49.5 227t-131 192.5t-192.5 131t-227 49.5t-227 -49.5t-192.5 -131t-131 -192.5 t-49.5 -227v-300zM200 20v460q0 8 6 14t14 6h160q8 0 14 -6t6 -14v-460q0 -8 -6 -14t-14 -6h-160q-8 0 -14 6t-6 14zM800 20v460q0 8 6 14t14 6h160q8 0 14 -6t6 -14v-460q0 -8 -6 -14t-14 -6h-160q-8 0 -14 6t-6 14z" />
|
||||
<glyph unicode="" d="M0 400h300l300 -200v800l-300 -200h-300v-400zM688 459l141 141l-141 141l71 71l141 -141l141 141l71 -71l-141 -141l141 -141l-71 -71l-141 141l-141 -141z" />
|
||||
<glyph unicode="" d="M0 400h300l300 -200v800l-300 -200h-300v-400zM700 857l69 53q111 -135 111 -310q0 -169 -106 -302l-67 54q86 110 86 248q0 146 -93 257z" />
|
||||
<glyph unicode="" d="M0 401v400h300l300 200v-800l-300 200h-300zM702 858l69 53q111 -135 111 -310q0 -170 -106 -303l-67 55q86 110 86 248q0 145 -93 257zM889 951l7 -8q123 -151 123 -344q0 -189 -119 -339l-7 -8l81 -66l6 8q142 178 142 405q0 230 -144 408l-6 8z" />
|
||||
<glyph unicode="" d="M0 0h500v500h-200v100h-100v-100h-200v-500zM0 600h100v100h400v100h100v100h-100v300h-500v-600zM100 100v300h300v-300h-300zM100 800v300h300v-300h-300zM200 200v100h100v-100h-100zM200 900h100v100h-100v-100zM500 500v100h300v-300h200v-100h-100v-100h-200v100 h-100v100h100v200h-200zM600 0v100h100v-100h-100zM600 1000h100v-300h200v-300h300v200h-200v100h200v500h-600v-200zM800 800v300h300v-300h-300zM900 0v100h300v-100h-300zM900 900v100h100v-100h-100zM1100 200v100h100v-100h-100z" />
|
||||
<glyph unicode="" d="M0 200h100v1000h-100v-1000zM100 0v100h300v-100h-300zM200 200v1000h100v-1000h-100zM500 0v91h100v-91h-100zM500 200v1000h200v-1000h-200zM700 0v91h100v-91h-100zM800 200v1000h100v-1000h-100zM900 0v91h200v-91h-200zM1000 200v1000h200v-1000h-200z" />
|
||||
<glyph unicode="" d="M0 700l1 475q0 10 7.5 17.5t17.5 7.5h474l700 -700l-500 -500zM148 953q0 -42 29 -71q30 -30 71.5 -30t71.5 30q29 29 29 71t-29 71q-30 30 -71.5 30t-71.5 -30q-29 -29 -29 -71z" />
|
||||
<glyph unicode="" d="M1 700l1 475q0 11 7 18t18 7h474l700 -700l-500 -500zM148 953q0 -42 30 -71q29 -30 71 -30t71 30q30 29 30 71t-30 71q-29 30 -71 30t-71 -30q-30 -29 -30 -71zM701 1200h100l700 -700l-500 -500l-50 50l450 450z" />
|
||||
<glyph unicode="" d="M100 0v1025l175 175h925v-1000l-100 -100v1000h-750l-100 -100h750v-1000h-900z" />
|
||||
<glyph unicode="" d="M200 0l450 444l450 -443v1150q0 20 -14.5 35t-35.5 15h-800q-21 0 -35.5 -15t-14.5 -35v-1151z" />
|
||||
<glyph unicode="" d="M0 100v700h200l100 -200h600l100 200h200v-700h-200v200h-800v-200h-200zM253 829l40 -124h592l62 124l-94 346q-2 11 -10 18t-18 7h-450q-10 0 -18 -7t-10 -18zM281 24l38 152q2 10 11.5 17t19.5 7h500q10 0 19.5 -7t11.5 -17l38 -152q2 -10 -3.5 -17t-15.5 -7h-600 q-10 0 -15.5 7t-3.5 17z" />
|
||||
<glyph unicode="" d="M0 200q0 -41 29.5 -70.5t70.5 -29.5h1000q41 0 70.5 29.5t29.5 70.5v600q0 41 -29.5 70.5t-70.5 29.5h-150q-4 8 -11.5 21.5t-33 48t-53 61t-69 48t-83.5 21.5h-200q-41 0 -82 -20.5t-70 -50t-52 -59t-34 -50.5l-12 -20h-150q-41 0 -70.5 -29.5t-29.5 -70.5v-600z M356 500q0 100 72 172t172 72t172 -72t72 -172t-72 -172t-172 -72t-172 72t-72 172zM494 500q0 -44 31 -75t75 -31t75 31t31 75t-31 75t-75 31t-75 -31t-31 -75zM900 700v100h100v-100h-100z" />
|
||||
<glyph unicode="" d="M53 0h365v66q-41 0 -72 11t-49 38t1 71l92 234h391l82 -222q16 -45 -5.5 -88.5t-74.5 -43.5v-66h417v66q-34 1 -74 43q-18 19 -33 42t-21 37l-6 13l-385 998h-93l-399 -1006q-24 -48 -52 -75q-12 -12 -33 -25t-36 -20l-15 -7v-66zM416 521l178 457l46 -140l116 -317h-340 z" />
|
||||
<glyph unicode="" d="M100 0v89q41 7 70.5 32.5t29.5 65.5v827q0 28 -1 39.5t-5.5 26t-15.5 21t-29 14t-49 14.5v71l471 -1q120 0 213 -88t93 -228q0 -55 -11.5 -101.5t-28 -74t-33.5 -47.5t-28 -28l-12 -7q8 -3 21.5 -9t48 -31.5t60.5 -58t47.5 -91.5t21.5 -129q0 -84 -59 -156.5t-142 -111 t-162 -38.5h-500zM400 200h161q89 0 153 48.5t64 132.5q0 90 -62.5 154.5t-156.5 64.5h-159v-400zM400 700h139q76 0 130 61.5t54 138.5q0 82 -84 130.5t-239 48.5v-379z" />
|
||||
<glyph unicode="" d="M200 0v57q77 7 134.5 40.5t65.5 80.5l173 849q10 56 -10 74t-91 37q-6 1 -10.5 2.5t-9.5 2.5v57h425l2 -57q-33 -8 -62 -25.5t-46 -37t-29.5 -38t-17.5 -30.5l-5 -12l-128 -825q-10 -52 14 -82t95 -36v-57h-500z" />
|
||||
<glyph unicode="" d="M-75 200h75v800h-75l125 167l125 -167h-75v-800h75l-125 -167zM300 900v300h150h700h150v-300h-50q0 29 -8 48.5t-18.5 30t-33.5 15t-39.5 5.5t-50.5 1h-200v-850l100 -50v-100h-400v100l100 50v850h-200q-34 0 -50.5 -1t-40 -5.5t-33.5 -15t-18.5 -30t-8.5 -48.5h-49z " />
|
||||
<glyph unicode="" d="M33 51l167 125v-75h800v75l167 -125l-167 -125v75h-800v-75zM100 901v300h150h700h150v-300h-50q0 29 -8 48.5t-18 30t-33.5 15t-40 5.5t-50.5 1h-200v-650l100 -50v-100h-400v100l100 50v650h-200q-34 0 -50.5 -1t-39.5 -5.5t-33.5 -15t-18.5 -30t-8 -48.5h-50z" />
|
||||
<glyph unicode="" d="M0 50q0 -20 14.5 -35t35.5 -15h1100q21 0 35.5 15t14.5 35v100q0 21 -14.5 35.5t-35.5 14.5h-1100q-21 0 -35.5 -14.5t-14.5 -35.5v-100zM0 350q0 -20 14.5 -35t35.5 -15h800q21 0 35.5 15t14.5 35v100q0 21 -14.5 35.5t-35.5 14.5h-800q-21 0 -35.5 -14.5t-14.5 -35.5 v-100zM0 650q0 -20 14.5 -35t35.5 -15h1000q21 0 35.5 15t14.5 35v100q0 21 -14.5 35.5t-35.5 14.5h-1000q-21 0 -35.5 -14.5t-14.5 -35.5v-100zM0 950q0 -20 14.5 -35t35.5 -15h600q21 0 35.5 15t14.5 35v100q0 21 -14.5 35.5t-35.5 14.5h-600q-21 0 -35.5 -14.5 t-14.5 -35.5v-100z" />
|
||||
<glyph unicode="" d="M0 50q0 -20 14.5 -35t35.5 -15h1100q21 0 35.5 15t14.5 35v100q0 21 -14.5 35.5t-35.5 14.5h-1100q-21 0 -35.5 -14.5t-14.5 -35.5v-100zM0 650q0 -20 14.5 -35t35.5 -15h1100q21 0 35.5 15t14.5 35v100q0 21 -14.5 35.5t-35.5 14.5h-1100q-21 0 -35.5 -14.5t-14.5 -35.5 v-100zM200 350q0 -20 14.5 -35t35.5 -15h700q21 0 35.5 15t14.5 35v100q0 21 -14.5 35.5t-35.5 14.5h-700q-21 0 -35.5 -14.5t-14.5 -35.5v-100zM200 950q0 -20 14.5 -35t35.5 -15h700q21 0 35.5 15t14.5 35v100q0 21 -14.5 35.5t-35.5 14.5h-700q-21 0 -35.5 -14.5 t-14.5 -35.5v-100z" />
|
||||
<glyph unicode="" d="M0 50v100q0 21 14.5 35.5t35.5 14.5h1100q21 0 35.5 -14.5t14.5 -35.5v-100q0 -20 -14.5 -35t-35.5 -15h-1100q-21 0 -35.5 15t-14.5 35zM100 650v100q0 21 14.5 35.5t35.5 14.5h1000q21 0 35.5 -14.5t14.5 -35.5v-100q0 -20 -14.5 -35t-35.5 -15h-1000q-21 0 -35.5 15 t-14.5 35zM300 350v100q0 21 14.5 35.5t35.5 14.5h800q21 0 35.5 -14.5t14.5 -35.5v-100q0 -20 -14.5 -35t-35.5 -15h-800q-21 0 -35.5 15t-14.5 35zM500 950v100q0 21 14.5 35.5t35.5 14.5h600q21 0 35.5 -14.5t14.5 -35.5v-100q0 -20 -14.5 -35t-35.5 -15h-600 q-21 0 -35.5 15t-14.5 35z" />
|
||||
<glyph unicode="" d="M0 50v100q0 21 14.5 35.5t35.5 14.5h1100q21 0 35.5 -14.5t14.5 -35.5v-100q0 -20 -14.5 -35t-35.5 -15h-1100q-21 0 -35.5 15t-14.5 35zM0 350v100q0 21 14.5 35.5t35.5 14.5h1100q21 0 35.5 -14.5t14.5 -35.5v-100q0 -20 -14.5 -35t-35.5 -15h-1100q-21 0 -35.5 15 t-14.5 35zM0 650v100q0 21 14.5 35.5t35.5 14.5h1100q21 0 35.5 -14.5t14.5 -35.5v-100q0 -20 -14.5 -35t-35.5 -15h-1100q-21 0 -35.5 15t-14.5 35zM0 950v100q0 21 14.5 35.5t35.5 14.5h1100q21 0 35.5 -14.5t14.5 -35.5v-100q0 -20 -14.5 -35t-35.5 -15h-1100 q-21 0 -35.5 15t-14.5 35z" />
|
||||
<glyph unicode="" d="M0 50v100q0 21 14.5 35.5t35.5 14.5h100q21 0 35.5 -14.5t14.5 -35.5v-100q0 -20 -14.5 -35t-35.5 -15h-100q-21 0 -35.5 15t-14.5 35zM0 350v100q0 21 14.5 35.5t35.5 14.5h100q21 0 35.5 -14.5t14.5 -35.5v-100q0 -20 -14.5 -35t-35.5 -15h-100q-21 0 -35.5 15 t-14.5 35zM0 650v100q0 21 14.5 35.5t35.5 14.5h100q21 0 35.5 -14.5t14.5 -35.5v-100q0 -20 -14.5 -35t-35.5 -15h-100q-21 0 -35.5 15t-14.5 35zM0 950v100q0 21 14.5 35.5t35.5 14.5h100q21 0 35.5 -14.5t14.5 -35.5v-100q0 -20 -14.5 -35t-35.5 -15h-100q-21 0 -35.5 15 t-14.5 35zM300 50v100q0 21 14.5 35.5t35.5 14.5h800q21 0 35.5 -14.5t14.5 -35.5v-100q0 -20 -14.5 -35t-35.5 -15h-800q-21 0 -35.5 15t-14.5 35zM300 350v100q0 21 14.5 35.5t35.5 14.5h800q21 0 35.5 -14.5t14.5 -35.5v-100q0 -20 -14.5 -35t-35.5 -15h-800 q-21 0 -35.5 15t-14.5 35zM300 650v100q0 21 14.5 35.5t35.5 14.5h800q21 0 35.5 -14.5t14.5 -35.5v-100q0 -20 -14.5 -35t-35.5 -15h-800q-21 0 -35.5 15t-14.5 35zM300 950v100q0 21 14.5 35.5t35.5 14.5h800q21 0 35.5 -14.5t14.5 -35.5v-100q0 -20 -14.5 -35t-35.5 -15 h-800q-21 0 -35.5 15t-14.5 35z" />
|
||||
<glyph unicode="" d="M-101 500v100h201v75l166 -125l-166 -125v75h-201zM300 0h100v1100h-100v-1100zM500 50q0 -20 14.5 -35t35.5 -15h600q20 0 35 15t15 35v100q0 21 -15 35.5t-35 14.5h-600q-21 0 -35.5 -14.5t-14.5 -35.5v-100zM500 350q0 -20 14.5 -35t35.5 -15h300q20 0 35 15t15 35 v100q0 21 -15 35.5t-35 14.5h-300q-21 0 -35.5 -14.5t-14.5 -35.5v-100zM500 650q0 -20 14.5 -35t35.5 -15h500q20 0 35 15t15 35v100q0 21 -15 35.5t-35 14.5h-500q-21 0 -35.5 -14.5t-14.5 -35.5v-100zM500 950q0 -20 14.5 -35t35.5 -15h100q20 0 35 15t15 35v100 q0 21 -15 35.5t-35 14.5h-100q-21 0 -35.5 -14.5t-14.5 -35.5v-100z" />
|
||||
<glyph unicode="" d="M1 50q0 -20 14.5 -35t35.5 -15h600q20 0 35 15t15 35v100q0 21 -15 35.5t-35 14.5h-600q-21 0 -35.5 -14.5t-14.5 -35.5v-100zM1 350q0 -20 14.5 -35t35.5 -15h300q20 0 35 15t15 35v100q0 21 -15 35.5t-35 14.5h-300q-21 0 -35.5 -14.5t-14.5 -35.5v-100zM1 650 q0 -20 14.5 -35t35.5 -15h500q20 0 35 15t15 35v100q0 21 -15 35.5t-35 14.5h-500q-21 0 -35.5 -14.5t-14.5 -35.5v-100zM1 950q0 -20 14.5 -35t35.5 -15h100q20 0 35 15t15 35v100q0 21 -15 35.5t-35 14.5h-100q-21 0 -35.5 -14.5t-14.5 -35.5v-100zM801 0v1100h100v-1100 h-100zM934 550l167 -125v75h200v100h-200v75z" />
|
||||
<glyph unicode="" d="M0 275v650q0 31 22 53t53 22h750q31 0 53 -22t22 -53v-650q0 -31 -22 -53t-53 -22h-750q-31 0 -53 22t-22 53zM900 600l300 300v-600z" />
|
||||
<glyph unicode="" d="M0 44v1012q0 18 13 31t31 13h1112q19 0 31.5 -13t12.5 -31v-1012q0 -18 -12.5 -31t-31.5 -13h-1112q-18 0 -31 13t-13 31zM100 263l247 182l298 -131l-74 156l293 318l236 -288v500h-1000v-737zM208 750q0 56 39 95t95 39t95 -39t39 -95t-39 -95t-95 -39t-95 39t-39 95z " />
|
||||
<glyph unicode="" d="M148 745q0 124 60.5 231.5t165 172t226.5 64.5q123 0 227 -63t164.5 -169.5t60.5 -229.5t-73 -272q-73 -114 -166.5 -237t-150.5 -189l-57 -66q-10 9 -27 26t-66.5 70.5t-96 109t-104 135.5t-100.5 155q-63 139 -63 262zM342 772q0 -107 75.5 -182.5t181.5 -75.5 q107 0 182.5 75.5t75.5 182.5t-75.5 182t-182.5 75t-182 -75.5t-75 -181.5z" />
|
||||
<glyph unicode="" d="M1 600q0 122 47.5 233t127.5 191t191 127.5t233 47.5t233 -47.5t191 -127.5t127.5 -191t47.5 -233t-47.5 -233t-127.5 -191t-191 -127.5t-233 -47.5t-233 47.5t-191 127.5t-127.5 191t-47.5 233zM173 600q0 -177 125.5 -302t301.5 -125v854q-176 0 -301.5 -125 t-125.5 -302z" />
|
||||
<glyph unicode="" d="M117 406q0 94 34 186t88.5 172.5t112 159t115 177t87.5 194.5q21 -71 57.5 -142.5t76 -130.5t83 -118.5t82 -117t70 -116t50 -125.5t18.5 -136q0 -89 -39 -165.5t-102 -126.5t-140 -79.5t-156 -33.5q-114 6 -211.5 53t-161.5 139t-64 210zM243 414q14 -82 59.5 -136 t136.5 -80l16 98q-7 6 -18 17t-34 48t-33 77q-15 73 -14 143.5t10 122.5l9 51q-92 -110 -119.5 -185t-12.5 -156z" />
|
||||
<glyph unicode="" d="M0 400v300q0 165 117.5 282.5t282.5 117.5q366 -6 397 -14l-186 -186h-311q-41 0 -70.5 -29.5t-29.5 -70.5v-500q0 -41 29.5 -70.5t70.5 -29.5h500q41 0 70.5 29.5t29.5 70.5v125l200 200v-225q0 -165 -117.5 -282.5t-282.5 -117.5h-300q-165 0 -282.5 117.5 t-117.5 282.5zM436 341l161 50l412 412l-114 113l-405 -405zM995 1015l113 -113l113 113l-21 85l-92 28z" />
|
||||
<glyph unicode="" d="M0 400v300q0 165 117.5 282.5t282.5 117.5h261l2 -80q-133 -32 -218 -120h-145q-41 0 -70.5 -29.5t-29.5 -70.5v-500q0 -41 29.5 -70.5t70.5 -29.5h500q41 0 70.5 29.5t29.5 70.5l200 153v-53q0 -165 -117.5 -282.5t-282.5 -117.5h-300q-165 0 -282.5 117.5t-117.5 282.5 zM423 524q30 38 81.5 64t103 35.5t99 14t77.5 3.5l29 -1v-209l360 324l-359 318v-216q-7 0 -19 -1t-48 -8t-69.5 -18.5t-76.5 -37t-76.5 -59t-62 -88t-39.5 -121.5z" />
|
||||
<glyph unicode="" d="M0 400v300q0 165 117.5 282.5t282.5 117.5h300q61 0 127 -23l-178 -177h-349q-41 0 -70.5 -29.5t-29.5 -70.5v-500q0 -41 29.5 -70.5t70.5 -29.5h500q41 0 70.5 29.5t29.5 70.5v69l200 200v-169q0 -165 -117.5 -282.5t-282.5 -117.5h-300q-165 0 -282.5 117.5 t-117.5 282.5zM342 632l283 -284l567 567l-137 137l-430 -431l-146 147z" />
|
||||
<glyph unicode="" d="M0 603l300 296v-198h200v200h-200l300 300l295 -300h-195v-200h200v198l300 -296l-300 -300v198h-200v-200h195l-295 -300l-300 300h200v200h-200v-198z" />
|
||||
<glyph unicode="" d="M200 50v1000q0 21 14.5 35.5t35.5 14.5h100q21 0 35.5 -14.5t14.5 -35.5v-437l500 487v-1100l-500 488v-438q0 -21 -14.5 -35.5t-35.5 -14.5h-100q-21 0 -35.5 14.5t-14.5 35.5z" />
|
||||
<glyph unicode="" d="M0 50v1000q0 21 14.5 35.5t35.5 14.5h100q21 0 35.5 -14.5t14.5 -35.5v-437l500 487v-487l500 487v-1100l-500 488v-488l-500 488v-438q0 -21 -14.5 -35.5t-35.5 -14.5h-100q-21 0 -35.5 14.5t-14.5 35.5z" />
|
||||
<glyph unicode="" d="M136 550l564 550v-487l500 487v-1100l-500 488v-488z" />
|
||||
<glyph unicode="" d="M200 0l900 550l-900 550v-1100z" />
|
||||
<glyph unicode="" d="M200 150q0 -21 14.5 -35.5t35.5 -14.5h200q21 0 35.5 14.5t14.5 35.5v800q0 21 -14.5 35.5t-35.5 14.5h-200q-21 0 -35.5 -14.5t-14.5 -35.5v-800zM600 150q0 -21 14.5 -35.5t35.5 -14.5h200q21 0 35.5 14.5t14.5 35.5v800q0 21 -14.5 35.5t-35.5 14.5h-200 q-21 0 -35.5 -14.5t-14.5 -35.5v-800z" />
|
||||
<glyph unicode="" d="M200 150q0 -20 14.5 -35t35.5 -15h800q21 0 35.5 15t14.5 35v800q0 21 -14.5 35.5t-35.5 14.5h-800q-21 0 -35.5 -14.5t-14.5 -35.5v-800z" />
|
||||
<glyph unicode="" d="M0 0v1100l500 -487v487l564 -550l-564 -550v488z" />
|
||||
<glyph unicode="" d="M0 0v1100l500 -487v487l500 -487v437q0 21 14.5 35.5t35.5 14.5h100q21 0 35.5 -14.5t14.5 -35.5v-1000q0 -21 -14.5 -35.5t-35.5 -14.5h-100q-21 0 -35.5 14.5t-14.5 35.5v438l-500 -488v488z" />
|
||||
<glyph unicode="" d="M300 0v1100l500 -487v437q0 21 14.5 35.5t35.5 14.5h100q21 0 35.5 -14.5t14.5 -35.5v-1000q0 -21 -14.5 -35.5t-35.5 -14.5h-100q-21 0 -35.5 14.5t-14.5 35.5v438z" />
|
||||
<glyph unicode="" d="M100 250v100q0 21 14.5 35.5t35.5 14.5h1000q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-1000q-21 0 -35.5 14.5t-14.5 35.5zM100 500h1100l-550 564z" />
|
||||
<glyph unicode="" d="M185 599l592 -592l240 240l-353 353l353 353l-240 240z" />
|
||||
<glyph unicode="" d="M272 194l353 353l-353 353l241 240l572 -571l21 -22l-1 -1v-1l-592 -591z" />
|
||||
<glyph unicode="" d="M3 600q0 162 80 299.5t217.5 217.5t299.5 80t299.5 -80t217.5 -217.5t80 -299.5t-80 -299.5t-217.5 -217.5t-299.5 -80t-299.5 80t-217.5 217.5t-80 299.5zM300 500h200v-200h200v200h200v200h-200v200h-200v-200h-200v-200z" />
|
||||
<glyph unicode="" d="M3 600q0 162 80 299.5t217.5 217.5t299.5 80t299.5 -80t217.5 -217.5t80 -299.5t-80 -299.5t-217.5 -217.5t-299.5 -80t-299.5 80t-217.5 217.5t-80 299.5zM300 500h600v200h-600v-200z" />
|
||||
<glyph unicode="" d="M3 600q0 162 80 299.5t217.5 217.5t299.5 80t299.5 -80t217.5 -217.5t80 -299.5t-80 -299.5t-217.5 -217.5t-299.5 -80t-299.5 80t-217.5 217.5t-80 299.5zM246 459l213 -213l141 142l141 -142l213 213l-142 141l142 141l-213 212l-141 -141l-141 142l-212 -213l141 -141 z" />
|
||||
<glyph unicode="" d="M3 600q0 162 80 299.5t217.5 217.5t299.5 80t299.5 -80t217.5 -217.5t80 -299.5t-80 -299.5t-217.5 -217.5t-299.5 -80t-299.5 80t-217.5 217.5t-80 299.5zM270 551l276 -277l411 411l-175 174l-236 -236l-102 102z" />
|
||||
<glyph unicode="" d="M3 600q0 162 80 299.5t217.5 217.5t299.5 80t299.5 -80t217.5 -217.5t80 -299.5t-80 -299.5t-217.5 -217.5t-299.5 -80t-299.5 80t-217.5 217.5t-80 299.5zM364 700h143q4 0 11.5 -1t11 -1t6.5 3t3 9t1 11t3.5 8.5t3.5 6t5.5 4t6.5 2.5t9 1.5t9 0.5h11.5h12.5 q19 0 30 -10t11 -26q0 -22 -4 -28t-27 -22q-5 -1 -12.5 -3t-27 -13.5t-34 -27t-26.5 -46t-11 -68.5h200q5 3 14 8t31.5 25.5t39.5 45.5t31 69t14 94q0 51 -17.5 89t-42 58t-58.5 32t-58.5 15t-51.5 3q-50 0 -90.5 -12t-75 -38.5t-53.5 -74.5t-19 -114zM500 300h200v100h-200 v-100z" />
|
||||
<glyph unicode="" d="M3 600q0 162 80 299.5t217.5 217.5t299.5 80t299.5 -80t217.5 -217.5t80 -299.5t-80 -299.5t-217.5 -217.5t-299.5 -80t-299.5 80t-217.5 217.5t-80 299.5zM400 300h400v100h-100v300h-300v-100h100v-200h-100v-100zM500 800h200v100h-200v-100z" />
|
||||
<glyph unicode="" d="M0 500v200h195q31 125 98.5 199.5t206.5 100.5v200h200v-200q54 -20 113 -60t112.5 -105.5t71.5 -134.5h203v-200h-203q-25 -102 -116.5 -186t-180.5 -117v-197h-200v197q-140 27 -208 102.5t-98 200.5h-194zM290 500q24 -73 79.5 -127.5t130.5 -78.5v206h200v-206 q149 48 201 206h-201v200h200q-25 74 -75.5 127t-124.5 77v-204h-200v203q-75 -23 -130 -77t-79 -126h209v-200h-210z" />
|
||||
<glyph unicode="" d="M4 600q0 162 80 299t217 217t299 80t299 -80t217 -217t80 -299t-80 -299t-217 -217t-299 -80t-299 80t-217 217t-80 299zM186 600q0 -171 121.5 -292.5t292.5 -121.5t292.5 121.5t121.5 292.5t-121.5 292.5t-292.5 121.5t-292.5 -121.5t-121.5 -292.5zM356 465l135 135 l-135 135l109 109l135 -135l135 135l109 -109l-135 -135l135 -135l-109 -109l-135 135l-135 -135z" />
|
||||
<glyph unicode="" d="M4 600q0 162 80 299t217 217t299 80t299 -80t217 -217t80 -299t-80 -299t-217 -217t-299 -80t-299 80t-217 217t-80 299zM186 600q0 -171 121.5 -292.5t292.5 -121.5t292.5 121.5t121.5 292.5t-121.5 292.5t-292.5 121.5t-292.5 -121.5t-121.5 -292.5zM322 537l141 141 l87 -87l204 205l142 -142l-346 -345z" />
|
||||
<glyph unicode="" d="M4 600q0 162 80 299t217 217t299 80t299 -80t217 -217t80 -299t-80 -299t-217 -217t-299 -80t-299 80t-217 217t-80 299zM186 600q0 -115 62 -215l568 567q-100 62 -216 62q-171 0 -292.5 -121.5t-121.5 -292.5zM391 245q97 -59 209 -59q171 0 292.5 121.5t121.5 292.5 q0 112 -59 209z" />
|
||||
<glyph unicode="" d="M0 547l600 453v-300h600v-300h-600v-301z" />
|
||||
<glyph unicode="" d="M0 400v300h600v300l600 -453l-600 -448v301h-600z" />
|
||||
<glyph unicode="" d="M204 600l450 600l444 -600h-298v-600h-300v600h-296z" />
|
||||
<glyph unicode="" d="M104 600h296v600h300v-600h298l-449 -600z" />
|
||||
<glyph unicode="" d="M0 200q6 132 41 238.5t103.5 193t184 138t271.5 59.5v271l600 -453l-600 -448v301q-95 -2 -183 -20t-170 -52t-147 -92.5t-100 -135.5z" />
|
||||
<glyph unicode="" d="M0 0v400l129 -129l294 294l142 -142l-294 -294l129 -129h-400zM635 777l142 -142l294 294l129 -129v400h-400l129 -129z" />
|
||||
<glyph unicode="" d="M34 176l295 295l-129 129h400v-400l-129 130l-295 -295zM600 600v400l129 -129l295 295l142 -141l-295 -295l129 -130h-400z" />
|
||||
<glyph unicode="" d="M23 600q0 118 45.5 224.5t123 184t184 123t224.5 45.5t224.5 -45.5t184 -123t123 -184t45.5 -224.5t-45.5 -224.5t-123 -184t-184 -123t-224.5 -45.5t-224.5 45.5t-184 123t-123 184t-45.5 224.5zM456 851l58 -302q4 -20 21.5 -34.5t37.5 -14.5h54q20 0 37.5 14.5 t21.5 34.5l58 302q4 20 -8 34.5t-32 14.5h-207q-21 0 -33 -14.5t-8 -34.5zM500 300h200v100h-200v-100z" />
|
||||
<glyph unicode="" d="M0 800h100v-200h400v300h200v-300h400v200h100v100h-111q1 1 1 6.5t-1.5 15t-3.5 17.5l-34 172q-11 39 -41.5 63t-69.5 24q-32 0 -61 -17l-239 -144q-22 -13 -40 -35q-19 24 -40 36l-238 144q-33 18 -62 18q-39 0 -69.5 -23t-40.5 -61l-35 -177q-2 -8 -3 -18t-1 -15v-6 h-111v-100zM100 0h400v400h-400v-400zM200 900q-3 0 14 48t36 96l18 47l213 -191h-281zM700 0v400h400v-400h-400zM731 900l202 197q5 -12 12 -32.5t23 -64t25 -72t7 -28.5h-269z" />
|
||||
<glyph unicode="" d="M0 -22v143l216 193q-9 53 -13 83t-5.5 94t9 113t38.5 114t74 124q47 60 99.5 102.5t103 68t127.5 48t145.5 37.5t184.5 43.5t220 58.5q0 -189 -22 -343t-59 -258t-89 -181.5t-108.5 -120t-122 -68t-125.5 -30t-121.5 -1.5t-107.5 12.5t-87.5 17t-56.5 7.5l-99 -55z M238.5 300.5q19.5 -6.5 86.5 76.5q55 66 367 234q70 38 118.5 69.5t102 79t99 111.5t86.5 148q22 50 24 60t-6 19q-7 5 -17 5t-26.5 -14.5t-33.5 -39.5q-35 -51 -113.5 -108.5t-139.5 -89.5l-61 -32q-369 -197 -458 -401q-48 -111 -28.5 -117.5z" />
|
||||
<glyph unicode="" d="M111 408q0 -33 5 -63q9 -56 44 -119.5t105 -108.5q31 -21 64 -16t62 23.5t57 49.5t48 61.5t35 60.5q32 66 39 184.5t-13 157.5q79 -80 122 -164t26 -184q-5 -33 -20.5 -69.5t-37.5 -80.5q-10 -19 -14.5 -29t-12 -26t-9 -23.5t-3 -19t2.5 -15.5t11 -9.5t19.5 -5t30.5 2.5 t42 8q57 20 91 34t87.5 44.5t87 64t65.5 88.5t47 122q38 172 -44.5 341.5t-246.5 278.5q22 -44 43 -129q39 -159 -32 -154q-15 2 -33 9q-79 33 -120.5 100t-44 175.5t48.5 257.5q-13 -8 -34 -23.5t-72.5 -66.5t-88.5 -105.5t-60 -138t-8 -166.5q2 -12 8 -41.5t8 -43t6 -39.5 t3.5 -39.5t-1 -33.5t-6 -31.5t-13.5 -24t-21 -20.5t-31 -12q-38 -10 -67 13t-40.5 61.5t-15 81.5t10.5 75q-52 -46 -83.5 -101t-39 -107t-7.5 -85z" />
|
||||
<glyph unicode="" d="M-61 600l26 40q6 10 20 30t49 63.5t74.5 85.5t97 90t116.5 83.5t132.5 59t145.5 23.5t145.5 -23.5t132.5 -59t116.5 -83.5t97 -90t74.5 -85.5t49 -63.5t20 -30l26 -40l-26 -40q-6 -10 -20 -30t-49 -63.5t-74.5 -85.5t-97 -90t-116.5 -83.5t-132.5 -59t-145.5 -23.5 t-145.5 23.5t-132.5 59t-116.5 83.5t-97 90t-74.5 85.5t-49 63.5t-20 30zM120 600q7 -10 40.5 -58t56 -78.5t68 -77.5t87.5 -75t103 -49.5t125 -21.5t123.5 20t100.5 45.5t85.5 71.5t66.5 75.5t58 81.5t47 66q-1 1 -28.5 37.5t-42 55t-43.5 53t-57.5 63.5t-58.5 54 q49 -74 49 -163q0 -124 -88 -212t-212 -88t-212 88t-88 212q0 85 46 158q-102 -87 -226 -258zM377 656q49 -124 154 -191l105 105q-37 24 -75 72t-57 84l-20 36z" />
|
||||
<glyph unicode="" d="M-61 600l26 40q6 10 20 30t49 63.5t74.5 85.5t97 90t116.5 83.5t132.5 59t145.5 23.5q61 0 121 -17l37 142h148l-314 -1200h-148l37 143q-82 21 -165 71.5t-140 102t-109.5 112t-72 88.5t-29.5 43zM120 600q210 -282 393 -336l37 141q-107 18 -178.5 101.5t-71.5 193.5 q0 85 46 158q-102 -87 -226 -258zM377 656q49 -124 154 -191l47 47l23 87q-30 28 -59 69t-44 68l-14 26zM780 161l38 145q22 15 44.5 34t46 44t40.5 44t41 50.5t33.5 43.5t33 44t24.5 34q-97 127 -140 175l39 146q67 -54 131.5 -125.5t87.5 -103.5t36 -52l26 -40l-26 -40 q-7 -12 -25.5 -38t-63.5 -79.5t-95.5 -102.5t-124 -100t-146.5 -79z" />
|
||||
<glyph unicode="" d="M-97.5 34q13.5 -34 50.5 -34h1294q37 0 50.5 35.5t-7.5 67.5l-642 1056q-20 34 -48 36.5t-48 -29.5l-642 -1066q-21 -32 -7.5 -66zM155 200l445 723l445 -723h-345v100h-200v-100h-345zM500 600l100 -300l100 300v100h-200v-100z" />
|
||||
<glyph unicode="" d="M100 262v41q0 20 11 44.5t26 38.5l363 325v339q0 62 44 106t106 44t106 -44t44 -106v-339l363 -325q15 -14 26 -38.5t11 -44.5v-41q0 -20 -12 -26.5t-29 5.5l-359 249v-263q100 -91 100 -113v-64q0 -20 -13 -28.5t-32 0.5l-94 78h-222l-94 -78q-19 -9 -32 -0.5t-13 28.5 v64q0 22 100 113v263l-359 -249q-17 -12 -29 -5.5t-12 26.5z" />
|
||||
<glyph unicode="" d="M0 50q0 -20 14.5 -35t35.5 -15h1000q21 0 35.5 15t14.5 35v750h-1100v-750zM0 900h1100v150q0 21 -14.5 35.5t-35.5 14.5h-150v100h-100v-100h-500v100h-100v-100h-150q-21 0 -35.5 -14.5t-14.5 -35.5v-150zM100 100v100h100v-100h-100zM100 300v100h100v-100h-100z M100 500v100h100v-100h-100zM300 100v100h100v-100h-100zM300 300v100h100v-100h-100zM300 500v100h100v-100h-100zM500 100v100h100v-100h-100zM500 300v100h100v-100h-100zM500 500v100h100v-100h-100zM700 100v100h100v-100h-100zM700 300v100h100v-100h-100zM700 500 v100h100v-100h-100zM900 100v100h100v-100h-100zM900 300v100h100v-100h-100zM900 500v100h100v-100h-100z" />
|
||||
<glyph unicode="" d="M0 200v200h259l600 600h241v198l300 -295l-300 -300v197h-159l-600 -600h-341zM0 800h259l122 -122l141 142l-181 180h-341v-200zM678 381l141 142l122 -123h159v198l300 -295l-300 -300v197h-241z" />
|
||||
<glyph unicode="" d="M0 400v600q0 41 29.5 70.5t70.5 29.5h1000q41 0 70.5 -29.5t29.5 -70.5v-600q0 -41 -29.5 -70.5t-70.5 -29.5h-596l-304 -300v300h-100q-41 0 -70.5 29.5t-29.5 70.5z" />
|
||||
<glyph unicode="" d="M100 600v200h300v-250q0 -113 6 -145q17 -92 102 -117q39 -11 92 -11q37 0 66.5 5.5t50 15.5t36 24t24 31.5t14 37.5t7 42t2.5 45t0 47v25v250h300v-200q0 -42 -3 -83t-15 -104t-31.5 -116t-58 -109.5t-89 -96.5t-129 -65.5t-174.5 -25.5t-174.5 25.5t-129 65.5t-89 96.5 t-58 109.5t-31.5 116t-15 104t-3 83zM100 900v300h300v-300h-300zM800 900v300h300v-300h-300z" />
|
||||
<glyph unicode="" d="M-30 411l227 -227l352 353l353 -353l226 227l-578 579z" />
|
||||
<glyph unicode="" d="M70 797l580 -579l578 579l-226 227l-353 -353l-352 353z" />
|
||||
<glyph unicode="" d="M-198 700l299 283l300 -283h-203v-400h385l215 -200h-800v600h-196zM402 1000l215 -200h381v-400h-198l299 -283l299 283h-200v600h-796z" />
|
||||
<glyph unicode="" d="M18 939q-5 24 10 42q14 19 39 19h896l38 162q5 17 18.5 27.5t30.5 10.5h94q20 0 35 -14.5t15 -35.5t-15 -35.5t-35 -14.5h-54l-201 -961q-2 -4 -6 -10.5t-19 -17.5t-33 -11h-31v-50q0 -20 -14.5 -35t-35.5 -15t-35.5 15t-14.5 35v50h-300v-50q0 -20 -14.5 -35t-35.5 -15 t-35.5 15t-14.5 35v50h-50q-21 0 -35.5 15t-14.5 35q0 21 14.5 35.5t35.5 14.5h535l48 200h-633q-32 0 -54.5 21t-27.5 43z" />
|
||||
<glyph unicode="" d="M0 0v800h1200v-800h-1200zM0 900v100h200q0 41 29.5 70.5t70.5 29.5h300q41 0 70.5 -29.5t29.5 -70.5h500v-100h-1200z" />
|
||||
<glyph unicode="" d="M1 0l300 700h1200l-300 -700h-1200zM1 400v600h200q0 41 29.5 70.5t70.5 29.5h300q41 0 70.5 -29.5t29.5 -70.5h500v-200h-1000z" />
|
||||
<glyph unicode="" d="M302 300h198v600h-198l298 300l298 -300h-198v-600h198l-298 -300z" />
|
||||
<glyph unicode="" d="M0 600l300 298v-198h600v198l300 -298l-300 -297v197h-600v-197z" />
|
||||
<glyph unicode="" d="M0 100v100q0 41 29.5 70.5t70.5 29.5h1000q41 0 70.5 -29.5t29.5 -70.5v-100q0 -41 -29.5 -70.5t-70.5 -29.5h-1000q-41 0 -70.5 29.5t-29.5 70.5zM31 400l172 739q5 22 23 41.5t38 19.5h672q19 0 37.5 -22.5t23.5 -45.5l172 -732h-1138zM800 100h100v100h-100v-100z M1000 100h100v100h-100v-100z" />
|
||||
<glyph unicode="" d="M-101 600v50q0 24 25 49t50 38l25 13v-250l-11 5.5t-24 14t-30 21.5t-24 27.5t-11 31.5zM100 500v250v8v8v7t0.5 7t1.5 5.5t2 5t3 4t4.5 3.5t6 1.5t7.5 0.5h200l675 250v-850l-675 200h-38l47 -276q2 -12 -3 -17.5t-11 -6t-21 -0.5h-8h-83q-20 0 -34.5 14t-18.5 35 q-55 337 -55 351zM1100 200v850q0 21 14.5 35.5t35.5 14.5q20 0 35 -14.5t15 -35.5v-850q0 -20 -15 -35t-35 -15q-21 0 -35.5 15t-14.5 35z" />
|
||||
<glyph unicode="" d="M74 350q0 21 13.5 35.5t33.5 14.5h18l117 173l63 327q15 77 76 140t144 83l-18 32q-6 19 3 32t29 13h94q20 0 29 -10.5t3 -29.5q-18 -36 -18 -37q83 -19 144 -82.5t76 -140.5l63 -327l118 -173h17q20 0 33.5 -14.5t13.5 -35.5q0 -20 -13 -40t-31 -27q-8 -3 -23 -8.5 t-65 -20t-103 -25t-132.5 -19.5t-158.5 -9q-125 0 -245.5 20.5t-178.5 40.5l-58 20q-18 7 -31 27.5t-13 40.5zM497 110q12 -49 40 -79.5t63 -30.5t63 30.5t39 79.5q-48 -6 -102 -6t-103 6z" />
|
||||
<glyph unicode="" d="M21 445l233 -45l-78 -224l224 78l45 -233l155 179l155 -179l45 233l224 -78l-78 224l234 45l-180 155l180 156l-234 44l78 225l-224 -78l-45 233l-155 -180l-155 180l-45 -233l-224 78l78 -225l-233 -44l179 -156z" />
|
||||
<glyph unicode="" d="M0 200h200v600h-200v-600zM300 275q0 -75 100 -75h61q124 -100 139 -100h250q46 0 83 57l238 344q29 31 29 74v100q0 44 -30.5 84.5t-69.5 40.5h-328q28 118 28 125v150q0 44 -30.5 84.5t-69.5 40.5h-50q-27 0 -51 -20t-38 -48l-96 -198l-145 -196q-20 -26 -20 -63v-400z M400 300v375l150 213l100 212h50v-175l-50 -225h450v-125l-250 -375h-214l-136 100h-100z" />
|
||||
<glyph unicode="" d="M0 400v600h200v-600h-200zM300 525v400q0 75 100 75h61q124 100 139 100h250q46 0 83 -57l238 -344q29 -31 29 -74v-100q0 -44 -30.5 -84.5t-69.5 -40.5h-328q28 -118 28 -125v-150q0 -44 -30.5 -84.5t-69.5 -40.5h-50q-27 0 -51 20t-38 48l-96 198l-145 196 q-20 26 -20 63zM400 525l150 -212l100 -213h50v175l-50 225h450v125l-250 375h-214l-136 -100h-100v-375z" />
|
||||
<glyph unicode="" d="M8 200v600h200v-600h-200zM308 275v525q0 17 14 35.5t28 28.5l14 9l362 230q14 6 25 6q17 0 29 -12l109 -112q14 -14 14 -34q0 -18 -11 -32l-85 -121h302q85 0 138.5 -38t53.5 -110t-54.5 -111t-138.5 -39h-107l-130 -339q-7 -22 -20.5 -41.5t-28.5 -19.5h-341 q-7 0 -90 81t-83 94zM408 289l100 -89h293l131 339q6 21 19.5 41t28.5 20h203q16 0 25 15t9 36q0 20 -9 34.5t-25 14.5h-457h-6.5h-7.5t-6.5 0.5t-6 1t-5 1.5t-5.5 2.5t-4 4t-4 5.5q-5 12 -5 20q0 14 10 27l147 183l-86 83l-339 -236v-503z" />
|
||||
<glyph unicode="" d="M-101 651q0 72 54 110t139 38l302 -1l-85 121q-11 16 -11 32q0 21 14 34l109 113q13 12 29 12q11 0 25 -6l365 -230q7 -4 17 -10.5t26.5 -26t16.5 -36.5v-526q0 -13 -86 -93.5t-94 -80.5h-341q-16 0 -29.5 20t-19.5 41l-130 339h-107q-84 0 -139 39t-55 111zM-1 601h222 q15 0 28.5 -20.5t19.5 -40.5l131 -339h293l107 89v502l-343 237l-87 -83l145 -184q10 -11 10 -26q0 -11 -5 -20q-1 -3 -3.5 -5.5l-4 -4t-5 -2.5t-5.5 -1.5t-6.5 -1t-6.5 -0.5h-7.5h-6.5h-476v-100zM1000 201v600h200v-600h-200z" />
|
||||
<glyph unicode="" d="M97 719l230 -363q4 -6 10.5 -15.5t26 -25t36.5 -15.5h525q13 0 94 83t81 90v342q0 15 -20 28.5t-41 19.5l-339 131v106q0 84 -39 139t-111 55t-110 -53.5t-38 -138.5v-302l-121 84q-15 12 -33.5 11.5t-32.5 -13.5l-112 -110q-22 -22 -6 -53zM172 739l83 86l183 -146 q22 -18 47 -5q3 1 5.5 3.5l4 4t2.5 5t1.5 5.5t1 6.5t0.5 6.5v7.5v6.5v456q0 22 25 31t50 -0.5t25 -30.5v-202q0 -16 20 -29.5t41 -19.5l339 -130v-294l-89 -100h-503zM400 0v200h600v-200h-600z" />
|
||||
<glyph unicode="" d="M2 585q-16 -31 6 -53l112 -110q13 -13 32 -13.5t34 10.5l121 85q0 -51 -0.5 -153.5t-0.5 -148.5q0 -84 38.5 -138t110.5 -54t111 55t39 139v106l339 131q20 6 40.5 19.5t20.5 28.5v342q0 7 -81 90t-94 83h-525q-17 0 -35.5 -14t-28.5 -28l-10 -15zM77 565l236 339h503 l89 -100v-294l-340 -130q-20 -6 -40 -20t-20 -29v-202q0 -22 -25 -31t-50 0t-25 31v456v14.5t-1.5 11.5t-5 12t-9.5 7q-24 13 -46 -5l-184 -146zM305 1104v200h600v-200h-600z" />
|
||||
<glyph unicode="" d="M5 597q0 122 47.5 232.5t127.5 190.5t190.5 127.5t232.5 47.5q162 0 299.5 -80t217.5 -218t80 -300t-80 -299.5t-217.5 -217.5t-299.5 -80t-300 80t-218 217.5t-80 299.5zM298 701l2 -201h300l-2 -194l402 294l-402 298v-197h-300z" />
|
||||
<glyph unicode="" d="M0 597q0 122 47.5 232.5t127.5 190.5t190.5 127.5t231.5 47.5q122 0 232.5 -47.5t190.5 -127.5t127.5 -190.5t47.5 -232.5q0 -162 -80 -299.5t-218 -217.5t-300 -80t-299.5 80t-217.5 217.5t-80 299.5zM200 600l402 -294l-2 194h300l2 201h-300v197z" />
|
||||
<glyph unicode="" d="M5 597q0 122 47.5 232.5t127.5 190.5t190.5 127.5t232.5 47.5q162 0 299.5 -80t217.5 -218t80 -300t-80 -299.5t-217.5 -217.5t-299.5 -80t-300 80t-218 217.5t-80 299.5zM300 600h200v-300h200v300h200l-300 400z" />
|
||||
<glyph unicode="" d="M5 597q0 122 47.5 232.5t127.5 190.5t190.5 127.5t232.5 47.5q162 0 299.5 -80t217.5 -218t80 -300t-80 -299.5t-217.5 -217.5t-299.5 -80t-300 80t-218 217.5t-80 299.5zM300 600l300 -400l300 400h-200v300h-200v-300h-200z" />
|
||||
<glyph unicode="" d="M5 597q0 122 47.5 232.5t127.5 190.5t190.5 127.5t232.5 47.5q121 0 231.5 -47.5t190.5 -127.5t127.5 -190.5t47.5 -232.5q0 -162 -80 -299.5t-217.5 -217.5t-299.5 -80t-300 80t-218 217.5t-80 299.5zM254 780q-8 -33 5.5 -92.5t7.5 -87.5q0 -9 17 -44t16 -60 q12 0 23 -5.5t23 -15t20 -13.5q24 -12 108 -42q22 -8 53 -31.5t59.5 -38.5t57.5 -11q8 -18 -15 -55t-20 -57q42 -71 87 -80q0 -6 -3 -15.5t-3.5 -14.5t4.5 -17q104 -3 221 112q30 29 47 47t34.5 49t20.5 62q-14 9 -37 9.5t-36 7.5q-14 7 -49 15t-52 19q-9 0 -39.5 -0.5 t-46.5 -1.5t-39 -6.5t-39 -16.5q-50 -35 -66 -12q-4 2 -3.5 25.5t0.5 25.5q-6 13 -26.5 17t-24.5 7q2 22 -2 41t-16.5 28t-38.5 -20q-23 -25 -42 4q-19 28 -8 58q6 16 22 22q6 -1 26 -1.5t33.5 -4t19.5 -13.5q12 -19 32 -37.5t34 -27.5l14 -8q0 3 9.5 39.5t5.5 57.5 q-4 23 14.5 44.5t22.5 31.5q5 14 10 35t8.5 31t15.5 22.5t34 21.5q-6 18 10 37q8 0 23.5 -1.5t24.5 -1.5t20.5 4.5t20.5 15.5q-10 23 -30.5 42.5t-38 30t-49 26.5t-43.5 23q11 39 2 44q31 -13 58 -14.5t39 3.5l11 4q7 36 -16.5 53.5t-64.5 28.5t-56 23q-19 -3 -37 0 q-15 -12 -36.5 -21t-34.5 -12t-44 -8t-39 -6q-15 -3 -45.5 0.5t-45.5 -2.5q-21 -7 -52 -26.5t-34 -34.5q-3 -11 6.5 -22.5t8.5 -18.5q-3 -34 -27.5 -90.5t-29.5 -79.5zM518 916q3 12 16 30t16 25q10 -10 18.5 -10t14 6t14.5 14.5t16 12.5q0 -24 17 -66.5t17 -43.5 q-9 2 -31 5t-36 5t-32 8t-30 14zM692 1003h1h-1z" />
|
||||
<glyph unicode="" d="M0 164.5q0 21.5 15 37.5l600 599q-33 101 6 201.5t135 154.5q164 92 306 -9l-259 -138l145 -232l251 126q13 -175 -151 -267q-123 -70 -253 -23l-596 -596q-15 -16 -36.5 -16t-36.5 16l-111 110q-15 15 -15 36.5z" />
|
||||
<glyph unicode="" horiz-adv-x="1220" d="M0 196v100q0 41 29.5 70.5t70.5 29.5h1000q41 0 70.5 -29.5t29.5 -70.5v-100q0 -41 -29.5 -70.5t-70.5 -29.5h-1000q-41 0 -70.5 29.5t-29.5 70.5zM0 596v100q0 41 29.5 70.5t70.5 29.5h1000q41 0 70.5 -29.5t29.5 -70.5v-100q0 -41 -29.5 -70.5t-70.5 -29.5h-1000 q-41 0 -70.5 29.5t-29.5 70.5zM0 996v100q0 41 29.5 70.5t70.5 29.5h1000q41 0 70.5 -29.5t29.5 -70.5v-100q0 -41 -29.5 -70.5t-70.5 -29.5h-1000q-41 0 -70.5 29.5t-29.5 70.5zM600 596h500v100h-500v-100zM800 196h300v100h-300v-100zM900 996h200v100h-200v-100z" />
|
||||
<glyph unicode="" d="M100 1100v100h1000v-100h-1000zM150 1000h900l-350 -500v-300l-200 -200v500z" />
|
||||
<glyph unicode="" d="M0 200v200h1200v-200q0 -41 -29.5 -70.5t-70.5 -29.5h-1000q-41 0 -70.5 29.5t-29.5 70.5zM0 500v400q0 41 29.5 70.5t70.5 29.5h300v100q0 41 29.5 70.5t70.5 29.5h200q41 0 70.5 -29.5t29.5 -70.5v-100h300q41 0 70.5 -29.5t29.5 -70.5v-400h-500v100h-200v-100h-500z M500 1000h200v100h-200v-100z" />
|
||||
<glyph unicode="" d="M0 0v400l129 -129l200 200l142 -142l-200 -200l129 -129h-400zM0 800l129 129l200 -200l142 142l-200 200l129 129h-400v-400zM729 329l142 142l200 -200l129 129v-400h-400l129 129zM729 871l200 200l-129 129h400v-400l-129 129l-200 -200z" />
|
||||
<glyph unicode="" d="M0 596q0 162 80 299t217 217t299 80t299 -80t217 -217t80 -299t-80 -299t-217 -217t-299 -80t-299 80t-217 217t-80 299zM182 596q0 -172 121.5 -293t292.5 -121t292.5 121t121.5 293q0 171 -121.5 292.5t-292.5 121.5t-292.5 -121.5t-121.5 -292.5zM291 655 q0 23 15.5 38.5t38.5 15.5t39 -16t16 -38q0 -23 -16 -39t-39 -16q-22 0 -38 16t-16 39zM400 850q0 22 16 38.5t39 16.5q22 0 38 -16t16 -39t-16 -39t-38 -16q-23 0 -39 16.5t-16 38.5zM514 609q0 32 20.5 56.5t51.5 29.5l122 126l1 1q-9 14 -9 28q0 22 16 38.5t39 16.5 q22 0 38 -16t16 -39t-16 -39t-38 -16q-14 0 -29 10l-55 -145q17 -22 17 -51q0 -36 -25.5 -61.5t-61.5 -25.5t-61.5 25.5t-25.5 61.5zM800 655q0 22 16 38t39 16t38.5 -15.5t15.5 -38.5t-16 -39t-38 -16q-23 0 -39 16t-16 39z" />
|
||||
<glyph unicode="" d="M-40 375q-13 -95 35 -173q35 -57 94 -89t129 -32q63 0 119 28q33 16 65 40.5t52.5 45.5t59.5 64q40 44 57 61l394 394q35 35 47 84t-3 96q-27 87 -117 104q-20 2 -29 2q-46 0 -78.5 -16.5t-67.5 -51.5l-389 -396l-7 -7l69 -67l377 373q20 22 39 38q23 23 50 23 q38 0 53 -36q16 -39 -20 -75l-547 -547q-52 -52 -125 -52q-55 0 -100 33t-54 96q-5 35 2.5 66t31.5 63t42 50t56 54q24 21 44 41l348 348q52 52 82.5 79.5t84 54t107.5 26.5q25 0 48 -4q95 -17 154 -94.5t51 -175.5q-7 -101 -98 -192l-252 -249l-253 -256l7 -7l69 -60 l517 511q67 67 95 157t11 183q-16 87 -67 154t-130 103q-69 33 -152 33q-107 0 -197 -55q-40 -24 -111 -95l-512 -512q-68 -68 -81 -163z" />
|
||||
<glyph unicode="" d="M80 784q0 131 98.5 229.5t230.5 98.5q143 0 241 -129q103 129 246 129q129 0 226 -98.5t97 -229.5q0 -46 -17.5 -91t-61 -99t-77 -89.5t-104.5 -105.5q-197 -191 -293 -322l-17 -23l-16 23q-43 58 -100 122.5t-92 99.5t-101 100q-71 70 -104.5 105.5t-77 89.5t-61 99 t-17.5 91zM250 784q0 -27 30.5 -70t61.5 -75.5t95 -94.5l22 -22q93 -90 190 -201q82 92 195 203l12 12q64 62 97.5 97t64.5 79t31 72q0 71 -48 119.5t-105 48.5q-74 0 -132 -83l-118 -171l-114 174q-51 80 -123 80q-60 0 -109.5 -49.5t-49.5 -118.5z" />
|
||||
<glyph unicode="" d="M57 353q0 -95 66 -159l141 -142q68 -66 159 -66q93 0 159 66l283 283q66 66 66 159t-66 159l-141 141q-8 9 -19 17l-105 -105l212 -212l-389 -389l-247 248l95 95l-18 18q-46 45 -75 101l-55 -55q-66 -66 -66 -159zM269 706q0 -93 66 -159l141 -141q7 -7 19 -17l105 105 l-212 212l389 389l247 -247l-95 -96l18 -17q47 -49 77 -100l29 29q35 35 62.5 88t27.5 96q0 93 -66 159l-141 141q-66 66 -159 66q-95 0 -159 -66l-283 -283q-66 -64 -66 -159z" />
|
||||
<glyph unicode="" d="M200 100v953q0 21 30 46t81 48t129 38t163 15t162 -15t127 -38t79 -48t29 -46v-953q0 -41 -29.5 -70.5t-70.5 -29.5h-600q-41 0 -70.5 29.5t-29.5 70.5zM300 300h600v700h-600v-700zM496 150q0 -43 30.5 -73.5t73.5 -30.5t73.5 30.5t30.5 73.5t-30.5 73.5t-73.5 30.5 t-73.5 -30.5t-30.5 -73.5z" />
|
||||
<glyph unicode="" d="M0 0l303 380l207 208l-210 212h300l267 279l-35 36q-15 14 -15 35t15 35q14 15 35 15t35 -15l283 -282q15 -15 15 -36t-15 -35q-14 -15 -35 -15t-35 15l-36 35l-279 -267v-300l-212 210l-208 -207z" />
|
||||
<glyph unicode="" d="M295 433h139q5 -77 48.5 -126.5t117.5 -64.5v335q-6 1 -15.5 4t-11.5 3q-46 14 -79 26.5t-72 36t-62.5 52t-40 72.5t-16.5 99q0 92 44 159.5t109 101t144 40.5v78h100v-79q38 -4 72.5 -13.5t75.5 -31.5t71 -53.5t51.5 -84t24.5 -118.5h-159q-8 72 -35 109.5t-101 50.5 v-307l64 -14q34 -7 64 -16.5t70 -31.5t67.5 -52t47.5 -80.5t20 -112.5q0 -139 -89 -224t-244 -96v-77h-100v78q-152 17 -237 104q-40 40 -52.5 93.5t-15.5 139.5zM466 889q0 -29 8 -51t16.5 -34t29.5 -22.5t31 -13.5t38 -10q7 -2 11 -3v274q-61 -8 -97.5 -37.5t-36.5 -102.5 zM700 237q170 18 170 151q0 64 -44 99.5t-126 60.5v-311z" />
|
||||
<glyph unicode="" d="M100 600v100h166q-24 49 -44 104q-10 26 -14.5 55.5t-3 72.5t25 90t68.5 87q97 88 263 88q129 0 230 -89t101 -208h-153q0 52 -34 89.5t-74 51.5t-76 14q-37 0 -79 -14.5t-62 -35.5q-41 -44 -41 -101q0 -28 16.5 -69.5t28 -62.5t41.5 -72h241v-100h-197q8 -50 -2.5 -115 t-31.5 -94q-41 -59 -99 -113q35 11 84 18t70 7q33 1 103 -16t103 -17q76 0 136 30l50 -147q-41 -25 -80.5 -36.5t-59 -13t-61.5 -1.5q-23 0 -128 33t-155 29q-39 -4 -82 -17t-66 -25l-24 -11l-55 145l16.5 11t15.5 10t13.5 9.5t14.5 12t14.5 14t17.5 18.5q48 55 54 126.5 t-30 142.5h-221z" />
|
||||
<glyph unicode="" d="M2 300l298 -300l298 300h-198v900h-200v-900h-198zM602 900l298 300l298 -300h-198v-900h-200v900h-198z" />
|
||||
<glyph unicode="" d="M2 300h198v900h200v-900h198l-298 -300zM700 0v200h100v-100h200v-100h-300zM700 400v100h300v-200h-99v-100h-100v100h99v100h-200zM700 700v500h300v-500h-100v100h-100v-100h-100zM801 900h100v200h-100v-200z" />
|
||||
<glyph unicode="" d="M2 300h198v900h200v-900h198l-298 -300zM700 0v500h300v-500h-100v100h-100v-100h-100zM700 700v200h100v-100h200v-100h-300zM700 1100v100h300v-200h-99v-100h-100v100h99v100h-200zM801 200h100v200h-100v-200z" />
|
||||
<glyph unicode="" d="M2 300l298 -300l298 300h-198v900h-200v-900h-198zM800 100v400h300v-500h-100v100h-200zM800 1100v100h200v-500h-100v400h-100zM901 200h100v200h-100v-200z" />
|
||||
<glyph unicode="" d="M2 300l298 -300l298 300h-198v900h-200v-900h-198zM800 400v100h200v-500h-100v400h-100zM800 800v400h300v-500h-100v100h-200zM901 900h100v200h-100v-200z" />
|
||||
<glyph unicode="" d="M2 300l298 -300l298 300h-198v900h-200v-900h-198zM700 100v200h500v-200h-500zM700 400v200h400v-200h-400zM700 700v200h300v-200h-300zM700 1000v200h200v-200h-200z" />
|
||||
<glyph unicode="" d="M2 300l298 -300l298 300h-198v900h-200v-900h-198zM700 100v200h200v-200h-200zM700 400v200h300v-200h-300zM700 700v200h400v-200h-400zM700 1000v200h500v-200h-500z" />
|
||||
<glyph unicode="" d="M0 400v300q0 165 117.5 282.5t282.5 117.5h300q162 0 281 -118.5t119 -281.5v-300q0 -165 -118.5 -282.5t-281.5 -117.5h-300q-165 0 -282.5 117.5t-117.5 282.5zM200 300q0 -41 29.5 -70.5t70.5 -29.5h500q41 0 70.5 29.5t29.5 70.5v500q0 41 -29.5 70.5t-70.5 29.5 h-500q-41 0 -70.5 -29.5t-29.5 -70.5v-500z" />
|
||||
<glyph unicode="" d="M0 400v300q0 163 119 281.5t281 118.5h300q165 0 282.5 -117.5t117.5 -282.5v-300q0 -165 -117.5 -282.5t-282.5 -117.5h-300q-163 0 -281.5 117.5t-118.5 282.5zM200 300q0 -41 29.5 -70.5t70.5 -29.5h500q41 0 70.5 29.5t29.5 70.5v500q0 41 -29.5 70.5t-70.5 29.5 h-500q-41 0 -70.5 -29.5t-29.5 -70.5v-500zM400 300l333 250l-333 250v-500z" />
|
||||
<glyph unicode="" d="M0 400v300q0 163 117.5 281.5t282.5 118.5h300q163 0 281.5 -119t118.5 -281v-300q0 -165 -117.5 -282.5t-282.5 -117.5h-300q-165 0 -282.5 117.5t-117.5 282.5zM200 300q0 -41 29.5 -70.5t70.5 -29.5h500q41 0 70.5 29.5t29.5 70.5v500q0 41 -29.5 70.5t-70.5 29.5 h-500q-41 0 -70.5 -29.5t-29.5 -70.5v-500zM300 700l250 -333l250 333h-500z" />
|
||||
<glyph unicode="" d="M0 400v300q0 165 117.5 282.5t282.5 117.5h300q165 0 282.5 -117.5t117.5 -282.5v-300q0 -162 -118.5 -281t-281.5 -119h-300q-165 0 -282.5 118.5t-117.5 281.5zM200 300q0 -41 29.5 -70.5t70.5 -29.5h500q41 0 70.5 29.5t29.5 70.5v500q0 41 -29.5 70.5t-70.5 29.5 h-500q-41 0 -70.5 -29.5t-29.5 -70.5v-500zM300 400h500l-250 333z" />
|
||||
<glyph unicode="" d="M0 400v300h300v200l400 -350l-400 -350v200h-300zM500 0v200h500q41 0 70.5 29.5t29.5 70.5v500q0 41 -29.5 70.5t-70.5 29.5h-500v200h400q165 0 282.5 -117.5t117.5 -282.5v-300q0 -165 -117.5 -282.5t-282.5 -117.5h-400z" />
|
||||
<glyph unicode="" d="M217 519q8 -19 31 -19h302q-155 -438 -160 -458q-5 -21 4 -32l9 -8h9q14 0 26 15q11 13 274.5 321.5t264.5 308.5q14 19 5 36q-8 17 -31 17l-301 -1q1 4 78 219.5t79 227.5q2 15 -5 27l-9 9h-9q-15 0 -25 -16q-4 -6 -98 -111.5t-228.5 -257t-209.5 -237.5q-16 -19 -6 -41 z" />
|
||||
<glyph unicode="" d="M0 400q0 -165 117.5 -282.5t282.5 -117.5h300q47 0 100 15v185h-500q-41 0 -70.5 29.5t-29.5 70.5v500q0 41 29.5 70.5t70.5 29.5h500v185q-14 4 -114 7.5t-193 5.5l-93 2q-165 0 -282.5 -117.5t-117.5 -282.5v-300zM600 400v300h300v200l400 -350l-400 -350v200h-300z " />
|
||||
<glyph unicode="" d="M0 400q0 -165 117.5 -282.5t282.5 -117.5h300q163 0 281.5 117.5t118.5 282.5v98l-78 73l-122 -123v-148q0 -41 -29.5 -70.5t-70.5 -29.5h-500q-41 0 -70.5 29.5t-29.5 70.5v500q0 41 29.5 70.5t70.5 29.5h156l118 122l-74 78h-100q-165 0 -282.5 -117.5t-117.5 -282.5 v-300zM496 709l353 342l-149 149h500v-500l-149 149l-342 -353z" />
|
||||
<glyph unicode="" d="M4 600q0 162 80 299t217 217t299 80t299 -80t217 -217t80 -299t-80 -299t-217 -217t-299 -80t-299 80t-217 217t-80 299zM186 600q0 -171 121.5 -292.5t292.5 -121.5t292.5 121.5t121.5 292.5t-121.5 292.5t-292.5 121.5t-292.5 -121.5t-121.5 -292.5zM406 600 q0 80 57 137t137 57t137 -57t57 -137t-57 -137t-137 -57t-137 57t-57 137z" />
|
||||
<glyph unicode="" d="M0 0v275q0 11 7 18t18 7h1048q11 0 19 -7.5t8 -17.5v-275h-1100zM100 800l445 -500l450 500h-295v400h-300v-400h-300zM900 150h100v50h-100v-50z" />
|
||||
<glyph unicode="" d="M0 0v275q0 11 7 18t18 7h1048q11 0 19 -7.5t8 -17.5v-275h-1100zM100 700h300v-300h300v300h295l-445 500zM900 150h100v50h-100v-50z" />
|
||||
<glyph unicode="" d="M0 0v275q0 11 7 18t18 7h1048q11 0 19 -7.5t8 -17.5v-275h-1100zM100 705l305 -305l596 596l-154 155l-442 -442l-150 151zM900 150h100v50h-100v-50z" />
|
||||
<glyph unicode="" d="M0 0v275q0 11 7 18t18 7h1048q11 0 19 -7.5t8 -17.5v-275h-1100zM100 988l97 -98l212 213l-97 97zM200 400l697 1l3 699l-250 -239l-149 149l-212 -212l149 -149zM900 150h100v50h-100v-50z" />
|
||||
<glyph unicode="" d="M0 0v275q0 11 7 18t18 7h1048q11 0 19 -7.5t8 -17.5v-275h-1100zM200 612l212 -212l98 97l-213 212zM300 1200l239 -250l-149 -149l212 -212l149 148l249 -237l-1 697zM900 150h100v50h-100v-50z" />
|
||||
<glyph unicode="" d="M23 415l1177 784v-1079l-475 272l-310 -393v416h-392zM494 210l672 938l-672 -712v-226z" />
|
||||
<glyph unicode="" d="M0 150v1000q0 20 14.5 35t35.5 15h250v-300h500v300h100l200 -200v-850q0 -21 -15 -35.5t-35 -14.5h-150v400h-700v-400h-150q-21 0 -35.5 14.5t-14.5 35.5zM600 1000h100v200h-100v-200z" />
|
||||
<glyph unicode="" d="M0 150v1000q0 20 14.5 35t35.5 15h250v-300h500v300h100l200 -200v-218l-276 -275l-120 120l-126 -127h-378v-400h-150q-21 0 -35.5 14.5t-14.5 35.5zM581 306l123 123l120 -120l353 352l123 -123l-475 -476zM600 1000h100v200h-100v-200z" />
|
||||
<glyph unicode="" d="M0 150v1000q0 20 14.5 35t35.5 15h250v-300h500v300h100l200 -200v-269l-103 -103l-170 170l-298 -298h-329v-400h-150q-21 0 -35.5 14.5t-14.5 35.5zM600 1000h100v200h-100v-200zM700 133l170 170l-170 170l127 127l170 -170l170 170l127 -128l-170 -169l170 -170 l-127 -127l-170 170l-170 -170z" />
|
||||
<glyph unicode="" d="M0 150v1000q0 20 14.5 35t35.5 15h250v-300h500v300h100l200 -200v-300h-400v-200h-500v-400h-150q-21 0 -35.5 14.5t-14.5 35.5zM600 300l300 -300l300 300h-200v300h-200v-300h-200zM600 1000v200h100v-200h-100z" />
|
||||
<glyph unicode="" d="M0 150v1000q0 20 14.5 35t35.5 15h250v-300h500v300h100l200 -200v-402l-200 200l-298 -298h-402v-400h-150q-21 0 -35.5 14.5t-14.5 35.5zM600 300h200v-300h200v300h200l-300 300zM600 1000v200h100v-200h-100z" />
|
||||
<glyph unicode="" d="M0 250q0 -21 14.5 -35.5t35.5 -14.5h1100q21 0 35.5 14.5t14.5 35.5v550h-1200v-550zM0 900h1200v150q0 21 -14.5 35.5t-35.5 14.5h-1100q-21 0 -35.5 -14.5t-14.5 -35.5v-150zM100 300v200h400v-200h-400z" />
|
||||
<glyph unicode="" d="M0 400l300 298v-198h400v-200h-400v-198zM100 800v200h100v-200h-100zM300 800v200h100v-200h-100zM500 800v200h400v198l300 -298l-300 -298v198h-400zM800 300v200h100v-200h-100zM1000 300h100v200h-100v-200z" />
|
||||
<glyph unicode="" d="M100 700v400l50 100l50 -100v-300h100v300l50 100l50 -100v-300h100v300l50 100l50 -100v-400l-100 -203v-447q0 -21 -14.5 -35.5t-35.5 -14.5h-200q-21 0 -35.5 14.5t-14.5 35.5v447zM800 597q0 -29 10.5 -55.5t25 -43t29 -28.5t25.5 -18l10 -5v-397q0 -21 14.5 -35.5 t35.5 -14.5h200q21 0 35.5 14.5t14.5 35.5v1106q0 31 -18 40.5t-44 -7.5l-276 -116q-25 -17 -43.5 -51.5t-18.5 -65.5v-359z" />
|
||||
<glyph unicode="" d="M100 0h400v56q-75 0 -87.5 6t-12.5 44v394h500v-394q0 -38 -12.5 -44t-87.5 -6v-56h400v56q-4 0 -11 0.5t-24 3t-30 7t-24 15t-11 24.5v888q0 22 25 34.5t50 13.5l25 2v56h-400v-56q75 0 87.5 -6t12.5 -44v-394h-500v394q0 38 12.5 44t87.5 6v56h-400v-56q4 0 11 -0.5 t24 -3t30 -7t24 -15t11 -24.5v-888q0 -22 -25 -34.5t-50 -13.5l-25 -2v-56z" />
|
||||
<glyph unicode="" d="M0 300q0 -41 29.5 -70.5t70.5 -29.5h300q41 0 70.5 29.5t29.5 70.5v500q0 41 -29.5 70.5t-70.5 29.5h-300q-41 0 -70.5 -29.5t-29.5 -70.5v-500zM100 100h400l200 200h105l295 98v-298h-425l-100 -100h-375zM100 300v200h300v-200h-300zM100 600v200h300v-200h-300z M100 1000h400l200 -200v-98l295 98h105v200h-425l-100 100h-375zM700 402v163l400 133v-163z" />
|
||||
<glyph unicode="" d="M16.5 974.5q0.5 -21.5 16 -90t46.5 -140t104 -177.5t175 -208q103 -103 207.5 -176t180 -103.5t137 -47t92.5 -16.5l31 1l163 162q17 18 13.5 41t-22.5 37l-192 136q-19 14 -45 12t-42 -19l-118 -118q-142 101 -268 227t-227 268l118 118q17 17 20 41.5t-11 44.5 l-139 194q-14 19 -36.5 22t-40.5 -14l-162 -162q-1 -11 -0.5 -32.5z" />
|
||||
<glyph unicode="" d="M0 50v212q0 20 10.5 45.5t24.5 39.5l365 303v50q0 4 1 10.5t12 22.5t30 28.5t60 23t97 10.5t97 -10t60 -23.5t30 -27.5t12 -24l1 -10v-50l365 -303q14 -14 24.5 -39.5t10.5 -45.5v-212q0 -21 -14.5 -35.5t-35.5 -14.5h-1100q-20 0 -35 14.5t-15 35.5zM0 712 q0 -21 14.5 -33.5t34.5 -8.5l202 33q20 4 34.5 21t14.5 38v146q141 24 300 24t300 -24v-146q0 -21 14.5 -38t34.5 -21l202 -33q20 -4 34.5 8.5t14.5 33.5v200q-6 8 -19 20.5t-63 45t-112 57t-171 45t-235 20.5q-92 0 -175 -10.5t-141.5 -27t-108.5 -36.5t-81.5 -40 t-53.5 -36.5t-31 -27.5l-9 -10v-200z" />
|
||||
<glyph unicode="" d="M100 0v100h1100v-100h-1100zM175 200h950l-125 150v250l100 100v400h-100v-200h-100v200h-200v-200h-100v200h-200v-200h-100v200h-100v-400l100 -100v-250z" />
|
||||
<glyph unicode="" d="M100 0h300v400q0 41 -29.5 70.5t-70.5 29.5h-100q-41 0 -70.5 -29.5t-29.5 -70.5v-400zM500 0v1000q0 41 29.5 70.5t70.5 29.5h100q41 0 70.5 -29.5t29.5 -70.5v-1000h-300zM900 0v700q0 41 29.5 70.5t70.5 29.5h100q41 0 70.5 -29.5t29.5 -70.5v-700h-300z" />
|
||||
<glyph unicode="" d="M-100 300v500q0 124 88 212t212 88h700q124 0 212 -88t88 -212v-500q0 -124 -88 -212t-212 -88h-700q-124 0 -212 88t-88 212zM100 200h900v700h-900v-700zM200 300h300v300h-200v100h200v100h-300v-300h200v-100h-200v-100zM600 300h200v100h100v300h-100v100h-200v-500 zM700 400v300h100v-300h-100z" />
|
||||
<glyph unicode="" d="M-100 300v500q0 124 88 212t212 88h700q124 0 212 -88t88 -212v-500q0 -124 -88 -212t-212 -88h-700q-124 0 -212 88t-88 212zM100 200h900v700h-900v-700zM200 300h100v200h100v-200h100v500h-100v-200h-100v200h-100v-500zM600 300h200v100h100v300h-100v100h-200v-500 zM700 400v300h100v-300h-100z" />
|
||||
<glyph unicode="" d="M-100 300v500q0 124 88 212t212 88h700q124 0 212 -88t88 -212v-500q0 -124 -88 -212t-212 -88h-700q-124 0 -212 88t-88 212zM100 200h900v700h-900v-700zM200 300h300v100h-200v300h200v100h-300v-500zM600 300h300v100h-200v300h200v100h-300v-500z" />
|
||||
<glyph unicode="" d="M-100 300v500q0 124 88 212t212 88h700q124 0 212 -88t88 -212v-500q0 -124 -88 -212t-212 -88h-700q-124 0 -212 88t-88 212zM100 200h900v700h-900v-700zM200 550l300 -150v300zM600 400l300 150l-300 150v-300z" />
|
||||
<glyph unicode="" d="M-100 300v500q0 124 88 212t212 88h700q124 0 212 -88t88 -212v-500q0 -124 -88 -212t-212 -88h-700q-124 0 -212 88t-88 212zM100 200h900v700h-900v-700zM200 300v500h700v-500h-700zM300 400h130q41 0 68 42t27 107t-28.5 108t-66.5 43h-130v-300zM575 549 q0 -65 27 -107t68 -42h130v300h-130q-38 0 -66.5 -43t-28.5 -108z" />
|
||||
<glyph unicode="" d="M-100 300v500q0 124 88 212t212 88h700q124 0 212 -88t88 -212v-500q0 -124 -88 -212t-212 -88h-700q-124 0 -212 88t-88 212zM100 200h900v700h-900v-700zM200 300h300v300h-200v100h200v100h-300v-300h200v-100h-200v-100zM601 300h100v100h-100v-100zM700 700h100 v-400h100v500h-200v-100z" />
|
||||
<glyph unicode="" d="M-100 300v500q0 124 88 212t212 88h700q124 0 212 -88t88 -212v-500q0 -124 -88 -212t-212 -88h-700q-124 0 -212 88t-88 212zM100 200h900v700h-900v-700zM200 300h300v400h-200v100h-100v-500zM301 400v200h100v-200h-100zM601 300h100v100h-100v-100zM700 700h100 v-400h100v500h-200v-100z" />
|
||||
<glyph unicode="" d="M-100 300v500q0 124 88 212t212 88h700q124 0 212 -88t88 -212v-500q0 -124 -88 -212t-212 -88h-700q-124 0 -212 88t-88 212zM100 200h900v700h-900v-700zM200 700v100h300v-300h-99v-100h-100v100h99v200h-200zM201 300v100h100v-100h-100zM601 300v100h100v-100h-100z M700 700v100h200v-500h-100v400h-100z" />
|
||||
<glyph unicode="" d="M4 600q0 162 80 299t217 217t299 80t299 -80t217 -217t80 -299t-80 -299t-217 -217t-299 -80t-299 80t-217 217t-80 299zM186 600q0 -171 121.5 -292.5t292.5 -121.5t292.5 121.5t121.5 292.5t-121.5 292.5t-292.5 121.5t-292.5 -121.5t-121.5 -292.5zM400 500v200 l100 100h300v-100h-300v-200h300v-100h-300z" />
|
||||
<glyph unicode="" d="M0 600q0 162 80 299t217 217t299 80t299 -80t217 -217t80 -299t-80 -299t-217 -217t-299 -80t-299 80t-217 217t-80 299zM182 600q0 -171 121.5 -292.5t292.5 -121.5t292.5 121.5t121.5 292.5t-121.5 292.5t-292.5 121.5t-292.5 -121.5t-121.5 -292.5zM400 400v400h300 l100 -100v-100h-100v100h-200v-100h200v-100h-200v-100h-100zM700 400v100h100v-100h-100z" />
|
||||
<glyph unicode="" d="M-14 494q0 -80 56.5 -137t135.5 -57h222v300h400v-300h128q120 0 205 86.5t85 207.5t-85 207t-205 86q-46 0 -90 -14q-44 97 -134.5 156.5t-200.5 59.5q-152 0 -260 -107.5t-108 -260.5q0 -25 2 -37q-66 -14 -108.5 -67.5t-42.5 -122.5zM300 200h200v300h200v-300h200 l-300 -300z" />
|
||||
<glyph unicode="" d="M-14 494q0 -80 56.5 -137t135.5 -57h8l414 414l403 -403q94 26 154.5 104.5t60.5 178.5q0 120 -85 206.5t-205 86.5q-46 0 -90 -14q-44 97 -134.5 156.5t-200.5 59.5q-152 0 -260 -107.5t-108 -260.5q0 -25 2 -37q-66 -14 -108.5 -67.5t-42.5 -122.5zM300 200l300 300 l300 -300h-200v-300h-200v300h-200z" />
|
||||
<glyph unicode="" d="M100 200h400v-155l-75 -45h350l-75 45v155h400l-270 300h170l-270 300h170l-300 333l-300 -333h170l-270 -300h170z" />
|
||||
<glyph unicode="" d="M121 700q0 -53 28.5 -97t75.5 -65q-4 -16 -4 -38q0 -74 52.5 -126.5t126.5 -52.5q56 0 100 30v-306l-75 -45h350l-75 45v306q46 -30 100 -30q74 0 126.5 52.5t52.5 126.5q0 24 -9 55q50 32 79.5 83t29.5 112q0 90 -61.5 155.5t-150.5 71.5q-26 89 -99.5 145.5 t-167.5 56.5q-116 0 -197.5 -81.5t-81.5 -197.5q0 -4 1 -11.5t1 -11.5q-14 2 -23 2q-74 0 -126.5 -52.5t-52.5 -126.5z" />
|
||||
</font>
|
||||
</defs></svg>
|
||||
|
Before Width: | Height: | Size: 62 KiB |
0
public/img/.gitignore
vendored
|
Before Width: | Height: | Size: 14 KiB |
|
Before Width: | Height: | Size: 148 B |
|
Before Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 12 KiB |
|
Before Width: | Height: | Size: 723 B |
|
Before Width: | Height: | Size: 15 KiB |
|
Before Width: | Height: | Size: 3.2 KiB |
@ -1,74 +0,0 @@
|
||||
<!doctype html>
|
||||
<html lang="en" data-ng-app="insight" data-ng-csp>
|
||||
<head>
|
||||
<base href="/" />
|
||||
<meta charset="UTF-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1.0">
|
||||
<meta name="fragment" content="!">
|
||||
<title data-ng-bind="$root.title + $root.titleDetail + ' | Insight'">Insight</title>
|
||||
<meta name="keywords" content="bitcoins, transactions, blocks, address, block chain, best block, mining difficulty, hash serialized">
|
||||
<meta name="description" content="Bitcoin Insight. View detailed information on all bitcoin transactions and blocks.">
|
||||
<link rel="shortcut icon" href="img/icons/favicon.ico" type="image/x-icon">
|
||||
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Ubuntu:300,400,500,700,400italic">
|
||||
<link rel="stylesheet" href="css/main.min.css">
|
||||
</head>
|
||||
<body ng-cloak class="ng-cloak">
|
||||
<div>
|
||||
<script type="text/ng-template" id="scannerModal.html">
|
||||
<div class="modal-header">
|
||||
<h3 class="modal-title">Scan Code</h3>
|
||||
</div>
|
||||
<div class="modal-body text-center">
|
||||
<canvas id="qr-canvas" width="200" height="150"></canvas>
|
||||
<div data-ng-show="isMobile">
|
||||
<div id="file-input-wrapper" class="btn btn-primary">
|
||||
<span class="pull-left text-center">
|
||||
<i class="glyphicon glyphicon-refresh icon-rotate"></i>
|
||||
Get QR code
|
||||
</span>
|
||||
<input id="qrcode-camera" type="file" capture="camera" accept="image/*">
|
||||
</div>
|
||||
</div>
|
||||
<div data-ng-hide="isMobile">
|
||||
<video id="qrcode-scanner-video" width="300" height="225" data-ng-hide="isMobile"></video>
|
||||
</div>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button class="btn btn-default" data-ng-click="cancel()" data-dismiss="modal">Close</button>
|
||||
</div>
|
||||
</script>
|
||||
</div>
|
||||
<div id="wrap">
|
||||
<div class="navbar navbar-default navbar-fixed-top" data-ng-include="'views/includes/header.html'" role='navigation'></div>
|
||||
<section class="container" data-ng-view></section>
|
||||
</div>
|
||||
<div id="footer" role="navigation">
|
||||
<div class="container" data-ng-controller="FooterController">
|
||||
<div class="links m20t pull-left">
|
||||
<span class="languages" ng-show="availableLanguages.0">
|
||||
[
|
||||
<a href="#"
|
||||
ng-click="setLanguage(l.isoCode)"
|
||||
ng-class="{'selected': defaultLanguage == l.isoCode}"
|
||||
ng-repeat="l in availableLanguages">
|
||||
<span ng-show="!$first"> · </span> {{l.name}}
|
||||
</a>
|
||||
]
|
||||
</span>
|
||||
|
||||
[
|
||||
<a href="messages/verify" translate>verify message</a>
|
||||
<span> · </span>
|
||||
<a href="tx/send" translate>broadcast transaction</a>
|
||||
]
|
||||
</div>
|
||||
<a class="insight m10v pull-right" target="_blank" href="http://insight.is">insight <small>API v{{version}}</small></a>
|
||||
</div>
|
||||
</div>
|
||||
<script src="/socket.io/socket.io.js"></script>
|
||||
<script src="js/vendors.min.js"></script>
|
||||
<script src="js/angularjs-all.min.js"></script>
|
||||
<script src="js/main.min.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
11
public/js/angularjs-all.min.js
vendored
3
public/js/main.min.js
vendored
5
public/js/vendors.min.js
vendored
@ -1,4 +0,0 @@
|
||||
User-agent: *
|
||||
Disallow: /address
|
||||
Disallow: /api
|
||||
Disallow: /transaction
|
||||
@ -1,852 +0,0 @@
|
||||
/* Sticky footer styles
|
||||
-------------------------------------------------- */
|
||||
@charset "UTF-8";
|
||||
|
||||
|
||||
html,
|
||||
body {
|
||||
color: #373D42;
|
||||
font-family: 'Ubuntu', sans-serif;
|
||||
height: 100%;
|
||||
/* The html and body elements cannot have any padding or margin. */
|
||||
}
|
||||
|
||||
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
|
||||
color: #373D42;
|
||||
font-family: 'Ubuntu', sans-serif;
|
||||
}
|
||||
|
||||
[ng\:cloak], [ng-cloak], [data-ng-cloak], [x-ng-cloak],
|
||||
.ng-cloak, .x-ng-cloak,
|
||||
.ng-hide {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
/* Styling for the ngProgress itself */
|
||||
#ngProgress {
|
||||
background-color: #6C9032 !important;
|
||||
box-shadow: none !important;
|
||||
color: #373D42 !important;
|
||||
height: 3px !important;
|
||||
margin: 0;
|
||||
opacity: 0;
|
||||
padding: 0;
|
||||
z-index: 99998;
|
||||
|
||||
/* Add CSS3 styles for transition smoothing */
|
||||
-webkit-transition: all 0.5s ease-in-out;
|
||||
-moz-transition: all 0.5s ease-in-out;
|
||||
-o-transition: all 0.5s ease-in-out;
|
||||
transition: all 0.5s ease-in-out;
|
||||
}
|
||||
|
||||
/* Styling for the ngProgress-container */
|
||||
#ngProgress-container {
|
||||
position: fixed;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
top: 63px;
|
||||
left: 0;
|
||||
right: 0;
|
||||
z-index: 99999;
|
||||
}
|
||||
|
||||
/* QR modal */
|
||||
#qr-canvas { display: none; }
|
||||
#qrcode-scanner-video {
|
||||
margin: 0 auto 10px auto;
|
||||
display: block;
|
||||
}
|
||||
#file-input-wrapper {
|
||||
padding: 0;
|
||||
width: 100%;
|
||||
}
|
||||
#file-input-wrapper input {
|
||||
opacity: 0;
|
||||
padding: 5px;
|
||||
}
|
||||
#file-input-wrapper span {
|
||||
padding-top: 5px;
|
||||
width: 100%;
|
||||
}
|
||||
#file-input-wrapper i { display: none; }
|
||||
|
||||
/* Wrapper for page content to push down footer */
|
||||
#wrap {
|
||||
min-height: 100%;
|
||||
height: auto;
|
||||
/* Negative indent footer by its height */
|
||||
margin: 0 auto -51px;
|
||||
/* Pad bottom by footer height */
|
||||
padding: 0 0 75px;
|
||||
}
|
||||
|
||||
.m10h { margin: 0 10px; }
|
||||
.m20h { margin: 0 20px; }
|
||||
.m5v { margin: 5px 0; }
|
||||
.m20v { margin: 20px 0; }
|
||||
.m10v { margin: 10px 0; }
|
||||
.m50v { margin: 50px 0; }
|
||||
.m10b { margin-bottom: 10px; }
|
||||
.m10l { margin-left: 10px; }
|
||||
.m20t { margin-top: 20px; }
|
||||
.vm { vertical-align: middle; }
|
||||
.pa {position: absolute;}
|
||||
.pr {position: relative;}
|
||||
|
||||
.bgwhite {
|
||||
background-color: white;
|
||||
}
|
||||
|
||||
.btn-group .btn+.btn, .btn-group .btn+.btn-group, .btn-group .btn-group+.btn, .btn-group .btn-group+.btn-group {
|
||||
margin-left: 0;
|
||||
}
|
||||
|
||||
.table-hover>tbody>tr:hover>td, .table-hover>tbody>tr:hover>th {
|
||||
background-color: #F0F7E2;
|
||||
}
|
||||
.navbar { min-height: 64px; }
|
||||
.navbar-default .navbar-toggle {
|
||||
border-color: #fff;
|
||||
margin-top: 15px;
|
||||
}
|
||||
|
||||
.navbar-default .navbar-toggle .icon-bar { background-color: #fff; }
|
||||
.navbar-default .navbar-toggle:hover, .navbar-default .navbar-toggle:focus {background-color: #373D42;}
|
||||
|
||||
.navbar-default {
|
||||
background-color: #8DC429;
|
||||
margin: 0;
|
||||
border: 0;
|
||||
}
|
||||
|
||||
.navbar-default .navbar-nav>li>a {
|
||||
color: #F4FBE8;
|
||||
font-family: 'Ubuntu', sans-serif;
|
||||
padding-left: 20px;
|
||||
padding-right: 20px;
|
||||
}
|
||||
|
||||
.navbar-default .navbar-nav>.active>a, .navbar-default .navbar-nav>.active>a:focus {
|
||||
background-color: #6C9032;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.navbar-default .navbar-nav>li>a:hover, .navbar-default .navbar-nav>.active>a:hover {
|
||||
background-color: #fff;
|
||||
}
|
||||
|
||||
.navbar-form .form-group {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.navbar-form {
|
||||
margin-top: 15px;
|
||||
}
|
||||
|
||||
.nav-tabs.nav-justified>li>a:hover {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.insight {
|
||||
font-family: 'Ubuntu', sans-serif;
|
||||
font-size: 34px;
|
||||
font-style: italic;
|
||||
font-weight: 700;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.navbar-default .navbar-brand:hover, .navbar-default .navbar-brand:focus {
|
||||
color: #fffffe;
|
||||
}
|
||||
|
||||
.navbar-default .navbar-brand {
|
||||
color: #FFFFFF;
|
||||
padding: 20px 15px;
|
||||
}
|
||||
|
||||
.navbar-form .form-control {
|
||||
background-color: #7CAD23;
|
||||
border-radius: 3px;
|
||||
-webkit-border-radius: 3px;
|
||||
-moz-border-radius: 3px;
|
||||
border: 0;
|
||||
-webkit-box-shadow: 1px 1px 0px 0px rgba(255,255,255,0.41), inset 1px 1px 3px 0px rgba(0,0,0,0.10);
|
||||
-moz-box-shadow: 1px 1px 0px 0px rgba(255,255,255,0.41), inset 1px 1px 3px 0px rgba(0,0,0,0.10);
|
||||
box-shadow: 1px 1px 0px 0px rgba(255,255,255,0.41), inset 1px 1px 3px 0px rgba(0,0,0,0.10);
|
||||
}
|
||||
|
||||
.navbar-nav>li>a {
|
||||
padding-top: 22px;
|
||||
padding-bottom: 22px;
|
||||
}
|
||||
|
||||
#search-form { color: #fff; }
|
||||
|
||||
#search.loading {
|
||||
background-image: url('../img/loading.gif');
|
||||
background-position: 5px center;
|
||||
background-repeat: no-repeat;
|
||||
padding-left: 25px;
|
||||
}
|
||||
|
||||
.loader-gif {
|
||||
display: inline-block;
|
||||
width: 16px;
|
||||
height: 11px;
|
||||
background: transparent url(../img/loading.gif) no-repeat;
|
||||
margin-left: 5px;
|
||||
}
|
||||
|
||||
#search { color: #fff; }
|
||||
|
||||
#search::-webkit-input-placeholder {
|
||||
color: #BCDF7E;
|
||||
font-family: 'Ubuntu', sans-serif;
|
||||
font-style: italic;
|
||||
font-weight: 100;
|
||||
}
|
||||
|
||||
#search::-moz-placeholder {
|
||||
color: #BCDF7E;
|
||||
font-family: 'Ubuntu', sans-serif;
|
||||
font-weight: 100;
|
||||
}
|
||||
|
||||
.status {
|
||||
-moz-border-radius: 3px;
|
||||
-webkit-border-radius: 3px;
|
||||
background-color: #597338;
|
||||
border-radius: 3px;
|
||||
margin: 15px 0;
|
||||
padding: 8px 10px;
|
||||
font-size: 12px;
|
||||
color: #eee;
|
||||
text-align: center;
|
||||
margin-right: 10px;
|
||||
}
|
||||
|
||||
.status .tooltip {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.col-gray {
|
||||
-moz-border-radius: 5px;
|
||||
-webkit-border-radius: 5px;
|
||||
background-color: #F4F4F4;
|
||||
border-radius: 5px;
|
||||
padding: 14px;
|
||||
border: 1px solid #eee;
|
||||
}
|
||||
|
||||
.col-gray-responsive {
|
||||
width: auto;
|
||||
}
|
||||
|
||||
.col-gray-fixed {
|
||||
margin-top: 15px;
|
||||
position: fixed;
|
||||
width: 250px;
|
||||
border: 1px solid #eee;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.ellipsis {
|
||||
display: block;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.line20 {
|
||||
border: 1px solid #D4D4D4;
|
||||
margin-bottom: 15px;
|
||||
}
|
||||
|
||||
.line10 {
|
||||
border: 1px solid #EAEAEA;
|
||||
margin: 10px 0;
|
||||
}
|
||||
|
||||
.block-id {
|
||||
background-color: #373D42;
|
||||
border: 3px solid #FFFFFF;
|
||||
margin: 0 auto;
|
||||
width: 165px;
|
||||
color: #fff;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.block-id span {
|
||||
font-size: 40px;
|
||||
margin: 30px 0;
|
||||
}
|
||||
|
||||
.block-id h2 {
|
||||
color: #FFFFFF;
|
||||
font-weight: bold;
|
||||
line-height: 30px;
|
||||
font-size: 24px;
|
||||
margin-top: 0;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
.icon-block {
|
||||
color: #FFFFFF;
|
||||
font-size: 35px;
|
||||
margin-top: 10px;
|
||||
}
|
||||
|
||||
.icon-block h3 {
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.block-tx {
|
||||
-moz-border-radius: 2px;
|
||||
-webkit-border-radius: 2px;
|
||||
background-color: #F4F4F4;
|
||||
border-radius: 2px;
|
||||
margin: 20px 0 10px;
|
||||
overflow: hidden;
|
||||
padding: 15px;
|
||||
border: 1px solid #eee;
|
||||
}
|
||||
|
||||
.btn {
|
||||
border-radius: 2px;
|
||||
}
|
||||
.btn-primary {
|
||||
background-color: #8DC429;
|
||||
border: 2px solid #76AF0F;
|
||||
}
|
||||
|
||||
.btn-primary:hover, .btn-primary:focus, .btn-primary:active,
|
||||
.btn-primary.active, .open .dropdown-toggle.btn-primary,
|
||||
.btn-success:hover, .btn-success:focus, .btn-success:active,
|
||||
.btn-success.active, .open .dropdown-toggle.btn-success,
|
||||
.btn-danger:hover, .btn-danger:focus, .btn-danger:active,
|
||||
.btn-danger.active, .open .dropdown-toggle.btn-danger {
|
||||
background-color: #fff;
|
||||
border: 2px solid #ccc;
|
||||
color: #373D42;
|
||||
}
|
||||
|
||||
.btn-default:hover, .btn-default:focus, .btn-default:active, .btn-default.active, .open .dropdown-toggle.btn-default {
|
||||
background-color: #fff;
|
||||
}
|
||||
|
||||
.btn-default {
|
||||
background-color: #E7E7E7;
|
||||
}
|
||||
|
||||
.btn-success {
|
||||
background-color: #2FA4D7;
|
||||
border: 2px solid #237FA7;
|
||||
}
|
||||
|
||||
.btn-danger {
|
||||
background-color: #AC0015;
|
||||
border: 2px solid #6C0000;
|
||||
}
|
||||
|
||||
.txvalues {
|
||||
display: inline-block;
|
||||
padding: .7em 2em;
|
||||
font-size: 13px;
|
||||
text-transform: uppercase;
|
||||
font-weight:100;
|
||||
color: #fff;
|
||||
text-align: center;
|
||||
white-space: nowrap;
|
||||
vertical-align: baseline;
|
||||
border-radius: .25em;
|
||||
}
|
||||
|
||||
.txvalues-primary {
|
||||
background-color: #8DC429;
|
||||
}
|
||||
|
||||
.txvalues-default {
|
||||
background-color: #EBEBEB;
|
||||
color: #333;
|
||||
}
|
||||
|
||||
.txvalues-success {
|
||||
background-color: #2FA4D7;
|
||||
}
|
||||
|
||||
.txvalues-danger {
|
||||
background-color: #AC0015;
|
||||
}
|
||||
|
||||
.txvalues-normal {
|
||||
background-color: transparent;
|
||||
text-transform: none;
|
||||
color: #333;
|
||||
font-size: 14px;
|
||||
font-weight: normal;
|
||||
}
|
||||
.progress-bar-info { background-color: #8DC429; }
|
||||
|
||||
/* Set the fixed height of the footer here */
|
||||
#footer {
|
||||
background-color: #373D42;
|
||||
color: #fff;
|
||||
height: 51px;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
#footer a.insight {
|
||||
font-size: 20px;
|
||||
text-decoration: none;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
#footer a.insight:hover {
|
||||
color: #fffffe;
|
||||
}
|
||||
|
||||
#footer a.insight small { font-size: 11px; }
|
||||
.line-footer { border-top: 2px dashed #ccc; }
|
||||
|
||||
#footer .links {
|
||||
color: #ddd;
|
||||
font-size: 10px;
|
||||
}
|
||||
|
||||
#footer .links a {
|
||||
color: #ddd;
|
||||
}
|
||||
|
||||
#footer .links a.selected {
|
||||
color: #eee;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
#footer .links a:hover {
|
||||
text-decoration: none;
|
||||
color: #fffffe;
|
||||
}
|
||||
|
||||
.line-bot {
|
||||
border-bottom: 2px solid #EAEAEA;
|
||||
padding: 0 0 10px 0;
|
||||
}
|
||||
.line-mid { padding: 15px;}
|
||||
.line-top {
|
||||
border-top: 1px solid #EAEAEA;
|
||||
padding: 15px 0 0 0;
|
||||
}
|
||||
|
||||
/* Custom page CSS
|
||||
-------------------------------------------------- */
|
||||
/* Not required for template or sticky footer method. */
|
||||
|
||||
#wrap > .container { padding: 70px 15px 0; }
|
||||
|
||||
#footer > .container { padding: auto 15px; }
|
||||
|
||||
.code { font-size: 80%; }
|
||||
|
||||
.address { font-size: 11px; }
|
||||
|
||||
.no_matching {
|
||||
-moz-border-radius-bottomleft: 2px;
|
||||
-moz-border-radius-bottomright: 2px;
|
||||
-webkit-border-bottom-left-radius: 2px;
|
||||
-webkit-border-bottom-right-radius: 2px;
|
||||
background-color: #FFFFFF;
|
||||
border-bottom-left-radius: 2px;
|
||||
border-bottom-right-radius: 2px;
|
||||
border-top: none;
|
||||
border: 1px solid #64920F;
|
||||
padding: 10px 20px;
|
||||
position: absolute;
|
||||
text-align: center;
|
||||
top: 45px;
|
||||
width: 300px;
|
||||
}
|
||||
|
||||
/*Animations*/
|
||||
.fader.ng-enter {
|
||||
opacity: 0;
|
||||
-webkit-transition: opacity 1s;
|
||||
-moz-transition: opacity 1s;
|
||||
-o-transition: opacity 1s;
|
||||
transition: opacity 1s;
|
||||
}
|
||||
|
||||
.fader.ng-enter-active { opacity: 1; }
|
||||
|
||||
.tx-bg {
|
||||
background-color: #F4F4F4;
|
||||
left: 0;
|
||||
min-height: 340px;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
width: 100%;
|
||||
z-index: -9999;
|
||||
}
|
||||
|
||||
.badge {
|
||||
-moz-border-radius: 9px;
|
||||
-webkit-border-radius: 9px;
|
||||
background-color: #999999;
|
||||
border-radius: 9px;
|
||||
color: #ffffff;
|
||||
font-size: 12.025px;
|
||||
font-weight: bold;
|
||||
padding: 1px 9px 2px;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.badge:hover {
|
||||
color: #ffffff;
|
||||
text-decoration: none;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.badge-error { background-color: #b94a48; }
|
||||
.badge-error:hover { background-color: #953b39; }
|
||||
.badge-warning { background-color: #f89406; }
|
||||
.badge-warning:hover { background-color: #c67605; }
|
||||
.badge-success { background-color: #468847; }
|
||||
.badge-success:hover { background-color: #356635; }
|
||||
.badge-info { background-color: #3a87ad; }
|
||||
.badge-info:hover { background-color: #2d6987; }
|
||||
.badge-inverse { background-color: #333333; }
|
||||
.badge-inverse:hover { background-color: #1a1a1a; }
|
||||
|
||||
.status .t {
|
||||
color: white;
|
||||
}
|
||||
|
||||
.status .text-danger { background: red; }
|
||||
|
||||
.status .text-warning {
|
||||
background: yellow;
|
||||
color: black;
|
||||
}
|
||||
|
||||
.btn-copy {
|
||||
color: #9b9b9b;
|
||||
display: inline-block;
|
||||
height: 16px;
|
||||
width: 16px;
|
||||
outline: none;
|
||||
vertical-align: sub;
|
||||
}
|
||||
|
||||
.btn-expand {
|
||||
color: #9b9b9b;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
.btn-copy:hover, .btn-expand:hover {
|
||||
color: #000;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.btn-copy {
|
||||
background: transparent url('../img/icons/copy.png') center center no-repeat;
|
||||
}
|
||||
|
||||
.btn-copy .tooltip {
|
||||
display: block;
|
||||
margin-left: 20px;
|
||||
margin-top: -2px;
|
||||
opacity: 0;
|
||||
}
|
||||
.btn-copy.zeroclipboard-is-hover { color: #2a6496; }
|
||||
.btn-copy.zeroclipboard-is-active .tooltip { opacity: 1; }
|
||||
|
||||
.tx-id {
|
||||
background-color: #373D42;
|
||||
border: 3px solid #FFFFFF;
|
||||
margin: 0 auto;
|
||||
width: 165px;
|
||||
color: #FFFFFF;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.tx-id span {
|
||||
font-size: 40px;
|
||||
margin: 30px 0;
|
||||
}
|
||||
|
||||
.page-header { margin-top: 0; }
|
||||
|
||||
.panel { margin-bottom: 1em;}
|
||||
.panel-body {
|
||||
padding: 0.7em;
|
||||
word-wrap: break-word;
|
||||
}
|
||||
|
||||
/* Index */
|
||||
#home .btn-more {
|
||||
border-top: 1px solid #ddd;
|
||||
margin: 30px auto 0;
|
||||
text-align: center;
|
||||
width: 90%;
|
||||
}
|
||||
#home .btn-more .btn-default {
|
||||
margin-top: -23px;
|
||||
}
|
||||
|
||||
#powered .powered-text {
|
||||
border-top: 1px solid #ddd;
|
||||
margin: 30px auto 0;
|
||||
text-align: center;
|
||||
width: 90%;
|
||||
}
|
||||
#powered .powered-text small {
|
||||
background-color: #f4f4f4;
|
||||
padding: 4px;
|
||||
position: relative;
|
||||
top: -12px;
|
||||
}
|
||||
|
||||
#powered a {
|
||||
background-repeat: no-repeat;
|
||||
background-position: center center;
|
||||
display: inline-block;
|
||||
float: left;
|
||||
height: 45px;
|
||||
}
|
||||
#powered a.bitcore {
|
||||
background-image: url('../img/logo.svg');
|
||||
background-size: 80px;
|
||||
width: 30%;
|
||||
}
|
||||
#powered a.nodejs {
|
||||
background-image: url('../img/nodejs.png');
|
||||
background-size: 80px;
|
||||
width: 30%;
|
||||
}
|
||||
#powered a.angularjs {
|
||||
background-image: url('../img/angularjs.png');
|
||||
background-size: 50px;
|
||||
width: 20%;
|
||||
}
|
||||
#powered a.leveldb {
|
||||
background-image: url('../img/leveldb.png');
|
||||
background-size: 50px;
|
||||
width: 20%;
|
||||
}
|
||||
|
||||
@keyframes rotateThis {
|
||||
from { transform: scale( 1 ) rotate( 0deg ); }
|
||||
to { transform: scale( 1 ) rotate( 360deg ); }
|
||||
}
|
||||
|
||||
@-webkit-keyframes rotateThis {
|
||||
from { -webkit-transform: scale( 1 ) rotate( 0deg ); }
|
||||
to { -webkit-transform: scale( 1 ) rotate( 360deg ); }
|
||||
}
|
||||
|
||||
.icon-rotate {
|
||||
animation-name: rotateThis;
|
||||
animation-duration: 2s;
|
||||
animation-iteration-count: infinite;
|
||||
animation-timing-function: linear;
|
||||
-webkit-animation-name: rotateThis;
|
||||
-webkit-animation-duration: 2s;
|
||||
-webkit-animation-iteration-count: infinite;
|
||||
-webkit-animation-timing-function: linear;
|
||||
}
|
||||
|
||||
.transaction-vin-vout {
|
||||
}
|
||||
|
||||
.v_highlight {
|
||||
margin-bottom: 1em;
|
||||
padding: 1em 0;
|
||||
background-color: #e9e9e9;
|
||||
overflow: hidden;
|
||||
color: #333;
|
||||
}
|
||||
|
||||
a.v_highlight_more {
|
||||
background-color: #F0F7E2;
|
||||
color: #333;
|
||||
}
|
||||
|
||||
.secondary_navbar {
|
||||
width: 100%;
|
||||
background: #fff;
|
||||
position: fixed;
|
||||
top: 64px;
|
||||
left: 0;
|
||||
text-align: center;
|
||||
z-index: 1000;
|
||||
margin: 0 auto;
|
||||
-moz-box-shadow: 0px 1px 4px 0px rgba(0,0,0,0.20);
|
||||
-webkit-box-shadow: 0px 1px 4px 0px rgba(0,0,0,0.20);
|
||||
box-shadow: 0px 1px 4px 0px rgba(0,0,0,0.20);
|
||||
}
|
||||
|
||||
.secondary_navbar .container {
|
||||
margin: 0 auto;
|
||||
padding: 1.8em 0;
|
||||
}
|
||||
|
||||
.secondary_navbar h3, .secondary_navbar p, .secondary_navbar .lead {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.secondary_navbar p {
|
||||
line-height: 1.9em;
|
||||
}
|
||||
|
||||
.hide_snavbar {
|
||||
border-bottom-right-radius: 0.3em;
|
||||
border-bottom-left-radius: 0.3em;
|
||||
position: absolute;
|
||||
right: 25px;
|
||||
padding: 5px 10px;
|
||||
background: #fff;
|
||||
-moz-box-shadow: 0px 2px 3px 0px rgba(0,0,0,0.20);
|
||||
-webkit-box-shadow: 0px 2px 3px 0px rgba(0,0,0,0.20);
|
||||
box-shadow: 0px 2px 3px 0px rgba(0,0,0,0.20);
|
||||
}
|
||||
|
||||
#search-form-mobile {
|
||||
margin-top: 15px;
|
||||
}
|
||||
|
||||
@media (max-width: 991px) {
|
||||
.status {
|
||||
display: none;
|
||||
}
|
||||
.navbar-form {
|
||||
width: auto;
|
||||
}
|
||||
.btn-copy {
|
||||
display: none;
|
||||
}
|
||||
.col-gray-fixed {
|
||||
position:static;
|
||||
width: 100%;
|
||||
margin-top: 0;
|
||||
padding: 0;
|
||||
}
|
||||
.m50v {
|
||||
margin: 15px 0;
|
||||
}
|
||||
.block-id span {
|
||||
font-size: 24px;
|
||||
margin: 10px 0;
|
||||
}
|
||||
.icon-block {
|
||||
font-size: initial;
|
||||
margin: 10px 0;
|
||||
}
|
||||
body {
|
||||
font-size: 12px;
|
||||
}
|
||||
h1 {
|
||||
font-size: 26px;
|
||||
}
|
||||
h2 {
|
||||
font-size: 22px;
|
||||
}
|
||||
h3 {
|
||||
font-size: 18px;
|
||||
}
|
||||
.insight {
|
||||
font-size: 30px;
|
||||
}
|
||||
.navbar-default .navbar-nav>li>a {
|
||||
padding-left: 15px;
|
||||
padding-right: 15px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 767px) {
|
||||
.navbar-form {
|
||||
width: auto;
|
||||
}
|
||||
.status {
|
||||
display: none;
|
||||
}
|
||||
#wrap>.container {
|
||||
padding: 50px 15px 0;
|
||||
}
|
||||
#ngProgress-container {
|
||||
top: 50px;
|
||||
}
|
||||
body {
|
||||
font-size: 11px;
|
||||
}
|
||||
h1 {
|
||||
font-size: 24px;
|
||||
}
|
||||
h2 {
|
||||
font-size: 20px;
|
||||
}
|
||||
.navbar-default .navbar-brand {
|
||||
padding: 15px;
|
||||
}
|
||||
.insight {
|
||||
font-size: 26px;
|
||||
}
|
||||
.navbar-nav>li>a {
|
||||
padding-top: 15px;
|
||||
padding-bottom: 15px;
|
||||
}
|
||||
.container {
|
||||
padding-left: 0;
|
||||
padding-right: 0;
|
||||
}
|
||||
.navbar-default .navbar-toggle {
|
||||
margin-top: 7px;
|
||||
}
|
||||
.navbar {
|
||||
min-height: 50px;
|
||||
}
|
||||
#search { color: #000; }
|
||||
.txvalues {
|
||||
display: block;
|
||||
margin: 5px;
|
||||
padding: 0.5em 2em;
|
||||
font-size: 11px;
|
||||
}
|
||||
.navbar-default .navbar-nav .open .dropdown-menu>li>a {
|
||||
color: #fff;
|
||||
}
|
||||
.txvalues {
|
||||
display: inline;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
font-weight: bold;
|
||||
}
|
||||
.txvalues-success {
|
||||
background: none;
|
||||
color: #2FA4D7;
|
||||
}
|
||||
.txvalues-primary {
|
||||
background: none;
|
||||
color: #8DC429;
|
||||
}
|
||||
.txvalues-default {
|
||||
background: none;
|
||||
color: #A09E9E;
|
||||
}
|
||||
.txvalues-danger {
|
||||
background: none;
|
||||
color: #AC0015;
|
||||
}
|
||||
.btn-expand {
|
||||
font-size: 18px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 1200px) {
|
||||
.col-gray-fixed {
|
||||
width: 280px;
|
||||
}
|
||||
.navbar-form .form-control {
|
||||
width: 350px;
|
||||
}
|
||||
}
|
||||
|
||||
@ -1,39 +0,0 @@
|
||||
'use strict';
|
||||
|
||||
var defaultLanguage = localStorage.getItem('insight-language') || 'en';
|
||||
var defaultCurrency = localStorage.getItem('insight-currency') || 'BTC';
|
||||
|
||||
angular.module('insight',[
|
||||
'ngAnimate',
|
||||
'ngResource',
|
||||
'ngRoute',
|
||||
'ngProgress',
|
||||
'ui.bootstrap',
|
||||
'ui.route',
|
||||
'monospaced.qrcode',
|
||||
'gettext',
|
||||
'angularMoment',
|
||||
'insight.system',
|
||||
'insight.socket',
|
||||
'insight.api',
|
||||
'insight.blocks',
|
||||
'insight.transactions',
|
||||
'insight.address',
|
||||
'insight.search',
|
||||
'insight.status',
|
||||
'insight.connection',
|
||||
'insight.currency',
|
||||
'insight.messages'
|
||||
]);
|
||||
|
||||
angular.module('insight.system', []);
|
||||
angular.module('insight.socket', []);
|
||||
angular.module('insight.api', []);
|
||||
angular.module('insight.blocks', []);
|
||||
angular.module('insight.transactions', []);
|
||||
angular.module('insight.address', []);
|
||||
angular.module('insight.search', []);
|
||||
angular.module('insight.status', []);
|
||||
angular.module('insight.connection', []);
|
||||
angular.module('insight.currency', []);
|
||||
angular.module('insight.messages', []);
|
||||
@ -1,77 +0,0 @@
|
||||
'use strict';
|
||||
|
||||
//Setting up route
|
||||
angular.module('insight').config(function($routeProvider) {
|
||||
$routeProvider.
|
||||
when('/block/:blockHash', {
|
||||
templateUrl: 'views/block.html',
|
||||
title: 'Bitcoin Block '
|
||||
}).
|
||||
when('/block-index/:blockHeight', {
|
||||
controller: 'BlocksController',
|
||||
templateUrl: 'views/redirect.html'
|
||||
}).
|
||||
when('/tx/send', {
|
||||
templateUrl: 'views/transaction_sendraw.html',
|
||||
title: 'Broadcast Raw Transaction'
|
||||
}).
|
||||
when('/tx/:txId/:v_type?/:v_index?', {
|
||||
templateUrl: 'views/transaction.html',
|
||||
title: 'Bitcoin Transaction '
|
||||
}).
|
||||
when('/', {
|
||||
templateUrl: 'views/index.html',
|
||||
title: 'Home'
|
||||
}).
|
||||
when('/blocks', {
|
||||
templateUrl: 'views/block_list.html',
|
||||
title: 'Bitcoin Blocks solved Today'
|
||||
}).
|
||||
when('/blocks-date/:blockDate/:startTimestamp?', {
|
||||
templateUrl: 'views/block_list.html',
|
||||
title: 'Bitcoin Blocks solved '
|
||||
}).
|
||||
when('/address/:addrStr', {
|
||||
templateUrl: 'views/address.html',
|
||||
title: 'Bitcoin Address '
|
||||
}).
|
||||
when('/status', {
|
||||
templateUrl: 'views/status.html',
|
||||
title: 'Status'
|
||||
}).
|
||||
when('/messages/verify', {
|
||||
templateUrl: 'views/messages_verify.html',
|
||||
title: 'Verify Message'
|
||||
})
|
||||
.otherwise({
|
||||
templateUrl: 'views/404.html',
|
||||
title: 'Error'
|
||||
});
|
||||
});
|
||||
|
||||
//Setting HTML5 Location Mode
|
||||
angular.module('insight')
|
||||
.config(function($locationProvider) {
|
||||
$locationProvider.html5Mode(true);
|
||||
$locationProvider.hashPrefix('!');
|
||||
})
|
||||
.run(function($rootScope, $route, $location, $routeParams, $anchorScroll, ngProgress, gettextCatalog, amMoment) {
|
||||
gettextCatalog.currentLanguage = defaultLanguage;
|
||||
amMoment.changeLocale(defaultLanguage);
|
||||
$rootScope.$on('$routeChangeStart', function() {
|
||||
ngProgress.start();
|
||||
});
|
||||
|
||||
$rootScope.$on('$routeChangeSuccess', function() {
|
||||
ngProgress.complete();
|
||||
|
||||
//Change page title, based on Route information
|
||||
$rootScope.titleDetail = '';
|
||||
$rootScope.title = $route.current.title;
|
||||
$rootScope.isCollapsed = true;
|
||||
$rootScope.currentAddr = null;
|
||||
|
||||
$location.hash($routeParams.scrollTo);
|
||||
$anchorScroll();
|
||||
});
|
||||
});
|
||||
@ -1,60 +0,0 @@
|
||||
'use strict';
|
||||
|
||||
angular.module('insight.address').controller('AddressController',
|
||||
function($scope, $rootScope, $routeParams, $location, Global, Address, getSocket) {
|
||||
$scope.global = Global;
|
||||
|
||||
var socket = getSocket($scope);
|
||||
var addrStr = $routeParams.addrStr;
|
||||
|
||||
var _startSocket = function() {
|
||||
socket.on('bitcoind/addresstxid', function(data) {
|
||||
if (data.address === addrStr) {
|
||||
$rootScope.$broadcast('tx', data.txid);
|
||||
var base = document.querySelector('base');
|
||||
var beep = new Audio(base.href + '/sound/transaction.mp3');
|
||||
beep.play();
|
||||
}
|
||||
});
|
||||
socket.emit('subscribe', 'bitcoind/addresstxid', [addrStr]);
|
||||
};
|
||||
|
||||
var _stopSocket = function () {
|
||||
socket.emit('unsubscribe', 'bitcoind/addresstxid', [addrStr]);
|
||||
};
|
||||
|
||||
socket.on('connect', function() {
|
||||
_startSocket();
|
||||
});
|
||||
|
||||
$scope.$on('$destroy', function(){
|
||||
_stopSocket();
|
||||
});
|
||||
|
||||
$scope.params = $routeParams;
|
||||
|
||||
$scope.findOne = function() {
|
||||
$rootScope.currentAddr = $routeParams.addrStr;
|
||||
_startSocket();
|
||||
|
||||
Address.get({
|
||||
addrStr: $routeParams.addrStr
|
||||
},
|
||||
function(address) {
|
||||
$rootScope.titleDetail = address.addrStr.substring(0, 7) + '...';
|
||||
$rootScope.flashMessage = null;
|
||||
$scope.address = address;
|
||||
},
|
||||
function(e) {
|
||||
if (e.status === 400) {
|
||||
$rootScope.flashMessage = 'Invalid Address: ' + $routeParams.addrStr;
|
||||
} else if (e.status === 503) {
|
||||
$rootScope.flashMessage = 'Backend Error. ' + e.data;
|
||||
} else {
|
||||
$rootScope.flashMessage = 'Address Not Found';
|
||||
}
|
||||
$location.path('/');
|
||||
});
|
||||
};
|
||||
|
||||
});
|
||||
@ -1,100 +0,0 @@
|
||||
'use strict';
|
||||
|
||||
angular.module('insight.blocks').controller('BlocksController',
|
||||
function($scope, $rootScope, $routeParams, $location, Global, Block, Blocks, BlockByHeight) {
|
||||
$scope.global = Global;
|
||||
$scope.loading = false;
|
||||
|
||||
if ($routeParams.blockHeight) {
|
||||
BlockByHeight.get({
|
||||
blockHeight: $routeParams.blockHeight
|
||||
}, function(hash) {
|
||||
$location.path('/block/' + hash.blockHash);
|
||||
}, function() {
|
||||
$rootScope.flashMessage = 'Bad Request';
|
||||
$location.path('/');
|
||||
});
|
||||
}
|
||||
|
||||
//Datepicker
|
||||
var _formatTimestamp = function (date) {
|
||||
var yyyy = date.getUTCFullYear().toString();
|
||||
var mm = (date.getUTCMonth() + 1).toString(); // getMonth() is zero-based
|
||||
var dd = date.getUTCDate().toString();
|
||||
|
||||
return yyyy + '-' + (mm[1] ? mm : '0' + mm[0]) + '-' + (dd[1] ? dd : '0' + dd[0]); //padding
|
||||
};
|
||||
|
||||
$scope.$watch('dt', function(newValue, oldValue) {
|
||||
if (newValue !== oldValue) {
|
||||
$location.path('/blocks-date/' + _formatTimestamp(newValue));
|
||||
}
|
||||
});
|
||||
|
||||
$scope.openCalendar = function($event) {
|
||||
$event.preventDefault();
|
||||
$event.stopPropagation();
|
||||
|
||||
$scope.opened = true;
|
||||
};
|
||||
|
||||
$scope.humanSince = function(time) {
|
||||
var m = moment.unix(time).startOf('day');
|
||||
var b = moment().startOf('day');
|
||||
return m.max().from(b);
|
||||
};
|
||||
|
||||
|
||||
$scope.list = function() {
|
||||
$scope.loading = true;
|
||||
|
||||
if ($routeParams.blockDate) {
|
||||
$scope.detail = 'On ' + $routeParams.blockDate;
|
||||
}
|
||||
|
||||
if ($routeParams.startTimestamp) {
|
||||
var d=new Date($routeParams.startTimestamp*1000);
|
||||
var m=d.getMinutes();
|
||||
if (m<10) m = '0' + m;
|
||||
$scope.before = ' before ' + d.getHours() + ':' + m;
|
||||
}
|
||||
|
||||
$rootScope.titleDetail = $scope.detail;
|
||||
|
||||
Blocks.get({
|
||||
blockDate: $routeParams.blockDate,
|
||||
startTimestamp: $routeParams.startTimestamp
|
||||
}, function(res) {
|
||||
$scope.loading = false;
|
||||
$scope.blocks = res.blocks;
|
||||
$scope.pagination = res.pagination;
|
||||
});
|
||||
};
|
||||
|
||||
$scope.findOne = function() {
|
||||
$scope.loading = true;
|
||||
|
||||
Block.get({
|
||||
blockHash: $routeParams.blockHash
|
||||
}, function(block) {
|
||||
$rootScope.titleDetail = block.height;
|
||||
$rootScope.flashMessage = null;
|
||||
$scope.loading = false;
|
||||
$scope.block = block;
|
||||
}, function(e) {
|
||||
if (e.status === 400) {
|
||||
$rootScope.flashMessage = 'Invalid Transaction ID: ' + $routeParams.txId;
|
||||
}
|
||||
else if (e.status === 503) {
|
||||
$rootScope.flashMessage = 'Backend Error. ' + e.data;
|
||||
}
|
||||
else {
|
||||
$rootScope.flashMessage = 'Block Not Found';
|
||||
}
|
||||
$location.path('/');
|
||||
});
|
||||
};
|
||||
|
||||
$scope.params = $routeParams;
|
||||
|
||||
});
|
||||
@ -1,53 +0,0 @@
|
||||
'use strict';
|
||||
|
||||
angular.module('insight.connection').controller('ConnectionController',
|
||||
function($scope, $window, Status, getSocket, PeerSync) {
|
||||
|
||||
// Set initial values
|
||||
$scope.apiOnline = true;
|
||||
$scope.serverOnline = true;
|
||||
$scope.clienteOnline = true;
|
||||
|
||||
var socket = getSocket($scope);
|
||||
|
||||
// Check for the node server connection
|
||||
socket.on('connect', function() {
|
||||
$scope.serverOnline = true;
|
||||
socket.on('disconnect', function() {
|
||||
$scope.serverOnline = false;
|
||||
});
|
||||
});
|
||||
|
||||
// Check for the api connection
|
||||
$scope.getConnStatus = function() {
|
||||
PeerSync.get({},
|
||||
function(peer) {
|
||||
$scope.apiOnline = peer.connected;
|
||||
$scope.host = peer.host;
|
||||
$scope.port = peer.port;
|
||||
},
|
||||
function() {
|
||||
$scope.apiOnline = false;
|
||||
});
|
||||
};
|
||||
|
||||
socket.emit('subscribe', 'sync');
|
||||
socket.on('status', function(sync) {
|
||||
$scope.sync = sync;
|
||||
$scope.apiOnline = (sync.status !== 'aborted' && sync.status !== 'error');
|
||||
});
|
||||
|
||||
// Check for the client conneciton
|
||||
$window.addEventListener('offline', function() {
|
||||
$scope.$apply(function() {
|
||||
$scope.clienteOnline = false;
|
||||
});
|
||||
}, true);
|
||||
|
||||
$window.addEventListener('online', function() {
|
||||
$scope.$apply(function() {
|
||||
$scope.clienteOnline = true;
|
||||
});
|
||||
}, true);
|
||||
|
||||
});
|
||||
@ -1,64 +0,0 @@
|
||||
'use strict';
|
||||
|
||||
angular.module('insight.currency').controller('CurrencyController',
|
||||
function($scope, $rootScope, Currency) {
|
||||
$rootScope.currency.symbol = defaultCurrency;
|
||||
|
||||
var _roundFloat = function(x, n) {
|
||||
if(!parseInt(n, 10) || !parseFloat(x)) n = 0;
|
||||
|
||||
return Math.round(x * Math.pow(10, n)) / Math.pow(10, n);
|
||||
};
|
||||
|
||||
$rootScope.currency.getConvertion = function(value) {
|
||||
value = value * 1; // Convert to number
|
||||
|
||||
if (!isNaN(value) && typeof value !== 'undefined' && value !== null) {
|
||||
if (value === 0.00000000) return '0 ' + this.symbol; // fix value to show
|
||||
|
||||
var response;
|
||||
|
||||
if (this.symbol === 'USD') {
|
||||
response = _roundFloat((value * this.factor), 2);
|
||||
} else if (this.symbol === 'mBTC') {
|
||||
this.factor = 1000;
|
||||
response = _roundFloat((value * this.factor), 5);
|
||||
} else if (this.symbol === 'bits') {
|
||||
this.factor = 1000000;
|
||||
response = _roundFloat((value * this.factor), 2);
|
||||
} else { // assumes symbol is BTC
|
||||
this.factor = 1;
|
||||
response = _roundFloat((value * this.factor), 8);
|
||||
}
|
||||
// prevent sci notation
|
||||
if (response < 1e-7) response=response.toFixed(8);
|
||||
|
||||
return response + ' ' + this.symbol;
|
||||
}
|
||||
|
||||
return 'value error';
|
||||
};
|
||||
|
||||
$scope.setCurrency = function(currency) {
|
||||
$rootScope.currency.symbol = currency;
|
||||
localStorage.setItem('insight-currency', currency);
|
||||
|
||||
if (currency === 'USD') {
|
||||
Currency.get({}, function(res) {
|
||||
$rootScope.currency.factor = $rootScope.currency.bitstamp = res.data.bitstamp;
|
||||
});
|
||||
} else if (currency === 'mBTC') {
|
||||
$rootScope.currency.factor = 1000;
|
||||
} else if (currency === 'bits') {
|
||||
$rootScope.currency.factor = 1000000;
|
||||
} else {
|
||||
$rootScope.currency.factor = 1;
|
||||
}
|
||||
};
|
||||
|
||||
// Get initial value
|
||||
Currency.get({}, function(res) {
|
||||
$rootScope.currency.factor = $rootScope.currency.bitstamp = res.data.bitstamp;
|
||||
});
|
||||
|
||||
});
|
||||
@ -1,40 +0,0 @@
|
||||
'use strict';
|
||||
|
||||
angular.module('insight.system').controller('FooterController',
|
||||
function($scope, $route, $templateCache, gettextCatalog, amMoment, Version) {
|
||||
|
||||
$scope.defaultLanguage = defaultLanguage;
|
||||
|
||||
var _getVersion = function() {
|
||||
Version.get({},
|
||||
function(res) {
|
||||
$scope.version = res.version;
|
||||
});
|
||||
};
|
||||
|
||||
$scope.version = _getVersion();
|
||||
|
||||
$scope.availableLanguages = [{
|
||||
name: 'Deutsch',
|
||||
isoCode: 'de_DE',
|
||||
}, {
|
||||
name: 'English',
|
||||
isoCode: 'en',
|
||||
}, {
|
||||
name: 'Spanish',
|
||||
isoCode: 'es',
|
||||
}, {
|
||||
name: 'Japanese',
|
||||
isoCode: 'ja',
|
||||
}];
|
||||
|
||||
$scope.setLanguage = function(isoCode) {
|
||||
gettextCatalog.currentLanguage = $scope.defaultLanguage = defaultLanguage = isoCode;
|
||||
amMoment.changeLocale(isoCode);
|
||||
localStorage.setItem('insight-language', isoCode);
|
||||
var currentPageTemplate = $route.current.templateUrl;
|
||||
$templateCache.remove(currentPageTemplate);
|
||||
$route.reload();
|
||||
};
|
||||
|
||||
});
|
||||
@ -1,47 +0,0 @@
|
||||
'use strict';
|
||||
|
||||
angular.module('insight.system').controller('HeaderController',
|
||||
function($scope, $rootScope, $modal, getSocket, Global, Block) {
|
||||
$scope.global = Global;
|
||||
|
||||
$rootScope.currency = {
|
||||
factor: 1,
|
||||
bitstamp: 0,
|
||||
symbol: 'BTC'
|
||||
};
|
||||
|
||||
$scope.menu = [{
|
||||
'title': 'Blocks',
|
||||
'link': 'blocks'
|
||||
}, {
|
||||
'title': 'Status',
|
||||
'link': 'status'
|
||||
}];
|
||||
|
||||
$scope.openScannerModal = function() {
|
||||
var modalInstance = $modal.open({
|
||||
templateUrl: 'scannerModal.html',
|
||||
controller: 'ScannerController'
|
||||
});
|
||||
};
|
||||
|
||||
var _getBlock = function(hash) {
|
||||
Block.get({
|
||||
blockHash: hash
|
||||
}, function(res) {
|
||||
$scope.totalBlocks = res.height;
|
||||
});
|
||||
};
|
||||
|
||||
var socket = getSocket($scope);
|
||||
socket.on('connect', function() {
|
||||
socket.emit('subscribe', 'inv');
|
||||
|
||||
socket.on('block', function(block) {
|
||||
var blockHash = block.toString();
|
||||
_getBlock(blockHash);
|
||||
});
|
||||
});
|
||||
|
||||
$rootScope.isCollapsed = true;
|
||||
});
|
||||
@ -1,53 +0,0 @@
|
||||
'use strict';
|
||||
|
||||
var TRANSACTION_DISPLAYED = 10;
|
||||
var BLOCKS_DISPLAYED = 5;
|
||||
|
||||
angular.module('insight.system').controller('IndexController',
|
||||
function($scope, Global, getSocket, Blocks) {
|
||||
$scope.global = Global;
|
||||
|
||||
var _getBlocks = function() {
|
||||
Blocks.get({
|
||||
limit: BLOCKS_DISPLAYED
|
||||
}, function(res) {
|
||||
$scope.blocks = res.blocks;
|
||||
$scope.blocksLength = res.length;
|
||||
});
|
||||
};
|
||||
|
||||
var socket = getSocket($scope);
|
||||
|
||||
var _startSocket = function() {
|
||||
socket.emit('subscribe', 'inv');
|
||||
socket.on('tx', function(tx) {
|
||||
$scope.txs.unshift(tx);
|
||||
if (parseInt($scope.txs.length, 10) >= parseInt(TRANSACTION_DISPLAYED, 10)) {
|
||||
$scope.txs = $scope.txs.splice(0, TRANSACTION_DISPLAYED);
|
||||
}
|
||||
});
|
||||
|
||||
socket.on('block', function() {
|
||||
_getBlocks();
|
||||
});
|
||||
};
|
||||
|
||||
socket.on('connect', function() {
|
||||
_startSocket();
|
||||
});
|
||||
|
||||
|
||||
|
||||
$scope.humanSince = function(time) {
|
||||
var m = moment.unix(time);
|
||||
return m.max().fromNow();
|
||||
};
|
||||
|
||||
$scope.index = function() {
|
||||
_getBlocks();
|
||||
_startSocket();
|
||||
};
|
||||
|
||||
$scope.txs = [];
|
||||
$scope.blocks = [];
|
||||
});
|
||||
@ -1,50 +0,0 @@
|
||||
'use strict';
|
||||
|
||||
angular.module('insight.messages').controller('VerifyMessageController',
|
||||
function($scope, $http, Api) {
|
||||
$scope.message = {
|
||||
address: '',
|
||||
signature: '',
|
||||
message: ''
|
||||
};
|
||||
$scope.verification = {
|
||||
status: 'unverified', // ready|loading|verified|error
|
||||
result: null,
|
||||
error: null,
|
||||
address: ''
|
||||
};
|
||||
|
||||
$scope.verifiable = function() {
|
||||
return ($scope.message.address
|
||||
&& $scope.message.signature
|
||||
&& $scope.message.message);
|
||||
};
|
||||
$scope.verify = function() {
|
||||
$scope.verification.status = 'loading';
|
||||
$scope.verification.address = $scope.message.address;
|
||||
$http.post(Api.apiPrefix + '/messages/verify', $scope.message)
|
||||
.success(function(data, status, headers, config) {
|
||||
if(typeof(data.result) != 'boolean') {
|
||||
// API returned 200 but result was not true or false
|
||||
$scope.verification.status = 'error';
|
||||
$scope.verification.error = null;
|
||||
return;
|
||||
}
|
||||
|
||||
$scope.verification.status = 'verified';
|
||||
$scope.verification.result = data.result;
|
||||
})
|
||||
.error(function(data, status, headers, config) {
|
||||
$scope.verification.status = 'error';
|
||||
$scope.verification.error = data;
|
||||
});
|
||||
};
|
||||
|
||||
// Hide the verify status message on form change
|
||||
var unverify = function() {
|
||||
$scope.verification.status = 'unverified';
|
||||
};
|
||||
$scope.$watch('message.address', unverify);
|
||||
$scope.$watch('message.signature', unverify);
|
||||
$scope.$watch('message.message', unverify);
|
||||
});
|
||||
@ -1,149 +0,0 @@
|
||||
'use strict';
|
||||
|
||||
angular.module('insight.system').controller('ScannerController',
|
||||
function($scope, $rootScope, $modalInstance, Global) {
|
||||
$scope.global = Global;
|
||||
|
||||
// Detect mobile devices
|
||||
var isMobile = {
|
||||
Android: function() {
|
||||
return navigator.userAgent.match(/Android/i);
|
||||
},
|
||||
BlackBerry: function() {
|
||||
return navigator.userAgent.match(/BlackBerry/i);
|
||||
},
|
||||
iOS: function() {
|
||||
return navigator.userAgent.match(/iPhone|iPad|iPod/i);
|
||||
},
|
||||
Opera: function() {
|
||||
return navigator.userAgent.match(/Opera Mini/i);
|
||||
},
|
||||
Windows: function() {
|
||||
return navigator.userAgent.match(/IEMobile/i);
|
||||
},
|
||||
any: function() {
|
||||
return (isMobile.Android() || isMobile.BlackBerry() || isMobile.iOS() || isMobile.Opera() || isMobile.Windows());
|
||||
}
|
||||
};
|
||||
|
||||
navigator.getUserMedia = navigator.getUserMedia || navigator.webkitGetUserMedia || navigator.mozGetUserMedia || navigator.msGetUserMedia;
|
||||
window.URL = window.URL || window.webkitURL || window.mozURL || window.msURL;
|
||||
|
||||
$scope.isMobile = isMobile.any();
|
||||
$scope.scannerLoading = false;
|
||||
|
||||
var $searchInput = angular.element(document.getElementById('search')),
|
||||
cameraInput,
|
||||
video,
|
||||
canvas,
|
||||
$video,
|
||||
context,
|
||||
localMediaStream;
|
||||
|
||||
var _scan = function(evt) {
|
||||
if ($scope.isMobile) {
|
||||
$scope.scannerLoading = true;
|
||||
var files = evt.target.files;
|
||||
|
||||
if (files.length === 1 && files[0].type.indexOf('image/') === 0) {
|
||||
var file = files[0];
|
||||
|
||||
var reader = new FileReader();
|
||||
reader.onload = (function(theFile) {
|
||||
return function(e) {
|
||||
var mpImg = new MegaPixImage(file);
|
||||
mpImg.render(canvas, { maxWidth: 200, maxHeight: 200, orientation: 6 });
|
||||
|
||||
setTimeout(function() {
|
||||
qrcode.width = canvas.width;
|
||||
qrcode.height = canvas.height;
|
||||
qrcode.imagedata = context.getImageData(0, 0, qrcode.width, qrcode.height);
|
||||
|
||||
try {
|
||||
//alert(JSON.stringify(qrcode.process(context)));
|
||||
qrcode.decode();
|
||||
} catch (e) {
|
||||
alert(e);
|
||||
}
|
||||
}, 1500);
|
||||
};
|
||||
})(file);
|
||||
|
||||
// Read in the file as a data URL
|
||||
reader.readAsDataURL(file);
|
||||
}
|
||||
} else {
|
||||
if (localMediaStream) {
|
||||
context.drawImage(video, 0, 0, 300, 225);
|
||||
|
||||
try {
|
||||
qrcode.decode();
|
||||
} catch(e) {
|
||||
//qrcodeError(e);
|
||||
}
|
||||
}
|
||||
|
||||
setTimeout(_scan, 500);
|
||||
}
|
||||
};
|
||||
|
||||
var _successCallback = function(stream) {
|
||||
video.src = (window.URL && window.URL.createObjectURL(stream)) || stream;
|
||||
localMediaStream = stream;
|
||||
video.play();
|
||||
setTimeout(_scan, 1000);
|
||||
};
|
||||
|
||||
var _scanStop = function() {
|
||||
$scope.scannerLoading = false;
|
||||
$modalInstance.close();
|
||||
if (!$scope.isMobile) {
|
||||
if (localMediaStream.stop) localMediaStream.stop();
|
||||
localMediaStream = null;
|
||||
video.src = '';
|
||||
}
|
||||
};
|
||||
|
||||
var _videoError = function(err) {
|
||||
console.log('Video Error: ' + JSON.stringify(err));
|
||||
_scanStop();
|
||||
};
|
||||
|
||||
qrcode.callback = function(data) {
|
||||
_scanStop();
|
||||
|
||||
var str = (data.indexOf('bitcoin:') === 0) ? data.substring(8) : data;
|
||||
console.log('QR code detected: ' + str);
|
||||
$searchInput
|
||||
.val(str)
|
||||
.triggerHandler('change')
|
||||
.triggerHandler('submit');
|
||||
};
|
||||
|
||||
$scope.cancel = function() {
|
||||
_scanStop();
|
||||
};
|
||||
|
||||
$modalInstance.opened.then(function() {
|
||||
$rootScope.isCollapsed = true;
|
||||
|
||||
// Start the scanner
|
||||
setTimeout(function() {
|
||||
canvas = document.getElementById('qr-canvas');
|
||||
context = canvas.getContext('2d');
|
||||
|
||||
if ($scope.isMobile) {
|
||||
cameraInput = document.getElementById('qrcode-camera');
|
||||
cameraInput.addEventListener('change', _scan, false);
|
||||
} else {
|
||||
video = document.getElementById('qrcode-scanner-video');
|
||||
$video = angular.element(video);
|
||||
canvas.width = 300;
|
||||
canvas.height = 225;
|
||||
context.clearRect(0, 0, 300, 225);
|
||||
|
||||
navigator.getUserMedia({video: true}, _successCallback, _videoError);
|
||||
}
|
||||
}, 500);
|
||||
});
|
||||
});
|
||||
@ -1,64 +0,0 @@
|
||||
'use strict';
|
||||
|
||||
angular.module('insight.search').controller('SearchController',
|
||||
function($scope, $routeParams, $location, $timeout, Global, Block, Transaction, Address, BlockByHeight) {
|
||||
$scope.global = Global;
|
||||
$scope.loading = false;
|
||||
|
||||
var _badQuery = function() {
|
||||
$scope.badQuery = true;
|
||||
|
||||
$timeout(function() {
|
||||
$scope.badQuery = false;
|
||||
}, 2000);
|
||||
};
|
||||
|
||||
var _resetSearch = function() {
|
||||
$scope.q = '';
|
||||
$scope.loading = false;
|
||||
};
|
||||
|
||||
$scope.search = function() {
|
||||
var q = $scope.q;
|
||||
$scope.badQuery = false;
|
||||
$scope.loading = true;
|
||||
|
||||
Block.get({
|
||||
blockHash: q
|
||||
}, function() {
|
||||
_resetSearch();
|
||||
$location.path('block/' + q);
|
||||
}, function() { //block not found, search on TX
|
||||
Transaction.get({
|
||||
txId: q
|
||||
}, function() {
|
||||
_resetSearch();
|
||||
$location.path('tx/' + q);
|
||||
}, function() { //tx not found, search on Address
|
||||
Address.get({
|
||||
addrStr: q
|
||||
}, function() {
|
||||
_resetSearch();
|
||||
$location.path('address/' + q);
|
||||
}, function() { // block by height not found
|
||||
if (isFinite(q)) { // ensure that q is a finite number. A logical height value.
|
||||
BlockByHeight.get({
|
||||
blockHeight: q
|
||||
}, function(hash) {
|
||||
_resetSearch();
|
||||
$location.path('/block/' + hash.blockHash);
|
||||
}, function() { //not found, fail :(
|
||||
$scope.loading = false;
|
||||
_badQuery();
|
||||
});
|
||||
}
|
||||
else {
|
||||
$scope.loading = false;
|
||||
_badQuery();
|
||||
}
|
||||
});
|
||||
});
|
||||
});
|
||||
};
|
||||
|
||||
});
|
||||
@ -1,55 +0,0 @@
|
||||
'use strict';
|
||||
|
||||
angular.module('insight.status').controller('StatusController',
|
||||
function($scope, $routeParams, $location, Global, Status, Sync, getSocket) {
|
||||
$scope.global = Global;
|
||||
|
||||
$scope.getStatus = function(q) {
|
||||
Status.get({
|
||||
q: 'get' + q
|
||||
},
|
||||
function(d) {
|
||||
$scope.loaded = 1;
|
||||
angular.extend($scope, d);
|
||||
},
|
||||
function(e) {
|
||||
$scope.error = 'API ERROR: ' + e.data;
|
||||
});
|
||||
};
|
||||
|
||||
$scope.humanSince = function(time) {
|
||||
var m = moment.unix(time / 1000);
|
||||
return m.max().fromNow();
|
||||
};
|
||||
|
||||
var _onSyncUpdate = function(sync) {
|
||||
$scope.sync = sync;
|
||||
};
|
||||
|
||||
var _startSocket = function () {
|
||||
socket.emit('subscribe', 'sync');
|
||||
socket.on('status', function(sync) {
|
||||
_onSyncUpdate(sync);
|
||||
});
|
||||
};
|
||||
|
||||
var socket = getSocket($scope);
|
||||
socket.on('connect', function() {
|
||||
_startSocket();
|
||||
});
|
||||
|
||||
|
||||
$scope.getSync = function() {
|
||||
_startSocket();
|
||||
Sync.get({},
|
||||
function(sync) {
|
||||
_onSyncUpdate(sync);
|
||||
},
|
||||
function(e) {
|
||||
var err = 'Could not get sync information' + e.toString();
|
||||
$scope.sync = {
|
||||
error: err
|
||||
};
|
||||
});
|
||||
};
|
||||
});
|
||||
@ -1,213 +0,0 @@
|
||||
'use strict';
|
||||
|
||||
angular.module('insight.transactions').controller('transactionsController',
|
||||
function($scope, $rootScope, $routeParams, $location, Global, Transaction, TransactionsByBlock, TransactionsByAddress) {
|
||||
$scope.global = Global;
|
||||
$scope.loading = false;
|
||||
$scope.loadedBy = null;
|
||||
|
||||
var pageNum = 0;
|
||||
var pagesTotal = 1;
|
||||
var COIN = 100000000;
|
||||
|
||||
var _aggregateItems = function(items) {
|
||||
if (!items) return [];
|
||||
|
||||
var l = items.length;
|
||||
|
||||
var ret = [];
|
||||
var tmp = {};
|
||||
var u = 0;
|
||||
|
||||
for(var i=0; i < l; i++) {
|
||||
|
||||
var notAddr = false;
|
||||
// non standard input
|
||||
if (items[i].scriptSig && !items[i].addr) {
|
||||
items[i].addr = 'Unparsed address [' + u++ + ']';
|
||||
items[i].notAddr = true;
|
||||
notAddr = true;
|
||||
}
|
||||
|
||||
// non standard output
|
||||
if (items[i].scriptPubKey && !items[i].scriptPubKey.addresses) {
|
||||
items[i].scriptPubKey.addresses = ['Unparsed address [' + u++ + ']'];
|
||||
items[i].notAddr = true;
|
||||
notAddr = true;
|
||||
}
|
||||
|
||||
// multiple addr at output
|
||||
if (items[i].scriptPubKey && items[i].scriptPubKey.addresses.length > 1) {
|
||||
items[i].addr = items[i].scriptPubKey.addresses.join(',');
|
||||
ret.push(items[i]);
|
||||
continue;
|
||||
}
|
||||
|
||||
var addr = items[i].addr || (items[i].scriptPubKey && items[i].scriptPubKey.addresses[0]);
|
||||
|
||||
if (!tmp[addr]) {
|
||||
tmp[addr] = {};
|
||||
tmp[addr].valueSat = 0;
|
||||
tmp[addr].count = 0;
|
||||
tmp[addr].addr = addr;
|
||||
tmp[addr].items = [];
|
||||
}
|
||||
tmp[addr].isSpent = items[i].spentTxId;
|
||||
|
||||
tmp[addr].doubleSpentTxID = tmp[addr].doubleSpentTxID || items[i].doubleSpentTxID;
|
||||
tmp[addr].doubleSpentIndex = tmp[addr].doubleSpentIndex || items[i].doubleSpentIndex;
|
||||
tmp[addr].dbError = tmp[addr].dbError || items[i].dbError;
|
||||
tmp[addr].valueSat += Math.round(items[i].value * COIN);
|
||||
tmp[addr].items.push(items[i]);
|
||||
tmp[addr].notAddr = notAddr;
|
||||
|
||||
if (items[i].unconfirmedInput)
|
||||
tmp[addr].unconfirmedInput = true;
|
||||
|
||||
tmp[addr].count++;
|
||||
}
|
||||
|
||||
angular.forEach(tmp, function(v) {
|
||||
v.value = v.value || parseInt(v.valueSat) / COIN;
|
||||
ret.push(v);
|
||||
});
|
||||
return ret;
|
||||
};
|
||||
|
||||
var _processTX = function(tx) {
|
||||
tx.vinSimple = _aggregateItems(tx.vin);
|
||||
tx.voutSimple = _aggregateItems(tx.vout);
|
||||
};
|
||||
|
||||
var _paginate = function(data) {
|
||||
$scope.loading = false;
|
||||
|
||||
pagesTotal = data.pagesTotal;
|
||||
pageNum += 1;
|
||||
|
||||
data.txs.forEach(function(tx) {
|
||||
_processTX(tx);
|
||||
$scope.txs.push(tx);
|
||||
});
|
||||
};
|
||||
|
||||
var _byBlock = function() {
|
||||
TransactionsByBlock.get({
|
||||
block: $routeParams.blockHash,
|
||||
pageNum: pageNum
|
||||
}, function(data) {
|
||||
_paginate(data);
|
||||
});
|
||||
};
|
||||
|
||||
var _byAddress = function () {
|
||||
TransactionsByAddress.get({
|
||||
address: $routeParams.addrStr,
|
||||
pageNum: pageNum
|
||||
}, function(data) {
|
||||
_paginate(data);
|
||||
});
|
||||
};
|
||||
|
||||
var _findTx = function(txid) {
|
||||
Transaction.get({
|
||||
txId: txid
|
||||
}, function(tx) {
|
||||
$rootScope.titleDetail = tx.txid.substring(0,7) + '...';
|
||||
$rootScope.flashMessage = null;
|
||||
$scope.tx = tx;
|
||||
_processTX(tx);
|
||||
$scope.txs.unshift(tx);
|
||||
}, function(e) {
|
||||
if (e.status === 400) {
|
||||
$rootScope.flashMessage = 'Invalid Transaction ID: ' + $routeParams.txId;
|
||||
}
|
||||
else if (e.status === 503) {
|
||||
$rootScope.flashMessage = 'Backend Error. ' + e.data;
|
||||
}
|
||||
else {
|
||||
$rootScope.flashMessage = 'Transaction Not Found';
|
||||
}
|
||||
|
||||
$location.path('/');
|
||||
});
|
||||
};
|
||||
|
||||
$scope.findThis = function() {
|
||||
_findTx($routeParams.txId);
|
||||
};
|
||||
|
||||
//Initial load
|
||||
$scope.load = function(from) {
|
||||
$scope.loadedBy = from;
|
||||
$scope.loadMore();
|
||||
};
|
||||
|
||||
//Load more transactions for pagination
|
||||
$scope.loadMore = function() {
|
||||
if (pageNum < pagesTotal && !$scope.loading) {
|
||||
$scope.loading = true;
|
||||
|
||||
if ($scope.loadedBy === 'address') {
|
||||
_byAddress();
|
||||
}
|
||||
else {
|
||||
_byBlock();
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
// Highlighted txout
|
||||
if ($routeParams.v_type == '>' || $routeParams.v_type == '<') {
|
||||
$scope.from_vin = $routeParams.v_type == '<' ? true : false;
|
||||
$scope.from_vout = $routeParams.v_type == '>' ? true : false;
|
||||
$scope.v_index = parseInt($routeParams.v_index);
|
||||
$scope.itemsExpanded = true;
|
||||
}
|
||||
|
||||
//Init without txs
|
||||
$scope.txs = [];
|
||||
|
||||
$scope.$on('tx', function(event, txid) {
|
||||
_findTx(txid);
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
angular.module('insight.transactions').controller('SendRawTransactionController',
|
||||
function($scope, $http, Api) {
|
||||
$scope.transaction = '';
|
||||
$scope.status = 'ready'; // ready|loading|sent|error
|
||||
$scope.txid = '';
|
||||
$scope.error = null;
|
||||
|
||||
$scope.formValid = function() {
|
||||
return !!$scope.transaction;
|
||||
};
|
||||
$scope.send = function() {
|
||||
var postData = {
|
||||
rawtx: $scope.transaction
|
||||
};
|
||||
$scope.status = 'loading';
|
||||
$http.post(Api.apiPrefix + '/tx/send', postData)
|
||||
.success(function(data, status, headers, config) {
|
||||
if(typeof(data.txid) != 'string') {
|
||||
// API returned 200 but the format is not known
|
||||
$scope.status = 'error';
|
||||
$scope.error = 'The transaction was sent but no transaction id was got back';
|
||||
return;
|
||||
}
|
||||
|
||||
$scope.status = 'sent';
|
||||
$scope.txid = data.txid;
|
||||
})
|
||||
.error(function(data, status, headers, config) {
|
||||
$scope.status = 'error';
|
||||
if(data) {
|
||||
$scope.error = data;
|
||||
} else {
|
||||
$scope.error = "No error message given (connection error?)"
|
||||
}
|
||||
});
|
||||
};
|
||||
});
|
||||
@ -1,91 +0,0 @@
|
||||
'use strict';
|
||||
|
||||
var ZeroClipboard = window.ZeroClipboard;
|
||||
|
||||
angular.module('insight')
|
||||
.directive('scroll', function ($window) {
|
||||
return function(scope, element, attrs) {
|
||||
angular.element($window).bind('scroll', function() {
|
||||
if (this.pageYOffset >= 200) {
|
||||
scope.secondaryNavbar = true;
|
||||
} else {
|
||||
scope.secondaryNavbar = false;
|
||||
}
|
||||
scope.$apply();
|
||||
});
|
||||
};
|
||||
})
|
||||
.directive('whenScrolled', function($window) {
|
||||
return {
|
||||
restric: 'A',
|
||||
link: function(scope, elm, attr) {
|
||||
var pageHeight, clientHeight, scrollPos;
|
||||
$window = angular.element($window);
|
||||
|
||||
var handler = function() {
|
||||
pageHeight = window.document.documentElement.scrollHeight;
|
||||
clientHeight = window.document.documentElement.clientHeight;
|
||||
scrollPos = window.pageYOffset;
|
||||
|
||||
if (pageHeight - (scrollPos + clientHeight) === 0) {
|
||||
scope.$apply(attr.whenScrolled);
|
||||
}
|
||||
};
|
||||
|
||||
$window.on('scroll', handler);
|
||||
|
||||
scope.$on('$destroy', function() {
|
||||
return $window.off('scroll', handler);
|
||||
});
|
||||
}
|
||||
};
|
||||
})
|
||||
.directive('clipCopy', function() {
|
||||
ZeroClipboard.config({
|
||||
moviePath: '/lib/zeroclipboard/ZeroClipboard.swf',
|
||||
trustedDomains: ['*'],
|
||||
allowScriptAccess: 'always',
|
||||
forceHandCursor: true
|
||||
});
|
||||
|
||||
return {
|
||||
restric: 'A',
|
||||
scope: { clipCopy: '=clipCopy' },
|
||||
template: '<div class="tooltip fade right in"><div class="tooltip-arrow"></div><div class="tooltip-inner">Copied!</div></div>',
|
||||
link: function(scope, elm) {
|
||||
var clip = new ZeroClipboard(elm);
|
||||
|
||||
clip.on('load', function(client) {
|
||||
var onMousedown = function(client) {
|
||||
client.setText(scope.clipCopy);
|
||||
};
|
||||
|
||||
client.on('mousedown', onMousedown);
|
||||
|
||||
scope.$on('$destroy', function() {
|
||||
client.off('mousedown', onMousedown);
|
||||
});
|
||||
});
|
||||
|
||||
clip.on('noFlash wrongflash', function() {
|
||||
return elm.remove();
|
||||
});
|
||||
}
|
||||
};
|
||||
})
|
||||
.directive('focus', function ($timeout) {
|
||||
return {
|
||||
scope: {
|
||||
trigger: '@focus'
|
||||
},
|
||||
link: function (scope, element) {
|
||||
scope.$watch('trigger', function (value) {
|
||||
if (value === "true") {
|
||||
$timeout(function () {
|
||||
element[0].focus();
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
};
|
||||
});
|
||||
@ -1,15 +0,0 @@
|
||||
'use strict';
|
||||
|
||||
angular.module('insight')
|
||||
.filter('startFrom', function() {
|
||||
return function(input, start) {
|
||||
start = +start; //parse to int
|
||||
return input.slice(start);
|
||||
}
|
||||
})
|
||||
.filter('split', function() {
|
||||
return function(input, delimiter) {
|
||||
var delimiter = delimiter || ',';
|
||||
return input.split(delimiter);
|
||||
}
|
||||
});
|
||||
@ -1,6 +0,0 @@
|
||||
'use strict';
|
||||
|
||||
angular.element(document).ready(function() {
|
||||
// Init the app
|
||||
// angular.bootstrap(document, ['insight']);
|
||||
});
|
||||
@ -1,254 +0,0 @@
|
||||
/**
|
||||
* Mega pixel image rendering library for iOS6 Safari
|
||||
*
|
||||
* Fixes iOS6 Safari's image file rendering issue for large size image (over mega-pixel),
|
||||
* which causes unexpected subsampling when drawing it in canvas.
|
||||
* By using this library, you can safely render the image with proper stretching.
|
||||
*
|
||||
* Copyright (c) 2012 Shinichi Tomita <shinichi.tomita@gmail.com>
|
||||
* Released under the MIT license
|
||||
*/
|
||||
(function() {
|
||||
|
||||
/**
|
||||
* Detect subsampling in loaded image.
|
||||
* In iOS, larger images than 2M pixels may be subsampled in rendering.
|
||||
*/
|
||||
function detectSubsampling(img) {
|
||||
var iw = img.naturalWidth, ih = img.naturalHeight;
|
||||
if (iw * ih > 1024 * 1024) { // subsampling may happen over megapixel image
|
||||
var canvas = document.createElement('canvas');
|
||||
canvas.width = canvas.height = 1;
|
||||
var ctx = canvas.getContext('2d');
|
||||
ctx.drawImage(img, -iw + 1, 0);
|
||||
// subsampled image becomes half smaller in rendering size.
|
||||
// check alpha channel value to confirm image is covering edge pixel or not.
|
||||
// if alpha value is 0 image is not covering, hence subsampled.
|
||||
return ctx.getImageData(0, 0, 1, 1).data[3] === 0;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Detecting vertical squash in loaded image.
|
||||
* Fixes a bug which squash image vertically while drawing into canvas for some images.
|
||||
*/
|
||||
function detectVerticalSquash(img, iw, ih) {
|
||||
var canvas = document.createElement('canvas');
|
||||
canvas.width = 1;
|
||||
canvas.height = ih;
|
||||
var ctx = canvas.getContext('2d');
|
||||
ctx.drawImage(img, 0, 0);
|
||||
var data = ctx.getImageData(0, 0, 1, ih).data;
|
||||
// search image edge pixel position in case it is squashed vertically.
|
||||
var sy = 0;
|
||||
var ey = ih;
|
||||
var py = ih;
|
||||
while (py > sy) {
|
||||
var alpha = data[(py - 1) * 4 + 3];
|
||||
if (alpha === 0) {
|
||||
ey = py;
|
||||
} else {
|
||||
sy = py;
|
||||
}
|
||||
py = (ey + sy) >> 1;
|
||||
}
|
||||
var ratio = (py / ih);
|
||||
return (ratio===0)?1:ratio;
|
||||
}
|
||||
|
||||
/**
|
||||
* Rendering image element (with resizing) and get its data URL
|
||||
*/
|
||||
function renderImageToDataURL(img, options, doSquash) {
|
||||
var canvas = document.createElement('canvas');
|
||||
renderImageToCanvas(img, canvas, options, doSquash);
|
||||
return canvas.toDataURL("image/jpeg", options.quality || 0.8);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rendering image element (with resizing) into the canvas element
|
||||
*/
|
||||
function renderImageToCanvas(img, canvas, options, doSquash) {
|
||||
var iw = img.naturalWidth, ih = img.naturalHeight;
|
||||
var width = options.width, height = options.height;
|
||||
var ctx = canvas.getContext('2d');
|
||||
ctx.save();
|
||||
transformCoordinate(canvas, width, height, options.orientation);
|
||||
var subsampled = detectSubsampling(img);
|
||||
if (subsampled) {
|
||||
iw /= 2;
|
||||
ih /= 2;
|
||||
}
|
||||
var d = 1024; // size of tiling canvas
|
||||
var tmpCanvas = document.createElement('canvas');
|
||||
tmpCanvas.width = tmpCanvas.height = d;
|
||||
var tmpCtx = tmpCanvas.getContext('2d');
|
||||
var vertSquashRatio = doSquash ? detectVerticalSquash(img, iw, ih) : 1;
|
||||
var dw = Math.ceil(d * width / iw);
|
||||
var dh = Math.ceil(d * height / ih / vertSquashRatio);
|
||||
var sy = 0;
|
||||
var dy = 0;
|
||||
while (sy < ih) {
|
||||
var sx = 0;
|
||||
var dx = 0;
|
||||
while (sx < iw) {
|
||||
tmpCtx.clearRect(0, 0, d, d);
|
||||
tmpCtx.drawImage(img, -sx, -sy);
|
||||
ctx.drawImage(tmpCanvas, 0, 0, d, d, dx, dy, dw, dh);
|
||||
sx += d;
|
||||
dx += dw;
|
||||
}
|
||||
sy += d;
|
||||
dy += dh;
|
||||
}
|
||||
ctx.restore();
|
||||
tmpCanvas = tmpCtx = null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Transform canvas coordination according to specified frame size and orientation
|
||||
* Orientation value is from EXIF tag
|
||||
*/
|
||||
function transformCoordinate(canvas, width, height, orientation) {
|
||||
switch (orientation) {
|
||||
case 5:
|
||||
case 6:
|
||||
case 7:
|
||||
case 8:
|
||||
canvas.width = height;
|
||||
canvas.height = width;
|
||||
break;
|
||||
default:
|
||||
canvas.width = width;
|
||||
canvas.height = height;
|
||||
}
|
||||
var ctx = canvas.getContext('2d');
|
||||
switch (orientation) {
|
||||
case 2:
|
||||
// horizontal flip
|
||||
ctx.translate(width, 0);
|
||||
ctx.scale(-1, 1);
|
||||
break;
|
||||
case 3:
|
||||
// 180 rotate left
|
||||
ctx.translate(width, height);
|
||||
ctx.rotate(Math.PI);
|
||||
break;
|
||||
case 4:
|
||||
// vertical flip
|
||||
ctx.translate(0, height);
|
||||
ctx.scale(1, -1);
|
||||
break;
|
||||
case 5:
|
||||
// vertical flip + 90 rotate right
|
||||
ctx.rotate(0.5 * Math.PI);
|
||||
ctx.scale(1, -1);
|
||||
break;
|
||||
case 6:
|
||||
// 90 rotate right
|
||||
ctx.rotate(0.5 * Math.PI);
|
||||
ctx.translate(0, -height);
|
||||
break;
|
||||
case 7:
|
||||
// horizontal flip + 90 rotate right
|
||||
ctx.rotate(0.5 * Math.PI);
|
||||
ctx.translate(width, -height);
|
||||
ctx.scale(-1, 1);
|
||||
break;
|
||||
case 8:
|
||||
// 90 rotate left
|
||||
ctx.rotate(-0.5 * Math.PI);
|
||||
ctx.translate(-width, 0);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* MegaPixImage class
|
||||
*/
|
||||
function MegaPixImage(srcImage) {
|
||||
if (window.Blob && srcImage instanceof Blob) {
|
||||
var img = new Image();
|
||||
var URL = window.URL && window.URL.createObjectURL ? window.URL :
|
||||
window.webkitURL && window.webkitURL.createObjectURL ? window.webkitURL :
|
||||
null;
|
||||
if (!URL) { throw Error("No createObjectURL function found to create blob url"); }
|
||||
img.src = URL.createObjectURL(srcImage);
|
||||
this.blob = srcImage;
|
||||
srcImage = img;
|
||||
}
|
||||
if (!srcImage.naturalWidth && !srcImage.naturalHeight) {
|
||||
var _this = this;
|
||||
srcImage.onload = function() {
|
||||
var listeners = _this.imageLoadListeners;
|
||||
if (listeners) {
|
||||
_this.imageLoadListeners = null;
|
||||
for (var i=0, len=listeners.length; i<len; i++) {
|
||||
listeners[i]();
|
||||
}
|
||||
}
|
||||
};
|
||||
this.imageLoadListeners = [];
|
||||
}
|
||||
this.srcImage = srcImage;
|
||||
}
|
||||
|
||||
/**
|
||||
* Rendering megapix image into specified target element
|
||||
*/
|
||||
MegaPixImage.prototype.render = function(target, options) {
|
||||
if (this.imageLoadListeners) {
|
||||
var _this = this;
|
||||
this.imageLoadListeners.push(function() { _this.render(target, options) });
|
||||
return;
|
||||
}
|
||||
options = options || {};
|
||||
var imgWidth = this.srcImage.naturalWidth, imgHeight = this.srcImage.naturalHeight,
|
||||
width = options.width, height = options.height,
|
||||
maxWidth = options.maxWidth, maxHeight = options.maxHeight,
|
||||
doSquash = !this.blob || this.blob.type === 'image/jpeg';
|
||||
if (width && !height) {
|
||||
height = (imgHeight * width / imgWidth) << 0;
|
||||
} else if (height && !width) {
|
||||
width = (imgWidth * height / imgHeight) << 0;
|
||||
} else {
|
||||
width = imgWidth;
|
||||
height = imgHeight;
|
||||
}
|
||||
if (maxWidth && width > maxWidth) {
|
||||
width = maxWidth;
|
||||
height = (imgHeight * width / imgWidth) << 0;
|
||||
}
|
||||
if (maxHeight && height > maxHeight) {
|
||||
height = maxHeight;
|
||||
width = (imgWidth * height / imgHeight) << 0;
|
||||
}
|
||||
var opt = { width : width, height : height };
|
||||
for (var k in options) opt[k] = options[k];
|
||||
|
||||
var tagName = target.tagName.toLowerCase();
|
||||
if (tagName === 'img') {
|
||||
target.src = renderImageToDataURL(this.srcImage, opt, doSquash);
|
||||
} else if (tagName === 'canvas') {
|
||||
renderImageToCanvas(this.srcImage, target, opt, doSquash);
|
||||
}
|
||||
if (typeof this.onrender === 'function') {
|
||||
this.onrender(target);
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* Export class to global
|
||||
*/
|
||||
if (typeof define === 'function' && define.amd) {
|
||||
define([], function() { return MegaPixImage; }); // for AMD loader
|
||||
} else {
|
||||
this.MegaPixImage = MegaPixImage;
|
||||
}
|
||||
|
||||
})();
|
||||
@ -1,279 +0,0 @@
|
||||
/*
|
||||
Ported to JavaScript by Lazar Laszlo 2011
|
||||
|
||||
lazarsoft@gmail.com, www.lazarsoft.info
|
||||
|
||||
*/
|
||||
|
||||
/*
|
||||
*
|
||||
* Copyright 2007 ZXing authors
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
|
||||
function AlignmentPattern(posX, posY, estimatedModuleSize)
|
||||
{
|
||||
this.x=posX;
|
||||
this.y=posY;
|
||||
this.count = 1;
|
||||
this.estimatedModuleSize = estimatedModuleSize;
|
||||
|
||||
this.__defineGetter__("EstimatedModuleSize", function()
|
||||
{
|
||||
return this.estimatedModuleSize;
|
||||
});
|
||||
this.__defineGetter__("Count", function()
|
||||
{
|
||||
return this.count;
|
||||
});
|
||||
this.__defineGetter__("X", function()
|
||||
{
|
||||
return Math.floor(this.x);
|
||||
});
|
||||
this.__defineGetter__("Y", function()
|
||||
{
|
||||
return Math.floor(this.y);
|
||||
});
|
||||
this.incrementCount = function()
|
||||
{
|
||||
this.count++;
|
||||
}
|
||||
this.aboutEquals=function( moduleSize, i, j)
|
||||
{
|
||||
if (Math.abs(i - this.y) <= moduleSize && Math.abs(j - this.x) <= moduleSize)
|
||||
{
|
||||
var moduleSizeDiff = Math.abs(moduleSize - this.estimatedModuleSize);
|
||||
return moduleSizeDiff <= 1.0 || moduleSizeDiff / this.estimatedModuleSize <= 1.0;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
function AlignmentPatternFinder( image, startX, startY, width, height, moduleSize, resultPointCallback)
|
||||
{
|
||||
this.image = image;
|
||||
this.possibleCenters = new Array();
|
||||
this.startX = startX;
|
||||
this.startY = startY;
|
||||
this.width = width;
|
||||
this.height = height;
|
||||
this.moduleSize = moduleSize;
|
||||
this.crossCheckStateCount = new Array(0,0,0);
|
||||
this.resultPointCallback = resultPointCallback;
|
||||
|
||||
this.centerFromEnd=function(stateCount, end)
|
||||
{
|
||||
return (end - stateCount[2]) - stateCount[1] / 2.0;
|
||||
}
|
||||
this.foundPatternCross = function(stateCount)
|
||||
{
|
||||
var moduleSize = this.moduleSize;
|
||||
var maxVariance = moduleSize / 2.0;
|
||||
for (var i = 0; i < 3; i++)
|
||||
{
|
||||
if (Math.abs(moduleSize - stateCount[i]) >= maxVariance)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
this.crossCheckVertical=function( startI, centerJ, maxCount, originalStateCountTotal)
|
||||
{
|
||||
var image = this.image;
|
||||
|
||||
var maxI = qrcode.height;
|
||||
var stateCount = this.crossCheckStateCount;
|
||||
stateCount[0] = 0;
|
||||
stateCount[1] = 0;
|
||||
stateCount[2] = 0;
|
||||
|
||||
// Start counting up from center
|
||||
var i = startI;
|
||||
while (i >= 0 && image[centerJ + i*qrcode.width] && stateCount[1] <= maxCount)
|
||||
{
|
||||
stateCount[1]++;
|
||||
i--;
|
||||
}
|
||||
// If already too many modules in this state or ran off the edge:
|
||||
if (i < 0 || stateCount[1] > maxCount)
|
||||
{
|
||||
return NaN;
|
||||
}
|
||||
while (i >= 0 && !image[centerJ + i*qrcode.width] && stateCount[0] <= maxCount)
|
||||
{
|
||||
stateCount[0]++;
|
||||
i--;
|
||||
}
|
||||
if (stateCount[0] > maxCount)
|
||||
{
|
||||
return NaN;
|
||||
}
|
||||
|
||||
// Now also count down from center
|
||||
i = startI + 1;
|
||||
while (i < maxI && image[centerJ + i*qrcode.width] && stateCount[1] <= maxCount)
|
||||
{
|
||||
stateCount[1]++;
|
||||
i++;
|
||||
}
|
||||
if (i == maxI || stateCount[1] > maxCount)
|
||||
{
|
||||
return NaN;
|
||||
}
|
||||
while (i < maxI && !image[centerJ + i*qrcode.width] && stateCount[2] <= maxCount)
|
||||
{
|
||||
stateCount[2]++;
|
||||
i++;
|
||||
}
|
||||
if (stateCount[2] > maxCount)
|
||||
{
|
||||
return NaN;
|
||||
}
|
||||
|
||||
var stateCountTotal = stateCount[0] + stateCount[1] + stateCount[2];
|
||||
if (5 * Math.abs(stateCountTotal - originalStateCountTotal) >= 2 * originalStateCountTotal)
|
||||
{
|
||||
return NaN;
|
||||
}
|
||||
|
||||
return this.foundPatternCross(stateCount)?this.centerFromEnd(stateCount, i):NaN;
|
||||
}
|
||||
|
||||
this.handlePossibleCenter=function( stateCount, i, j)
|
||||
{
|
||||
var stateCountTotal = stateCount[0] + stateCount[1] + stateCount[2];
|
||||
var centerJ = this.centerFromEnd(stateCount, j);
|
||||
var centerI = this.crossCheckVertical(i, Math.floor (centerJ), 2 * stateCount[1], stateCountTotal);
|
||||
if (!isNaN(centerI))
|
||||
{
|
||||
var estimatedModuleSize = (stateCount[0] + stateCount[1] + stateCount[2]) / 3.0;
|
||||
var max = this.possibleCenters.length;
|
||||
for (var index = 0; index < max; index++)
|
||||
{
|
||||
var center = this.possibleCenters[index];
|
||||
// Look for about the same center and module size:
|
||||
if (center.aboutEquals(estimatedModuleSize, centerI, centerJ))
|
||||
{
|
||||
return new AlignmentPattern(centerJ, centerI, estimatedModuleSize);
|
||||
}
|
||||
}
|
||||
// Hadn't found this before; save it
|
||||
var point = new AlignmentPattern(centerJ, centerI, estimatedModuleSize);
|
||||
this.possibleCenters.push(point);
|
||||
if (this.resultPointCallback != null)
|
||||
{
|
||||
this.resultPointCallback.foundPossibleResultPoint(point);
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
this.find = function()
|
||||
{
|
||||
var startX = this.startX;
|
||||
var height = this.height;
|
||||
var maxJ = startX + width;
|
||||
var middleI = startY + (height >> 1);
|
||||
// We are looking for black/white/black modules in 1:1:1 ratio;
|
||||
// this tracks the number of black/white/black modules seen so far
|
||||
var stateCount = new Array(0,0,0);
|
||||
for (var iGen = 0; iGen < height; iGen++)
|
||||
{
|
||||
// Search from middle outwards
|
||||
var i = middleI + ((iGen & 0x01) == 0?((iGen + 1) >> 1):- ((iGen + 1) >> 1));
|
||||
stateCount[0] = 0;
|
||||
stateCount[1] = 0;
|
||||
stateCount[2] = 0;
|
||||
var j = startX;
|
||||
// Burn off leading white pixels before anything else; if we start in the middle of
|
||||
// a white run, it doesn't make sense to count its length, since we don't know if the
|
||||
// white run continued to the left of the start point
|
||||
while (j < maxJ && !image[j + qrcode.width* i])
|
||||
{
|
||||
j++;
|
||||
}
|
||||
var currentState = 0;
|
||||
while (j < maxJ)
|
||||
{
|
||||
if (image[j + i*qrcode.width])
|
||||
{
|
||||
// Black pixel
|
||||
if (currentState == 1)
|
||||
{
|
||||
// Counting black pixels
|
||||
stateCount[currentState]++;
|
||||
}
|
||||
else
|
||||
{
|
||||
// Counting white pixels
|
||||
if (currentState == 2)
|
||||
{
|
||||
// A winner?
|
||||
if (this.foundPatternCross(stateCount))
|
||||
{
|
||||
// Yes
|
||||
var confirmed = this.handlePossibleCenter(stateCount, i, j);
|
||||
if (confirmed != null)
|
||||
{
|
||||
return confirmed;
|
||||
}
|
||||
}
|
||||
stateCount[0] = stateCount[2];
|
||||
stateCount[1] = 1;
|
||||
stateCount[2] = 0;
|
||||
currentState = 1;
|
||||
}
|
||||
else
|
||||
{
|
||||
stateCount[++currentState]++;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
// White pixel
|
||||
if (currentState == 1)
|
||||
{
|
||||
// Counting black pixels
|
||||
currentState++;
|
||||
}
|
||||
stateCount[currentState]++;
|
||||
}
|
||||
j++;
|
||||
}
|
||||
if (this.foundPatternCross(stateCount))
|
||||
{
|
||||
var confirmed = this.handlePossibleCenter(stateCount, i, maxJ);
|
||||
if (confirmed != null)
|
||||
{
|
||||
return confirmed;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Hmm, nothing we saw was observed and confirmed twice. If we had
|
||||
// any guess at all, return it.
|
||||
if (!(this.possibleCenters.length == 0))
|
||||
{
|
||||
return this.possibleCenters[0];
|
||||
}
|
||||
|
||||
throw "Couldn't find enough alignment patterns";
|
||||
}
|
||||
|
||||
}
|
||||
@ -1,111 +0,0 @@
|
||||
/*
|
||||
Ported to JavaScript by Lazar Laszlo 2011
|
||||
|
||||
lazarsoft@gmail.com, www.lazarsoft.info
|
||||
|
||||
*/
|
||||
|
||||
/*
|
||||
*
|
||||
* Copyright 2007 ZXing authors
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
|
||||
function BitMatrix( width, height)
|
||||
{
|
||||
if(!height)
|
||||
height=width;
|
||||
if (width < 1 || height < 1)
|
||||
{
|
||||
throw "Both dimensions must be greater than 0";
|
||||
}
|
||||
this.width = width;
|
||||
this.height = height;
|
||||
var rowSize = width >> 5;
|
||||
if ((width & 0x1f) != 0)
|
||||
{
|
||||
rowSize++;
|
||||
}
|
||||
this.rowSize = rowSize;
|
||||
this.bits = new Array(rowSize * height);
|
||||
for(var i=0;i<this.bits.length;i++)
|
||||
this.bits[i]=0;
|
||||
|
||||
this.__defineGetter__("Width", function()
|
||||
{
|
||||
return this.width;
|
||||
});
|
||||
this.__defineGetter__("Height", function()
|
||||
{
|
||||
return this.height;
|
||||
});
|
||||
this.__defineGetter__("Dimension", function()
|
||||
{
|
||||
if (this.width != this.height)
|
||||
{
|
||||
throw "Can't call getDimension() on a non-square matrix";
|
||||
}
|
||||
return this.width;
|
||||
});
|
||||
|
||||
this.get_Renamed=function( x, y)
|
||||
{
|
||||
var offset = y * this.rowSize + (x >> 5);
|
||||
return ((URShift(this.bits[offset], (x & 0x1f))) & 1) != 0;
|
||||
}
|
||||
this.set_Renamed=function( x, y)
|
||||
{
|
||||
var offset = y * this.rowSize + (x >> 5);
|
||||
this.bits[offset] |= 1 << (x & 0x1f);
|
||||
}
|
||||
this.flip=function( x, y)
|
||||
{
|
||||
var offset = y * this.rowSize + (x >> 5);
|
||||
this.bits[offset] ^= 1 << (x & 0x1f);
|
||||
}
|
||||
this.clear=function()
|
||||
{
|
||||
var max = this.bits.length;
|
||||
for (var i = 0; i < max; i++)
|
||||
{
|
||||
this.bits[i] = 0;
|
||||
}
|
||||
}
|
||||
this.setRegion=function( left, top, width, height)
|
||||
{
|
||||
if (top < 0 || left < 0)
|
||||
{
|
||||
throw "Left and top must be nonnegative";
|
||||
}
|
||||
if (height < 1 || width < 1)
|
||||
{
|
||||
throw "Height and width must be at least 1";
|
||||
}
|
||||
var right = left + width;
|
||||
var bottom = top + height;
|
||||
if (bottom > this.height || right > this.width)
|
||||
{
|
||||
throw "The region must fit inside the matrix";
|
||||
}
|
||||
for (var y = top; y < bottom; y++)
|
||||
{
|
||||
var offset = y * this.rowSize;
|
||||
for (var x = left; x < right; x++)
|
||||
{
|
||||
this.bits[offset + (x >> 5)] |= 1 << (x & 0x1f);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -1,203 +0,0 @@
|
||||
/*
|
||||
Ported to JavaScript by Lazar Laszlo 2011
|
||||
|
||||
lazarsoft@gmail.com, www.lazarsoft.info
|
||||
|
||||
*/
|
||||
|
||||
/*
|
||||
*
|
||||
* Copyright 2007 ZXing authors
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
|
||||
function BitMatrixParser(bitMatrix)
|
||||
{
|
||||
var dimension = bitMatrix.Dimension;
|
||||
if (dimension < 21 || (dimension & 0x03) != 1)
|
||||
{
|
||||
throw "Error BitMatrixParser";
|
||||
}
|
||||
this.bitMatrix = bitMatrix;
|
||||
this.parsedVersion = null;
|
||||
this.parsedFormatInfo = null;
|
||||
|
||||
this.copyBit=function( i, j, versionBits)
|
||||
{
|
||||
return this.bitMatrix.get_Renamed(i, j)?(versionBits << 1) | 0x1:versionBits << 1;
|
||||
}
|
||||
|
||||
this.readFormatInformation=function()
|
||||
{
|
||||
if (this.parsedFormatInfo != null)
|
||||
{
|
||||
return this.parsedFormatInfo;
|
||||
}
|
||||
|
||||
// Read top-left format info bits
|
||||
var formatInfoBits = 0;
|
||||
for (var i = 0; i < 6; i++)
|
||||
{
|
||||
formatInfoBits = this.copyBit(i, 8, formatInfoBits);
|
||||
}
|
||||
// .. and skip a bit in the timing pattern ...
|
||||
formatInfoBits = this.copyBit(7, 8, formatInfoBits);
|
||||
formatInfoBits = this.copyBit(8, 8, formatInfoBits);
|
||||
formatInfoBits = this.copyBit(8, 7, formatInfoBits);
|
||||
// .. and skip a bit in the timing pattern ...
|
||||
for (var j = 5; j >= 0; j--)
|
||||
{
|
||||
formatInfoBits = this.copyBit(8, j, formatInfoBits);
|
||||
}
|
||||
|
||||
this.parsedFormatInfo = FormatInformation.decodeFormatInformation(formatInfoBits);
|
||||
if (this.parsedFormatInfo != null)
|
||||
{
|
||||
return this.parsedFormatInfo;
|
||||
}
|
||||
|
||||
// Hmm, failed. Try the top-right/bottom-left pattern
|
||||
var dimension = this.bitMatrix.Dimension;
|
||||
formatInfoBits = 0;
|
||||
var iMin = dimension - 8;
|
||||
for (var i = dimension - 1; i >= iMin; i--)
|
||||
{
|
||||
formatInfoBits = this.copyBit(i, 8, formatInfoBits);
|
||||
}
|
||||
for (var j = dimension - 7; j < dimension; j++)
|
||||
{
|
||||
formatInfoBits = this.copyBit(8, j, formatInfoBits);
|
||||
}
|
||||
|
||||
this.parsedFormatInfo = FormatInformation.decodeFormatInformation(formatInfoBits);
|
||||
if (this.parsedFormatInfo != null)
|
||||
{
|
||||
return this.parsedFormatInfo;
|
||||
}
|
||||
throw "Error readFormatInformation";
|
||||
}
|
||||
this.readVersion=function()
|
||||
{
|
||||
|
||||
if (this.parsedVersion != null)
|
||||
{
|
||||
return this.parsedVersion;
|
||||
}
|
||||
|
||||
var dimension = this.bitMatrix.Dimension;
|
||||
|
||||
var provisionalVersion = (dimension - 17) >> 2;
|
||||
if (provisionalVersion <= 6)
|
||||
{
|
||||
return Version.getVersionForNumber(provisionalVersion);
|
||||
}
|
||||
|
||||
// Read top-right version info: 3 wide by 6 tall
|
||||
var versionBits = 0;
|
||||
var ijMin = dimension - 11;
|
||||
for (var j = 5; j >= 0; j--)
|
||||
{
|
||||
for (var i = dimension - 9; i >= ijMin; i--)
|
||||
{
|
||||
versionBits = this.copyBit(i, j, versionBits);
|
||||
}
|
||||
}
|
||||
|
||||
this.parsedVersion = Version.decodeVersionInformation(versionBits);
|
||||
if (this.parsedVersion != null && this.parsedVersion.DimensionForVersion == dimension)
|
||||
{
|
||||
return this.parsedVersion;
|
||||
}
|
||||
|
||||
// Hmm, failed. Try bottom left: 6 wide by 3 tall
|
||||
versionBits = 0;
|
||||
for (var i = 5; i >= 0; i--)
|
||||
{
|
||||
for (var j = dimension - 9; j >= ijMin; j--)
|
||||
{
|
||||
versionBits = this.copyBit(i, j, versionBits);
|
||||
}
|
||||
}
|
||||
|
||||
this.parsedVersion = Version.decodeVersionInformation(versionBits);
|
||||
if (this.parsedVersion != null && this.parsedVersion.DimensionForVersion == dimension)
|
||||
{
|
||||
return this.parsedVersion;
|
||||
}
|
||||
throw "Error readVersion";
|
||||
}
|
||||
this.readCodewords=function()
|
||||
{
|
||||
|
||||
var formatInfo = this.readFormatInformation();
|
||||
var version = this.readVersion();
|
||||
|
||||
// Get the data mask for the format used in this QR Code. This will exclude
|
||||
// some bits from reading as we wind through the bit matrix.
|
||||
var dataMask = DataMask.forReference( formatInfo.DataMask);
|
||||
var dimension = this.bitMatrix.Dimension;
|
||||
dataMask.unmaskBitMatrix(this.bitMatrix, dimension);
|
||||
|
||||
var functionPattern = version.buildFunctionPattern();
|
||||
|
||||
var readingUp = true;
|
||||
var result = new Array(version.TotalCodewords);
|
||||
var resultOffset = 0;
|
||||
var currentByte = 0;
|
||||
var bitsRead = 0;
|
||||
// Read columns in pairs, from right to left
|
||||
for (var j = dimension - 1; j > 0; j -= 2)
|
||||
{
|
||||
if (j == 6)
|
||||
{
|
||||
// Skip whole column with vertical alignment pattern;
|
||||
// saves time and makes the other code proceed more cleanly
|
||||
j--;
|
||||
}
|
||||
// Read alternatingly from bottom to top then top to bottom
|
||||
for (var count = 0; count < dimension; count++)
|
||||
{
|
||||
var i = readingUp?dimension - 1 - count:count;
|
||||
for (var col = 0; col < 2; col++)
|
||||
{
|
||||
// Ignore bits covered by the function pattern
|
||||
if (!functionPattern.get_Renamed(j - col, i))
|
||||
{
|
||||
// Read a bit
|
||||
bitsRead++;
|
||||
currentByte <<= 1;
|
||||
if (this.bitMatrix.get_Renamed(j - col, i))
|
||||
{
|
||||
currentByte |= 1;
|
||||
}
|
||||
// If we've made a whole byte, save it off
|
||||
if (bitsRead == 8)
|
||||
{
|
||||
result[resultOffset++] = currentByte;
|
||||
bitsRead = 0;
|
||||
currentByte = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
readingUp ^= true; // readingUp = !readingUp; // switch directions
|
||||
}
|
||||
if (resultOffset != version.TotalCodewords)
|
||||
{
|
||||
throw "Error readCodewords";
|
||||
}
|
||||
return result;
|
||||
}
|
||||
}
|
||||
@ -1,117 +0,0 @@
|
||||
/*
|
||||
Ported to JavaScript by Lazar Laszlo 2011
|
||||
|
||||
lazarsoft@gmail.com, www.lazarsoft.info
|
||||
|
||||
*/
|
||||
|
||||
/*
|
||||
*
|
||||
* Copyright 2007 ZXing authors
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
|
||||
function DataBlock(numDataCodewords, codewords)
|
||||
{
|
||||
this.numDataCodewords = numDataCodewords;
|
||||
this.codewords = codewords;
|
||||
|
||||
this.__defineGetter__("NumDataCodewords", function()
|
||||
{
|
||||
return this.numDataCodewords;
|
||||
});
|
||||
this.__defineGetter__("Codewords", function()
|
||||
{
|
||||
return this.codewords;
|
||||
});
|
||||
}
|
||||
|
||||
DataBlock.getDataBlocks=function(rawCodewords, version, ecLevel)
|
||||
{
|
||||
|
||||
if (rawCodewords.length != version.TotalCodewords)
|
||||
{
|
||||
throw "ArgumentException";
|
||||
}
|
||||
|
||||
// Figure out the number and size of data blocks used by this version and
|
||||
// error correction level
|
||||
var ecBlocks = version.getECBlocksForLevel(ecLevel);
|
||||
|
||||
// First count the total number of data blocks
|
||||
var totalBlocks = 0;
|
||||
var ecBlockArray = ecBlocks.getECBlocks();
|
||||
for (var i = 0; i < ecBlockArray.length; i++)
|
||||
{
|
||||
totalBlocks += ecBlockArray[i].Count;
|
||||
}
|
||||
|
||||
// Now establish DataBlocks of the appropriate size and number of data codewords
|
||||
var result = new Array(totalBlocks);
|
||||
var numResultBlocks = 0;
|
||||
for (var j = 0; j < ecBlockArray.length; j++)
|
||||
{
|
||||
var ecBlock = ecBlockArray[j];
|
||||
for (var i = 0; i < ecBlock.Count; i++)
|
||||
{
|
||||
var numDataCodewords = ecBlock.DataCodewords;
|
||||
var numBlockCodewords = ecBlocks.ECCodewordsPerBlock + numDataCodewords;
|
||||
result[numResultBlocks++] = new DataBlock(numDataCodewords, new Array(numBlockCodewords));
|
||||
}
|
||||
}
|
||||
|
||||
// All blocks have the same amount of data, except that the last n
|
||||
// (where n may be 0) have 1 more byte. Figure out where these start.
|
||||
var shorterBlocksTotalCodewords = result[0].codewords.length;
|
||||
var longerBlocksStartAt = result.length - 1;
|
||||
while (longerBlocksStartAt >= 0)
|
||||
{
|
||||
var numCodewords = result[longerBlocksStartAt].codewords.length;
|
||||
if (numCodewords == shorterBlocksTotalCodewords)
|
||||
{
|
||||
break;
|
||||
}
|
||||
longerBlocksStartAt--;
|
||||
}
|
||||
longerBlocksStartAt++;
|
||||
|
||||
var shorterBlocksNumDataCodewords = shorterBlocksTotalCodewords - ecBlocks.ECCodewordsPerBlock;
|
||||
// The last elements of result may be 1 element longer;
|
||||
// first fill out as many elements as all of them have
|
||||
var rawCodewordsOffset = 0;
|
||||
for (var i = 0; i < shorterBlocksNumDataCodewords; i++)
|
||||
{
|
||||
for (var j = 0; j < numResultBlocks; j++)
|
||||
{
|
||||
result[j].codewords[i] = rawCodewords[rawCodewordsOffset++];
|
||||
}
|
||||
}
|
||||
// Fill out the last data block in the longer ones
|
||||
for (var j = longerBlocksStartAt; j < numResultBlocks; j++)
|
||||
{
|
||||
result[j].codewords[shorterBlocksNumDataCodewords] = rawCodewords[rawCodewordsOffset++];
|
||||
}
|
||||
// Now add in error correction blocks
|
||||
var max = result[0].codewords.length;
|
||||
for (var i = shorterBlocksNumDataCodewords; i < max; i++)
|
||||
{
|
||||
for (var j = 0; j < numResultBlocks; j++)
|
||||
{
|
||||
var iOffset = j < longerBlocksStartAt?i:i + 1;
|
||||
result[j].codewords[iOffset] = rawCodewords[rawCodewordsOffset++];
|
||||
}
|
||||
}
|
||||
return result;
|
||||
}
|
||||
@ -1,325 +0,0 @@
|
||||
/*
|
||||
Ported to JavaScript by Lazar Laszlo 2011
|
||||
|
||||
lazarsoft@gmail.com, www.lazarsoft.info
|
||||
|
||||
*/
|
||||
|
||||
/*
|
||||
*
|
||||
* Copyright 2007 ZXing authors
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
|
||||
function QRCodeDataBlockReader(blocks, version, numErrorCorrectionCode)
|
||||
{
|
||||
this.blockPointer = 0;
|
||||
this.bitPointer = 7;
|
||||
this.dataLength = 0;
|
||||
this.blocks = blocks;
|
||||
this.numErrorCorrectionCode = numErrorCorrectionCode;
|
||||
if (version <= 9)
|
||||
this.dataLengthMode = 0;
|
||||
else if (version >= 10 && version <= 26)
|
||||
this.dataLengthMode = 1;
|
||||
else if (version >= 27 && version <= 40)
|
||||
this.dataLengthMode = 2;
|
||||
|
||||
this.getNextBits = function( numBits)
|
||||
{
|
||||
var bits = 0;
|
||||
if (numBits < this.bitPointer + 1)
|
||||
{
|
||||
// next word fits into current data block
|
||||
var mask = 0;
|
||||
for (var i = 0; i < numBits; i++)
|
||||
{
|
||||
mask += (1 << i);
|
||||
}
|
||||
mask <<= (this.bitPointer - numBits + 1);
|
||||
|
||||
bits = (this.blocks[this.blockPointer] & mask) >> (this.bitPointer - numBits + 1);
|
||||
this.bitPointer -= numBits;
|
||||
return bits;
|
||||
}
|
||||
else if (numBits < this.bitPointer + 1 + 8)
|
||||
{
|
||||
// next word crosses 2 data blocks
|
||||
var mask1 = 0;
|
||||
for (var i = 0; i < this.bitPointer + 1; i++)
|
||||
{
|
||||
mask1 += (1 << i);
|
||||
}
|
||||
bits = (this.blocks[this.blockPointer] & mask1) << (numBits - (this.bitPointer + 1));
|
||||
this.blockPointer++;
|
||||
bits += ((this.blocks[this.blockPointer]) >> (8 - (numBits - (this.bitPointer + 1))));
|
||||
|
||||
this.bitPointer = this.bitPointer - numBits % 8;
|
||||
if (this.bitPointer < 0)
|
||||
{
|
||||
this.bitPointer = 8 + this.bitPointer;
|
||||
}
|
||||
return bits;
|
||||
}
|
||||
else if (numBits < this.bitPointer + 1 + 16)
|
||||
{
|
||||
// next word crosses 3 data blocks
|
||||
var mask1 = 0; // mask of first block
|
||||
var mask3 = 0; // mask of 3rd block
|
||||
//bitPointer + 1 : number of bits of the 1st block
|
||||
//8 : number of the 2nd block (note that use already 8bits because next word uses 3 data blocks)
|
||||
//numBits - (bitPointer + 1 + 8) : number of bits of the 3rd block
|
||||
for (var i = 0; i < this.bitPointer + 1; i++)
|
||||
{
|
||||
mask1 += (1 << i);
|
||||
}
|
||||
var bitsFirstBlock = (this.blocks[this.blockPointer] & mask1) << (numBits - (this.bitPointer + 1));
|
||||
this.blockPointer++;
|
||||
|
||||
var bitsSecondBlock = this.blocks[this.blockPointer] << (numBits - (this.bitPointer + 1 + 8));
|
||||
this.blockPointer++;
|
||||
|
||||
for (var i = 0; i < numBits - (this.bitPointer + 1 + 8); i++)
|
||||
{
|
||||
mask3 += (1 << i);
|
||||
}
|
||||
mask3 <<= 8 - (numBits - (this.bitPointer + 1 + 8));
|
||||
var bitsThirdBlock = (this.blocks[this.blockPointer] & mask3) >> (8 - (numBits - (this.bitPointer + 1 + 8)));
|
||||
|
||||
bits = bitsFirstBlock + bitsSecondBlock + bitsThirdBlock;
|
||||
this.bitPointer = this.bitPointer - (numBits - 8) % 8;
|
||||
if (this.bitPointer < 0)
|
||||
{
|
||||
this.bitPointer = 8 + this.bitPointer;
|
||||
}
|
||||
return bits;
|
||||
}
|
||||
else
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
this.NextMode=function()
|
||||
{
|
||||
if ((this.blockPointer > this.blocks.length - this.numErrorCorrectionCode - 2))
|
||||
return 0;
|
||||
else
|
||||
return this.getNextBits(4);
|
||||
}
|
||||
this.getDataLength=function( modeIndicator)
|
||||
{
|
||||
var index = 0;
|
||||
while (true)
|
||||
{
|
||||
if ((modeIndicator >> index) == 1)
|
||||
break;
|
||||
index++;
|
||||
}
|
||||
|
||||
return this.getNextBits(qrcode.sizeOfDataLengthInfo[this.dataLengthMode][index]);
|
||||
}
|
||||
this.getRomanAndFigureString=function( dataLength)
|
||||
{
|
||||
var length = dataLength;
|
||||
var intData = 0;
|
||||
var strData = "";
|
||||
var tableRomanAndFigure = new Array('0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', ' ', '$', '%', '*', '+', '-', '.', '/', ':');
|
||||
do
|
||||
{
|
||||
if (length > 1)
|
||||
{
|
||||
intData = this.getNextBits(11);
|
||||
var firstLetter = Math.floor(intData / 45);
|
||||
var secondLetter = intData % 45;
|
||||
strData += tableRomanAndFigure[firstLetter];
|
||||
strData += tableRomanAndFigure[secondLetter];
|
||||
length -= 2;
|
||||
}
|
||||
else if (length == 1)
|
||||
{
|
||||
intData = this.getNextBits(6);
|
||||
strData += tableRomanAndFigure[intData];
|
||||
length -= 1;
|
||||
}
|
||||
}
|
||||
while (length > 0);
|
||||
|
||||
return strData;
|
||||
}
|
||||
this.getFigureString=function( dataLength)
|
||||
{
|
||||
var length = dataLength;
|
||||
var intData = 0;
|
||||
var strData = "";
|
||||
do
|
||||
{
|
||||
if (length >= 3)
|
||||
{
|
||||
intData = this.getNextBits(10);
|
||||
if (intData < 100)
|
||||
strData += "0";
|
||||
if (intData < 10)
|
||||
strData += "0";
|
||||
length -= 3;
|
||||
}
|
||||
else if (length == 2)
|
||||
{
|
||||
intData = this.getNextBits(7);
|
||||
if (intData < 10)
|
||||
strData += "0";
|
||||
length -= 2;
|
||||
}
|
||||
else if (length == 1)
|
||||
{
|
||||
intData = this.getNextBits(4);
|
||||
length -= 1;
|
||||
}
|
||||
strData += intData;
|
||||
}
|
||||
while (length > 0);
|
||||
|
||||
return strData;
|
||||
}
|
||||
this.get8bitByteArray=function( dataLength)
|
||||
{
|
||||
var length = dataLength;
|
||||
var intData = 0;
|
||||
var output = new Array();
|
||||
|
||||
do
|
||||
{
|
||||
intData = this.getNextBits(8);
|
||||
output.push( intData);
|
||||
length--;
|
||||
}
|
||||
while (length > 0);
|
||||
return output;
|
||||
}
|
||||
this.getKanjiString=function( dataLength)
|
||||
{
|
||||
var length = dataLength;
|
||||
var intData = 0;
|
||||
var unicodeString = "";
|
||||
do
|
||||
{
|
||||
intData = getNextBits(13);
|
||||
var lowerByte = intData % 0xC0;
|
||||
var higherByte = intData / 0xC0;
|
||||
|
||||
var tempWord = (higherByte << 8) + lowerByte;
|
||||
var shiftjisWord = 0;
|
||||
if (tempWord + 0x8140 <= 0x9FFC)
|
||||
{
|
||||
// between 8140 - 9FFC on Shift_JIS character set
|
||||
shiftjisWord = tempWord + 0x8140;
|
||||
}
|
||||
else
|
||||
{
|
||||
// between E040 - EBBF on Shift_JIS character set
|
||||
shiftjisWord = tempWord + 0xC140;
|
||||
}
|
||||
|
||||
//var tempByte = new Array(0,0);
|
||||
//tempByte[0] = (sbyte) (shiftjisWord >> 8);
|
||||
//tempByte[1] = (sbyte) (shiftjisWord & 0xFF);
|
||||
//unicodeString += new String(SystemUtils.ToCharArray(SystemUtils.ToByteArray(tempByte)));
|
||||
unicodeString += String.fromCharCode(shiftjisWord);
|
||||
length--;
|
||||
}
|
||||
while (length > 0);
|
||||
|
||||
|
||||
return unicodeString;
|
||||
}
|
||||
|
||||
this.__defineGetter__("DataByte", function()
|
||||
{
|
||||
var output = new Array();
|
||||
var MODE_NUMBER = 1;
|
||||
var MODE_ROMAN_AND_NUMBER = 2;
|
||||
var MODE_8BIT_BYTE = 4;
|
||||
var MODE_KANJI = 8;
|
||||
do
|
||||
{
|
||||
var mode = this.NextMode();
|
||||
//canvas.println("mode: " + mode);
|
||||
if (mode == 0)
|
||||
{
|
||||
if (output.length > 0)
|
||||
break;
|
||||
else
|
||||
throw "Empty data block";
|
||||
}
|
||||
//if (mode != 1 && mode != 2 && mode != 4 && mode != 8)
|
||||
// break;
|
||||
//}
|
||||
if (mode != MODE_NUMBER && mode != MODE_ROMAN_AND_NUMBER && mode != MODE_8BIT_BYTE && mode != MODE_KANJI)
|
||||
{
|
||||
/* canvas.println("Invalid mode: " + mode);
|
||||
mode = guessMode(mode);
|
||||
canvas.println("Guessed mode: " + mode); */
|
||||
throw "Invalid mode: " + mode + " in (block:" + this.blockPointer + " bit:" + this.bitPointer + ")";
|
||||
}
|
||||
dataLength = this.getDataLength(mode);
|
||||
if (dataLength < 1)
|
||||
throw "Invalid data length: " + dataLength;
|
||||
//canvas.println("length: " + dataLength);
|
||||
switch (mode)
|
||||
{
|
||||
|
||||
case MODE_NUMBER:
|
||||
//canvas.println("Mode: Figure");
|
||||
var temp_str = this.getFigureString(dataLength);
|
||||
var ta = new Array(temp_str.length);
|
||||
for(var j=0;j<temp_str.length;j++)
|
||||
ta[j]=temp_str.charCodeAt(j);
|
||||
output.push(ta);
|
||||
break;
|
||||
|
||||
case MODE_ROMAN_AND_NUMBER:
|
||||
//canvas.println("Mode: Roman&Figure");
|
||||
var temp_str = this.getRomanAndFigureString(dataLength);
|
||||
var ta = new Array(temp_str.length);
|
||||
for(var j=0;j<temp_str.length;j++)
|
||||
ta[j]=temp_str.charCodeAt(j);
|
||||
output.push(ta );
|
||||
//output.Write(SystemUtils.ToByteArray(temp_sbyteArray2), 0, temp_sbyteArray2.Length);
|
||||
break;
|
||||
|
||||
case MODE_8BIT_BYTE:
|
||||
//canvas.println("Mode: 8bit Byte");
|
||||
//sbyte[] temp_sbyteArray3;
|
||||
var temp_sbyteArray3 = this.get8bitByteArray(dataLength);
|
||||
output.push(temp_sbyteArray3);
|
||||
//output.Write(SystemUtils.ToByteArray(temp_sbyteArray3), 0, temp_sbyteArray3.Length);
|
||||
break;
|
||||
|
||||
case MODE_KANJI:
|
||||
//canvas.println("Mode: Kanji");
|
||||
//sbyte[] temp_sbyteArray4;
|
||||
//temp_sbyteArray4 = SystemUtils.ToSByteArray(SystemUtils.ToByteArray(getKanjiString(dataLength)));
|
||||
//output.Write(SystemUtils.ToByteArray(temp_sbyteArray4), 0, temp_sbyteArray4.Length);
|
||||
var temp_str = this.getKanjiString(dataLength);
|
||||
output.push(temp_str);
|
||||
break;
|
||||
}
|
||||
//
|
||||
//canvas.println("DataLength: " + dataLength);
|
||||
//Console.out.println(dataString);
|
||||
}
|
||||
while (true);
|
||||
return output;
|
||||
});
|
||||
}
|
||||
@ -1,207 +0,0 @@
|
||||
/*
|
||||
Ported to JavaScript by Lazar Laszlo 2011
|
||||
|
||||
lazarsoft@gmail.com, www.lazarsoft.info
|
||||
|
||||
*/
|
||||
|
||||
/*
|
||||
*
|
||||
* Copyright 2007 ZXing authors
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
|
||||
DataMask = {};
|
||||
|
||||
DataMask.forReference = function(reference)
|
||||
{
|
||||
if (reference < 0 || reference > 7)
|
||||
{
|
||||
throw "System.ArgumentException";
|
||||
}
|
||||
return DataMask.DATA_MASKS[reference];
|
||||
}
|
||||
|
||||
function DataMask000()
|
||||
{
|
||||
this.unmaskBitMatrix=function(bits, dimension)
|
||||
{
|
||||
for (var i = 0; i < dimension; i++)
|
||||
{
|
||||
for (var j = 0; j < dimension; j++)
|
||||
{
|
||||
if (this.isMasked(i, j))
|
||||
{
|
||||
bits.flip(j, i);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
this.isMasked=function( i, j)
|
||||
{
|
||||
return ((i + j) & 0x01) == 0;
|
||||
}
|
||||
}
|
||||
|
||||
function DataMask001()
|
||||
{
|
||||
this.unmaskBitMatrix=function(bits, dimension)
|
||||
{
|
||||
for (var i = 0; i < dimension; i++)
|
||||
{
|
||||
for (var j = 0; j < dimension; j++)
|
||||
{
|
||||
if (this.isMasked(i, j))
|
||||
{
|
||||
bits.flip(j, i);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
this.isMasked=function( i, j)
|
||||
{
|
||||
return (i & 0x01) == 0;
|
||||
}
|
||||
}
|
||||
|
||||
function DataMask010()
|
||||
{
|
||||
this.unmaskBitMatrix=function(bits, dimension)
|
||||
{
|
||||
for (var i = 0; i < dimension; i++)
|
||||
{
|
||||
for (var j = 0; j < dimension; j++)
|
||||
{
|
||||
if (this.isMasked(i, j))
|
||||
{
|
||||
bits.flip(j, i);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
this.isMasked=function( i, j)
|
||||
{
|
||||
return j % 3 == 0;
|
||||
}
|
||||
}
|
||||
|
||||
function DataMask011()
|
||||
{
|
||||
this.unmaskBitMatrix=function(bits, dimension)
|
||||
{
|
||||
for (var i = 0; i < dimension; i++)
|
||||
{
|
||||
for (var j = 0; j < dimension; j++)
|
||||
{
|
||||
if (this.isMasked(i, j))
|
||||
{
|
||||
bits.flip(j, i);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
this.isMasked=function( i, j)
|
||||
{
|
||||
return (i + j) % 3 == 0;
|
||||
}
|
||||
}
|
||||
|
||||
function DataMask100()
|
||||
{
|
||||
this.unmaskBitMatrix=function(bits, dimension)
|
||||
{
|
||||
for (var i = 0; i < dimension; i++)
|
||||
{
|
||||
for (var j = 0; j < dimension; j++)
|
||||
{
|
||||
if (this.isMasked(i, j))
|
||||
{
|
||||
bits.flip(j, i);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
this.isMasked=function( i, j)
|
||||
{
|
||||
return (((URShift(i, 1)) + (j / 3)) & 0x01) == 0;
|
||||
}
|
||||
}
|
||||
|
||||
function DataMask101()
|
||||
{
|
||||
this.unmaskBitMatrix=function(bits, dimension)
|
||||
{
|
||||
for (var i = 0; i < dimension; i++)
|
||||
{
|
||||
for (var j = 0; j < dimension; j++)
|
||||
{
|
||||
if (this.isMasked(i, j))
|
||||
{
|
||||
bits.flip(j, i);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
this.isMasked=function( i, j)
|
||||
{
|
||||
var temp = i * j;
|
||||
return (temp & 0x01) + (temp % 3) == 0;
|
||||
}
|
||||
}
|
||||
|
||||
function DataMask110()
|
||||
{
|
||||
this.unmaskBitMatrix=function(bits, dimension)
|
||||
{
|
||||
for (var i = 0; i < dimension; i++)
|
||||
{
|
||||
for (var j = 0; j < dimension; j++)
|
||||
{
|
||||
if (this.isMasked(i, j))
|
||||
{
|
||||
bits.flip(j, i);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
this.isMasked=function( i, j)
|
||||
{
|
||||
var temp = i * j;
|
||||
return (((temp & 0x01) + (temp % 3)) & 0x01) == 0;
|
||||
}
|
||||
}
|
||||
function DataMask111()
|
||||
{
|
||||
this.unmaskBitMatrix=function(bits, dimension)
|
||||
{
|
||||
for (var i = 0; i < dimension; i++)
|
||||
{
|
||||
for (var j = 0; j < dimension; j++)
|
||||
{
|
||||
if (this.isMasked(i, j))
|
||||
{
|
||||
bits.flip(j, i);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
this.isMasked=function( i, j)
|
||||
{
|
||||
return ((((i + j) & 0x01) + ((i * j) % 3)) & 0x01) == 0;
|
||||
}
|
||||
}
|
||||
|
||||
DataMask.DATA_MASKS = new Array(new DataMask000(), new DataMask001(), new DataMask010(), new DataMask011(), new DataMask100(), new DataMask101(), new DataMask110(), new DataMask111());
|
||||
|
||||
@ -1,95 +0,0 @@
|
||||
/*
|
||||
Ported to JavaScript by Lazar Laszlo 2011
|
||||
|
||||
lazarsoft@gmail.com, www.lazarsoft.info
|
||||
|
||||
*/
|
||||
|
||||
/*
|
||||
*
|
||||
* Copyright 2007 ZXing authors
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
|
||||
Decoder={};
|
||||
Decoder.rsDecoder = new ReedSolomonDecoder(GF256.QR_CODE_FIELD);
|
||||
|
||||
Decoder.correctErrors=function( codewordBytes, numDataCodewords)
|
||||
{
|
||||
var numCodewords = codewordBytes.length;
|
||||
// First read into an array of ints
|
||||
var codewordsInts = new Array(numCodewords);
|
||||
for (var i = 0; i < numCodewords; i++)
|
||||
{
|
||||
codewordsInts[i] = codewordBytes[i] & 0xFF;
|
||||
}
|
||||
var numECCodewords = codewordBytes.length - numDataCodewords;
|
||||
try
|
||||
{
|
||||
Decoder.rsDecoder.decode(codewordsInts, numECCodewords);
|
||||
//var corrector = new ReedSolomon(codewordsInts, numECCodewords);
|
||||
//corrector.correct();
|
||||
}
|
||||
catch ( rse)
|
||||
{
|
||||
throw rse;
|
||||
}
|
||||
// Copy back into array of bytes -- only need to worry about the bytes that were data
|
||||
// We don't care about errors in the error-correction codewords
|
||||
for (var i = 0; i < numDataCodewords; i++)
|
||||
{
|
||||
codewordBytes[i] = codewordsInts[i];
|
||||
}
|
||||
}
|
||||
|
||||
Decoder.decode=function(bits)
|
||||
{
|
||||
var parser = new BitMatrixParser(bits);
|
||||
var version = parser.readVersion();
|
||||
var ecLevel = parser.readFormatInformation().ErrorCorrectionLevel;
|
||||
|
||||
// Read codewords
|
||||
var codewords = parser.readCodewords();
|
||||
|
||||
// Separate into data blocks
|
||||
var dataBlocks = DataBlock.getDataBlocks(codewords, version, ecLevel);
|
||||
|
||||
// Count total number of data bytes
|
||||
var totalBytes = 0;
|
||||
for (var i = 0; i < dataBlocks.length; i++)
|
||||
{
|
||||
totalBytes += dataBlocks[i].NumDataCodewords;
|
||||
}
|
||||
var resultBytes = new Array(totalBytes);
|
||||
var resultOffset = 0;
|
||||
|
||||
// Error-correct and copy data blocks together into a stream of bytes
|
||||
for (var j = 0; j < dataBlocks.length; j++)
|
||||
{
|
||||
var dataBlock = dataBlocks[j];
|
||||
var codewordBytes = dataBlock.Codewords;
|
||||
var numDataCodewords = dataBlock.NumDataCodewords;
|
||||
Decoder.correctErrors(codewordBytes, numDataCodewords);
|
||||
for (var i = 0; i < numDataCodewords; i++)
|
||||
{
|
||||
resultBytes[resultOffset++] = codewordBytes[i];
|
||||
}
|
||||
}
|
||||
|
||||
// Decode the contents of that stream of bytes
|
||||
var reader = new QRCodeDataBlockReader(resultBytes, version.VersionNumber, ecLevel.Bits);
|
||||
return reader;
|
||||
//return DecodedBitStreamParser.decode(resultBytes, version, ecLevel);
|
||||
}
|
||||
@ -1,413 +0,0 @@
|
||||
/*
|
||||
Ported to JavaScript by Lazar Laszlo 2011
|
||||
|
||||
lazarsoft@gmail.com, www.lazarsoft.info
|
||||
|
||||
*/
|
||||
|
||||
/*
|
||||
*
|
||||
* Copyright 2007 ZXing authors
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
|
||||
function PerspectiveTransform( a11, a21, a31, a12, a22, a32, a13, a23, a33)
|
||||
{
|
||||
this.a11 = a11;
|
||||
this.a12 = a12;
|
||||
this.a13 = a13;
|
||||
this.a21 = a21;
|
||||
this.a22 = a22;
|
||||
this.a23 = a23;
|
||||
this.a31 = a31;
|
||||
this.a32 = a32;
|
||||
this.a33 = a33;
|
||||
this.transformPoints1=function( points)
|
||||
{
|
||||
var max = points.length;
|
||||
var a11 = this.a11;
|
||||
var a12 = this.a12;
|
||||
var a13 = this.a13;
|
||||
var a21 = this.a21;
|
||||
var a22 = this.a22;
|
||||
var a23 = this.a23;
|
||||
var a31 = this.a31;
|
||||
var a32 = this.a32;
|
||||
var a33 = this.a33;
|
||||
for (var i = 0; i < max; i += 2)
|
||||
{
|
||||
var x = points[i];
|
||||
var y = points[i + 1];
|
||||
var denominator = a13 * x + a23 * y + a33;
|
||||
points[i] = (a11 * x + a21 * y + a31) / denominator;
|
||||
points[i + 1] = (a12 * x + a22 * y + a32) / denominator;
|
||||
}
|
||||
}
|
||||
this. transformPoints2=function(xValues, yValues)
|
||||
{
|
||||
var n = xValues.length;
|
||||
for (var i = 0; i < n; i++)
|
||||
{
|
||||
var x = xValues[i];
|
||||
var y = yValues[i];
|
||||
var denominator = this.a13 * x + this.a23 * y + this.a33;
|
||||
xValues[i] = (this.a11 * x + this.a21 * y + this.a31) / denominator;
|
||||
yValues[i] = (this.a12 * x + this.a22 * y + this.a32) / denominator;
|
||||
}
|
||||
}
|
||||
|
||||
this.buildAdjoint=function()
|
||||
{
|
||||
// Adjoint is the transpose of the cofactor matrix:
|
||||
return new PerspectiveTransform(this.a22 * this.a33 - this.a23 * this.a32, this.a23 * this.a31 - this.a21 * this.a33, this.a21 * this.a32 - this.a22 * this.a31, this.a13 * this.a32 - this.a12 * this.a33, this.a11 * this.a33 - this.a13 * this.a31, this.a12 * this.a31 - this.a11 * this.a32, this.a12 * this.a23 - this.a13 * this.a22, this.a13 * this.a21 - this.a11 * this.a23, this.a11 * this.a22 - this.a12 * this.a21);
|
||||
}
|
||||
this.times=function( other)
|
||||
{
|
||||
return new PerspectiveTransform(this.a11 * other.a11 + this.a21 * other.a12 + this.a31 * other.a13, this.a11 * other.a21 + this.a21 * other.a22 + this.a31 * other.a23, this.a11 * other.a31 + this.a21 * other.a32 + this.a31 * other.a33, this.a12 * other.a11 + this.a22 * other.a12 + this.a32 * other.a13, this.a12 * other.a21 + this.a22 * other.a22 + this.a32 * other.a23, this.a12 * other.a31 + this.a22 * other.a32 + this.a32 * other.a33, this.a13 * other.a11 + this.a23 * other.a12 +this.a33 * other.a13, this.a13 * other.a21 + this.a23 * other.a22 + this.a33 * other.a23, this.a13 * other.a31 + this.a23 * other.a32 + this.a33 * other.a33);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
PerspectiveTransform.quadrilateralToQuadrilateral=function( x0, y0, x1, y1, x2, y2, x3, y3, x0p, y0p, x1p, y1p, x2p, y2p, x3p, y3p)
|
||||
{
|
||||
|
||||
var qToS = this.quadrilateralToSquare(x0, y0, x1, y1, x2, y2, x3, y3);
|
||||
var sToQ = this.squareToQuadrilateral(x0p, y0p, x1p, y1p, x2p, y2p, x3p, y3p);
|
||||
return sToQ.times(qToS);
|
||||
}
|
||||
|
||||
PerspectiveTransform.squareToQuadrilateral=function( x0, y0, x1, y1, x2, y2, x3, y3)
|
||||
{
|
||||
dy2 = y3 - y2;
|
||||
dy3 = y0 - y1 + y2 - y3;
|
||||
if (dy2 == 0.0 && dy3 == 0.0)
|
||||
{
|
||||
return new PerspectiveTransform(x1 - x0, x2 - x1, x0, y1 - y0, y2 - y1, y0, 0.0, 0.0, 1.0);
|
||||
}
|
||||
else
|
||||
{
|
||||
dx1 = x1 - x2;
|
||||
dx2 = x3 - x2;
|
||||
dx3 = x0 - x1 + x2 - x3;
|
||||
dy1 = y1 - y2;
|
||||
denominator = dx1 * dy2 - dx2 * dy1;
|
||||
a13 = (dx3 * dy2 - dx2 * dy3) / denominator;
|
||||
a23 = (dx1 * dy3 - dx3 * dy1) / denominator;
|
||||
return new PerspectiveTransform(x1 - x0 + a13 * x1, x3 - x0 + a23 * x3, x0, y1 - y0 + a13 * y1, y3 - y0 + a23 * y3, y0, a13, a23, 1.0);
|
||||
}
|
||||
}
|
||||
|
||||
PerspectiveTransform.quadrilateralToSquare=function( x0, y0, x1, y1, x2, y2, x3, y3)
|
||||
{
|
||||
// Here, the adjoint serves as the inverse:
|
||||
return this.squareToQuadrilateral(x0, y0, x1, y1, x2, y2, x3, y3).buildAdjoint();
|
||||
}
|
||||
|
||||
function DetectorResult(bits, points)
|
||||
{
|
||||
this.bits = bits;
|
||||
this.points = points;
|
||||
}
|
||||
|
||||
|
||||
function Detector(image)
|
||||
{
|
||||
this.image=image;
|
||||
this.resultPointCallback = null;
|
||||
|
||||
this.sizeOfBlackWhiteBlackRun=function( fromX, fromY, toX, toY)
|
||||
{
|
||||
// Mild variant of Bresenham's algorithm;
|
||||
// see http://en.wikipedia.org/wiki/Bresenham's_line_algorithm
|
||||
var steep = Math.abs(toY - fromY) > Math.abs(toX - fromX);
|
||||
if (steep)
|
||||
{
|
||||
var temp = fromX;
|
||||
fromX = fromY;
|
||||
fromY = temp;
|
||||
temp = toX;
|
||||
toX = toY;
|
||||
toY = temp;
|
||||
}
|
||||
|
||||
var dx = Math.abs(toX - fromX);
|
||||
var dy = Math.abs(toY - fromY);
|
||||
var error = - dx >> 1;
|
||||
var ystep = fromY < toY?1:- 1;
|
||||
var xstep = fromX < toX?1:- 1;
|
||||
var state = 0; // In black pixels, looking for white, first or second time
|
||||
for (var x = fromX, y = fromY; x != toX; x += xstep)
|
||||
{
|
||||
|
||||
var realX = steep?y:x;
|
||||
var realY = steep?x:y;
|
||||
if (state == 1)
|
||||
{
|
||||
// In white pixels, looking for black
|
||||
if (this.image[realX + realY*qrcode.width])
|
||||
{
|
||||
state++;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if (!this.image[realX + realY*qrcode.width])
|
||||
{
|
||||
state++;
|
||||
}
|
||||
}
|
||||
|
||||
if (state == 3)
|
||||
{
|
||||
// Found black, white, black, and stumbled back onto white; done
|
||||
var diffX = x - fromX;
|
||||
var diffY = y - fromY;
|
||||
return Math.sqrt( (diffX * diffX + diffY * diffY));
|
||||
}
|
||||
error += dy;
|
||||
if (error > 0)
|
||||
{
|
||||
if (y == toY)
|
||||
{
|
||||
break;
|
||||
}
|
||||
y += ystep;
|
||||
error -= dx;
|
||||
}
|
||||
}
|
||||
var diffX2 = toX - fromX;
|
||||
var diffY2 = toY - fromY;
|
||||
return Math.sqrt( (diffX2 * diffX2 + diffY2 * diffY2));
|
||||
}
|
||||
|
||||
|
||||
this.sizeOfBlackWhiteBlackRunBothWays=function( fromX, fromY, toX, toY)
|
||||
{
|
||||
|
||||
var result = this.sizeOfBlackWhiteBlackRun(fromX, fromY, toX, toY);
|
||||
|
||||
// Now count other way -- don't run off image though of course
|
||||
var scale = 1.0;
|
||||
var otherToX = fromX - (toX - fromX);
|
||||
if (otherToX < 0)
|
||||
{
|
||||
scale = fromX / (fromX - otherToX);
|
||||
otherToX = 0;
|
||||
}
|
||||
else if (otherToX >= qrcode.width)
|
||||
{
|
||||
scale = (qrcode.width - 1 - fromX) / (otherToX - fromX);
|
||||
otherToX = qrcode.width - 1;
|
||||
}
|
||||
var otherToY = Math.floor (fromY - (toY - fromY) * scale);
|
||||
|
||||
scale = 1.0;
|
||||
if (otherToY < 0)
|
||||
{
|
||||
scale = fromY / (fromY - otherToY);
|
||||
otherToY = 0;
|
||||
}
|
||||
else if (otherToY >= qrcode.height)
|
||||
{
|
||||
scale = (qrcode.height - 1 - fromY) / (otherToY - fromY);
|
||||
otherToY = qrcode.height - 1;
|
||||
}
|
||||
otherToX = Math.floor (fromX + (otherToX - fromX) * scale);
|
||||
|
||||
result += this.sizeOfBlackWhiteBlackRun(fromX, fromY, otherToX, otherToY);
|
||||
return result - 1.0; // -1 because we counted the middle pixel twice
|
||||
}
|
||||
|
||||
|
||||
|
||||
this.calculateModuleSizeOneWay=function( pattern, otherPattern)
|
||||
{
|
||||
var moduleSizeEst1 = this.sizeOfBlackWhiteBlackRunBothWays(Math.floor( pattern.X), Math.floor( pattern.Y), Math.floor( otherPattern.X), Math.floor(otherPattern.Y));
|
||||
var moduleSizeEst2 = this.sizeOfBlackWhiteBlackRunBothWays(Math.floor(otherPattern.X), Math.floor(otherPattern.Y), Math.floor( pattern.X), Math.floor(pattern.Y));
|
||||
if (isNaN(moduleSizeEst1))
|
||||
{
|
||||
return moduleSizeEst2 / 7.0;
|
||||
}
|
||||
if (isNaN(moduleSizeEst2))
|
||||
{
|
||||
return moduleSizeEst1 / 7.0;
|
||||
}
|
||||
// Average them, and divide by 7 since we've counted the width of 3 black modules,
|
||||
// and 1 white and 1 black module on either side. Ergo, divide sum by 14.
|
||||
return (moduleSizeEst1 + moduleSizeEst2) / 14.0;
|
||||
}
|
||||
|
||||
|
||||
this.calculateModuleSize=function( topLeft, topRight, bottomLeft)
|
||||
{
|
||||
// Take the average
|
||||
return (this.calculateModuleSizeOneWay(topLeft, topRight) + this.calculateModuleSizeOneWay(topLeft, bottomLeft)) / 2.0;
|
||||
}
|
||||
|
||||
this.distance=function( pattern1, pattern2)
|
||||
{
|
||||
xDiff = pattern1.X - pattern2.X;
|
||||
yDiff = pattern1.Y - pattern2.Y;
|
||||
return Math.sqrt( (xDiff * xDiff + yDiff * yDiff));
|
||||
}
|
||||
this.computeDimension=function( topLeft, topRight, bottomLeft, moduleSize)
|
||||
{
|
||||
|
||||
var tltrCentersDimension = Math.round(this.distance(topLeft, topRight) / moduleSize);
|
||||
var tlblCentersDimension = Math.round(this.distance(topLeft, bottomLeft) / moduleSize);
|
||||
var dimension = ((tltrCentersDimension + tlblCentersDimension) >> 1) + 7;
|
||||
switch (dimension & 0x03)
|
||||
{
|
||||
|
||||
// mod 4
|
||||
case 0:
|
||||
dimension++;
|
||||
break;
|
||||
// 1? do nothing
|
||||
|
||||
case 2:
|
||||
dimension--;
|
||||
break;
|
||||
|
||||
case 3:
|
||||
throw "Error";
|
||||
}
|
||||
return dimension;
|
||||
}
|
||||
|
||||
this.findAlignmentInRegion=function( overallEstModuleSize, estAlignmentX, estAlignmentY, allowanceFactor)
|
||||
{
|
||||
// Look for an alignment pattern (3 modules in size) around where it
|
||||
// should be
|
||||
var allowance = Math.floor (allowanceFactor * overallEstModuleSize);
|
||||
var alignmentAreaLeftX = Math.max(0, estAlignmentX - allowance);
|
||||
var alignmentAreaRightX = Math.min(qrcode.width - 1, estAlignmentX + allowance);
|
||||
if (alignmentAreaRightX - alignmentAreaLeftX < overallEstModuleSize * 3)
|
||||
{
|
||||
throw "Error";
|
||||
}
|
||||
|
||||
var alignmentAreaTopY = Math.max(0, estAlignmentY - allowance);
|
||||
var alignmentAreaBottomY = Math.min(qrcode.height - 1, estAlignmentY + allowance);
|
||||
|
||||
var alignmentFinder = new AlignmentPatternFinder(this.image, alignmentAreaLeftX, alignmentAreaTopY, alignmentAreaRightX - alignmentAreaLeftX, alignmentAreaBottomY - alignmentAreaTopY, overallEstModuleSize, this.resultPointCallback);
|
||||
return alignmentFinder.find();
|
||||
}
|
||||
|
||||
this.createTransform=function( topLeft, topRight, bottomLeft, alignmentPattern, dimension)
|
||||
{
|
||||
var dimMinusThree = dimension - 3.5;
|
||||
var bottomRightX;
|
||||
var bottomRightY;
|
||||
var sourceBottomRightX;
|
||||
var sourceBottomRightY;
|
||||
if (alignmentPattern != null)
|
||||
{
|
||||
bottomRightX = alignmentPattern.X;
|
||||
bottomRightY = alignmentPattern.Y;
|
||||
sourceBottomRightX = sourceBottomRightY = dimMinusThree - 3.0;
|
||||
}
|
||||
else
|
||||
{
|
||||
// Don't have an alignment pattern, just make up the bottom-right point
|
||||
bottomRightX = (topRight.X - topLeft.X) + bottomLeft.X;
|
||||
bottomRightY = (topRight.Y - topLeft.Y) + bottomLeft.Y;
|
||||
sourceBottomRightX = sourceBottomRightY = dimMinusThree;
|
||||
}
|
||||
|
||||
var transform = PerspectiveTransform.quadrilateralToQuadrilateral(3.5, 3.5, dimMinusThree, 3.5, sourceBottomRightX, sourceBottomRightY, 3.5, dimMinusThree, topLeft.X, topLeft.Y, topRight.X, topRight.Y, bottomRightX, bottomRightY, bottomLeft.X, bottomLeft.Y);
|
||||
|
||||
return transform;
|
||||
}
|
||||
|
||||
this.sampleGrid=function( image, transform, dimension)
|
||||
{
|
||||
|
||||
var sampler = GridSampler;
|
||||
return sampler.sampleGrid3(image, dimension, transform);
|
||||
}
|
||||
|
||||
this.processFinderPatternInfo = function( info)
|
||||
{
|
||||
|
||||
var topLeft = info.TopLeft;
|
||||
var topRight = info.TopRight;
|
||||
var bottomLeft = info.BottomLeft;
|
||||
|
||||
var moduleSize = this.calculateModuleSize(topLeft, topRight, bottomLeft);
|
||||
if (moduleSize < 1.0)
|
||||
{
|
||||
throw "Error";
|
||||
}
|
||||
var dimension = this.computeDimension(topLeft, topRight, bottomLeft, moduleSize);
|
||||
var provisionalVersion = Version.getProvisionalVersionForDimension(dimension);
|
||||
var modulesBetweenFPCenters = provisionalVersion.DimensionForVersion - 7;
|
||||
|
||||
var alignmentPattern = null;
|
||||
// Anything above version 1 has an alignment pattern
|
||||
if (provisionalVersion.AlignmentPatternCenters.length > 0)
|
||||
{
|
||||
|
||||
// Guess where a "bottom right" finder pattern would have been
|
||||
var bottomRightX = topRight.X - topLeft.X + bottomLeft.X;
|
||||
var bottomRightY = topRight.Y - topLeft.Y + bottomLeft.Y;
|
||||
|
||||
// Estimate that alignment pattern is closer by 3 modules
|
||||
// from "bottom right" to known top left location
|
||||
var correctionToTopLeft = 1.0 - 3.0 / modulesBetweenFPCenters;
|
||||
var estAlignmentX = Math.floor (topLeft.X + correctionToTopLeft * (bottomRightX - topLeft.X));
|
||||
var estAlignmentY = Math.floor (topLeft.Y + correctionToTopLeft * (bottomRightY - topLeft.Y));
|
||||
|
||||
// Kind of arbitrary -- expand search radius before giving up
|
||||
for (var i = 4; i <= 16; i <<= 1)
|
||||
{
|
||||
//try
|
||||
//{
|
||||
alignmentPattern = this.findAlignmentInRegion(moduleSize, estAlignmentX, estAlignmentY, i);
|
||||
break;
|
||||
//}
|
||||
//catch (re)
|
||||
//{
|
||||
// try next round
|
||||
//}
|
||||
}
|
||||
// If we didn't find alignment pattern... well try anyway without it
|
||||
}
|
||||
|
||||
var transform = this.createTransform(topLeft, topRight, bottomLeft, alignmentPattern, dimension);
|
||||
|
||||
var bits = this.sampleGrid(this.image, transform, dimension);
|
||||
|
||||
var points;
|
||||
if (alignmentPattern == null)
|
||||
{
|
||||
points = new Array(bottomLeft, topLeft, topRight);
|
||||
}
|
||||
else
|
||||
{
|
||||
points = new Array(bottomLeft, topLeft, topRight, alignmentPattern);
|
||||
}
|
||||
return new DetectorResult(bits, points);
|
||||
}
|
||||
|
||||
|
||||
|
||||
this.detect=function()
|
||||
{
|
||||
var info = new FinderPatternFinder().findFinderPattern(this.image);
|
||||
|
||||
return this.processFinderPatternInfo(info);
|
||||
}
|
||||
}
|
||||
@ -1,58 +0,0 @@
|
||||
/*
|
||||
Ported to JavaScript by Lazar Laszlo 2011
|
||||
|
||||
lazarsoft@gmail.com, www.lazarsoft.info
|
||||
|
||||
*/
|
||||
|
||||
/*
|
||||
*
|
||||
* Copyright 2007 ZXing authors
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
|
||||
function ErrorCorrectionLevel(ordinal, bits, name)
|
||||
{
|
||||
this.ordinal_Renamed_Field = ordinal;
|
||||
this.bits = bits;
|
||||
this.name = name;
|
||||
this.__defineGetter__("Bits", function()
|
||||
{
|
||||
return this.bits;
|
||||
});
|
||||
this.__defineGetter__("Name", function()
|
||||
{
|
||||
return this.name;
|
||||
});
|
||||
this.ordinal=function()
|
||||
{
|
||||
return this.ordinal_Renamed_Field;
|
||||
}
|
||||
}
|
||||
|
||||
ErrorCorrectionLevel.forBits=function( bits)
|
||||
{
|
||||
if (bits < 0 || bits >= FOR_BITS.length)
|
||||
{
|
||||
throw "ArgumentException";
|
||||
}
|
||||
return FOR_BITS[bits];
|
||||
}
|
||||
|
||||
var L = new ErrorCorrectionLevel(0, 0x01, "L");
|
||||
var M = new ErrorCorrectionLevel(1, 0x00, "M");
|
||||
var Q = new ErrorCorrectionLevel(2, 0x03, "Q");
|
||||
var H = new ErrorCorrectionLevel(3, 0x02, "H");
|
||||
var FOR_BITS = new Array( M, L, H, Q);
|
||||
@ -1,649 +0,0 @@
|
||||
/*
|
||||
Ported to JavaScript by Lazar Laszlo 2011
|
||||
|
||||
lazarsoft@gmail.com, www.lazarsoft.info
|
||||
|
||||
*/
|
||||
|
||||
/*
|
||||
*
|
||||
* Copyright 2007 ZXing authors
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
|
||||
var MIN_SKIP = 3;
|
||||
var MAX_MODULES = 57;
|
||||
var INTEGER_MATH_SHIFT = 8;
|
||||
var CENTER_QUORUM = 2;
|
||||
|
||||
qrcode.orderBestPatterns=function(patterns)
|
||||
{
|
||||
|
||||
function distance( pattern1, pattern2)
|
||||
{
|
||||
xDiff = pattern1.X - pattern2.X;
|
||||
yDiff = pattern1.Y - pattern2.Y;
|
||||
return Math.sqrt( (xDiff * xDiff + yDiff * yDiff));
|
||||
}
|
||||
|
||||
/// <summary> Returns the z component of the cross product between vectors BC and BA.</summary>
|
||||
function crossProductZ( pointA, pointB, pointC)
|
||||
{
|
||||
var bX = pointB.x;
|
||||
var bY = pointB.y;
|
||||
return ((pointC.x - bX) * (pointA.y - bY)) - ((pointC.y - bY) * (pointA.x - bX));
|
||||
}
|
||||
|
||||
|
||||
// Find distances between pattern centers
|
||||
var zeroOneDistance = distance(patterns[0], patterns[1]);
|
||||
var oneTwoDistance = distance(patterns[1], patterns[2]);
|
||||
var zeroTwoDistance = distance(patterns[0], patterns[2]);
|
||||
|
||||
var pointA, pointB, pointC;
|
||||
// Assume one closest to other two is B; A and C will just be guesses at first
|
||||
if (oneTwoDistance >= zeroOneDistance && oneTwoDistance >= zeroTwoDistance)
|
||||
{
|
||||
pointB = patterns[0];
|
||||
pointA = patterns[1];
|
||||
pointC = patterns[2];
|
||||
}
|
||||
else if (zeroTwoDistance >= oneTwoDistance && zeroTwoDistance >= zeroOneDistance)
|
||||
{
|
||||
pointB = patterns[1];
|
||||
pointA = patterns[0];
|
||||
pointC = patterns[2];
|
||||
}
|
||||
else
|
||||
{
|
||||
pointB = patterns[2];
|
||||
pointA = patterns[0];
|
||||
pointC = patterns[1];
|
||||
}
|
||||
|
||||
// Use cross product to figure out whether A and C are correct or flipped.
|
||||
// This asks whether BC x BA has a positive z component, which is the arrangement
|
||||
// we want for A, B, C. If it's negative, then we've got it flipped around and
|
||||
// should swap A and C.
|
||||
if (crossProductZ(pointA, pointB, pointC) < 0.0)
|
||||
{
|
||||
var temp = pointA;
|
||||
pointA = pointC;
|
||||
pointC = temp;
|
||||
}
|
||||
|
||||
patterns[0] = pointA;
|
||||
patterns[1] = pointB;
|
||||
patterns[2] = pointC;
|
||||
}
|
||||
|
||||
|
||||
function FinderPattern(posX, posY, estimatedModuleSize)
|
||||
{
|
||||
this.x=posX;
|
||||
this.y=posY;
|
||||
this.count = 1;
|
||||
this.estimatedModuleSize = estimatedModuleSize;
|
||||
|
||||
this.__defineGetter__("EstimatedModuleSize", function()
|
||||
{
|
||||
return this.estimatedModuleSize;
|
||||
});
|
||||
this.__defineGetter__("Count", function()
|
||||
{
|
||||
return this.count;
|
||||
});
|
||||
this.__defineGetter__("X", function()
|
||||
{
|
||||
return this.x;
|
||||
});
|
||||
this.__defineGetter__("Y", function()
|
||||
{
|
||||
return this.y;
|
||||
});
|
||||
this.incrementCount = function()
|
||||
{
|
||||
this.count++;
|
||||
}
|
||||
this.aboutEquals=function( moduleSize, i, j)
|
||||
{
|
||||
if (Math.abs(i - this.y) <= moduleSize && Math.abs(j - this.x) <= moduleSize)
|
||||
{
|
||||
var moduleSizeDiff = Math.abs(moduleSize - this.estimatedModuleSize);
|
||||
return moduleSizeDiff <= 1.0 || moduleSizeDiff / this.estimatedModuleSize <= 1.0;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
function FinderPatternInfo(patternCenters)
|
||||
{
|
||||
this.bottomLeft = patternCenters[0];
|
||||
this.topLeft = patternCenters[1];
|
||||
this.topRight = patternCenters[2];
|
||||
this.__defineGetter__("BottomLeft", function()
|
||||
{
|
||||
return this.bottomLeft;
|
||||
});
|
||||
this.__defineGetter__("TopLeft", function()
|
||||
{
|
||||
return this.topLeft;
|
||||
});
|
||||
this.__defineGetter__("TopRight", function()
|
||||
{
|
||||
return this.topRight;
|
||||
});
|
||||
}
|
||||
|
||||
function FinderPatternFinder()
|
||||
{
|
||||
this.image=null;
|
||||
this.possibleCenters = [];
|
||||
this.hasSkipped = false;
|
||||
this.crossCheckStateCount = new Array(0,0,0,0,0);
|
||||
this.resultPointCallback = null;
|
||||
|
||||
this.__defineGetter__("CrossCheckStateCount", function()
|
||||
{
|
||||
this.crossCheckStateCount[0] = 0;
|
||||
this.crossCheckStateCount[1] = 0;
|
||||
this.crossCheckStateCount[2] = 0;
|
||||
this.crossCheckStateCount[3] = 0;
|
||||
this.crossCheckStateCount[4] = 0;
|
||||
return this.crossCheckStateCount;
|
||||
});
|
||||
|
||||
this.foundPatternCross=function( stateCount)
|
||||
{
|
||||
var totalModuleSize = 0;
|
||||
for (var i = 0; i < 5; i++)
|
||||
{
|
||||
var count = stateCount[i];
|
||||
if (count == 0)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
totalModuleSize += count;
|
||||
}
|
||||
if (totalModuleSize < 7)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
var moduleSize = Math.floor((totalModuleSize << INTEGER_MATH_SHIFT) / 7);
|
||||
var maxVariance = Math.floor(moduleSize / 2);
|
||||
// Allow less than 50% variance from 1-1-3-1-1 proportions
|
||||
return Math.abs(moduleSize - (stateCount[0] << INTEGER_MATH_SHIFT)) < maxVariance && Math.abs(moduleSize - (stateCount[1] << INTEGER_MATH_SHIFT)) < maxVariance && Math.abs(3 * moduleSize - (stateCount[2] << INTEGER_MATH_SHIFT)) < 3 * maxVariance && Math.abs(moduleSize - (stateCount[3] << INTEGER_MATH_SHIFT)) < maxVariance && Math.abs(moduleSize - (stateCount[4] << INTEGER_MATH_SHIFT)) < maxVariance;
|
||||
}
|
||||
this.centerFromEnd=function( stateCount, end)
|
||||
{
|
||||
return (end - stateCount[4] - stateCount[3]) - stateCount[2] / 2.0;
|
||||
}
|
||||
this.crossCheckVertical=function( startI, centerJ, maxCount, originalStateCountTotal)
|
||||
{
|
||||
var image = this.image;
|
||||
|
||||
var maxI = qrcode.height;
|
||||
var stateCount = this.CrossCheckStateCount;
|
||||
|
||||
// Start counting up from center
|
||||
var i = startI;
|
||||
while (i >= 0 && image[centerJ + i*qrcode.width])
|
||||
{
|
||||
stateCount[2]++;
|
||||
i--;
|
||||
}
|
||||
if (i < 0)
|
||||
{
|
||||
return NaN;
|
||||
}
|
||||
while (i >= 0 && !image[centerJ +i*qrcode.width] && stateCount[1] <= maxCount)
|
||||
{
|
||||
stateCount[1]++;
|
||||
i--;
|
||||
}
|
||||
// If already too many modules in this state or ran off the edge:
|
||||
if (i < 0 || stateCount[1] > maxCount)
|
||||
{
|
||||
return NaN;
|
||||
}
|
||||
while (i >= 0 && image[centerJ + i*qrcode.width] && stateCount[0] <= maxCount)
|
||||
{
|
||||
stateCount[0]++;
|
||||
i--;
|
||||
}
|
||||
if (stateCount[0] > maxCount)
|
||||
{
|
||||
return NaN;
|
||||
}
|
||||
|
||||
// Now also count down from center
|
||||
i = startI + 1;
|
||||
while (i < maxI && image[centerJ +i*qrcode.width])
|
||||
{
|
||||
stateCount[2]++;
|
||||
i++;
|
||||
}
|
||||
if (i == maxI)
|
||||
{
|
||||
return NaN;
|
||||
}
|
||||
while (i < maxI && !image[centerJ + i*qrcode.width] && stateCount[3] < maxCount)
|
||||
{
|
||||
stateCount[3]++;
|
||||
i++;
|
||||
}
|
||||
if (i == maxI || stateCount[3] >= maxCount)
|
||||
{
|
||||
return NaN;
|
||||
}
|
||||
while (i < maxI && image[centerJ + i*qrcode.width] && stateCount[4] < maxCount)
|
||||
{
|
||||
stateCount[4]++;
|
||||
i++;
|
||||
}
|
||||
if (stateCount[4] >= maxCount)
|
||||
{
|
||||
return NaN;
|
||||
}
|
||||
|
||||
// If we found a finder-pattern-like section, but its size is more than 40% different than
|
||||
// the original, assume it's a false positive
|
||||
var stateCountTotal = stateCount[0] + stateCount[1] + stateCount[2] + stateCount[3] + stateCount[4];
|
||||
if (5 * Math.abs(stateCountTotal - originalStateCountTotal) >= 2 * originalStateCountTotal)
|
||||
{
|
||||
return NaN;
|
||||
}
|
||||
|
||||
return this.foundPatternCross(stateCount)?this.centerFromEnd(stateCount, i):NaN;
|
||||
}
|
||||
this.crossCheckHorizontal=function( startJ, centerI, maxCount, originalStateCountTotal)
|
||||
{
|
||||
var image = this.image;
|
||||
|
||||
var maxJ = qrcode.width;
|
||||
var stateCount = this.CrossCheckStateCount;
|
||||
|
||||
var j = startJ;
|
||||
while (j >= 0 && image[j+ centerI*qrcode.width])
|
||||
{
|
||||
stateCount[2]++;
|
||||
j--;
|
||||
}
|
||||
if (j < 0)
|
||||
{
|
||||
return NaN;
|
||||
}
|
||||
while (j >= 0 && !image[j+ centerI*qrcode.width] && stateCount[1] <= maxCount)
|
||||
{
|
||||
stateCount[1]++;
|
||||
j--;
|
||||
}
|
||||
if (j < 0 || stateCount[1] > maxCount)
|
||||
{
|
||||
return NaN;
|
||||
}
|
||||
while (j >= 0 && image[j+ centerI*qrcode.width] && stateCount[0] <= maxCount)
|
||||
{
|
||||
stateCount[0]++;
|
||||
j--;
|
||||
}
|
||||
if (stateCount[0] > maxCount)
|
||||
{
|
||||
return NaN;
|
||||
}
|
||||
|
||||
j = startJ + 1;
|
||||
while (j < maxJ && image[j+ centerI*qrcode.width])
|
||||
{
|
||||
stateCount[2]++;
|
||||
j++;
|
||||
}
|
||||
if (j == maxJ)
|
||||
{
|
||||
return NaN;
|
||||
}
|
||||
while (j < maxJ && !image[j+ centerI*qrcode.width] && stateCount[3] < maxCount)
|
||||
{
|
||||
stateCount[3]++;
|
||||
j++;
|
||||
}
|
||||
if (j == maxJ || stateCount[3] >= maxCount)
|
||||
{
|
||||
return NaN;
|
||||
}
|
||||
while (j < maxJ && image[j+ centerI*qrcode.width] && stateCount[4] < maxCount)
|
||||
{
|
||||
stateCount[4]++;
|
||||
j++;
|
||||
}
|
||||
if (stateCount[4] >= maxCount)
|
||||
{
|
||||
return NaN;
|
||||
}
|
||||
|
||||
// If we found a finder-pattern-like section, but its size is significantly different than
|
||||
// the original, assume it's a false positive
|
||||
var stateCountTotal = stateCount[0] + stateCount[1] + stateCount[2] + stateCount[3] + stateCount[4];
|
||||
if (5 * Math.abs(stateCountTotal - originalStateCountTotal) >= originalStateCountTotal)
|
||||
{
|
||||
return NaN;
|
||||
}
|
||||
|
||||
return this.foundPatternCross(stateCount)?this.centerFromEnd(stateCount, j):NaN;
|
||||
}
|
||||
this.handlePossibleCenter=function( stateCount, i, j)
|
||||
{
|
||||
var stateCountTotal = stateCount[0] + stateCount[1] + stateCount[2] + stateCount[3] + stateCount[4];
|
||||
var centerJ = this.centerFromEnd(stateCount, j); //float
|
||||
var centerI = this.crossCheckVertical(i, Math.floor( centerJ), stateCount[2], stateCountTotal); //float
|
||||
if (!isNaN(centerI))
|
||||
{
|
||||
// Re-cross check
|
||||
centerJ = this.crossCheckHorizontal(Math.floor( centerJ), Math.floor( centerI), stateCount[2], stateCountTotal);
|
||||
if (!isNaN(centerJ))
|
||||
{
|
||||
var estimatedModuleSize = stateCountTotal / 7.0;
|
||||
var found = false;
|
||||
var max = this.possibleCenters.length;
|
||||
for (var index = 0; index < max; index++)
|
||||
{
|
||||
var center = this.possibleCenters[index];
|
||||
// Look for about the same center and module size:
|
||||
if (center.aboutEquals(estimatedModuleSize, centerI, centerJ))
|
||||
{
|
||||
center.incrementCount();
|
||||
found = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (!found)
|
||||
{
|
||||
var point = new FinderPattern(centerJ, centerI, estimatedModuleSize);
|
||||
this.possibleCenters.push(point);
|
||||
if (this.resultPointCallback != null)
|
||||
{
|
||||
this.resultPointCallback.foundPossibleResultPoint(point);
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
this.selectBestPatterns=function()
|
||||
{
|
||||
|
||||
var startSize = this.possibleCenters.length;
|
||||
if (startSize < 3)
|
||||
{
|
||||
// Couldn't find enough finder patterns
|
||||
throw "Couldn't find enough finder patterns";
|
||||
}
|
||||
|
||||
// Filter outlier possibilities whose module size is too different
|
||||
if (startSize > 3)
|
||||
{
|
||||
// But we can only afford to do so if we have at least 4 possibilities to choose from
|
||||
var totalModuleSize = 0.0;
|
||||
var square = 0.0;
|
||||
for (var i = 0; i < startSize; i++)
|
||||
{
|
||||
//totalModuleSize += this.possibleCenters[i].EstimatedModuleSize;
|
||||
var centerValue=this.possibleCenters[i].EstimatedModuleSize;
|
||||
totalModuleSize += centerValue;
|
||||
square += (centerValue * centerValue);
|
||||
}
|
||||
var average = totalModuleSize / startSize;
|
||||
this.possibleCenters.sort(function(center1,center2) {
|
||||
var dA=Math.abs(center2.EstimatedModuleSize - average);
|
||||
var dB=Math.abs(center1.EstimatedModuleSize - average);
|
||||
if (dA < dB) {
|
||||
return (-1);
|
||||
} else if (dA == dB) {
|
||||
return 0;
|
||||
} else {
|
||||
return 1;
|
||||
}
|
||||
});
|
||||
|
||||
var stdDev = Math.sqrt(square / startSize - average * average);
|
||||
var limit = Math.max(0.2 * average, stdDev);
|
||||
for (var i = 0; i < this.possibleCenters.length && this.possibleCenters.length > 3; i++)
|
||||
{
|
||||
var pattern = this.possibleCenters[i];
|
||||
//if (Math.abs(pattern.EstimatedModuleSize - average) > 0.2 * average)
|
||||
if (Math.abs(pattern.EstimatedModuleSize - average) > limit)
|
||||
{
|
||||
this.possibleCenters.remove(i);
|
||||
i--;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (this.possibleCenters.length > 3)
|
||||
{
|
||||
// Throw away all but those first size candidate points we found.
|
||||
this.possibleCenters.sort(function(a, b){
|
||||
if (a.count > b.count){return -1;}
|
||||
if (a.count < b.count){return 1;}
|
||||
return 0;
|
||||
});
|
||||
}
|
||||
|
||||
return new Array( this.possibleCenters[0], this.possibleCenters[1], this.possibleCenters[2]);
|
||||
}
|
||||
|
||||
this.findRowSkip=function()
|
||||
{
|
||||
var max = this.possibleCenters.length;
|
||||
if (max <= 1)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
var firstConfirmedCenter = null;
|
||||
for (var i = 0; i < max; i++)
|
||||
{
|
||||
var center = this.possibleCenters[i];
|
||||
if (center.Count >= CENTER_QUORUM)
|
||||
{
|
||||
if (firstConfirmedCenter == null)
|
||||
{
|
||||
firstConfirmedCenter = center;
|
||||
}
|
||||
else
|
||||
{
|
||||
// We have two confirmed centers
|
||||
// How far down can we skip before resuming looking for the next
|
||||
// pattern? In the worst case, only the difference between the
|
||||
// difference in the x / y coordinates of the two centers.
|
||||
// This is the case where you find top left last.
|
||||
this.hasSkipped = true;
|
||||
return Math.floor ((Math.abs(firstConfirmedCenter.X - center.X) - Math.abs(firstConfirmedCenter.Y - center.Y)) / 2);
|
||||
}
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
this.haveMultiplyConfirmedCenters=function()
|
||||
{
|
||||
var confirmedCount = 0;
|
||||
var totalModuleSize = 0.0;
|
||||
var max = this.possibleCenters.length;
|
||||
for (var i = 0; i < max; i++)
|
||||
{
|
||||
var pattern = this.possibleCenters[i];
|
||||
if (pattern.Count >= CENTER_QUORUM)
|
||||
{
|
||||
confirmedCount++;
|
||||
totalModuleSize += pattern.EstimatedModuleSize;
|
||||
}
|
||||
}
|
||||
if (confirmedCount < 3)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
// OK, we have at least 3 confirmed centers, but, it's possible that one is a "false positive"
|
||||
// and that we need to keep looking. We detect this by asking if the estimated module sizes
|
||||
// vary too much. We arbitrarily say that when the total deviation from average exceeds
|
||||
// 5% of the total module size estimates, it's too much.
|
||||
var average = totalModuleSize / max;
|
||||
var totalDeviation = 0.0;
|
||||
for (var i = 0; i < max; i++)
|
||||
{
|
||||
pattern = this.possibleCenters[i];
|
||||
totalDeviation += Math.abs(pattern.EstimatedModuleSize - average);
|
||||
}
|
||||
return totalDeviation <= 0.05 * totalModuleSize;
|
||||
}
|
||||
|
||||
this.findFinderPattern = function(image){
|
||||
var tryHarder = false;
|
||||
this.image=image;
|
||||
var maxI = qrcode.height;
|
||||
var maxJ = qrcode.width;
|
||||
var iSkip = Math.floor((3 * maxI) / (4 * MAX_MODULES));
|
||||
if (iSkip < MIN_SKIP || tryHarder)
|
||||
{
|
||||
iSkip = MIN_SKIP;
|
||||
}
|
||||
|
||||
var done = false;
|
||||
var stateCount = new Array(5);
|
||||
for (var i = iSkip - 1; i < maxI && !done; i += iSkip)
|
||||
{
|
||||
// Get a row of black/white values
|
||||
stateCount[0] = 0;
|
||||
stateCount[1] = 0;
|
||||
stateCount[2] = 0;
|
||||
stateCount[3] = 0;
|
||||
stateCount[4] = 0;
|
||||
var currentState = 0;
|
||||
for (var j = 0; j < maxJ; j++)
|
||||
{
|
||||
if (image[j+i*qrcode.width] )
|
||||
{
|
||||
// Black pixel
|
||||
if ((currentState & 1) == 1)
|
||||
{
|
||||
// Counting white pixels
|
||||
currentState++;
|
||||
}
|
||||
stateCount[currentState]++;
|
||||
}
|
||||
else
|
||||
{
|
||||
// White pixel
|
||||
if ((currentState & 1) == 0)
|
||||
{
|
||||
// Counting black pixels
|
||||
if (currentState == 4)
|
||||
{
|
||||
// A winner?
|
||||
if (this.foundPatternCross(stateCount))
|
||||
{
|
||||
// Yes
|
||||
var confirmed = this.handlePossibleCenter(stateCount, i, j);
|
||||
if (confirmed)
|
||||
{
|
||||
// Start examining every other line. Checking each line turned out to be too
|
||||
// expensive and didn't improve performance.
|
||||
iSkip = 2;
|
||||
if (this.hasSkipped)
|
||||
{
|
||||
done = this.haveMultiplyConfirmedCenters();
|
||||
}
|
||||
else
|
||||
{
|
||||
var rowSkip = this.findRowSkip();
|
||||
if (rowSkip > stateCount[2])
|
||||
{
|
||||
// Skip rows between row of lower confirmed center
|
||||
// and top of presumed third confirmed center
|
||||
// but back up a bit to get a full chance of detecting
|
||||
// it, entire width of center of finder pattern
|
||||
|
||||
// Skip by rowSkip, but back off by stateCount[2] (size of last center
|
||||
// of pattern we saw) to be conservative, and also back off by iSkip which
|
||||
// is about to be re-added
|
||||
i += rowSkip - stateCount[2] - iSkip;
|
||||
j = maxJ - 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
// Advance to next black pixel
|
||||
do
|
||||
{
|
||||
j++;
|
||||
}
|
||||
while (j < maxJ && !image[j + i*qrcode.width]);
|
||||
j--; // back up to that last white pixel
|
||||
}
|
||||
// Clear state to start looking again
|
||||
currentState = 0;
|
||||
stateCount[0] = 0;
|
||||
stateCount[1] = 0;
|
||||
stateCount[2] = 0;
|
||||
stateCount[3] = 0;
|
||||
stateCount[4] = 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
// No, shift counts back by two
|
||||
stateCount[0] = stateCount[2];
|
||||
stateCount[1] = stateCount[3];
|
||||
stateCount[2] = stateCount[4];
|
||||
stateCount[3] = 1;
|
||||
stateCount[4] = 0;
|
||||
currentState = 3;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
stateCount[++currentState]++;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
// Counting white pixels
|
||||
stateCount[currentState]++;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (this.foundPatternCross(stateCount))
|
||||
{
|
||||
var confirmed = this.handlePossibleCenter(stateCount, i, maxJ);
|
||||
if (confirmed)
|
||||
{
|
||||
iSkip = stateCount[0];
|
||||
if (this.hasSkipped)
|
||||
{
|
||||
// Found a third one
|
||||
done = haveMultiplyConfirmedCenters();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
var patternInfo = this.selectBestPatterns();
|
||||
qrcode.orderBestPatterns(patternInfo);
|
||||
|
||||
return new FinderPatternInfo(patternInfo);
|
||||
};
|
||||
}
|
||||
@ -1,104 +0,0 @@
|
||||
/*
|
||||
Ported to JavaScript by Lazar Laszlo 2011
|
||||
|
||||
lazarsoft@gmail.com, www.lazarsoft.info
|
||||
|
||||
*/
|
||||
|
||||
/*
|
||||
*
|
||||
* Copyright 2007 ZXing authors
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
|
||||
var FORMAT_INFO_MASK_QR = 0x5412;
|
||||
var FORMAT_INFO_DECODE_LOOKUP = new Array(new Array(0x5412, 0x00), new Array(0x5125, 0x01), new Array(0x5E7C, 0x02), new Array(0x5B4B, 0x03), new Array(0x45F9, 0x04), new Array(0x40CE, 0x05), new Array(0x4F97, 0x06), new Array(0x4AA0, 0x07), new Array(0x77C4, 0x08), new Array(0x72F3, 0x09), new Array(0x7DAA, 0x0A), new Array(0x789D, 0x0B), new Array(0x662F, 0x0C), new Array(0x6318, 0x0D), new Array(0x6C41, 0x0E), new Array(0x6976, 0x0F), new Array(0x1689, 0x10), new Array(0x13BE, 0x11), new Array(0x1CE7, 0x12), new Array(0x19D0, 0x13), new Array(0x0762, 0x14), new Array(0x0255, 0x15), new Array(0x0D0C, 0x16), new Array(0x083B, 0x17), new Array(0x355F, 0x18), new Array(0x3068, 0x19), new Array(0x3F31, 0x1A), new Array(0x3A06, 0x1B), new Array(0x24B4, 0x1C), new Array(0x2183, 0x1D), new Array(0x2EDA, 0x1E), new Array(0x2BED, 0x1F));
|
||||
var BITS_SET_IN_HALF_BYTE = new Array(0, 1, 1, 2, 1, 2, 2, 3, 1, 2, 2, 3, 2, 3, 3, 4);
|
||||
|
||||
|
||||
function FormatInformation(formatInfo)
|
||||
{
|
||||
this.errorCorrectionLevel = ErrorCorrectionLevel.forBits((formatInfo >> 3) & 0x03);
|
||||
this.dataMask = (formatInfo & 0x07);
|
||||
|
||||
this.__defineGetter__("ErrorCorrectionLevel", function()
|
||||
{
|
||||
return this.errorCorrectionLevel;
|
||||
});
|
||||
this.__defineGetter__("DataMask", function()
|
||||
{
|
||||
return this.dataMask;
|
||||
});
|
||||
this.GetHashCode=function()
|
||||
{
|
||||
return (this.errorCorrectionLevel.ordinal() << 3) | dataMask;
|
||||
}
|
||||
this.Equals=function( o)
|
||||
{
|
||||
var other = o;
|
||||
return this.errorCorrectionLevel == other.errorCorrectionLevel && this.dataMask == other.dataMask;
|
||||
}
|
||||
}
|
||||
|
||||
FormatInformation.numBitsDiffering=function( a, b)
|
||||
{
|
||||
a ^= b; // a now has a 1 bit exactly where its bit differs with b's
|
||||
// Count bits set quickly with a series of lookups:
|
||||
return BITS_SET_IN_HALF_BYTE[a & 0x0F] + BITS_SET_IN_HALF_BYTE[(URShift(a, 4) & 0x0F)] + BITS_SET_IN_HALF_BYTE[(URShift(a, 8) & 0x0F)] + BITS_SET_IN_HALF_BYTE[(URShift(a, 12) & 0x0F)] + BITS_SET_IN_HALF_BYTE[(URShift(a, 16) & 0x0F)] + BITS_SET_IN_HALF_BYTE[(URShift(a, 20) & 0x0F)] + BITS_SET_IN_HALF_BYTE[(URShift(a, 24) & 0x0F)] + BITS_SET_IN_HALF_BYTE[(URShift(a, 28) & 0x0F)];
|
||||
}
|
||||
|
||||
FormatInformation.decodeFormatInformation=function( maskedFormatInfo)
|
||||
{
|
||||
var formatInfo = FormatInformation.doDecodeFormatInformation(maskedFormatInfo);
|
||||
if (formatInfo != null)
|
||||
{
|
||||
return formatInfo;
|
||||
}
|
||||
// Should return null, but, some QR codes apparently
|
||||
// do not mask this info. Try again by actually masking the pattern
|
||||
// first
|
||||
return FormatInformation.doDecodeFormatInformation(maskedFormatInfo ^ FORMAT_INFO_MASK_QR);
|
||||
}
|
||||
FormatInformation.doDecodeFormatInformation=function( maskedFormatInfo)
|
||||
{
|
||||
// Find the int in FORMAT_INFO_DECODE_LOOKUP with fewest bits differing
|
||||
var bestDifference = 0xffffffff;
|
||||
var bestFormatInfo = 0;
|
||||
for (var i = 0; i < FORMAT_INFO_DECODE_LOOKUP.length; i++)
|
||||
{
|
||||
var decodeInfo = FORMAT_INFO_DECODE_LOOKUP[i];
|
||||
var targetInfo = decodeInfo[0];
|
||||
if (targetInfo == maskedFormatInfo)
|
||||
{
|
||||
// Found an exact match
|
||||
return new FormatInformation(decodeInfo[1]);
|
||||
}
|
||||
var bitsDifference = this.numBitsDiffering(maskedFormatInfo, targetInfo);
|
||||
if (bitsDifference < bestDifference)
|
||||
{
|
||||
bestFormatInfo = decodeInfo[1];
|
||||
bestDifference = bitsDifference;
|
||||
}
|
||||
}
|
||||
// Hamming distance of the 32 masked codes is 7, by construction, so <= 3 bits
|
||||
// differing means we found a match
|
||||
if (bestDifference <= 3)
|
||||
{
|
||||
return new FormatInformation(bestFormatInfo);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
@ -1,117 +0,0 @@
|
||||
/*
|
||||
Ported to JavaScript by Lazar Laszlo 2011
|
||||
|
||||
lazarsoft@gmail.com, www.lazarsoft.info
|
||||
|
||||
*/
|
||||
|
||||
/*
|
||||
*
|
||||
* Copyright 2007 ZXing authors
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
|
||||
function GF256( primitive)
|
||||
{
|
||||
this.expTable = new Array(256);
|
||||
this.logTable = new Array(256);
|
||||
var x = 1;
|
||||
for (var i = 0; i < 256; i++)
|
||||
{
|
||||
this.expTable[i] = x;
|
||||
x <<= 1; // x = x * 2; we're assuming the generator alpha is 2
|
||||
if (x >= 0x100)
|
||||
{
|
||||
x ^= primitive;
|
||||
}
|
||||
}
|
||||
for (var i = 0; i < 255; i++)
|
||||
{
|
||||
this.logTable[this.expTable[i]] = i;
|
||||
}
|
||||
// logTable[0] == 0 but this should never be used
|
||||
var at0=new Array(1);at0[0]=0;
|
||||
this.zero = new GF256Poly(this, new Array(at0));
|
||||
var at1=new Array(1);at1[0]=1;
|
||||
this.one = new GF256Poly(this, new Array(at1));
|
||||
|
||||
this.__defineGetter__("Zero", function()
|
||||
{
|
||||
return this.zero;
|
||||
});
|
||||
this.__defineGetter__("One", function()
|
||||
{
|
||||
return this.one;
|
||||
});
|
||||
this.buildMonomial=function( degree, coefficient)
|
||||
{
|
||||
if (degree < 0)
|
||||
{
|
||||
throw "System.ArgumentException";
|
||||
}
|
||||
if (coefficient == 0)
|
||||
{
|
||||
return zero;
|
||||
}
|
||||
var coefficients = new Array(degree + 1);
|
||||
for(var i=0;i<coefficients.length;i++)coefficients[i]=0;
|
||||
coefficients[0] = coefficient;
|
||||
return new GF256Poly(this, coefficients);
|
||||
}
|
||||
this.exp=function( a)
|
||||
{
|
||||
return this.expTable[a];
|
||||
}
|
||||
this.log=function( a)
|
||||
{
|
||||
if (a == 0)
|
||||
{
|
||||
throw "System.ArgumentException";
|
||||
}
|
||||
return this.logTable[a];
|
||||
}
|
||||
this.inverse=function( a)
|
||||
{
|
||||
if (a == 0)
|
||||
{
|
||||
throw "System.ArithmeticException";
|
||||
}
|
||||
return this.expTable[255 - this.logTable[a]];
|
||||
}
|
||||
this.multiply=function( a, b)
|
||||
{
|
||||
if (a == 0 || b == 0)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
if (a == 1)
|
||||
{
|
||||
return b;
|
||||
}
|
||||
if (b == 1)
|
||||
{
|
||||
return a;
|
||||
}
|
||||
return this.expTable[(this.logTable[a] + this.logTable[b]) % 255];
|
||||
}
|
||||
}
|
||||
|
||||
GF256.QR_CODE_FIELD = new GF256(0x011D);
|
||||
GF256.DATA_MATRIX_FIELD = new GF256(0x012D);
|
||||
|
||||
GF256.addOrSubtract=function( a, b)
|
||||
{
|
||||
return a ^ b;
|
||||
}
|
||||
@ -1,230 +0,0 @@
|
||||
/*
|
||||
Ported to JavaScript by Lazar Laszlo 2011
|
||||
|
||||
lazarsoft@gmail.com, www.lazarsoft.info
|
||||
|
||||
*/
|
||||
|
||||
/*
|
||||
*
|
||||
* Copyright 2007 ZXing authors
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
|
||||
function GF256Poly(field, coefficients)
|
||||
{
|
||||
if (coefficients == null || coefficients.length == 0)
|
||||
{
|
||||
throw "System.ArgumentException";
|
||||
}
|
||||
this.field = field;
|
||||
var coefficientsLength = coefficients.length;
|
||||
if (coefficientsLength > 1 && coefficients[0] == 0)
|
||||
{
|
||||
// Leading term must be non-zero for anything except the constant polynomial "0"
|
||||
var firstNonZero = 1;
|
||||
while (firstNonZero < coefficientsLength && coefficients[firstNonZero] == 0)
|
||||
{
|
||||
firstNonZero++;
|
||||
}
|
||||
if (firstNonZero == coefficientsLength)
|
||||
{
|
||||
this.coefficients = field.Zero.coefficients;
|
||||
}
|
||||
else
|
||||
{
|
||||
this.coefficients = new Array(coefficientsLength - firstNonZero);
|
||||
for(var i=0;i<this.coefficients.length;i++)this.coefficients[i]=0;
|
||||
//Array.Copy(coefficients, firstNonZero, this.coefficients, 0, this.coefficients.length);
|
||||
for(var ci=0;ci<this.coefficients.length;ci++)this.coefficients[ci]=coefficients[firstNonZero+ci];
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
this.coefficients = coefficients;
|
||||
}
|
||||
|
||||
this.__defineGetter__("Zero", function()
|
||||
{
|
||||
return this.coefficients[0] == 0;
|
||||
});
|
||||
this.__defineGetter__("Degree", function()
|
||||
{
|
||||
return this.coefficients.length - 1;
|
||||
});
|
||||
this.__defineGetter__("Coefficients", function()
|
||||
{
|
||||
return this.coefficients;
|
||||
});
|
||||
|
||||
this.getCoefficient=function( degree)
|
||||
{
|
||||
return this.coefficients[this.coefficients.length - 1 - degree];
|
||||
}
|
||||
|
||||
this.evaluateAt=function( a)
|
||||
{
|
||||
if (a == 0)
|
||||
{
|
||||
// Just return the x^0 coefficient
|
||||
return this.getCoefficient(0);
|
||||
}
|
||||
var size = this.coefficients.length;
|
||||
if (a == 1)
|
||||
{
|
||||
// Just the sum of the coefficients
|
||||
var result = 0;
|
||||
for (var i = 0; i < size; i++)
|
||||
{
|
||||
result = GF256.addOrSubtract(result, this.coefficients[i]);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
var result2 = this.coefficients[0];
|
||||
for (var i = 1; i < size; i++)
|
||||
{
|
||||
result2 = GF256.addOrSubtract(this.field.multiply(a, result2), this.coefficients[i]);
|
||||
}
|
||||
return result2;
|
||||
}
|
||||
|
||||
this.addOrSubtract=function( other)
|
||||
{
|
||||
if (this.field != other.field)
|
||||
{
|
||||
throw "GF256Polys do not have same GF256 field";
|
||||
}
|
||||
if (this.Zero)
|
||||
{
|
||||
return other;
|
||||
}
|
||||
if (other.Zero)
|
||||
{
|
||||
return this;
|
||||
}
|
||||
|
||||
var smallerCoefficients = this.coefficients;
|
||||
var largerCoefficients = other.coefficients;
|
||||
if (smallerCoefficients.length > largerCoefficients.length)
|
||||
{
|
||||
var temp = smallerCoefficients;
|
||||
smallerCoefficients = largerCoefficients;
|
||||
largerCoefficients = temp;
|
||||
}
|
||||
var sumDiff = new Array(largerCoefficients.length);
|
||||
var lengthDiff = largerCoefficients.length - smallerCoefficients.length;
|
||||
// Copy high-order terms only found in higher-degree polynomial's coefficients
|
||||
//Array.Copy(largerCoefficients, 0, sumDiff, 0, lengthDiff);
|
||||
for(var ci=0;ci<lengthDiff;ci++)sumDiff[ci]=largerCoefficients[ci];
|
||||
|
||||
for (var i = lengthDiff; i < largerCoefficients.length; i++)
|
||||
{
|
||||
sumDiff[i] = GF256.addOrSubtract(smallerCoefficients[i - lengthDiff], largerCoefficients[i]);
|
||||
}
|
||||
|
||||
return new GF256Poly(field, sumDiff);
|
||||
}
|
||||
this.multiply1=function( other)
|
||||
{
|
||||
if (this.field!=other.field)
|
||||
{
|
||||
throw "GF256Polys do not have same GF256 field";
|
||||
}
|
||||
if (this.Zero || other.Zero)
|
||||
{
|
||||
return this.field.Zero;
|
||||
}
|
||||
var aCoefficients = this.coefficients;
|
||||
var aLength = aCoefficients.length;
|
||||
var bCoefficients = other.coefficients;
|
||||
var bLength = bCoefficients.length;
|
||||
var product = new Array(aLength + bLength - 1);
|
||||
for (var i = 0; i < aLength; i++)
|
||||
{
|
||||
var aCoeff = aCoefficients[i];
|
||||
for (var j = 0; j < bLength; j++)
|
||||
{
|
||||
product[i + j] = GF256.addOrSubtract(product[i + j], this.field.multiply(aCoeff, bCoefficients[j]));
|
||||
}
|
||||
}
|
||||
return new GF256Poly(this.field, product);
|
||||
}
|
||||
this.multiply2=function( scalar)
|
||||
{
|
||||
if (scalar == 0)
|
||||
{
|
||||
return this.field.Zero;
|
||||
}
|
||||
if (scalar == 1)
|
||||
{
|
||||
return this;
|
||||
}
|
||||
var size = this.coefficients.length;
|
||||
var product = new Array(size);
|
||||
for (var i = 0; i < size; i++)
|
||||
{
|
||||
product[i] = this.field.multiply(this.coefficients[i], scalar);
|
||||
}
|
||||
return new GF256Poly(this.field, product);
|
||||
}
|
||||
this.multiplyByMonomial=function( degree, coefficient)
|
||||
{
|
||||
if (degree < 0)
|
||||
{
|
||||
throw "System.ArgumentException";
|
||||
}
|
||||
if (coefficient == 0)
|
||||
{
|
||||
return this.field.Zero;
|
||||
}
|
||||
var size = this.coefficients.length;
|
||||
var product = new Array(size + degree);
|
||||
for(var i=0;i<product.length;i++)product[i]=0;
|
||||
for (var i = 0; i < size; i++)
|
||||
{
|
||||
product[i] = this.field.multiply(this.coefficients[i], coefficient);
|
||||
}
|
||||
return new GF256Poly(this.field, product);
|
||||
}
|
||||
this.divide=function( other)
|
||||
{
|
||||
if (this.field!=other.field)
|
||||
{
|
||||
throw "GF256Polys do not have same GF256 field";
|
||||
}
|
||||
if (other.Zero)
|
||||
{
|
||||
throw "Divide by 0";
|
||||
}
|
||||
|
||||
var quotient = this.field.Zero;
|
||||
var remainder = this;
|
||||
|
||||
var denominatorLeadingTerm = other.getCoefficient(other.Degree);
|
||||
var inverseDenominatorLeadingTerm = this.field.inverse(denominatorLeadingTerm);
|
||||
|
||||
while (remainder.Degree >= other.Degree && !remainder.Zero)
|
||||
{
|
||||
var degreeDifference = remainder.Degree - other.Degree;
|
||||
var scale = this.field.multiply(remainder.getCoefficient(remainder.Degree), inverseDenominatorLeadingTerm);
|
||||
var term = other.multiplyByMonomial(degreeDifference, scale);
|
||||
var iterationQuotient = this.field.buildMonomial(degreeDifference, scale);
|
||||
quotient = quotient.addOrSubtract(iterationQuotient);
|
||||
remainder = remainder.addOrSubtract(term);
|
||||
}
|
||||
|
||||
return new Array(quotient, remainder);
|
||||
}
|
||||
}
|
||||
@ -1,152 +0,0 @@
|
||||
/*
|
||||
Ported to JavaScript by Lazar Laszlo 2011
|
||||
|
||||
lazarsoft@gmail.com, www.lazarsoft.info
|
||||
|
||||
*/
|
||||
|
||||
/*
|
||||
*
|
||||
* Copyright 2007 ZXing authors
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
|
||||
GridSampler = {};
|
||||
|
||||
GridSampler.checkAndNudgePoints=function( image, points)
|
||||
{
|
||||
var width = qrcode.width;
|
||||
var height = qrcode.height;
|
||||
// Check and nudge points from start until we see some that are OK:
|
||||
var nudged = true;
|
||||
for (var offset = 0; offset < points.length && nudged; offset += 2)
|
||||
{
|
||||
var x = Math.floor (points[offset]);
|
||||
var y = Math.floor( points[offset + 1]);
|
||||
if (x < - 1 || x > width || y < - 1 || y > height)
|
||||
{
|
||||
throw "Error.checkAndNudgePoints ";
|
||||
}
|
||||
nudged = false;
|
||||
if (x == - 1)
|
||||
{
|
||||
points[offset] = 0.0;
|
||||
nudged = true;
|
||||
}
|
||||
else if (x == width)
|
||||
{
|
||||
points[offset] = width - 1;
|
||||
nudged = true;
|
||||
}
|
||||
if (y == - 1)
|
||||
{
|
||||
points[offset + 1] = 0.0;
|
||||
nudged = true;
|
||||
}
|
||||
else if (y == height)
|
||||
{
|
||||
points[offset + 1] = height - 1;
|
||||
nudged = true;
|
||||
}
|
||||
}
|
||||
// Check and nudge points from end:
|
||||
nudged = true;
|
||||
for (var offset = points.length - 2; offset >= 0 && nudged; offset -= 2)
|
||||
{
|
||||
var x = Math.floor( points[offset]);
|
||||
var y = Math.floor( points[offset + 1]);
|
||||
if (x < - 1 || x > width || y < - 1 || y > height)
|
||||
{
|
||||
throw "Error.checkAndNudgePoints ";
|
||||
}
|
||||
nudged = false;
|
||||
if (x == - 1)
|
||||
{
|
||||
points[offset] = 0.0;
|
||||
nudged = true;
|
||||
}
|
||||
else if (x == width)
|
||||
{
|
||||
points[offset] = width - 1;
|
||||
nudged = true;
|
||||
}
|
||||
if (y == - 1)
|
||||
{
|
||||
points[offset + 1] = 0.0;
|
||||
nudged = true;
|
||||
}
|
||||
else if (y == height)
|
||||
{
|
||||
points[offset + 1] = height - 1;
|
||||
nudged = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
GridSampler.sampleGrid3=function( image, dimension, transform)
|
||||
{
|
||||
var bits = new BitMatrix(dimension);
|
||||
var points = new Array(dimension << 1);
|
||||
for (var y = 0; y < dimension; y++)
|
||||
{
|
||||
var max = points.length;
|
||||
var iValue = y + 0.5;
|
||||
for (var x = 0; x < max; x += 2)
|
||||
{
|
||||
points[x] = (x >> 1) + 0.5;
|
||||
points[x + 1] = iValue;
|
||||
}
|
||||
transform.transformPoints1(points);
|
||||
// Quick check to see if points transformed to something inside the image;
|
||||
// sufficient to check the endpoints
|
||||
GridSampler.checkAndNudgePoints(image, points);
|
||||
try
|
||||
{
|
||||
for (var x = 0; x < max; x += 2)
|
||||
{
|
||||
var xpoint = (Math.floor( points[x]) * 4) + (Math.floor( points[x + 1]) * qrcode.width * 4);
|
||||
var bit = image[Math.floor( points[x])+ qrcode.width* Math.floor( points[x + 1])];
|
||||
qrcode.imagedata.data[xpoint] = bit?255:0;
|
||||
qrcode.imagedata.data[xpoint+1] = bit?255:0;
|
||||
qrcode.imagedata.data[xpoint+2] = 0;
|
||||
qrcode.imagedata.data[xpoint+3] = 255;
|
||||
//bits[x >> 1][ y]=bit;
|
||||
if(bit)
|
||||
bits.set_Renamed(x >> 1, y);
|
||||
}
|
||||
}
|
||||
catch ( aioobe)
|
||||
{
|
||||
// This feels wrong, but, sometimes if the finder patterns are misidentified, the resulting
|
||||
// transform gets "twisted" such that it maps a straight line of points to a set of points
|
||||
// whose endpoints are in bounds, but others are not. There is probably some mathematical
|
||||
// way to detect this about the transformation that I don't know yet.
|
||||
// This results in an ugly runtime exception despite our clever checks above -- can't have
|
||||
// that. We could check each point's coordinates but that feels duplicative. We settle for
|
||||
// catching and wrapping ArrayIndexOutOfBoundsException.
|
||||
throw "Error.checkAndNudgePoints";
|
||||
}
|
||||
}
|
||||
return bits;
|
||||
}
|
||||
|
||||
GridSampler.sampleGridx=function( image, dimension, p1ToX, p1ToY, p2ToX, p2ToY, p3ToX, p3ToY, p4ToX, p4ToY, p1FromX, p1FromY, p2FromX, p2FromY, p3FromX, p3FromY, p4FromX, p4FromY)
|
||||
{
|
||||
var transform = PerspectiveTransform.quadrilateralToQuadrilateral(p1ToX, p1ToY, p2ToX, p2ToY, p3ToX, p3ToY, p4ToX, p4ToY, p1FromX, p1FromY, p2FromX, p2FromY, p3FromX, p3FromY, p4FromX, p4FromY);
|
||||
|
||||
return GridSampler.sampleGrid3(image, dimension, transform);
|
||||
}
|
||||
@ -1,319 +0,0 @@
|
||||
/*
|
||||
Copyright 2011 Lazar Laszlo (lazarsoft@gmail.com, www.lazarsoft.info)
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/
|
||||
|
||||
|
||||
qrcode = window.qrcode || {};
|
||||
qrcode.imagedata = null;
|
||||
qrcode.width = 0;
|
||||
qrcode.height = 0;
|
||||
qrcode.qrCodeSymbol = null;
|
||||
qrcode.debug = false;
|
||||
qrcode.maxImgSize = 1024*1024;
|
||||
|
||||
qrcode.sizeOfDataLengthInfo = [ [ 10, 9, 8, 8 ], [ 12, 11, 16, 10 ], [ 14, 13, 16, 12 ] ];
|
||||
|
||||
qrcode.callback = null;
|
||||
|
||||
qrcode.decode = function(src){
|
||||
|
||||
if(arguments.length==0)
|
||||
{
|
||||
var canvas_qr = document.getElementById("qr-canvas");
|
||||
var context = canvas_qr.getContext('2d');
|
||||
qrcode.width = canvas_qr.width;
|
||||
qrcode.height = canvas_qr.height;
|
||||
qrcode.imagedata = context.getImageData(0, 0, qrcode.width, qrcode.height);
|
||||
qrcode.result = qrcode.process(context);
|
||||
if(qrcode.callback!=null)
|
||||
qrcode.callback(qrcode.result);
|
||||
return qrcode.result;
|
||||
}
|
||||
else
|
||||
{
|
||||
var image = new Image();
|
||||
image.onload=function(){
|
||||
//var canvas_qr = document.getElementById("qr-canvas");
|
||||
var canvas_qr = document.createElement('canvas');
|
||||
var context = canvas_qr.getContext('2d');
|
||||
var nheight = image.height;
|
||||
var nwidth = image.width;
|
||||
if(image.width*image.height>qrcode.maxImgSize)
|
||||
{
|
||||
var ir = image.width / image.height;
|
||||
nheight = Math.sqrt(qrcode.maxImgSize/ir);
|
||||
nwidth=ir*nheight;
|
||||
}
|
||||
|
||||
canvas_qr.width = nwidth;
|
||||
canvas_qr.height = nheight;
|
||||
|
||||
context.drawImage(image, 0, 0, canvas_qr.width, canvas_qr.height );
|
||||
qrcode.width = canvas_qr.width;
|
||||
qrcode.height = canvas_qr.height;
|
||||
try{
|
||||
qrcode.imagedata = context.getImageData(0, 0, canvas_qr.width, canvas_qr.height);
|
||||
}catch(e){
|
||||
qrcode.result = "Cross domain image reading not supported in your browser! Save it to your computer then drag and drop the file!";
|
||||
if(qrcode.callback!=null)
|
||||
qrcode.callback(qrcode.result);
|
||||
return;
|
||||
}
|
||||
|
||||
try
|
||||
{
|
||||
qrcode.result = qrcode.process(context);
|
||||
}
|
||||
catch(e)
|
||||
{
|
||||
console.log(e);
|
||||
qrcode.result = "error decoding QR Code";
|
||||
}
|
||||
if(qrcode.callback!=null)
|
||||
qrcode.callback(qrcode.result);
|
||||
}
|
||||
image.src = src;
|
||||
}
|
||||
}
|
||||
|
||||
qrcode.isUrl = function(s)
|
||||
{
|
||||
var regexp = /(ftp|http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?/;
|
||||
return regexp.test(s);
|
||||
}
|
||||
|
||||
qrcode.decode_url = function (s)
|
||||
{
|
||||
var escaped = "";
|
||||
try{
|
||||
escaped = escape( s );
|
||||
}
|
||||
catch(e)
|
||||
{
|
||||
console.log(e);
|
||||
escaped = s;
|
||||
}
|
||||
var ret = "";
|
||||
try{
|
||||
ret = decodeURIComponent( escaped );
|
||||
}
|
||||
catch(e)
|
||||
{
|
||||
console.log(e);
|
||||
ret = escaped;
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
qrcode.decode_utf8 = function ( s )
|
||||
{
|
||||
if(qrcode.isUrl(s))
|
||||
return qrcode.decode_url(s);
|
||||
else
|
||||
return s;
|
||||
}
|
||||
|
||||
qrcode.process = function(ctx){
|
||||
|
||||
var start = new Date().getTime();
|
||||
|
||||
var image = qrcode.grayScaleToBitmap(qrcode.grayscale());
|
||||
//var image = qrcode.binarize(128);
|
||||
|
||||
if(qrcode.debug)
|
||||
{
|
||||
for (var y = 0; y < qrcode.height; y++)
|
||||
{
|
||||
for (var x = 0; x < qrcode.width; x++)
|
||||
{
|
||||
var point = (x * 4) + (y * qrcode.width * 4);
|
||||
qrcode.imagedata.data[point] = image[x+y*qrcode.width]?0:0;
|
||||
qrcode.imagedata.data[point+1] = image[x+y*qrcode.width]?0:0;
|
||||
qrcode.imagedata.data[point+2] = image[x+y*qrcode.width]?255:0;
|
||||
}
|
||||
}
|
||||
ctx.putImageData(qrcode.imagedata, 0, 0);
|
||||
}
|
||||
|
||||
//var finderPatternInfo = new FinderPatternFinder().findFinderPattern(image);
|
||||
|
||||
var detector = new Detector(image);
|
||||
|
||||
var qRCodeMatrix = detector.detect();
|
||||
|
||||
/*for (var y = 0; y < qRCodeMatrix.bits.Height; y++)
|
||||
{
|
||||
for (var x = 0; x < qRCodeMatrix.bits.Width; x++)
|
||||
{
|
||||
var point = (x * 4*2) + (y*2 * qrcode.width * 4);
|
||||
qrcode.imagedata.data[point] = qRCodeMatrix.bits.get_Renamed(x,y)?0:0;
|
||||
qrcode.imagedata.data[point+1] = qRCodeMatrix.bits.get_Renamed(x,y)?0:0;
|
||||
qrcode.imagedata.data[point+2] = qRCodeMatrix.bits.get_Renamed(x,y)?255:0;
|
||||
}
|
||||
}*/
|
||||
if(qrcode.debug)
|
||||
ctx.putImageData(qrcode.imagedata, 0, 0);
|
||||
|
||||
var reader = Decoder.decode(qRCodeMatrix.bits);
|
||||
var data = reader.DataByte;
|
||||
var str="";
|
||||
for(var i=0;i<data.length;i++)
|
||||
{
|
||||
for(var j=0;j<data[i].length;j++)
|
||||
str+=String.fromCharCode(data[i][j]);
|
||||
}
|
||||
|
||||
var end = new Date().getTime();
|
||||
var time = end - start;
|
||||
console.log(time);
|
||||
|
||||
return qrcode.decode_utf8(str);
|
||||
//alert("Time:" + time + " Code: "+str);
|
||||
}
|
||||
|
||||
qrcode.getPixel = function(x,y){
|
||||
if (qrcode.width < x) {
|
||||
throw "point error";
|
||||
}
|
||||
if (qrcode.height < y) {
|
||||
throw "point error";
|
||||
}
|
||||
point = (x * 4) + (y * qrcode.width * 4);
|
||||
p = (qrcode.imagedata.data[point]*33 + qrcode.imagedata.data[point + 1]*34 + qrcode.imagedata.data[point + 2]*33)/100;
|
||||
return p;
|
||||
}
|
||||
|
||||
qrcode.binarize = function(th){
|
||||
var ret = new Array(qrcode.width*qrcode.height);
|
||||
for (var y = 0; y < qrcode.height; y++)
|
||||
{
|
||||
for (var x = 0; x < qrcode.width; x++)
|
||||
{
|
||||
var gray = qrcode.getPixel(x, y);
|
||||
|
||||
ret[x+y*qrcode.width] = gray<=th?true:false;
|
||||
}
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
qrcode.getMiddleBrightnessPerArea=function(image)
|
||||
{
|
||||
var numSqrtArea = 4;
|
||||
//obtain middle brightness((min + max) / 2) per area
|
||||
var areaWidth = Math.floor(qrcode.width / numSqrtArea);
|
||||
var areaHeight = Math.floor(qrcode.height / numSqrtArea);
|
||||
var minmax = new Array(numSqrtArea);
|
||||
for (var i = 0; i < numSqrtArea; i++)
|
||||
{
|
||||
minmax[i] = new Array(numSqrtArea);
|
||||
for (var i2 = 0; i2 < numSqrtArea; i2++)
|
||||
{
|
||||
minmax[i][i2] = new Array(0,0);
|
||||
}
|
||||
}
|
||||
for (var ay = 0; ay < numSqrtArea; ay++)
|
||||
{
|
||||
for (var ax = 0; ax < numSqrtArea; ax++)
|
||||
{
|
||||
minmax[ax][ay][0] = 0xFF;
|
||||
for (var dy = 0; dy < areaHeight; dy++)
|
||||
{
|
||||
for (var dx = 0; dx < areaWidth; dx++)
|
||||
{
|
||||
var target = image[areaWidth * ax + dx+(areaHeight * ay + dy)*qrcode.width];
|
||||
if (target < minmax[ax][ay][0])
|
||||
minmax[ax][ay][0] = target;
|
||||
if (target > minmax[ax][ay][1])
|
||||
minmax[ax][ay][1] = target;
|
||||
}
|
||||
}
|
||||
//minmax[ax][ay][0] = (minmax[ax][ay][0] + minmax[ax][ay][1]) / 2;
|
||||
}
|
||||
}
|
||||
var middle = new Array(numSqrtArea);
|
||||
for (var i3 = 0; i3 < numSqrtArea; i3++)
|
||||
{
|
||||
middle[i3] = new Array(numSqrtArea);
|
||||
}
|
||||
for (var ay = 0; ay < numSqrtArea; ay++)
|
||||
{
|
||||
for (var ax = 0; ax < numSqrtArea; ax++)
|
||||
{
|
||||
middle[ax][ay] = Math.floor((minmax[ax][ay][0] + minmax[ax][ay][1]) / 2);
|
||||
//Console.out.print(middle[ax][ay] + ",");
|
||||
}
|
||||
//Console.out.println("");
|
||||
}
|
||||
//Console.out.println("");
|
||||
|
||||
return middle;
|
||||
}
|
||||
|
||||
qrcode.grayScaleToBitmap=function(grayScale)
|
||||
{
|
||||
var middle = qrcode.getMiddleBrightnessPerArea(grayScale);
|
||||
var sqrtNumArea = middle.length;
|
||||
var areaWidth = Math.floor(qrcode.width / sqrtNumArea);
|
||||
var areaHeight = Math.floor(qrcode.height / sqrtNumArea);
|
||||
var bitmap = new Array(qrcode.height*qrcode.width);
|
||||
|
||||
for (var ay = 0; ay < sqrtNumArea; ay++)
|
||||
{
|
||||
for (var ax = 0; ax < sqrtNumArea; ax++)
|
||||
{
|
||||
for (var dy = 0; dy < areaHeight; dy++)
|
||||
{
|
||||
for (var dx = 0; dx < areaWidth; dx++)
|
||||
{
|
||||
bitmap[areaWidth * ax + dx+ (areaHeight * ay + dy)*qrcode.width] = (grayScale[areaWidth * ax + dx+ (areaHeight * ay + dy)*qrcode.width] < middle[ax][ay])?true:false;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return bitmap;
|
||||
}
|
||||
|
||||
qrcode.grayscale = function(){
|
||||
var ret = new Array(qrcode.width*qrcode.height);
|
||||
for (var y = 0; y < qrcode.height; y++)
|
||||
{
|
||||
for (var x = 0; x < qrcode.width; x++)
|
||||
{
|
||||
var gray = qrcode.getPixel(x, y);
|
||||
|
||||
ret[x+y*qrcode.width] = gray;
|
||||
}
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function URShift( number, bits)
|
||||
{
|
||||
if (number >= 0)
|
||||
return number >> bits;
|
||||
else
|
||||
return (number >> bits) + (2 << ~bits);
|
||||
}
|
||||
|
||||
|
||||
Array.prototype.remove = function(from, to) {
|
||||
var rest = this.slice((to || from) + 1 || this.length);
|
||||
this.length = from < 0 ? this.length + from : from;
|
||||
return this.push.apply(this, rest);
|
||||
};
|
||||
@ -1,178 +0,0 @@
|
||||
/*
|
||||
Ported to JavaScript by Lazar Laszlo 2011
|
||||
|
||||
lazarsoft@gmail.com, www.lazarsoft.info
|
||||
|
||||
*/
|
||||
|
||||
/*
|
||||
*
|
||||
* Copyright 2007 ZXing authors
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
|
||||
function ReedSolomonDecoder(field)
|
||||
{
|
||||
this.field = field;
|
||||
this.decode=function(received, twoS)
|
||||
{
|
||||
var poly = new GF256Poly(this.field, received);
|
||||
var syndromeCoefficients = new Array(twoS);
|
||||
for(var i=0;i<syndromeCoefficients.length;i++)syndromeCoefficients[i]=0;
|
||||
var dataMatrix = false;//this.field.Equals(GF256.DATA_MATRIX_FIELD);
|
||||
var noError = true;
|
||||
for (var i = 0; i < twoS; i++)
|
||||
{
|
||||
// Thanks to sanfordsquires for this fix:
|
||||
var eval = poly.evaluateAt(this.field.exp(dataMatrix?i + 1:i));
|
||||
syndromeCoefficients[syndromeCoefficients.length - 1 - i] = eval;
|
||||
if (eval != 0)
|
||||
{
|
||||
noError = false;
|
||||
}
|
||||
}
|
||||
if (noError)
|
||||
{
|
||||
return ;
|
||||
}
|
||||
var syndrome = new GF256Poly(this.field, syndromeCoefficients);
|
||||
var sigmaOmega = this.runEuclideanAlgorithm(this.field.buildMonomial(twoS, 1), syndrome, twoS);
|
||||
var sigma = sigmaOmega[0];
|
||||
var omega = sigmaOmega[1];
|
||||
var errorLocations = this.findErrorLocations(sigma);
|
||||
var errorMagnitudes = this.findErrorMagnitudes(omega, errorLocations, dataMatrix);
|
||||
for (var i = 0; i < errorLocations.length; i++)
|
||||
{
|
||||
var position = received.length - 1 - this.field.log(errorLocations[i]);
|
||||
if (position < 0)
|
||||
{
|
||||
throw "ReedSolomonException Bad error location";
|
||||
}
|
||||
received[position] = GF256.addOrSubtract(received[position], errorMagnitudes[i]);
|
||||
}
|
||||
}
|
||||
|
||||
this.runEuclideanAlgorithm=function( a, b, R)
|
||||
{
|
||||
// Assume a's degree is >= b's
|
||||
if (a.Degree < b.Degree)
|
||||
{
|
||||
var temp = a;
|
||||
a = b;
|
||||
b = temp;
|
||||
}
|
||||
|
||||
var rLast = a;
|
||||
var r = b;
|
||||
var sLast = this.field.One;
|
||||
var s = this.field.Zero;
|
||||
var tLast = this.field.Zero;
|
||||
var t = this.field.One;
|
||||
|
||||
// Run Euclidean algorithm until r's degree is less than R/2
|
||||
while (r.Degree >= Math.floor(R / 2))
|
||||
{
|
||||
var rLastLast = rLast;
|
||||
var sLastLast = sLast;
|
||||
var tLastLast = tLast;
|
||||
rLast = r;
|
||||
sLast = s;
|
||||
tLast = t;
|
||||
|
||||
// Divide rLastLast by rLast, with quotient in q and remainder in r
|
||||
if (rLast.Zero)
|
||||
{
|
||||
// Oops, Euclidean algorithm already terminated?
|
||||
throw "r_{i-1} was zero";
|
||||
}
|
||||
r = rLastLast;
|
||||
var q = this.field.Zero;
|
||||
var denominatorLeadingTerm = rLast.getCoefficient(rLast.Degree);
|
||||
var dltInverse = this.field.inverse(denominatorLeadingTerm);
|
||||
while (r.Degree >= rLast.Degree && !r.Zero)
|
||||
{
|
||||
var degreeDiff = r.Degree - rLast.Degree;
|
||||
var scale = this.field.multiply(r.getCoefficient(r.Degree), dltInverse);
|
||||
q = q.addOrSubtract(this.field.buildMonomial(degreeDiff, scale));
|
||||
r = r.addOrSubtract(rLast.multiplyByMonomial(degreeDiff, scale));
|
||||
//r.EXE();
|
||||
}
|
||||
|
||||
s = q.multiply1(sLast).addOrSubtract(sLastLast);
|
||||
t = q.multiply1(tLast).addOrSubtract(tLastLast);
|
||||
}
|
||||
|
||||
var sigmaTildeAtZero = t.getCoefficient(0);
|
||||
if (sigmaTildeAtZero == 0)
|
||||
{
|
||||
throw "ReedSolomonException sigmaTilde(0) was zero";
|
||||
}
|
||||
|
||||
var inverse = this.field.inverse(sigmaTildeAtZero);
|
||||
var sigma = t.multiply2(inverse);
|
||||
var omega = r.multiply2(inverse);
|
||||
return new Array(sigma, omega);
|
||||
}
|
||||
this.findErrorLocations=function( errorLocator)
|
||||
{
|
||||
// This is a direct application of Chien's search
|
||||
var numErrors = errorLocator.Degree;
|
||||
if (numErrors == 1)
|
||||
{
|
||||
// shortcut
|
||||
return new Array(errorLocator.getCoefficient(1));
|
||||
}
|
||||
var result = new Array(numErrors);
|
||||
var e = 0;
|
||||
for (var i = 1; i < 256 && e < numErrors; i++)
|
||||
{
|
||||
if (errorLocator.evaluateAt(i) == 0)
|
||||
{
|
||||
result[e] = this.field.inverse(i);
|
||||
e++;
|
||||
}
|
||||
}
|
||||
if (e != numErrors)
|
||||
{
|
||||
throw "Error locator degree does not match number of roots";
|
||||
}
|
||||
return result;
|
||||
}
|
||||
this.findErrorMagnitudes=function( errorEvaluator, errorLocations, dataMatrix)
|
||||
{
|
||||
// This is directly applying Forney's Formula
|
||||
var s = errorLocations.length;
|
||||
var result = new Array(s);
|
||||
for (var i = 0; i < s; i++)
|
||||
{
|
||||
var xiInverse = this.field.inverse(errorLocations[i]);
|
||||
var denominator = 1;
|
||||
for (var j = 0; j < s; j++)
|
||||
{
|
||||
if (i != j)
|
||||
{
|
||||
denominator = this.field.multiply(denominator, GF256.addOrSubtract(1, this.field.multiply(errorLocations[j], xiInverse)));
|
||||
}
|
||||
}
|
||||
result[i] = this.field.multiply(errorEvaluator.evaluateAt(xiInverse), this.field.inverse(denominator));
|
||||
// Thanks to sanfordsquires for this fix:
|
||||
if (dataMatrix)
|
||||
{
|
||||
result[i] = this.field.multiply(result[i], xiInverse);
|
||||
}
|
||||
}
|
||||
return result;
|
||||
}
|
||||
}
|
||||
@ -1,149 +0,0 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>QRCODE</title>
|
||||
|
||||
<style type="text/css">
|
||||
</style>
|
||||
|
||||
|
||||
<script type="text/javascript" src="grid.js"></script>
|
||||
<script type="text/javascript" src="version.js"></script>
|
||||
<script type="text/javascript" src="detector.js"></script>
|
||||
<script type="text/javascript" src="formatinf.js"></script>
|
||||
<script type="text/javascript" src="errorlevel.js"></script>
|
||||
<script type="text/javascript" src="bitmat.js"></script>
|
||||
<script type="text/javascript" src="datablock.js"></script>
|
||||
<script type="text/javascript" src="bmparser.js"></script>
|
||||
<script type="text/javascript" src="datamask.js"></script>
|
||||
<script type="text/javascript" src="rsdecoder.js"></script>
|
||||
<script type="text/javascript" src="gf256poly.js"></script>
|
||||
<script type="text/javascript" src="gf256.js"></script>
|
||||
<script type="text/javascript" src="decoder.js"></script>
|
||||
<script type="text/javascript" src="qrcode.js"></script>
|
||||
<script type="text/javascript" src="findpat.js"></script>
|
||||
<script type="text/javascript" src="alignpat.js"></script>
|
||||
<script type="text/javascript" src="databr.js"></script>
|
||||
|
||||
<script type="text/javascript">
|
||||
var gCtx = null;
|
||||
var gCanvas = null;
|
||||
|
||||
var imageData = null;
|
||||
var ii=0;
|
||||
var jj=0;
|
||||
var c=0;
|
||||
|
||||
|
||||
function dragenter(e) {
|
||||
e.stopPropagation();
|
||||
e.preventDefault();
|
||||
}
|
||||
|
||||
function dragover(e) {
|
||||
e.stopPropagation();
|
||||
e.preventDefault();
|
||||
}
|
||||
function drop(e) {
|
||||
e.stopPropagation();
|
||||
e.preventDefault();
|
||||
|
||||
var dt = e.dataTransfer;
|
||||
var files = dt.files;
|
||||
|
||||
handleFiles(files);
|
||||
}
|
||||
|
||||
function handleFiles(f)
|
||||
{
|
||||
var o=[];
|
||||
for(var i =0;i<f.length;i++)
|
||||
{
|
||||
var reader = new FileReader();
|
||||
|
||||
reader.onload = (function(theFile) {
|
||||
return function(e) {
|
||||
qrcode.decode(e.target.result);
|
||||
};
|
||||
})(f[i]);
|
||||
|
||||
// Read in the image file as a data URL.
|
||||
reader.readAsDataURL(f[i]); }
|
||||
}
|
||||
|
||||
function read(a)
|
||||
{
|
||||
alert(a);
|
||||
}
|
||||
|
||||
function load()
|
||||
{
|
||||
initCanvas(640,480);
|
||||
qrcode.callback = read;
|
||||
qrcode.decode("meqrthumb.png");
|
||||
}
|
||||
|
||||
function initCanvas(ww,hh)
|
||||
{
|
||||
gCanvas = document.getElementById("qr-canvas");
|
||||
gCanvas.addEventListener("dragenter", dragenter, false);
|
||||
gCanvas.addEventListener("dragover", dragover, false);
|
||||
gCanvas.addEventListener("drop", drop, false);
|
||||
var w = ww;
|
||||
var h = hh;
|
||||
gCanvas.style.width = w + "px";
|
||||
gCanvas.style.height = h + "px";
|
||||
gCanvas.width = w;
|
||||
gCanvas.height = h;
|
||||
gCtx = gCanvas.getContext("2d");
|
||||
gCtx.clearRect(0, 0, w, h);
|
||||
imageData = gCtx.getImageData( 0,0,320,240);
|
||||
}
|
||||
|
||||
function passLine(stringPixels) {
|
||||
//a = (intVal >> 24) & 0xff;
|
||||
|
||||
var coll = stringPixels.split("-");
|
||||
|
||||
for(var i=0;i<320;i++) {
|
||||
var intVal = parseInt(coll[i]);
|
||||
r = (intVal >> 16) & 0xff;
|
||||
g = (intVal >> 8) & 0xff;
|
||||
b = (intVal ) & 0xff;
|
||||
imageData.data[c+0]=r;
|
||||
imageData.data[c+1]=g;
|
||||
imageData.data[c+2]=b;
|
||||
imageData.data[c+3]=255;
|
||||
c+=4;
|
||||
}
|
||||
|
||||
if(c>=320*240*4) {
|
||||
c=0;
|
||||
gCtx.putImageData(imageData, 0,0);
|
||||
}
|
||||
}
|
||||
|
||||
function captureToCanvas() {
|
||||
flash = document.getElementById("embedflash");
|
||||
flash.ccCapture();
|
||||
qrcode.decode();
|
||||
}
|
||||
</script>
|
||||
|
||||
</head>
|
||||
|
||||
<body onload="load()">
|
||||
<div class="container">
|
||||
|
||||
<object id="iembedflash" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="320" height="240">
|
||||
<param name="movie" value="camcanvas.swf" />
|
||||
<param name="quality" value="high" />
|
||||
<param name="allowScriptAccess" value="always" />
|
||||
<embed allowScriptAccess="always" id="embedflash" src="camcanvas.swf" quality="high" width="320" height="240" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" mayscript="true" />
|
||||
</object>
|
||||
|
||||
</div>
|
||||
<button onclick="captureToCanvas()">Capture</button><br>
|
||||
<canvas id="qr-canvas" width="640" height="480"></canvas>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@ -1,261 +0,0 @@
|
||||
/*
|
||||
Ported to JavaScript by Lazar Laszlo 2011
|
||||
|
||||
lazarsoft@gmail.com, www.lazarsoft.info
|
||||
|
||||
*/
|
||||
|
||||
/*
|
||||
*
|
||||
* Copyright 2007 ZXing authors
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
|
||||
|
||||
function ECB(count, dataCodewords)
|
||||
{
|
||||
this.count = count;
|
||||
this.dataCodewords = dataCodewords;
|
||||
|
||||
this.__defineGetter__("Count", function()
|
||||
{
|
||||
return this.count;
|
||||
});
|
||||
this.__defineGetter__("DataCodewords", function()
|
||||
{
|
||||
return this.dataCodewords;
|
||||
});
|
||||
}
|
||||
|
||||
function ECBlocks( ecCodewordsPerBlock, ecBlocks1, ecBlocks2)
|
||||
{
|
||||
this.ecCodewordsPerBlock = ecCodewordsPerBlock;
|
||||
if(ecBlocks2)
|
||||
this.ecBlocks = new Array(ecBlocks1, ecBlocks2);
|
||||
else
|
||||
this.ecBlocks = new Array(ecBlocks1);
|
||||
|
||||
this.__defineGetter__("ECCodewordsPerBlock", function()
|
||||
{
|
||||
return this.ecCodewordsPerBlock;
|
||||
});
|
||||
|
||||
this.__defineGetter__("TotalECCodewords", function()
|
||||
{
|
||||
return this.ecCodewordsPerBlock * this.NumBlocks;
|
||||
});
|
||||
|
||||
this.__defineGetter__("NumBlocks", function()
|
||||
{
|
||||
var total = 0;
|
||||
for (var i = 0; i < this.ecBlocks.length; i++)
|
||||
{
|
||||
total += this.ecBlocks[i].length;
|
||||
}
|
||||
return total;
|
||||
});
|
||||
|
||||
this.getECBlocks=function()
|
||||
{
|
||||
return this.ecBlocks;
|
||||
}
|
||||
}
|
||||
|
||||
function Version( versionNumber, alignmentPatternCenters, ecBlocks1, ecBlocks2, ecBlocks3, ecBlocks4)
|
||||
{
|
||||
this.versionNumber = versionNumber;
|
||||
this.alignmentPatternCenters = alignmentPatternCenters;
|
||||
this.ecBlocks = new Array(ecBlocks1, ecBlocks2, ecBlocks3, ecBlocks4);
|
||||
|
||||
var total = 0;
|
||||
var ecCodewords = ecBlocks1.ECCodewordsPerBlock;
|
||||
var ecbArray = ecBlocks1.getECBlocks();
|
||||
for (var i = 0; i < ecbArray.length; i++)
|
||||
{
|
||||
var ecBlock = ecbArray[i];
|
||||
total += ecBlock.Count * (ecBlock.DataCodewords + ecCodewords);
|
||||
}
|
||||
this.totalCodewords = total;
|
||||
|
||||
this.__defineGetter__("VersionNumber", function()
|
||||
{
|
||||
return this.versionNumber;
|
||||
});
|
||||
|
||||
this.__defineGetter__("AlignmentPatternCenters", function()
|
||||
{
|
||||
return this.alignmentPatternCenters;
|
||||
});
|
||||
this.__defineGetter__("TotalCodewords", function()
|
||||
{
|
||||
return this.totalCodewords;
|
||||
});
|
||||
this.__defineGetter__("DimensionForVersion", function()
|
||||
{
|
||||
return 17 + 4 * this.versionNumber;
|
||||
});
|
||||
|
||||
this.buildFunctionPattern=function()
|
||||
{
|
||||
var dimension = this.DimensionForVersion;
|
||||
var bitMatrix = new BitMatrix(dimension);
|
||||
|
||||
// Top left finder pattern + separator + format
|
||||
bitMatrix.setRegion(0, 0, 9, 9);
|
||||
// Top right finder pattern + separator + format
|
||||
bitMatrix.setRegion(dimension - 8, 0, 8, 9);
|
||||
// Bottom left finder pattern + separator + format
|
||||
bitMatrix.setRegion(0, dimension - 8, 9, 8);
|
||||
|
||||
// Alignment patterns
|
||||
var max = this.alignmentPatternCenters.length;
|
||||
for (var x = 0; x < max; x++)
|
||||
{
|
||||
var i = this.alignmentPatternCenters[x] - 2;
|
||||
for (var y = 0; y < max; y++)
|
||||
{
|
||||
if ((x == 0 && (y == 0 || y == max - 1)) || (x == max - 1 && y == 0))
|
||||
{
|
||||
// No alignment patterns near the three finder paterns
|
||||
continue;
|
||||
}
|
||||
bitMatrix.setRegion(this.alignmentPatternCenters[y] - 2, i, 5, 5);
|
||||
}
|
||||
}
|
||||
|
||||
// Vertical timing pattern
|
||||
bitMatrix.setRegion(6, 9, 1, dimension - 17);
|
||||
// Horizontal timing pattern
|
||||
bitMatrix.setRegion(9, 6, dimension - 17, 1);
|
||||
|
||||
if (this.versionNumber > 6)
|
||||
{
|
||||
// Version info, top right
|
||||
bitMatrix.setRegion(dimension - 11, 0, 3, 6);
|
||||
// Version info, bottom left
|
||||
bitMatrix.setRegion(0, dimension - 11, 6, 3);
|
||||
}
|
||||
|
||||
return bitMatrix;
|
||||
}
|
||||
this.getECBlocksForLevel=function( ecLevel)
|
||||
{
|
||||
return this.ecBlocks[ecLevel.ordinal()];
|
||||
}
|
||||
}
|
||||
|
||||
Version.VERSION_DECODE_INFO = new Array(0x07C94, 0x085BC, 0x09A99, 0x0A4D3, 0x0BBF6, 0x0C762, 0x0D847, 0x0E60D, 0x0F928, 0x10B78, 0x1145D, 0x12A17, 0x13532, 0x149A6, 0x15683, 0x168C9, 0x177EC, 0x18EC4, 0x191E1, 0x1AFAB, 0x1B08E, 0x1CC1A, 0x1D33F, 0x1ED75, 0x1F250, 0x209D5, 0x216F0, 0x228BA, 0x2379F, 0x24B0B, 0x2542E, 0x26A64, 0x27541, 0x28C69);
|
||||
|
||||
Version.VERSIONS = buildVersions();
|
||||
|
||||
Version.getVersionForNumber=function( versionNumber)
|
||||
{
|
||||
if (versionNumber < 1 || versionNumber > 40)
|
||||
{
|
||||
throw "ArgumentException";
|
||||
}
|
||||
return Version.VERSIONS[versionNumber - 1];
|
||||
}
|
||||
|
||||
Version.getProvisionalVersionForDimension=function(dimension)
|
||||
{
|
||||
if (dimension % 4 != 1)
|
||||
{
|
||||
throw "Error getProvisionalVersionForDimension";
|
||||
}
|
||||
try
|
||||
{
|
||||
return Version.getVersionForNumber((dimension - 17) >> 2);
|
||||
}
|
||||
catch ( iae)
|
||||
{
|
||||
throw "Error getVersionForNumber";
|
||||
}
|
||||
}
|
||||
|
||||
Version.decodeVersionInformation=function( versionBits)
|
||||
{
|
||||
var bestDifference = 0xffffffff;
|
||||
var bestVersion = 0;
|
||||
for (var i = 0; i < Version.VERSION_DECODE_INFO.length; i++)
|
||||
{
|
||||
var targetVersion = Version.VERSION_DECODE_INFO[i];
|
||||
// Do the version info bits match exactly? done.
|
||||
if (targetVersion == versionBits)
|
||||
{
|
||||
return this.getVersionForNumber(i + 7);
|
||||
}
|
||||
// Otherwise see if this is the closest to a real version info bit string
|
||||
// we have seen so far
|
||||
var bitsDifference = FormatInformation.numBitsDiffering(versionBits, targetVersion);
|
||||
if (bitsDifference < bestDifference)
|
||||
{
|
||||
bestVersion = i + 7;
|
||||
bestDifference = bitsDifference;
|
||||
}
|
||||
}
|
||||
// We can tolerate up to 3 bits of error since no two version info codewords will
|
||||
// differ in less than 4 bits.
|
||||
if (bestDifference <= 3)
|
||||
{
|
||||
return this.getVersionForNumber(bestVersion);
|
||||
}
|
||||
// If we didn't find a close enough match, fail
|
||||
return null;
|
||||
}
|
||||
|
||||
function buildVersions()
|
||||
{
|
||||
return new Array(new Version(1, new Array(), new ECBlocks(7, new ECB(1, 19)), new ECBlocks(10, new ECB(1, 16)), new ECBlocks(13, new ECB(1, 13)), new ECBlocks(17, new ECB(1, 9))),
|
||||
new Version(2, new Array(6, 18), new ECBlocks(10, new ECB(1, 34)), new ECBlocks(16, new ECB(1, 28)), new ECBlocks(22, new ECB(1, 22)), new ECBlocks(28, new ECB(1, 16))),
|
||||
new Version(3, new Array(6, 22), new ECBlocks(15, new ECB(1, 55)), new ECBlocks(26, new ECB(1, 44)), new ECBlocks(18, new ECB(2, 17)), new ECBlocks(22, new ECB(2, 13))),
|
||||
new Version(4, new Array(6, 26), new ECBlocks(20, new ECB(1, 80)), new ECBlocks(18, new ECB(2, 32)), new ECBlocks(26, new ECB(2, 24)), new ECBlocks(16, new ECB(4, 9))),
|
||||
new Version(5, new Array(6, 30), new ECBlocks(26, new ECB(1, 108)), new ECBlocks(24, new ECB(2, 43)), new ECBlocks(18, new ECB(2, 15), new ECB(2, 16)), new ECBlocks(22, new ECB(2, 11), new ECB(2, 12))),
|
||||
new Version(6, new Array(6, 34), new ECBlocks(18, new ECB(2, 68)), new ECBlocks(16, new ECB(4, 27)), new ECBlocks(24, new ECB(4, 19)), new ECBlocks(28, new ECB(4, 15))),
|
||||
new Version(7, new Array(6, 22, 38), new ECBlocks(20, new ECB(2, 78)), new ECBlocks(18, new ECB(4, 31)), new ECBlocks(18, new ECB(2, 14), new ECB(4, 15)), new ECBlocks(26, new ECB(4, 13), new ECB(1, 14))),
|
||||
new Version(8, new Array(6, 24, 42), new ECBlocks(24, new ECB(2, 97)), new ECBlocks(22, new ECB(2, 38), new ECB(2, 39)), new ECBlocks(22, new ECB(4, 18), new ECB(2, 19)), new ECBlocks(26, new ECB(4, 14), new ECB(2, 15))),
|
||||
new Version(9, new Array(6, 26, 46), new ECBlocks(30, new ECB(2, 116)), new ECBlocks(22, new ECB(3, 36), new ECB(2, 37)), new ECBlocks(20, new ECB(4, 16), new ECB(4, 17)), new ECBlocks(24, new ECB(4, 12), new ECB(4, 13))),
|
||||
new Version(10, new Array(6, 28, 50), new ECBlocks(18, new ECB(2, 68), new ECB(2, 69)), new ECBlocks(26, new ECB(4, 43), new ECB(1, 44)), new ECBlocks(24, new ECB(6, 19), new ECB(2, 20)), new ECBlocks(28, new ECB(6, 15), new ECB(2, 16))),
|
||||
new Version(11, new Array(6, 30, 54), new ECBlocks(20, new ECB(4, 81)), new ECBlocks(30, new ECB(1, 50), new ECB(4, 51)), new ECBlocks(28, new ECB(4, 22), new ECB(4, 23)), new ECBlocks(24, new ECB(3, 12), new ECB(8, 13))),
|
||||
new Version(12, new Array(6, 32, 58), new ECBlocks(24, new ECB(2, 92), new ECB(2, 93)), new ECBlocks(22, new ECB(6, 36), new ECB(2, 37)), new ECBlocks(26, new ECB(4, 20), new ECB(6, 21)), new ECBlocks(28, new ECB(7, 14), new ECB(4, 15))),
|
||||
new Version(13, new Array(6, 34, 62), new ECBlocks(26, new ECB(4, 107)), new ECBlocks(22, new ECB(8, 37), new ECB(1, 38)), new ECBlocks(24, new ECB(8, 20), new ECB(4, 21)), new ECBlocks(22, new ECB(12, 11), new ECB(4, 12))),
|
||||
new Version(14, new Array(6, 26, 46, 66), new ECBlocks(30, new ECB(3, 115), new ECB(1, 116)), new ECBlocks(24, new ECB(4, 40), new ECB(5, 41)), new ECBlocks(20, new ECB(11, 16), new ECB(5, 17)), new ECBlocks(24, new ECB(11, 12), new ECB(5, 13))),
|
||||
new Version(15, new Array(6, 26, 48, 70), new ECBlocks(22, new ECB(5, 87), new ECB(1, 88)), new ECBlocks(24, new ECB(5, 41), new ECB(5, 42)), new ECBlocks(30, new ECB(5, 24), new ECB(7, 25)), new ECBlocks(24, new ECB(11, 12), new ECB(7, 13))),
|
||||
new Version(16, new Array(6, 26, 50, 74), new ECBlocks(24, new ECB(5, 98), new ECB(1, 99)), new ECBlocks(28, new ECB(7, 45), new ECB(3, 46)), new ECBlocks(24, new ECB(15, 19), new ECB(2, 20)), new ECBlocks(30, new ECB(3, 15), new ECB(13, 16))),
|
||||
new Version(17, new Array(6, 30, 54, 78), new ECBlocks(28, new ECB(1, 107), new ECB(5, 108)), new ECBlocks(28, new ECB(10, 46), new ECB(1, 47)), new ECBlocks(28, new ECB(1, 22), new ECB(15, 23)), new ECBlocks(28, new ECB(2, 14), new ECB(17, 15))),
|
||||
new Version(18, new Array(6, 30, 56, 82), new ECBlocks(30, new ECB(5, 120), new ECB(1, 121)), new ECBlocks(26, new ECB(9, 43), new ECB(4, 44)), new ECBlocks(28, new ECB(17, 22), new ECB(1, 23)), new ECBlocks(28, new ECB(2, 14), new ECB(19, 15))),
|
||||
new Version(19, new Array(6, 30, 58, 86), new ECBlocks(28, new ECB(3, 113), new ECB(4, 114)), new ECBlocks(26, new ECB(3, 44), new ECB(11, 45)), new ECBlocks(26, new ECB(17, 21), new ECB(4, 22)), new ECBlocks(26, new ECB(9, 13), new ECB(16, 14))),
|
||||
new Version(20, new Array(6, 34, 62, 90), new ECBlocks(28, new ECB(3, 107), new ECB(5, 108)), new ECBlocks(26, new ECB(3, 41), new ECB(13, 42)), new ECBlocks(30, new ECB(15, 24), new ECB(5, 25)), new ECBlocks(28, new ECB(15, 15), new ECB(10, 16))),
|
||||
new Version(21, new Array(6, 28, 50, 72, 94), new ECBlocks(28, new ECB(4, 116), new ECB(4, 117)), new ECBlocks(26, new ECB(17, 42)), new ECBlocks(28, new ECB(17, 22), new ECB(6, 23)), new ECBlocks(30, new ECB(19, 16), new ECB(6, 17))),
|
||||
new Version(22, new Array(6, 26, 50, 74, 98), new ECBlocks(28, new ECB(2, 111), new ECB(7, 112)), new ECBlocks(28, new ECB(17, 46)), new ECBlocks(30, new ECB(7, 24), new ECB(16, 25)), new ECBlocks(24, new ECB(34, 13))),
|
||||
new Version(23, new Array(6, 30, 54, 74, 102), new ECBlocks(30, new ECB(4, 121), new ECB(5, 122)), new ECBlocks(28, new ECB(4, 47), new ECB(14, 48)), new ECBlocks(30, new ECB(11, 24), new ECB(14, 25)), new ECBlocks(30, new ECB(16, 15), new ECB(14, 16))),
|
||||
new Version(24, new Array(6, 28, 54, 80, 106), new ECBlocks(30, new ECB(6, 117), new ECB(4, 118)), new ECBlocks(28, new ECB(6, 45), new ECB(14, 46)), new ECBlocks(30, new ECB(11, 24), new ECB(16, 25)), new ECBlocks(30, new ECB(30, 16), new ECB(2, 17))),
|
||||
new Version(25, new Array(6, 32, 58, 84, 110), new ECBlocks(26, new ECB(8, 106), new ECB(4, 107)), new ECBlocks(28, new ECB(8, 47), new ECB(13, 48)), new ECBlocks(30, new ECB(7, 24), new ECB(22, 25)), new ECBlocks(30, new ECB(22, 15), new ECB(13, 16))),
|
||||
new Version(26, new Array(6, 30, 58, 86, 114), new ECBlocks(28, new ECB(10, 114), new ECB(2, 115)), new ECBlocks(28, new ECB(19, 46), new ECB(4, 47)), new ECBlocks(28, new ECB(28, 22), new ECB(6, 23)), new ECBlocks(30, new ECB(33, 16), new ECB(4, 17))),
|
||||
new Version(27, new Array(6, 34, 62, 90, 118), new ECBlocks(30, new ECB(8, 122), new ECB(4, 123)), new ECBlocks(28, new ECB(22, 45), new ECB(3, 46)), new ECBlocks(30, new ECB(8, 23), new ECB(26, 24)), new ECBlocks(30, new ECB(12, 15), new ECB(28, 16))),
|
||||
new Version(28, new Array(6, 26, 50, 74, 98, 122), new ECBlocks(30, new ECB(3, 117), new ECB(10, 118)), new ECBlocks(28, new ECB(3, 45), new ECB(23, 46)), new ECBlocks(30, new ECB(4, 24), new ECB(31, 25)), new ECBlocks(30, new ECB(11, 15), new ECB(31, 16))),
|
||||
new Version(29, new Array(6, 30, 54, 78, 102, 126), new ECBlocks(30, new ECB(7, 116), new ECB(7, 117)), new ECBlocks(28, new ECB(21, 45), new ECB(7, 46)), new ECBlocks(30, new ECB(1, 23), new ECB(37, 24)), new ECBlocks(30, new ECB(19, 15), new ECB(26, 16))),
|
||||
new Version(30, new Array(6, 26, 52, 78, 104, 130), new ECBlocks(30, new ECB(5, 115), new ECB(10, 116)), new ECBlocks(28, new ECB(19, 47), new ECB(10, 48)), new ECBlocks(30, new ECB(15, 24), new ECB(25, 25)), new ECBlocks(30, new ECB(23, 15), new ECB(25, 16))),
|
||||
new Version(31, new Array(6, 30, 56, 82, 108, 134), new ECBlocks(30, new ECB(13, 115), new ECB(3, 116)), new ECBlocks(28, new ECB(2, 46), new ECB(29, 47)), new ECBlocks(30, new ECB(42, 24), new ECB(1, 25)), new ECBlocks(30, new ECB(23, 15), new ECB(28, 16))),
|
||||
new Version(32, new Array(6, 34, 60, 86, 112, 138), new ECBlocks(30, new ECB(17, 115)), new ECBlocks(28, new ECB(10, 46), new ECB(23, 47)), new ECBlocks(30, new ECB(10, 24), new ECB(35, 25)), new ECBlocks(30, new ECB(19, 15), new ECB(35, 16))),
|
||||
new Version(33, new Array(6, 30, 58, 86, 114, 142), new ECBlocks(30, new ECB(17, 115), new ECB(1, 116)), new ECBlocks(28, new ECB(14, 46), new ECB(21, 47)), new ECBlocks(30, new ECB(29, 24), new ECB(19, 25)), new ECBlocks(30, new ECB(11, 15), new ECB(46, 16))),
|
||||
new Version(34, new Array(6, 34, 62, 90, 118, 146), new ECBlocks(30, new ECB(13, 115), new ECB(6, 116)), new ECBlocks(28, new ECB(14, 46), new ECB(23, 47)), new ECBlocks(30, new ECB(44, 24), new ECB(7, 25)), new ECBlocks(30, new ECB(59, 16), new ECB(1, 17))),
|
||||
new Version(35, new Array(6, 30, 54, 78, 102, 126, 150), new ECBlocks(30, new ECB(12, 121), new ECB(7, 122)), new ECBlocks(28, new ECB(12, 47), new ECB(26, 48)), new ECBlocks(30, new ECB(39, 24), new ECB(14, 25)),new ECBlocks(30, new ECB(22, 15), new ECB(41, 16))),
|
||||
new Version(36, new Array(6, 24, 50, 76, 102, 128, 154), new ECBlocks(30, new ECB(6, 121), new ECB(14, 122)), new ECBlocks(28, new ECB(6, 47), new ECB(34, 48)), new ECBlocks(30, new ECB(46, 24), new ECB(10, 25)), new ECBlocks(30, new ECB(2, 15), new ECB(64, 16))),
|
||||
new Version(37, new Array(6, 28, 54, 80, 106, 132, 158), new ECBlocks(30, new ECB(17, 122), new ECB(4, 123)), new ECBlocks(28, new ECB(29, 46), new ECB(14, 47)), new ECBlocks(30, new ECB(49, 24), new ECB(10, 25)), new ECBlocks(30, new ECB(24, 15), new ECB(46, 16))),
|
||||
new Version(38, new Array(6, 32, 58, 84, 110, 136, 162), new ECBlocks(30, new ECB(4, 122), new ECB(18, 123)), new ECBlocks(28, new ECB(13, 46), new ECB(32, 47)), new ECBlocks(30, new ECB(48, 24), new ECB(14, 25)), new ECBlocks(30, new ECB(42, 15), new ECB(32, 16))),
|
||||
new Version(39, new Array(6, 26, 54, 82, 110, 138, 166), new ECBlocks(30, new ECB(20, 117), new ECB(4, 118)), new ECBlocks(28, new ECB(40, 47), new ECB(7, 48)), new ECBlocks(30, new ECB(43, 24), new ECB(22, 25)), new ECBlocks(30, new ECB(10, 15), new ECB(67, 16))),
|
||||
new Version(40, new Array(6, 30, 58, 86, 114, 142, 170), new ECBlocks(30, new ECB(19, 118), new ECB(6, 119)), new ECBlocks(28, new ECB(18, 47), new ECB(31, 48)), new ECBlocks(30, new ECB(34, 24), new ECB(34, 25)), new ECBlocks(30, new ECB(20, 15), new ECB(61, 16))));
|
||||
}
|
||||
@ -1,24 +0,0 @@
|
||||
'use strict';
|
||||
|
||||
angular.module('insight.address').factory('Address',
|
||||
function($resource, Api) {
|
||||
return $resource(Api.apiPrefix + '/addr/:addrStr/?noTxList=1', {
|
||||
addrStr: '@addStr'
|
||||
}, {
|
||||
get: {
|
||||
method: 'GET',
|
||||
interceptor: {
|
||||
response: function (res) {
|
||||
return res.data;
|
||||
},
|
||||
responseError: function (res) {
|
||||
if (res.status === 404) {
|
||||
return res;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
@ -1,9 +0,0 @@
|
||||
'use strict';
|
||||
|
||||
angular.module('insight.api')
|
||||
.factory('Api',
|
||||
function() {
|
||||
return {
|
||||
apiPrefix: '/insight-api'
|
||||
}
|
||||
});
|
||||
@ -1,31 +0,0 @@
|
||||
'use strict';
|
||||
|
||||
angular.module('insight.blocks')
|
||||
.factory('Block',
|
||||
function($resource, Api) {
|
||||
return $resource(Api.apiPrefix + '/block/:blockHash', {
|
||||
blockHash: '@blockHash'
|
||||
}, {
|
||||
get: {
|
||||
method: 'GET',
|
||||
interceptor: {
|
||||
response: function (res) {
|
||||
return res.data;
|
||||
},
|
||||
responseError: function (res) {
|
||||
if (res.status === 404) {
|
||||
return res;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
})
|
||||
.factory('Blocks',
|
||||
function($resource, Api) {
|
||||
return $resource(Api.apiPrefix + '/blocks');
|
||||
})
|
||||
.factory('BlockByHeight',
|
||||
function($resource, Api) {
|
||||
return $resource(Api.apiPrefix + '/block-index/:blockHeight');
|
||||
});
|
||||
@ -1,6 +0,0 @@
|
||||
'use strict';
|
||||
|
||||
angular.module('insight.currency').factory('Currency',
|
||||
function($resource, Api) {
|
||||
return $resource(Api.apiPrefix + '/currency');
|
||||
});
|
||||
@ -1,12 +0,0 @@
|
||||
'use strict';
|
||||
|
||||
//Global service for global variables
|
||||
angular.module('insight.system')
|
||||
.factory('Global',[
|
||||
function() {
|
||||
}
|
||||
])
|
||||
.factory('Version',
|
||||
function($resource, Api) {
|
||||
return $resource(Api.apiPrefix + '/version');
|
||||
});
|
||||
@ -1,74 +0,0 @@
|
||||
'use strict';
|
||||
|
||||
var ScopedSocket = function(socket, $rootScope) {
|
||||
this.socket = socket;
|
||||
this.$rootScope = $rootScope;
|
||||
this.listeners = [];
|
||||
};
|
||||
|
||||
ScopedSocket.prototype.removeAllListeners = function(opts) {
|
||||
if (!opts) opts = {};
|
||||
for (var i = 0; i < this.listeners.length; i++) {
|
||||
var details = this.listeners[i];
|
||||
if (opts.skipConnect && details.event === 'connect') {
|
||||
continue;
|
||||
}
|
||||
this.socket.removeListener(details.event, details.fn);
|
||||
}
|
||||
this.listeners = [];
|
||||
};
|
||||
|
||||
ScopedSocket.prototype.on = function(event, callback) {
|
||||
var socket = this.socket;
|
||||
var $rootScope = this.$rootScope;
|
||||
|
||||
var wrapped_callback = function() {
|
||||
var args = arguments;
|
||||
$rootScope.$apply(function() {
|
||||
callback.apply(socket, args);
|
||||
});
|
||||
};
|
||||
socket.on(event, wrapped_callback);
|
||||
|
||||
this.listeners.push({
|
||||
event: event,
|
||||
fn: wrapped_callback
|
||||
});
|
||||
};
|
||||
|
||||
ScopedSocket.prototype.emit = function(event, data, callback) {
|
||||
var socket = this.socket;
|
||||
var $rootScope = this.$rootScope;
|
||||
var args = Array.prototype.slice.call(arguments);
|
||||
|
||||
args.push(function() {
|
||||
var args = arguments;
|
||||
$rootScope.$apply(function() {
|
||||
if (callback) {
|
||||
callback.apply(socket, args);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
socket.emit.apply(socket, args);
|
||||
};
|
||||
|
||||
angular.module('insight.socket').factory('getSocket',
|
||||
function($rootScope) {
|
||||
var socket = io.connect(null, {
|
||||
'reconnect': true,
|
||||
'reconnection delay': 500,
|
||||
});
|
||||
return function(scope) {
|
||||
var scopedSocket = new ScopedSocket(socket, $rootScope);
|
||||
scope.$on('$destroy', function() {
|
||||
scopedSocket.removeAllListeners();
|
||||
});
|
||||
socket.on('connect', function() {
|
||||
scopedSocket.removeAllListeners({
|
||||
skipConnect: true
|
||||
});
|
||||
});
|
||||
return scopedSocket;
|
||||
};
|
||||
});
|
||||
@ -1,17 +0,0 @@
|
||||
'use strict';
|
||||
|
||||
angular.module('insight.status')
|
||||
.factory('Status',
|
||||
function($resource, Api) {
|
||||
return $resource(Api.apiPrefix + '/status', {
|
||||
q: '@q'
|
||||
});
|
||||
})
|
||||
.factory('Sync',
|
||||
function($resource, Api) {
|
||||
return $resource(Api.apiPrefix + '/sync');
|
||||
})
|
||||
.factory('PeerSync',
|
||||
function($resource, Api) {
|
||||
return $resource(Api.apiPrefix + '/peer');
|
||||
});
|
||||
@ -1,39 +0,0 @@
|
||||
'use strict';
|
||||
|
||||
angular.module('insight.transactions')
|
||||
.factory('Transaction',
|
||||
function($resource, Api) {
|
||||
return $resource(Api.apiPrefix + '/tx/:txId', {
|
||||
txId: '@txId'
|
||||
}, {
|
||||
get: {
|
||||
method: 'GET',
|
||||
interceptor: {
|
||||
response: function (res) {
|
||||
return res.data;
|
||||
},
|
||||
responseError: function (res) {
|
||||
if (res.status === 404) {
|
||||
return res;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
})
|
||||
.factory('TransactionsByBlock',
|
||||
function($resource, Api) {
|
||||
return $resource(Api.apiPrefix + '/txs', {
|
||||
block: '@block'
|
||||
});
|
||||
})
|
||||
.factory('TransactionsByAddress',
|
||||
function($resource, Api) {
|
||||
return $resource(Api.apiPrefix + '/txs', {
|
||||
address: '@address'
|
||||
});
|
||||
})
|
||||
.factory('Transactions',
|
||||
function($resource, Api) {
|
||||
return $resource(Api.apiPrefix + '/txs');
|
||||
});
|
||||
@ -1,9 +0,0 @@
|
||||
'use strict';
|
||||
|
||||
angular.module('insight.api')
|
||||
.factory('Api',
|
||||
function() {
|
||||
return {
|
||||
apiPrefix: '/INSIGHT_API_PREFIX'
|
||||
}
|
||||
});
|
||||
@ -1,6 +0,0 @@
|
||||
<div data-ng-include src="'views/includes/connection.html'"></div>
|
||||
<div class="jumbotron">
|
||||
<h1>Ooops!</h1>
|
||||
<h2 translate class="text-muted">404 Page not found :(</h2>
|
||||
<p><a translate href="/" class="pull-right">Go to home</a></p>
|
||||
</div>
|
||||
@ -1,80 +0,0 @@
|
||||
<div data-ng-include src="'views/includes/connection.html'"></div>
|
||||
<section data-ng-controller="AddressController" data-ng-init="findOne()">
|
||||
<div class="secondary_navbar hidden-xs hidden-sm" scroll data-ng-class="{'hidden': !secondaryNavbar}" data-ng-show="address.addrStr" data-ng-init="hideSNavbar=0">
|
||||
<div class="container" data-ng-if="!hideSNavbar">
|
||||
<div class="col-md-8 text-left">
|
||||
<h3 translate>Address</h3> {{address.addrStr}}
|
||||
<span class="btn-copy" clip-copy="address.addrStr"></span>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<span class="txvalues txvalues-primary"><strong translate>Final Balance</strong> {{$root.currency.getConvertion(address.balance) || address.balance + ' BTC' }}</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="hide_snavbar">
|
||||
<a href="#" data-ng-click="hideSNavbar=!hideSNavbar">
|
||||
<span data-ng-show="hideSNavbar"><span class="text-muted glyphicon glyphicon-chevron-down"></span></span>
|
||||
<span data-ng-show="!hideSNavbar"><span class="text-muted glyphicon glyphicon-chevron-up"></span></span>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
<h1><span translate>Address</span> <small data-ng-show="address.addrStr">{{$root.currency.getConvertion(address.balance) || address.balance + ' BTC'}}</small></h1>
|
||||
<div class="text-muted" data-ng-if="!address.addrStr">
|
||||
<span translate>Loading Address Information</span> <span class="loader-gif"></span>
|
||||
</div>
|
||||
<div data-ng-if="address.addrStr">
|
||||
<div class="well well-sm ellipsis">
|
||||
<strong translate>Address</strong>
|
||||
<span class="text-muted">{{address.addrStr}}</span>
|
||||
<span class="btn-copy" clip-copy="address.addrStr"></span>
|
||||
</div>
|
||||
<h2 translate>Summary <small>confirmed</small></h2>
|
||||
<div class="row" data-ng-hide="!address.addrStr">
|
||||
<div class="col-md-10">
|
||||
<table class="table">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><strong translate>Total Received</strong></td>
|
||||
<td class="ellipsis text-right">{{$root.currency.getConvertion(address.totalReceived) || address.totalReceived + ' BTC'}}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong translate>Total Sent</strong></td>
|
||||
<td class="ellipsis text-right">{{$root.currency.getConvertion(address.totalSent) || address.totalSent + ' BTC'}}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong translate>Final Balance</strong></td>
|
||||
<td class="ellipsis text-right">{{$root.currency.getConvertion(address.balance) || address.balance + ' BTC'}}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong translate>No. Transactions</strong></td>
|
||||
<td class="ellipsis text-right">{{address.txApperances}}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div class="col-md-2 text-center">
|
||||
<qrcode size="160" data="{{address.addrStr}}"></qrcode>
|
||||
</div>
|
||||
</div>
|
||||
<div data-ng-show="address.unconfirmedTxApperances">
|
||||
<h3 translate>Unconfirmed</h3>
|
||||
<table class="table">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="small" translate>Unconfirmed Txs Balance</td>
|
||||
<td class="address ellipsis text-right">{{$root.currency.getConvertion(address.unconfirmedBalance)}}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="small" translate>No. Transactions</td>
|
||||
<td class="address ellipsis text-right">{{address.unconfirmedTxApperances}}</td>
|
||||
</tr>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<div data-ng-if="address.addrStr" data-ng-controller="transactionsController" data-ng-init="load('address')">
|
||||
<h2 translate>Transactions</h2>
|
||||
<div data-ng-include src="'views/transaction/list.html'" when-scrolled="loadMore()"></div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
@ -1,128 +0,0 @@
|
||||
<div data-ng-include src="'views/includes/connection.html'"></div>
|
||||
<section data-ng-controller="BlocksController" data-ng-init="findOne()">
|
||||
<div class="secondary_navbar hidden-xs hidden-sm" scroll data-ng-class="{'hidden': !secondaryNavbar}" data-ng-show="block.hash" data-ng-init="hideSNavbar=0">
|
||||
<div class="container" data-ng-if="!hideSNavbar">
|
||||
<div class="row">
|
||||
<div class="col-md-1">
|
||||
<a href="block/{{block.previousblockhash}}"><span class="lead glyphicon glyphicon-chevron-left"></span></a>
|
||||
</div>
|
||||
<div class="col-md-10">
|
||||
<div class="row">
|
||||
<div class="col-md-5">
|
||||
<h3 class="text-left"><span translate>Block</span> #{{block.height}}</h3>
|
||||
</div>
|
||||
<p class="col-md-6 ellipsis text-left">
|
||||
<strong>Hash</strong> {{block.hash}}
|
||||
</p>
|
||||
<div class="col-md-1 text-left">
|
||||
<span class="btn-copy" clip-copy="block.hash"></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-1">
|
||||
<a data-ng-show="block.nextblockhash" href="block/{{block.nextblockhash}}"><span class="lead glyphicon glyphicon-chevron-right"></span></a>
|
||||
</div>
|
||||
</div>
|
||||
</div> <!-- END OF CONTAINER -->
|
||||
<div class="hide_snavbar">
|
||||
<a href="#" data-ng-click="hideSNavbar=!hideSNavbar">
|
||||
<span data-ng-show="hideSNavbar"><span class="text-muted glyphicon glyphicon-chevron-down"></span></span>
|
||||
<span data-ng-show="!hideSNavbar"><span class="text-muted glyphicon glyphicon-chevron-up"></span></span>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
<h1>Block #{{block.height}}</h1>
|
||||
<div class="text-muted" data-ng-if="!block.hash">
|
||||
<span translate>Loading Block Information</span> <span class="loader-gif"></span>
|
||||
</div>
|
||||
<div data-ng-if="block.hash">
|
||||
<div class="well well-sm ellipsis">
|
||||
<strong>BlockHash</strong>
|
||||
<span class="txid text-muted">{{block.hash}}</span>
|
||||
<span class="btn-copy" clip-copy="block.hash"></span>
|
||||
</div>
|
||||
<h2 translate>Summary</h2>
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<table class="table" style="table-layout: fixed">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><strong translate>Number Of Transactions</strong></td>
|
||||
<td class="text-right text-muted">{{block.tx.length}}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong translate>Height</strong></td>
|
||||
<td class="text-right text-muted">{{block.height}}
|
||||
<span data-ng-show="block.isMainChain" class="text-success">(Mainchain)</span>
|
||||
<span data-ng-show="!block.isMainChain" class="text-danger"> <span class="glyphicon glyphicon-warning-sign"></span> (Orphaned)</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong translate>Block Reward</strong></td>
|
||||
<td class="text-right text-muted">{{$root.currency.getConvertion(block.reward) || block.reward + ' BTC'}}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong translate>Timestamp</strong></td>
|
||||
<td class="text-right text-muted">{{block.time * 1000 | date:'medium'}}</td>
|
||||
</tr>
|
||||
<tr data-ng-show="block.poolInfo">
|
||||
<td><strong translate>Mined by</strong></td>
|
||||
<td class="text-right text-muted">
|
||||
<a href="{{block.poolInfo.url}}" target="_blank" title="{{block.poolInfo.poolName}}">{{block.poolInfo.poolName}}</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>Merkle Root</strong></td>
|
||||
<td class="text-right text-muted">
|
||||
<div class="ellipsis">
|
||||
<span class="btn-copy" clip-copy="block.merkleroot"></span>
|
||||
<span>{{block.merkleroot}}</span>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr data-ng-show="block.previousblockhash">
|
||||
<td><strong translate>Previous Block</strong></td>
|
||||
<td class="text-right"><a href="block/{{block.previousblockhash}}">{{block.height-1}}</a></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<table class="table">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td> <strong translate>Difficulty</strong></td>
|
||||
<td class="text-right text-muted">{{block.difficulty}}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td> <strong>Bits</strong></td>
|
||||
<td class="text-right text-muted">{{block.bits}}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td> <strong translate>Size (bytes)</strong></td>
|
||||
<td class="text-right text-muted">{{block.size}}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td> <strong translate>Version</strong></td>
|
||||
<td class="text-right text-muted">{{block.version}}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td> <strong>Nonce</strong></td>
|
||||
<td class="text-right text-muted">{{block.nonce}}</td>
|
||||
</tr>
|
||||
<tr data-ng-show="block.nextblockhash">
|
||||
<td><strong translate>Next Block</strong></td>
|
||||
<td class="text-right"><a href="block/{{block.nextblockhash}}">{{block.height+1}}</a></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div data-ng-if="block.hash" data-ng-controller="transactionsController" data-ng-init="load('block')">
|
||||
<h3 translate>Transactions</h3>
|
||||
<div data-ng-include src="'views/transaction/list.html'" when-scrolled="loadMore()"></div>
|
||||
</div>
|
||||
|
||||
</section>
|
||||
|
||||
@ -1,69 +0,0 @@
|
||||
<div data-ng-include src="'views/includes/connection.html'"></div>
|
||||
<section data-ng-controller="BlocksController" data-ng-init="list()">
|
||||
<div class="row">
|
||||
<div class="col-xs-12 col-gray col-gray-fixed">
|
||||
<div class="block-id">
|
||||
<div class="icon-block text-center">
|
||||
<span class="glyphicon glyphicon-list"></span>
|
||||
<h3><span translate>Blocks</span> <br>
|
||||
<span translate>mined on:</span></h3>
|
||||
</div>
|
||||
</div>
|
||||
<p class="lead text-center m20v">
|
||||
{{pagination.current}} UTC
|
||||
<a href="#" class="btn btn-primary btn-xs" datepicker-popup show-button-bar="false" data-ng-click="openCalendar($event)" data-ng-model="dt" is-open="opened" data-ng-required="true"><span class="glyphicon glyphicon-calendar"></span></a>
|
||||
</p>
|
||||
<div class="m20v text-center text-muted" data-ng-if="!pagination.current">
|
||||
<span translate>Loading Selected Date...</span>
|
||||
</div>
|
||||
<div data-ng-if="pagination.current">
|
||||
<p class="lead text-center m20v" data-ng-show="loading"> </p>
|
||||
<p class="text-center m20v" data-ng-show="pagination.isToday && !loading" translate>Today</p>
|
||||
<p class="text-center m20v" data-ng-show="!pagination.isToday && !loading">{{humanSince(pagination.currentTs)}}
|
||||
<p class="text-center m20v" data-ng-show="loading"> </p>
|
||||
<div class="m50v text-center">
|
||||
<a class="btn btn-primary" href="blocks-date/{{pagination.prev}}"><small>← {{pagination.prev}}</small></a>
|
||||
<a class="btn btn-primary" href="blocks-date/{{pagination.next}}" data-ng-show="!pagination.isToday"><small>{{pagination.next}} →</small></a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-xs-12 col-md-9 col-md-offset-3">
|
||||
<div class="page-header">
|
||||
<h1>
|
||||
<span translate>Blocks</span>
|
||||
<small><span translate>by date.</span> {{detail}} {{before}}</small>
|
||||
</h1>
|
||||
</div>
|
||||
<table class="table table-hover table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th translate>Height</th>
|
||||
<th translate>Timestamp</th>
|
||||
<th class="text-right" translate>Transactions</th>
|
||||
<th class="text-right hidden-xs" translate>Mined by</th>
|
||||
<th class="text-right" translate>Size</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr data-ng-show="loading">
|
||||
<td colspan="5"><span translate>Waiting for blocks...</span> <span class="loader-gif"></span></td>
|
||||
</tr>
|
||||
<tr class="fader" data-ng-repeat='b in blocks'>
|
||||
<td><a href="block/{{b.hash}}">{{b.height}}</a></td>
|
||||
<td>{{b.time * 1000 | date:'medium'}}</td>
|
||||
<td class="text-right">{{b.txlength}}</td>
|
||||
<td class="text-right hidden-xs"><a href="{{b.poolInfo.url}}" title="{{b.poolInfo.poolName}}" target="_blank" data-ng-show="b.poolInfo">{{b.poolInfo.poolName}}</a></td>
|
||||
<td class="text-right">{{b.size}}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<div data-ng-if="pagination.more">
|
||||
<a class="btn btn-primary" href="blocks-date/{{pagination.current}}" data-ng-show="{{before}}">Lastest block from date</a>
|
||||
<a class="btn btn-primary" href="blocks-date/{{pagination.current}}/{{pagination.moreTs}}">Older blocks from this date</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<h2 class="text-center text-muted" data-ng-show="!blocks.length && !loading"
|
||||
translate>No blocks yet.</h2>
|
||||
</section>
|
||||
|
||||
@ -1,2 +0,0 @@
|
||||
{{'Blocks'|translate}}
|
||||
{{'Status'|translate}}
|
||||
@ -1,22 +0,0 @@
|
||||
<div class="connection-status container" data-ng-controller="ConnectionController">
|
||||
|
||||
<div class="alert alert-danger"
|
||||
data-ng-show="!serverOnline || !clienteOnline || !apiOnline"
|
||||
data-ng-init="getConnStatus()">
|
||||
|
||||
<strong translate>Error!</strong>
|
||||
|
||||
<p data-ng-show="!apiOnline" translate>
|
||||
Can't connect to bitcoind to get live updates from the p2p network. (Tried connecting to bitcoind at {{host}}:{{port}} and failed.)
|
||||
</p>
|
||||
|
||||
<p data-ng-show="!serverOnline" translate>
|
||||
Can't connect to insight server. Attempting to reconnect...
|
||||
</p>
|
||||
|
||||
<p data-ng-show="!clienteOnline" translate>
|
||||
Can't connect to internet. Please, check your connection.
|
||||
</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
@ -1,18 +0,0 @@
|
||||
<a class="dropdown-toggle" data-toggle="dropdown" href="#">
|
||||
{{currency.symbol}} <span class="caret"></span>
|
||||
</a>
|
||||
<ul class="dropdown-menu">
|
||||
<li>
|
||||
<a data-ng-click="setCurrency('USD')" data-ng-class="{active: currency.symbol == 'USD'}">USD</a>
|
||||
</li>
|
||||
<li>
|
||||
<a data-ng-click="setCurrency('BTC')" data-ng-class="{active: currency.symbol == 'BTC'}">BTC</a>
|
||||
</li>
|
||||
<li>
|
||||
<a data-ng-click="setCurrency('mBTC')" data-ng-class="{active: currency.symbol == 'mBTC'}">mBTC</a>
|
||||
</li>
|
||||
<li>
|
||||
<a data-ng-click="setCurrency('bits')" data-ng-class="{active: currency.symbol == 'bits'}">bits</a>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
@ -1,48 +0,0 @@
|
||||
<div class="container">
|
||||
<div data-ng-controller="HeaderController">
|
||||
<div class="navbar-header">
|
||||
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse" data-ng-click="$root.isCollapsed = !$root.isCollapsed">
|
||||
<span class="sr-only">Toggle navigation</span>
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
</button>
|
||||
<a class="insight navbar-brand" href=".">insight</a>
|
||||
</div>
|
||||
<div class="navbar-collapse collapse" collapse="$root.isCollapsed">
|
||||
<ul class="nav navbar-nav">
|
||||
<li data-ng-repeat="item in menu" ui-route="{{item.link}}" data-ng-class="{active: $uiRoute}">
|
||||
<a href="{{item.link}}">{{item.title|translate}}</a>
|
||||
</li>
|
||||
</ul>
|
||||
<span class="hidden-xs navbar-form navbar-left" data-ng-include src="'views/includes/search.html'"></span>
|
||||
<ul class="nav navbar-nav navbar-right">
|
||||
<li>
|
||||
<div class="status" data-ng-controller="StatusController">
|
||||
<div data-ng-init="getSync()" class="pull-left">
|
||||
<span class="t text-danger" data-ng-show="sync.error" tooltip="{{sync.error}}" tooltip-placement="bottom">
|
||||
<span class="glyphicon glyphicon-warning-sign"></span>
|
||||
ERROR
|
||||
</span>
|
||||
<span class="t" tooltip="{{sync.syncedBlocks}} / {{sync.blockChainHeight}} synced. {{sync.skippedBlocks || 0}} skipped" tooltip-placement="bottom" data-ng-show="sync.status==='syncing'">
|
||||
<span class="glyphicon glyphicon-refresh icon-rotate"></span>
|
||||
{{sync.syncPercentage}}%
|
||||
</span>
|
||||
<span class="glyphicon glyphicon-ok" tooltip="Historic sync finished" tooltip-placement="bottom" data-ng-show="sync.status==='finished'"> </span>
|
||||
</div>
|
||||
·
|
||||
<span data-ng-init="getStatus('Info')">
|
||||
<strong>{{'Conn'|translate}}</strong> {{info.connections}}
|
||||
</span> ·
|
||||
<strong>{{'Height'|translate}}</strong> {{totalBlocks || info.blocks}}
|
||||
</div>
|
||||
</li>
|
||||
<li>
|
||||
<a data-ng-click="openScannerModal()"><span class="glyphicon
|
||||
glyphicon-qrcode"></span> Scan</a>
|
||||
</li>
|
||||
<li class="dropdown" data-ng-controller="CurrencyController" data-ng-include="'views/includes/currency.html'"></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@ -1,4 +0,0 @@
|
||||
<span class="text-warning" data-ng-show="!loaded && !error" translate>Loading...</span>
|
||||
<span class="text-danger" data-ng-show="error">{{error}}</span>
|
||||
|
||||
|
||||
@ -1,6 +0,0 @@
|
||||
<form id="search-form" data-ng-controller="SearchController" role="search" data-ng-submit="search()">
|
||||
<div class="form-group" data-ng-class="{'has-error': badQuery}">
|
||||
<input id="search" type="text" class="form-control" data-ng-model="q" data-ng-class="{'loading': loading}" placeholder="{{'Search for block, transaction or address'|translate}}" data-ng-submit="search()" focus="true">
|
||||
</div>
|
||||
<div class="no_matching text-danger" data-ng-show="badQuery" translate>No matching records found!</div>
|
||||
</form>
|
||||
@ -1,79 +0,0 @@
|
||||
<div class="alert alert-danger" data-ng-show="flashMessage">
|
||||
{{$root.flashMessage}}
|
||||
</div>
|
||||
<div data-ng-include src="'views/includes/connection.html'"></div>
|
||||
<section data-ng-controller="IndexController" data-ng-init="index()">
|
||||
<div class="container">
|
||||
<div id="home" class="row">
|
||||
<div class="col-xs-12 col-md-8">
|
||||
|
||||
<div id="search-form-mobile" class="visible-xs" data-ng-include src="'views/includes/search.html'"></div>
|
||||
|
||||
<h1 translate>Latest Blocks</h1>
|
||||
<table class="table table-hover table-striped" style="table-layout: fixed">
|
||||
<thead>
|
||||
<tr>
|
||||
<th translate>Height</th>
|
||||
<th translate>Age</th>
|
||||
<th class="text-right"><span class="ellipsis" translate>Transactions</span></th>
|
||||
<th class="text-right hidden-xs"><span class="ellipsis" translate>Mined by</span></th>
|
||||
<th class="text-right" translate>Size</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr data-ng-show="!blocks.length"><td colspan="4" translate>Waiting for blocks...</td></tr>
|
||||
<tr class="fader" data-ng-repeat='b in blocks'>
|
||||
<td>
|
||||
<a href="block/{{b.hash}}">{{b.height}}</a>
|
||||
</td>
|
||||
<td><span class="ellipsis">{{humanSince(b.time)}}</span></td>
|
||||
<td class="text-right">{{b.txlength}}</td>
|
||||
<td class="text-right hidden-xs"><a href="{{b.poolInfo.url}}" title="{{b.poolInfo.poolName}}" target="_blank" data-ng-show="b.poolInfo">{{b.poolInfo.poolName}}</a></td>
|
||||
<td class="text-right">{{b.size}}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<div class="btn-more">
|
||||
<a href="blocks" class="btn btn-default" translate>See all blocks</a>
|
||||
</div>
|
||||
|
||||
<h2 translate>Latest Transactions</h2>
|
||||
|
||||
<table class="table table-hover table-striped" style="table-layout: fixed;">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Hash</th>
|
||||
<th class="text-right" translate>Value Out</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr data-ng-show="!txs.length"><td colspan="3" translate>Waiting for transactions...</td></tr>
|
||||
<tr class="fader" data-ng-repeat='tx in txs'>
|
||||
<td>
|
||||
<a class="ellipsis" href="tx/{{tx.txid}}">{{tx.txid}}</a>
|
||||
</td>
|
||||
<td class="text-right"><span class="ellipsis">{{$root.currency.getConvertion(tx.valueOut) || tx.valueOut + ' BTC'}}</span></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="col-xs-12 col-md-4 col-gray">
|
||||
<h2 translate>About</h2>
|
||||
<p translate><strong>insight</strong> is an <a href="https://insight.is/"
|
||||
target="_blank">open-source Bitcoin blockchain explorer</a> with complete REST and websocket APIs that can be used for writing web wallets and other apps that need more advanced blockchain queries than provided by bitcoind RPC. Check out the <a href="https://github.com/bitpay/insight-ui" target="_blank">source code</a>.</p>
|
||||
<p translate><strong>insight</strong> is still in development, so be sure to report any bugs and provide feedback for improvement at our <a href="https://github.com/bitpay/insight-ui/issues" target="_blank">github issue tracker</a>.</p>
|
||||
<div id="powered" class="row">
|
||||
<div class="powered-text">
|
||||
<small class="text-muted" translate>Powered by</small>
|
||||
</div>
|
||||
<a href="http://bitcore.io" target="_blank" class="bitcore" title="Bitcore"></a>
|
||||
<a href="http://angularjs.org" target="_blank" class="angularjs" title="AngularJS"></a>
|
||||
<a href="https://code.google.com/p/leveldb/" target="_blank" class="leveldb" title="LevelDB"></a>
|
||||
<a href="http://nodejs.org" target="_blank" class="nodejs" title="NodeJs"></a>
|
||||
</div>
|
||||
</div> <!-- END OF COL-3 -->
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
@ -1,81 +0,0 @@
|
||||
<section data-ng-controller="VerifyMessageController">
|
||||
<div class="page-header">
|
||||
<h1>
|
||||
<span translate>Verify signed message</span>
|
||||
</h1>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-xs-12 col-md-8">
|
||||
<form class="form-horizontal" role="form">
|
||||
<div class="form-group">
|
||||
<label for="verify-message-address" class="col-sm-2 control-label" translate>
|
||||
Address
|
||||
</label>
|
||||
<div class="col-sm-10">
|
||||
<input type="text" class="form-control" id="verify-message-address"
|
||||
data-ng-model="message.address">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="verify-message-signature" class="col-sm-2 control-label" translate>
|
||||
Signature
|
||||
</label>
|
||||
<div class="col-sm-10">
|
||||
<input type="text" class="form-control" id="verify-message-signature"
|
||||
data-ng-model="message.signature">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="verify-message-message" class="col-sm-2 control-label" translate>
|
||||
Message
|
||||
</label>
|
||||
<div class="col-sm-10">
|
||||
<textarea class="form-control" id="verify-message-message"
|
||||
data-ng-model="message.message" rows="5"></textarea>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="col-sm-offset-2 col-sm-10">
|
||||
<button class="btn btn-default" translate
|
||||
data-ng-click="verify()" data-ng-disabled="!verifiable()">
|
||||
Verify
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
<div class="row">
|
||||
<div data-ng-hide="verification.status == 'unverified'"
|
||||
class="col-sm-offset-2 col-sm-10">
|
||||
<div ng-show="verification.status == 'loading'" translate>
|
||||
Loading...
|
||||
</div>
|
||||
<div ng-show="verification.status == 'verified' && verification.result"
|
||||
class="alert alert-success" translate>
|
||||
The message is verifiably from {{verification.address}}.
|
||||
</div>
|
||||
<div ng-show="verification.status == 'verified' && !verification.result"
|
||||
class="alert alert-danger" translate>
|
||||
The message failed to verify.
|
||||
</div>
|
||||
<div ng-show="verification.status == 'error'"
|
||||
class="alert alert-warning">
|
||||
<p translate>An error occured in the verification process.</p>
|
||||
<p ng-show="error">
|
||||
<strong translate>Error message:</strong>
|
||||
{{verification.error}}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-xs-12 col-md-4 col-gray">
|
||||
<p translate>
|
||||
Bitcoin comes with a way of signing arbitrary messages.
|
||||
</p>
|
||||
<p translate>
|
||||
This form can be used to verify that a message comes from
|
||||
a specific Bitcoin address.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
@ -1 +0,0 @@
|
||||
<div class="text-center" translate>Redirecting...</div>
|
||||
@ -1,124 +0,0 @@
|
||||
<div data-ng-include src="'views/includes/connection.html'"></div>
|
||||
<section>
|
||||
<div class="page-header">
|
||||
<h1 translate>Application Status</h1>
|
||||
</div>
|
||||
<div id="status" class="row">
|
||||
|
||||
<div class="col-xs-12 col-md-8">
|
||||
<h2 translate>Sync Status</h2>
|
||||
<table class="table" data-ng-controller="StatusController" data-ng-init="getSync()">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td translate>Sync Progress</td>
|
||||
<td>
|
||||
<div class="progress">
|
||||
<div class="progress-bar progress-bar-info" role="progressbar" aria-valuenow="40" aria-valuemin="0" aria-valuemax="100" style="width: {{ sync.syncPercentage}}%">
|
||||
<span data-ng-show="sync.syncPercentage>0">{{sync.syncPercentage}}%
|
||||
<span translate>Complete</span>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td translate>Current Sync Status</td>
|
||||
<td class="text-right">
|
||||
<span data-ng-show="!sync.error">{{sync.status}}</span>
|
||||
<span class="text-danger" data-ng-show="sync.error">
|
||||
<span class="glyphicon glyphicon-warning-sign"></span>
|
||||
{{sync.error}}
|
||||
</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td translate>Start Date</td>
|
||||
<td class="text-right"><time title="{{sync.startTs | date:'medium'}}">{{humanSince(sync.startTs)}}</time></td>
|
||||
</tr>
|
||||
<tr data-ng-show="sync.endTs">
|
||||
<td translate>Finish Date</td>
|
||||
<td class="text-right"><time title="{{sync.startTs | date:'medium'}}" >{{humanSince(sync.endTs)}}</time></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td translate>Initial Block Chain Height</td>
|
||||
<td class="text-right">{{sync.blockChainHeight}}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td translate>Synced Blocks</td>
|
||||
<td class="text-right">{{sync.syncedBlocks}}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td translate>Skipped Blocks (previously synced)</td>
|
||||
<td class="text-right">{{sync.skippedBlocks}}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td translate>Sync Type</td>
|
||||
<td class="text-right">{{sync.type}}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<h2 translate>Last Block</h2>
|
||||
<table class="table" style="table-layout: fixed" data-ng-controller="StatusController" data-ng-init="getStatus('LastBlockHash')">
|
||||
<thead data-ng-include src="'views/includes/infoStatus.html'"></thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td translate>Last Block Hash (Bitcoind)</td>
|
||||
<td class="text-right ellipsis"><a href="block/{{lastblockhash}}">{{lastblockhash}}</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td translate>Current Blockchain Tip (insight)</td>
|
||||
<td class="text-right ellipsis"><a href="block/{{syncTipHash}}">{{syncTipHash}}</a></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
</div> <!-- END OF COL-8 -->
|
||||
|
||||
<div class="col-xs-12 col-md-4 col-gray">
|
||||
<h2 translate>Bitcoin node information</h2>
|
||||
<table class="table" data-ng-controller="StatusController" data-ng-init="getStatus('Info')">
|
||||
<thead data-ng-include src="'views/includes/infoStatus.html'"></thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td translate>Version</td>
|
||||
<td class="text-right">{{info.version}}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td translate>Protocol version</td>
|
||||
<td class="text-right">{{info.protocolversion}}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td translate>Blocks</td>
|
||||
<td class="text-right"><a href="block-index/{{info.blocks}}">{{info.blocks}}</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td translate>Time Offset</td>
|
||||
<td class="text-right">{{info.timeoffset}}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td translate>Connections to other nodes</td>
|
||||
<td class="text-right">{{info.connections}}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td translate>Mining Difficulty</td>
|
||||
<td class="text-right">{{info.difficulty}}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td translate>Network</td>
|
||||
<td class="text-right">{{info.network}}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td translate>Proxy setting</td>
|
||||
<td class="text-right">{{info.proxy}}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td translate>Info Errors</td>
|
||||
<td class="text-right">{{info.infoErrors}}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div> <!-- END OF COL-GRAY -->
|
||||
</div>
|
||||
</section>
|
||||
|
||||
@ -1,98 +0,0 @@
|
||||
<div data-ng-include src="'views/includes/connection.html'"></div>
|
||||
<section data-ng-controller="transactionsController" data-ng-init="findThis()">
|
||||
<div class="secondary_navbar hidden-xs hidden-sm" scroll data-ng-class="{'hidden': !secondaryNavbar}" data-ng-show="tx.txid" data-ng-init="hideSNavbar=0">
|
||||
<div class="container" data-ng-if="!hideSNavbar">
|
||||
<div class="col-md-6 col-lg-7 text-left">
|
||||
<h3 translate>Transaction</h3>
|
||||
<div class="ellipsis">
|
||||
<small>{{tx.txid}}</small>
|
||||
<span class="btn-copy" clip-copy="tx.txid"></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6 col-lg-5 text-right">
|
||||
<span data-ng-show="tx.confirmations" class="txvalues
|
||||
txvalues-success">{{tx.confirmations}}
|
||||
<span translate>Confirmations</span>
|
||||
</span>
|
||||
<span data-ng-show="!tx.confirmations"
|
||||
class="txvalues txvalues-danger" translate>Unconfirmed Transaction!</span>
|
||||
<span class="txvalues txvalues-primary">{{$root.currency.getConvertion(tx.valueOut) || tx.valueOut + ' BTC' }}</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="hide_snavbar">
|
||||
<a href="#" data-ng-click="hideSNavbar=!hideSNavbar">
|
||||
<span data-ng-show="hideSNavbar"><span class="text-muted glyphicon glyphicon-chevron-down"></span></span>
|
||||
<span data-ng-show="!hideSNavbar"><span class="text-muted glyphicon glyphicon-chevron-up"></span></span>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
<div data-ng-if="tx.txid">
|
||||
<h1><span translate>Transaction</span>
|
||||
<small data-ng-show="from_vin || from_vout">
|
||||
<span data-ng-show="from_vin" translate>Input</span>
|
||||
<span data-ng-show="from_vout" translate>Output</span>
|
||||
<span>{{v_index}}</span>
|
||||
</small>
|
||||
</h1>
|
||||
<div class="progress progress-striped active" data-ng-if="!tx.txid">
|
||||
<div class="progress-bar progress-bar-info" style="width: 100%">
|
||||
<span translate>Loading Transaction Details</span> <span class="loader-gif"></span>
|
||||
</div>
|
||||
</div>
|
||||
<div data-ng-if="tx.txid">
|
||||
<div class="well well-sm ellipsis">
|
||||
<strong translate>Transaction</strong>
|
||||
<span class="txid text-muted">{{tx.txid}}</span>
|
||||
<span class="btn-copy" clip-copy="tx.txid"></span>
|
||||
</div>
|
||||
<h2 translate>Summary</h2>
|
||||
<table class="table" style="table-layout: fixed">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><strong translate>Size</strong></td>
|
||||
<td class="text-muted text-right">{{tx.size}} (bytes)</td>
|
||||
</tr>
|
||||
<tr data-ng-show="tx.fees">
|
||||
<td><strong translate>Fee Rate</strong></td>
|
||||
<td class="text-muted text-right">{{$root.currency.getConvertion((tx.fees * 1000) / tx.size) + ' per kB' || ((tx.fees * 1000) / tx.size) + 'BTC per kB'}}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong translate>Received Time</strong></td>
|
||||
<td data-ng-show="tx.time" class="text-muted text-right">{{tx.time * 1000|date:'medium'}}</td>
|
||||
<td data-ng-show="!tx.time" class="text-muted text-right">N/A</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong translate>Mined Time</strong></td>
|
||||
<td data-ng-show="tx.blocktime" class="text-muted text-right">{{tx.blocktime * 1000|date:'medium'}}</td>
|
||||
<td data-ng-show="!tx.blocktime" class="text-muted text-right">N/A</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong translate>Included in Block</strong></td>
|
||||
<td data-ng-show="tx.blockhash" class="text-muted text-right">
|
||||
<div class="ellipsis">
|
||||
<a href="block/{{tx.blockhash}}">{{tx.blockhash}}</a>
|
||||
</div>
|
||||
<td data-ng-show="!tx.blockhash" class="text-muted text-right">Unconfirmed</td>
|
||||
</tr>
|
||||
<tr data-ng-show="tx.locktime">
|
||||
<td><strong>LockTime</strong></td>
|
||||
<td class="text-muted text-right">{{tx.locktime}}</td>
|
||||
</tr>
|
||||
<tr data-ng-show="tx.isCoinBase">
|
||||
<td><strong>Coinbase</strong></td>
|
||||
<td class="text-muted text-right">
|
||||
<div class="ellipsis">
|
||||
<span class="btn-copy ng-isolate-scope" clip-copy="tx.vin[0].coinbase"></span>
|
||||
<span class="ng-binding">{{tx.vin[0].coinbase}}</span>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<h2 translate>Details</h2>
|
||||
<div class="block-tx" data-ng-if="tx.txid">
|
||||
<div data-ng-include src="'views/transaction/tx.html'"></div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
@ -1,11 +0,0 @@
|
||||
<div class="alert alert-warning"
|
||||
data-ng-show="!txs[0].txid && !loading"
|
||||
translate>There are no transactions involving this address.</div>
|
||||
<div class="block-tx" data-ng-show="txs && txs[0].txid" data-ng-repeat="tx in txs">
|
||||
<div data-ng-include src="'views/transaction/tx.html'"></div>
|
||||
</div>
|
||||
<div class="progress progress-striped active" data-ng-show="loading">
|
||||
<div class="progress-bar progress-bar-info" style="width: 100%">
|
||||
<span translate>Loading Transactions...</span>
|
||||
</div>
|
||||
</div>
|
||||
@ -1,211 +0,0 @@
|
||||
<div class="line-bot row" data-ng-hide="!tx">
|
||||
<div class="col-xs-7 col-md-8">
|
||||
<div class="ellipsis">
|
||||
<a class="btn-expand" title="Show/Hide items details" data-ng-click="itemsExpanded = !itemsExpanded">
|
||||
<span class="glyphicon glyphicon-plus-sign" data-ng-class="{'glyphicon-minus-sign': itemsExpanded}"></span>
|
||||
</a>
|
||||
<a href="tx/{{tx.txid}}">{{tx.txid}}</a>
|
||||
<span class="btn-copy" clip-copy="tx.txid"></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-xs-5 col-md-4 text-right text-muted">
|
||||
<div data-ng-show="tx.firstSeenTs">
|
||||
<span translate>first seen at</span>
|
||||
<time>{{tx.firstSeenTs * 1000 | date:'medium'}}</time>
|
||||
</div>
|
||||
<div data-ng-show="tx.blocktime && !tx.firstSeenTs">
|
||||
<span translate>mined</span>
|
||||
<time>{{tx.time * 1000 | date:'medium'}}</time>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row line-mid">
|
||||
<div class="col-md-5">
|
||||
<div class="row" data-ng-if="tx.isCoinBase">
|
||||
<div class="col-md-12 transaction-vin-vout" data-ng-repeat="vin in tx.vin">
|
||||
<div class="ellipsis">
|
||||
<span translate>No Inputs (Newly Generated Coins)</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row" data-ng-if="!tx.isCoinBase">
|
||||
|
||||
<!-- <<< Simple view -->
|
||||
<div data-ng-if="!itemsExpanded" data-ng-init="currentInNoExpanded=0; sizeInNoExpanded=5">
|
||||
<div class="panel panel-default" data-ng-repeat="vin in tx.vinSimple| startFrom:currentInNoExpanded*sizeInNoExpanded | limitTo:sizeInNoExpanded">
|
||||
<div class="panel-body transaction-vin-vout">
|
||||
<div class="pull-right btc-value" data-ng-class="{'text-danger': $root.currentAddr == vin.addr}">
|
||||
{{$root.currency.getConvertion(vin.value) || vin.value + ' BTC'}}
|
||||
</div>
|
||||
<div class="ellipsis">
|
||||
<span data-ng-show="vin.notAddr">{{vin.addr}}</span>
|
||||
<span class="text-muted" title="Current Bitcoin Address" data-ng-show="vin.addr == $root.currentAddr">{{vin.addr}}</span>
|
||||
<a href="address/{{vin.addr}}" data-ng-show="!vin.notAddr && vin.addr != $root.currentAddr">{{vin.addr}}</a>
|
||||
</div>
|
||||
<div data-ng-show="vin.unconfirmedInput" class="text-danger"> <span class="glyphicon glyphicon-warning-sign"></span> (Input unconfirmed)</div>
|
||||
<div data-ng-show="vin.dbError" class="text-danger">
|
||||
<span class="glyphicon glyphicon-warning-sign"></span>
|
||||
<span translate>Incoherence in levelDB detected:</span> {{vin.dbError}}
|
||||
</div>
|
||||
<div data-ng-show="vin.doubleSpentTxID" class="text-danger">
|
||||
<span class="glyphicon glyphicon-warning-sign"></span>
|
||||
<span translate>Double spent attempt detected. From tx:</span>
|
||||
<a href="tx/{{vin.doubleSpentTxID}}">{{vin.doubleSpentTxID}},{{vin.doubleSpentIndex}}</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="showmore_collapse text-left" data-ng-show="tx.vinSimple.length > 5" data-ng-class="{ 'hidden': itemsExpanded}">
|
||||
<button type="button" class="btn btn-info btn-sm" ng-hide="sizeInNoExpanded != tx.vinSimple.length" ng-click="currentInNoExpanded=0; sizeInNoExpanded=5"><i class="glyphicon glyphicon-chevron-up"></i>
|
||||
<span translate>Show less</span></button>
|
||||
<button type="button" class="btn btn-info btn-sm" ng-hide="currentInNoExpanded >= tx.vinSimple.length/sizeInNoExpanded - 1" ng-click="currentInNoExpanded=0; sizeInNoExpanded=tx.vinSimple.length"><i class="glyphicon glyphicon-chevron-down"></i>
|
||||
<span translate>Show more</span></button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- <<< Full view -->
|
||||
<div data-ng-if="itemsExpanded" data-ng-init="currentInExpanded=0; sizeInExpanded=(from_vin) ? tx.vin.length : 5; fromVinCollapsed=(from_vin)">
|
||||
<div data-ng-repeat="vin in tx.vin| startFrom:currentInExpanded*sizeInExpanded | limitTo:sizeInExpanded" data-ng-if="fromVinCollapsed ? v_index == vin.n : 1">
|
||||
<div class="panel panel-default transaction-vin-vout">
|
||||
<div class="panel-body">
|
||||
<div class="pull-right btc-value">
|
||||
{{$root.currency.getConvertion(vin.value) || vin.value + ' BTC'}}
|
||||
</div>
|
||||
<div class="ellipsis">
|
||||
<a class="glyphicon glyphicon-chevron-right" href="tx/{{vin.txid}}/>/{{vin.vout}}" title="Outpoint: {{vin.txid}},{{vin.vout}}"></a>
|
||||
<span data-ng-show="vin.notAddr">{{vin.addr}}</span>
|
||||
<a href="address/{{vin.addr}}" data-ng-show="!vin.notAddr">{{vin.addr}}</a>
|
||||
</div>
|
||||
<div data-ng-show="vin.unconfirmedInput" class="text-danger">
|
||||
<span class="glyphicon glyphicon-warning-sign"></span>
|
||||
<span translate>(Input unconfirmed)</span>
|
||||
</div>
|
||||
<div data-ng-show="vin.dbError" class="text-danger">
|
||||
<span class="glyphicon glyphicon-warning-sign"></span>
|
||||
<span translate>Incoherence in levelDB detected:</span> {{vin.dbError}}
|
||||
</div>
|
||||
<div data-ng-show="vin.doubleSpentTxID" class="text-danger">
|
||||
<span class="glyphicon glyphicon-warning-sign"></span>
|
||||
<span translate>Double spent attempt detected. From tx:</span>
|
||||
<a href="tx/{{<vin class=""></vin>doubleSpentTxID}}">{{vin.doubleSpentTxID}},{{vin.doubleSpentIndex}}</a>
|
||||
</div>
|
||||
</div> <!-- END OF PANEL BODY -->
|
||||
</div> <!-- END OF PANEL-DEFAULT -->
|
||||
<div class="small" style="margin-left:0.7em; word-wrap:break-word;" data-ng-class="{true: 'v_highlight', false: ''}[from_vin == true && v_index == vin.n]" >
|
||||
<p><strong>Confirmations:</strong> {{vin.confirmations}}</p>
|
||||
<p><strong>scriptSig</strong></p>
|
||||
<div data-ng-repeat="item in vin.scriptSig.asm | split:' '" class="">
|
||||
<p class="col-md-11 ellipsis text-muted">{{item}}</p>
|
||||
<p class="btn-copy" clip-copy="item"></p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="text-left">
|
||||
<button type="button" class="btn btn-default btn-sm" data-ng-show="(from_vin) && tx.vin.length > 1" data-ng-disabled="fromVinCollapsed" data-ng-click="currentInExpanded=0; sizeInExpanded=tx.vin.length;fromVinCollapsed=1">
|
||||
<span translate>Show input</span> #{{ v_index }}</button>
|
||||
<button type="button" class="btn btn-default btn-sm" data-ng-show="(from_vin) && tx.vin.length > 1" data-ng-disabled="!fromVinCollapsed" data-ng-click="currentInExpanded=0; sizeInExpanded=tx.vin.length;fromVinCollapsed=0">
|
||||
<span translate>Show all</span></button>
|
||||
</div>
|
||||
<div class="showmore_collapse text-left" data-ng-show="tx.vin.length > 5 && !fromVinCollapsed" data-ng-class="{ 'hidden': !itemsExpanded}">
|
||||
<button type="button" class="btn btn-info btn-sm" ng-hide="sizeInExpanded != tx.vin.length" ng-click="currentInExpanded=0; sizeInExpanded=5"><i class="glyphicon glyphicon-chevron-up"></i>
|
||||
<span translate>Show less</span></button>
|
||||
<button type="button" class="btn btn-info btn-sm" ng-hide="currentInExpanded >= tx.vin.length/sizeInExpanded - 1" ng-click="currentInExpanded=0; sizeInExpanded=tx.vin.length"><i class="glyphicon glyphicon-chevron-down"></i>
|
||||
<span translate>Show more</span></button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-1 col-xs-12">
|
||||
<div class="hidden-xs hidden-sm text-center">
|
||||
<span class="lead glyphicon glyphicon-chevron-right text-muted"></span>
|
||||
</div>
|
||||
<div class="hidden-md hidden-lg text-center">
|
||||
<span class="lead glyphicon glyphicon-chevron-down text-muted"></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<div class="row">
|
||||
<!-- Simple view >>> -->
|
||||
<div data-ng-if="!itemsExpanded" data-ng-init="currentOutNoExpanded=0; sizeOutNoExpanded=5">
|
||||
<div data-ng-repeat="vout in tx.voutSimple| startFrom:currentOutNoExpanded*sizeOutNoExpanded | limitTo:sizeOutNoExpanded">
|
||||
<div class="transaction-vin-vout panel panel-default">
|
||||
<div class="panel-body">
|
||||
<div class="pull-right btc-value" data-ng-class="{'text-success': $root.currentAddr == vout.addr}">
|
||||
{{$root.currency.getConvertion(vout.value) || vout.value + ' BTC' }}
|
||||
<span class="text-danger" data-ng-show="vout.isSpent" tooltip="Output is spent" tooltip-placement="left">(S)</span>
|
||||
<span class="text-success" data-ng-show="!vout.isSpent" tooltip="Output is unspent" tooltip-placement="left">(U)</span>
|
||||
</div>
|
||||
|
||||
<div class="ellipsis">
|
||||
<span data-ng-show="vout.notAddr">{{vout.addr}}</span>
|
||||
<span class="text-muted" title="Current Bitcoin Address" data-ng-show="address == $root.currentAddr" data-ng-repeat="address in vout.addr.split(',')">{{vout.addr}}</span>
|
||||
<a href="address/{{address}}" data-ng-show="!vout.notAddr && address != $root.currentAddr" data-ng-repeat="address in vout.addr.split(',')">{{address}}</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="showmore_collapse text-left" data-ng-show="tx.voutSimple.length > 5" data-ng-class="{ 'hidden': itemsExpanded}">
|
||||
<button type="button" class="btn btn-info btn-sm" ng-hide="sizeOutNoExpanded != tx.voutSimple.length" ng-click="currentOutNoExpanded=0; sizeOutNoExpanded=5"><i class="glyphicon glyphicon-chevron-up"></i>
|
||||
<span translate>Show less</span></button>
|
||||
<button type="button" class="btn btn-info btn-sm" ng-hide="currentOutNoExpanded >= tx.voutSimple.length/sizeOutNoExpanded - 1" ng-click="currentOutNoExpanded=0; sizeOutNoExpanded=tx.voutSimple.length"><i class="glyphicon glyphicon-chevron-down"></i>
|
||||
<span translate>Show more</span></button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Full view >>> -->
|
||||
<div data-ng-if="itemsExpanded" data-ng-init="currentOutExpanded=0; sizeOutExpanded=(from_vout) ? tx.vout.length : 5; fromVoutCollapsed=(from_vout)">
|
||||
<div data-ng-repeat="vout in tx.vout| startFrom:currentOutExpanded*sizeOutExpanded | limitTo:sizeOutExpanded" data-ng-if="fromVoutCollapsed ? v_index == vout.n : 1">
|
||||
<div class="panel panel-default transaction-vin-vout">
|
||||
<div class="panel-body">
|
||||
<div class="pull-right btc-value">
|
||||
<span>{{$root.currency.getConvertion(vout.value) || vout.value + ' BTC'}}
|
||||
<span class="text-success" data-ng-show="!vout.spentTxId" tooltip="Output is unspent" tooltip-placement="left">(U)</span>
|
||||
<a class="glyphicon glyphicon-chevron-right" data-ng-show="vout.spentTxId" href="tx/{{vout.spentTxId}}/</{{vout.spentIndex}}" title="Spent at: {{vout.spentTxId}},{{vout.spentIndex}}"></a>
|
||||
</span>
|
||||
</div>
|
||||
<div class="ellipsis">
|
||||
<a href="address/{{address}}" data-ng-repeat="address in vout.scriptPubKey.addresses">{{address}}</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div style="padding-left: 0.7em; padding-bottom: 2em; word-wrap:break-word" data-ng-class="{true: 'v_highlight', false: ''}[from_vout == true && v_index == vout.n]">
|
||||
<p class="small">
|
||||
<strong translate>Type</strong>
|
||||
<span class="text-muted">{{vout.scriptPubKey.type}}</span>
|
||||
</p>
|
||||
<div class="small">
|
||||
<p><strong>scriptPubKey</strong></p>
|
||||
<span class="col-md-11 text-muted ellipsis">{{vout.scriptPubKey.asm}}</span>
|
||||
<span class="btn-copy col-md-1" clip-copy="vout.scriptPubKey.asm"></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="text-right">
|
||||
<button type="button" class="btn btn-default btn-sm" data-ng-show="(from_vout) && tx.vout.length > 1" data-ng-disabled="fromVoutCollapsed" data-ng-click="currentOutExpanded=0; sizeOutExpanded=tx.vout.length;fromVoutCollapsed=1">Show output #{{ v_index }}</button>
|
||||
<button type="button" class="btn btn-default btn-sm" data-ng-show="(from_vout) && tx.vout.length > 1" data-ng-disabled="!fromVoutCollapsed" data-ng-click="currentOutExpanded=0; sizeOutExpanded=tx.vout.length;fromVoutCollapsed=0">Show all</button>
|
||||
</div>
|
||||
<div class="showmore_collapse text-left" data-ng-show="tx.vout.length > 5 && !fromVoutCollapsed" data-ng-class="{ 'hidden': !itemsExpanded}">
|
||||
<button type="button" class="btn btn-info btn-sm" ng-hide="sizeOutExpanded != tx.vout.length" ng-click="currentOutExpanded=0; sizeOutExpanded=5"><i class="glyphicon glyphicon-chevron-up"></i>Show less</button>
|
||||
<button type="button" class="btn btn-info btn-sm" ng-hide="currentOutExpanded >= tx.vout.length/sizeOutExpanded - 1" ng-click="currentOutExpanded=0; sizeOutExpanded=tx.vout.length"><i class="glyphicon glyphicon-chevron-down"></i> Show more</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="well well-sm bgwhite ellipsis" data-ng-if="itemsExpanded && !block.hash && tx.blockhash">
|
||||
<strong translate>Included in Block</strong> <a class="text-muted" href="block/{{tx.blockhash}}">{{tx.blockhash}}</a>
|
||||
<span class="btn-copy" clip-copy="tx.blockhash"></span>
|
||||
</div>
|
||||
|
||||
<div class="line-top row" data-ng-hide="!tx">
|
||||
<div class="col-xs-6 col-sm-4 col-md-4">
|
||||
<span data-ng-show="!tx.isCoinBase && !isNaN(parseFloat(tx.fees))"
|
||||
class="txvalues txvalues-default"><span translate>Fee</span>: {{$root.currency.getConvertion(tx.fees) || tx.fees + 'BTC'}} </span>
|
||||
</div>
|
||||
<div class="col-xs-6 col-sm-8 col-md-8 text-right">
|
||||
<span data-ng-show="tx.confirmations" class="txvalues
|
||||
txvalues-success">{{tx.confirmations}} <span translate>Confirmations</span></span>
|
||||
<span data-ng-show="!tx.confirmations" class="txvalues txvalues-danger" translate>Unconfirmed Transaction!</span>
|
||||
<span class="txvalues txvalues-primary">{{$root.currency.getConvertion(tx.valueOut) || tx.valueOut + ' BTC' }}</span>
|
||||
</div>
|
||||
</div>
|
||||