CWB Trad Journal js
How do I make an cwb trad journal js?
What is a cwb trad journal js? How do you make a cwb trad journal js? This script and codes were developed by Nathan Gregg on 25 January 2023, Wednesday.
CWB Trad Journal js - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>CWB Trad Journal js</title> <meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css">
<link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:200" rel="stylesheet">
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/bootstrap-table/1.11.0/bootstrap-table.min.css"> <link rel='stylesheet prefetch' href='https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/css/bootstrap.min.css'> <link rel="stylesheet" href="css/style.css">
</head>
<body> <table id="journal_table" data-search="true"> <thead> <tr> <th data-formatter="runningFormatter"></th> <th data-field="coin" data-switchable="false">Coin</th> <th data-field="bal">Current Bal.</th> <th data-field="bal_fiat" data-formatter="currencyFormat">in Fiat</th> <th data-field="profit_fct">Profit Factor</th> <th data-field="gross_profit" data-formatter="currencyFormat">Gross Profit</th> <th data-field="gross_profit_perc" data-formatter="percentageFormat">as %</th> <th data-field="gross_loss" data-formatter="currencyFormat">Gross Loss</th> <th data-field="gross_loss_perc" data-formatter="percentageFormat">as %</th> <th data-field="max_neg" data-formatter="currencyFormat">Max -ve Bal</th> <th data-field="max_neg_perc" data-formatter="percentageFormat">as %</th> <th data-field="biggest_win" data-formatter="currencyFormat">Biggest Win</th> <th data-field="biggest_loss" data-formatter="currencyFormat">Biggest Loss</th> <th data-field="num_winners">Num Winners</th> <th data-field="num_losers">Num Losers</th> </tr> </thead>
</table>
<!--Table
<table id="table" data-toolbar="#toolbar" data-search="true" data-show-refresh="true" data-show-toggle="true" data-show-columns="true" data-show-export="true" data-detail-view="true" data-detail-formatter="detailFormatter" data-minimum-count-columns="2" data-show-pagination-switch="true" data-pagination="true" data-id-field="id" data-page-list="[10, 25, 50, 100, ALL]" data-show-footer="false" data-side-pagination="server" data-response-handler="responseHandler">
</table>
id="journal_table" data-search="true" data-show-refresh="true" data-show-toggle="true"> <thead> <tr> <th rowspan="2">COIN</th> <th colspan="6">Buying</th> <th colspan="6">Current</th> <th colspan="2">Current Profit</th> </tr> <tr> <th>Date Bought</th> <th>Amount Bought</th> <th>Price $</th> <th>Price BTC</th> <th>Total Val $</th> <th>Total Val BTC</th> <th>Curr Price $</th> <th>Curr Price BTC</th> <th>Curr Val $</th> <th>Curr Val BTC</th> <th>24hr % Change</th> <th>Profit $</th> <th>Profit BTC</th> </tr> </thead>
--> <script src='https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.0/jquery.min.js'></script>
<script src='https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.12.0/jquery-ui.min.js'></script>
<script src='https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/js/bootstrap.min.js'></script>
<script src='https://cdnjs.cloudflare.com/ajax/libs/bootstrap-table/1.11.0/bootstrap-table.min.js'></script> <script src="js/index.js"></script>
</body>
</html>
CWB Trad Journal js - Script Codes CSS Codes
* { margin: 0; padding: 0; font-size: 100%; font: inherit; vertical-align: baseline; outline: none; box-sizing: border-box; font-family: "Source Sans Pro",sans-serif; border-radius: none;
}
CWB Trad Journal js - Script Codes JS Codes
var data = [ { "coin": "XCP", "bal": "15.2322", "bal_fiat": "98.23", "profit_fct": "2.1", "gross_profit": "1,000,000", "gross_profit_perc": "1000", "gross_loss": "0", "gross_loss_perc": "-1000", "max_neg": "0", "max_neg_perc": "0", "biggest_win": "139,323", "biggest_loss": "0", "num_winners": "143", "num_losers": "0" }, { "coin": "DGB", "bal": "872411.489", "bal_fiat": "45.99", "profit_fct": "-0.5", "gross_profit": "35", "gross_profit_perc": "2.409", "gross_loss": "190", "gross_loss_perc": "34.2", "max_neg": "1202", "max_neg_perc": "140", "biggest_win": "2", "biggest_loss": "134", "num_winners": "4", "num_losers": "59" }, { "coin": "OMNI", "bal": "12.2", "bal_fiat": "210.34", "profit_fct": "1.2", "gross_profit": "122.39", "gross_profit_perc": "12.7", "gross_loss": "19", "gross_loss_perc": "34.2", "max_neg": "90", "max_neg_perc": "6.823", "biggest_win": "94.26", "biggest_loss": "12", "num_winners": "7", "num_losers": "2" },
]
$.extend($.fn.bootstrapTable.columnDefaults, { sortable: true
});
$('#journal_table').bootstrapTable({ // url: 'data1.json', data: data, showColumns: true, cardView: false, // change on media queries undefinedText: "na", // 'not applicable', if there is no data striped: true, detailView: true, showToggle: true, showRefresh: true
});
function runningFormatter(value, row, index) { return index;
}
/*
var $table = $('#journal_table'), $remove = $('#remove'), selections = [];
function initTable() { $table.bootstrapTable({ height: getHeight(), columns: [ [ { field: 'state', checkbox: true, rowspan: 2, align: 'center', valign: 'middle' }, { title: 'Item ID', field: 'id', rowspan: 2, align: 'center', valign: 'middle', sortable: true, footerFormatter: totalTextFormatter }, { title: 'Item Detail', colspan: 3, align: 'center' } ], [ { field: 'name', title: 'Item Name', sortable: true, editable: true, footerFormatter: totalNameFormatter, align: 'center' }, { field: 'price', title: 'Item Price', sortable: true, align: 'center', editable: { type: 'text', title: 'Item Price', validate: function (value) { value = $.trim(value); if (!value) { return 'This field is required'; } if (!/^\$/.test(value)) { return 'This field needs to start width $.' } var data = $table.bootstrapTable('getData'), index = $(this).parents('tr').data('index'); console.log(data[index]); return ''; } }, footerFormatter: totalPriceFormatter }, { field: 'operate', title: 'Item Operate', align: 'center', events: operateEvents, formatter: operateFormatter } ]
] }); // sometimes footer render error. setTimeout(function () { $table.bootstrapTable('resetView'); }, 200); $table.on('check.bs.table uncheck.bs.table ' + 'check-all.bs.table uncheck-all.bs.table', function () { $remove.prop('disabled', !$table.bootstrapTable('getSelections').length); // save your data, here just save the current page selections = getIdSelections(); // push or splice the selections if you want to save all data selections }); $table.on('expand-row.bs.table', function (e, index, row, $detail) { if (index % 2 == 1) { $detail.html('Loading from ajax request...'); $.get('LICENSE', function (res) { $detail.html(res.replace(/\n/g, '<br>')); }); } }); $table.on('all.bs.table', function (e, name, args) { console.log(name, args); }); $remove.click(function () { var ids = getIdSelections(); $table.bootstrapTable('remove', { field: 'id', values: ids }); $remove.prop('disabled', true); }); $(window).resize(function () { $table.bootstrapTable('resetView', { height: getHeight() }); });
}
function getIdSelections() { return $.map($table.bootstrapTable('getSelections'), function (row) { return row.id });
}
function responseHandler(res) { $.each(res.rows, function (i, row) { row.state = $.inArray(row.id, selections) !== -1; }); return res;
}
function detailFormatter(index, row) { var html = []; $.each(row, function (key, value) { html.push('<p><b>' + key + ':</b> ' + value + '</p>'); }); return html.join('');
}
function operateFormatter(value, row, index) { return [ '<a class="like" href="javascript:void(0)" title="Like">', '<i class="glyphicon glyphicon-heart"></i>', '</a> ', '<a class="remove" href="javascript:void(0)" title="Remove">', '<i class="glyphicon glyphicon-remove"></i>', '</a>' ].join('');
}
window.operateEvents = { 'click .like': function (e, value, row, index) { alert('You click like action, row: ' + JSON.stringify(row)); }, 'click .remove': function (e, value, row, index) { $table.bootstrapTable('remove', { field: 'id', values: [row.id] }); }
};
function totalTextFormatter(data) { return 'Total';
}
function totalNameFormatter(data) { return data.length;
}
function totalPriceFormatter(data) { var total = 0; $.each(data, function (i, row) { total += +(row.price.substring(1)); }); return '$' + total;
}
function getHeight() { return $(window).height() - $('h1').outerHeight(true);
}
$(function () { var scripts = [ location.search.substring(1) || 'assets/bootstrap-table/src/bootstrap-table.js', 'assets/bootstrap-table/src/extensions/export/bootstrap-table-export.js', 'https://rawgit.com/hhurz/tableExport.jquery.plugin/master/tableExport.js', 'assets/bootstrap-table/src/extensions/editable/bootstrap-table-editable.js', 'https://rawgit.com/vitalets/x-editable/master/dist/bootstrap3-editable/js/bootstrap-editable.js' ], eachSeries = function (arr, iterator, callback) { callback = callback || function () {}; if (!arr.length) { return callback(); } var completed = 0; var iterate = function () { iterator(arr[completed], function (err) { if (err) { callback(err); callback = function () {}; } else { completed += 1; if (completed >= arr.length) { callback(null); } else { iterate(); } } }); }; iterate(); }; eachSeries(scripts, getScript, initTable);
});
function getScript(url, callback) { var head = document.getElementsByTagName('head')[0]; var script = document.createElement('script'); script.src = url; var done = false; // Attach handlers for all browsers script.onload = script.onreadystatechange = function() { if (!done && (!this.readyState || this.readyState == 'loaded' || this.readyState == 'complete')) { done = true; if (callback) callback(); // Handle memory leak in IE script.onload = script.onreadystatechange = null; } }; head.appendChild(script); // We handle everything using the script element injection return undefined;
}
*/
Developer | Nathan Gregg |
Username | nathansonic |
Uploaded | January 25, 2023 |
Rating | 3 |
Size | 4,941 Kb |
Views | 6,072 |
Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!
Name | Size |
Logo Skews etc | 3,899 Kb |
Magic Template | 2,992 Kb |
Artist Page Styling v7 Isotope | 4,100 Kb |
Pure CSS filter using Flexbox | 2,320 Kb |
Artist Page Styling v5 | 3,275 Kb |
CWB logo | 3,375 Kb |
CWB Full V3 | 8,474 Kb |
Color Swatch | 1,691 Kb |
CWB Table v4, Bootstrap-Table | 2,780 Kb |
CWB settings | 5,577 Kb |
Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!
Name | Username | Size |
Loading animation - freedom purchase | Rocbear | 2,567 Kb |
SVG Playground | Roygwells | 1,834 Kb |
Loading... | Adamjacob | 2,384 Kb |
Simple star rating using js and data-uri | TheEnd | 5,795 Kb |
Flexbox playground | Enxaneta | 5,418 Kb |
Mega Menu by Joni | Asakasinsky | 3,171 Kb |
Google Fonts Sass Mixin | HugoGiraudel | 4,237 Kb |
Simple checkbox style | Vncnz | 2,628 Kb |
Lecture 1 | Law | 0 Kb |
Canvas stripes | Adrianparr | 1,948 Kb |
Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup. Hide Your IP Now!