/
notes.txt
executable file
·56 lines (50 loc) · 1.92 KB
/
notes.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
TODO:
- upload store logo (for printing)
https://blueimp.github.io/jQuery-File-Upload/jquery-ui.html
- autocomplete inputs:
http://easyautocomplete.com/guide
https://github.com/running-coder/jquery-typeahead
http://www.runningcoder.org/jquerytypeahead/demo/
- light/dark theme option
// dusk - http://es-di.com/sdcontent/foundation/dark/sd-ui-dark-foundation.zip
// dawn - http://es-di.com/sdcontent/foundation/gradient/sd-ui-gradient-foundation.zip
// change theme
$("#changeTheme").click(function () {
var value = $("settingsTheme").val();
if ($value === "dusk") {
$themeName = "darkui.css";
} else {
$themeName = "lightui.css";
}
$("link").attr("href", $themeName);
$.cookie("css", $themeName, {
expires: 365,
path: '/'
});
});
- calculate recommended transaction fee
/* https://bitcointicker.co/bccnetworkstats/
Fee (bcc/kB) 2 blocks: 0.00000999 */
//
// recommended transaction fee to confirm payment within 2 blocks
// fee2blocks is populated by javascript =(
//
// https://github.com/Rob--W/cors-anywhere
// https://cors-anywhere.herokuapp.com/
//
$.ajax({
url: 'https://cors-anywhere.herokuapp.com/https://bitcointicker.co/bccnetworkstats/',
type: 'GET',
success: function(res) {
var findData = $(res).find('#fee2blocks').text();
var find2 = $(res.responseText).find('#fee2blocks').text();
var recommendFee = parseFloat(findData * 1000000).toFixed(2);
console.log(res);
}
});
- internationalization
https://github.com/wikimedia/jquery.i18n
https://phraseapp.com/blog/posts/jquery-i18n-the-advanced-guide/
- investigate paybear.io integration
- improve rate limiting
- rotate recieve addresses (xpub?)